! Started logfile: J0336+3218_S_2001_07_05_pus_uvs.log on Fri Aug 10 00:05:06 2007
obs J0336+3218_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0336+3218_S_2001_07_05_pus_uva.fits
! AN table 1: 116 integrations on 171 of 171 possible baselines.
! AN table 2: 78 integrations on 171 of 171 possible baselines.
! AN table 3: 293 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.183088 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0336+3218
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1774 lines of history.
! 
! Reading 60988 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1430 telescope corrections were flagged in sub-array 1.
!  A total of 739 telescope corrections were flagged in sub-array 2.
!  A total of 4085 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1430 telescope corrections were flagged in sub-array 1.
!  A total of 739 telescope corrections were flagged in sub-array 2.
!  A total of 4085 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1430 telescope corrections were flagged in sub-array 1.
!  A total of 739 telescope corrections were flagged in sub-array 2.
!  A total of 4085 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1430 telescope corrections were flagged in sub-array 1.
!  A total of 739 telescope corrections were flagged in sub-array 2.
!  A total of 4085 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.282699Jy  sigma=0.010643
! Fit after  self-cal, rms=0.809385Jy  sigma=0.006599
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.923 mas, bmaj=3.373 mas, bpa=-11.97 degrees
! Estimated noise=647.521 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.676036 Jy
! Component: 100  -  total flux cleaned = 0.973457 Jy
! Total flux subtracted in 100 components = 0.973457 Jy
! Clean residual min=-0.051373 max=0.375232 Jy/beam
! Clean residual mean=0.000124 rms=0.018147 Jy/beam
! Combined flux in latest and established models = 0.973457 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.973457 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.709441Jy  sigma=0.005934
! Fit after  self-cal, rms=0.703598Jy  sigma=0.005897
! Inverting map 
! Added new window around map position (3, -2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.324606 Jy
! Component: 100  -  total flux cleaned = 0.477054 Jy
! Total flux subtracted in 100 components = 0.477054 Jy
! Clean residual min=-0.035331 max=0.117223 Jy/beam
! Clean residual mean=0.000091 rms=0.010855 Jy/beam
! Combined flux in latest and established models = 1.45051 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 19 components and 1.45051 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.479203Jy  sigma=0.003948
! Fit after  self-cal, rms=0.454762Jy  sigma=0.003796
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.131547 Jy
! Component: 100  -  total flux cleaned = 0.221735 Jy
! Total flux subtracted in 100 components = 0.221735 Jy
! Clean residual min=-0.024329 max=0.070780 Jy/beam
! Clean residual mean=0.000082 rms=0.007799 Jy/beam
! Combined flux in latest and established models = 1.67225 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 38 components and 1.67225 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384860Jy  sigma=0.003141
! Fit after  self-cal, rms=0.381273Jy  sigma=0.003122
! Inverting map 
! Added new window around map position (6, -5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0868651 Jy
! Component: 100  -  total flux cleaned = 0.154572 Jy
! Total flux subtracted in 100 components = 0.154572 Jy
! Clean residual min=-0.019980 max=0.040908 Jy/beam
! Clean residual mean=0.000064 rms=0.006376 Jy/beam
! Combined flux in latest and established models = 1.82682 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 55 components and 1.82682 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.344172Jy  sigma=0.002766
! Fit after  self-cal, rms=0.342620Jy  sigma=0.002757
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0610239 Jy
! Component: 100  -  total flux cleaned = 0.111638 Jy
! Total flux subtracted in 100 components = 0.111638 Jy
! Clean residual min=-0.017994 max=0.037879 Jy/beam
! Clean residual mean=0.000050 rms=0.005478 Jy/beam
! Combined flux in latest and established models = 1.93846 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 68 components and 1.93846 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.322153Jy  sigma=0.002554
! Fit after  self-cal, rms=0.321388Jy  sigma=0.002550
! Inverting map 
! Added new window around map position (7.5, -9.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0474618 Jy
! Component: 100  -  total flux cleaned = 0.0875444 Jy
! Total flux subtracted in 100 components = 0.0875444 Jy
! Clean residual min=-0.016670 max=0.024954 Jy/beam
! Clean residual mean=0.000032 rms=0.004850 Jy/beam
! Combined flux in latest and established models = 2.026 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 80 components and 2.026 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.309146Jy  sigma=0.002424
! Fit after  self-cal, rms=0.308583Jy  sigma=0.002421
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.315 mas, bmaj=3.967 mas, bpa=-11.96 degrees
! Estimated noise=368.452 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.058619 Jy
! Component: 100  -  total flux cleaned = 0.100093 Jy
! Component: 150  -  total flux cleaned = 0.131927 Jy
! Component: 200  -  total flux cleaned = 0.156877 Jy
! Total flux subtracted in 200 components = 0.156877 Jy
! Clean residual min=-0.017271 max=0.022971 Jy/beam
! Clean residual mean=0.000806 rms=0.004670 Jy/beam
! Combined flux in latest and established models = 2.18288 Jy
! Performing phase self-cal
! Adding 59 model components to the UV plane model.
! The established model now contains 116 components and 2.18288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295351Jy  sigma=0.002282
! Fit after  self-cal, rms=0.294087Jy  sigma=0.002272
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 129 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.96     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.91     KK        1.01     KP        0.94     
!   LA        0.95     MC        1.09     MK        1.00     NL        0.91     
!   NY        0.96     OV        0.97     PT        0.89     SC        0.99     
!   TS        1.00*    WF        1.01     WZ        1.27     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.99     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.08     KP        0.74     
!   LA        0.99     MC        0.98     MK        1.11     NL        0.97     
!   NY        0.98     OV        1.02     PT        0.98     SC        0.97     
!   TS        1.00*    WF        1.01     WZ        1.10     
! 
!  A total of 291 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.96     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.00     KP        0.99     
!   LA        0.98     MC        1.00*    MK        0.98     NL        0.97     
!   NY        1.07     OV        0.94     PT        0.92     SC        1.09     
!   TS        1.02     WF        1.03     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 129 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.99     GC        0.92     GG        1.00*    
!   HH        1.00*    HN        0.90     KK        1.02     KP        0.73     
!   LA        0.93     MC        1.02     MK        1.00     NL        0.88     
!   NY        0.95     OV        0.99     PT        0.92     SC        1.00     
!   TS        1.00*    WF        1.01     WZ        1.26     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.12     KP        1.53     
!   LA        0.95     MC        0.93     MK        1.09     NL        0.94     
!   NY        1.00     OV        1.06     PT        1.01     SC        0.96     
!   TS        1.00*    WF        1.00     WZ        1.08     
! 
!  A total of 291 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.99     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.04     KP        0.80     
!   LA        0.94     MC        1.00*    MK        0.96     NL        0.94     
!   NY        1.06     OV        0.98     PT        0.95     SC        1.16     
!   TS        1.01     WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 129 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.96     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.04     KP        0.95     
!   LA        0.89     MC        3.64     MK        1.04     NL        0.97     
!   NY        0.96     OV        0.98     PT        0.92     SC        0.96     
!   TS        1.00*    WF        1.01     WZ        1.24     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        0.97     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.08     KP        1.05     
!   LA        0.96     MC        1.26     MK        1.13     NL        1.04     
!   NY        0.99     OV        1.08     PT        1.20     SC        0.97     
!   TS        1.00*    WF        0.99     WZ        1.08     
! 
!  A total of 291 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.96     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.02     KP        1.04     
!   LA        0.98     MC        1.00*    MK        0.99     NL        1.00     
!   NY        1.07     OV        1.00     PT        0.95     SC        1.14     
!   TS        1.01     WF        1.02     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 129 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.98     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        0.90     KK        1.03     KP        0.95     
!   LA        0.93     MC        1.15     MK        1.03     NL        0.94     
!   NY        0.97     OV        1.01     PT        0.84     SC        0.94     
!   TS        1.00*    WF        1.03     WZ        1.23     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.91     KK        1.14     KP        1.05     
!   LA        1.02     MC        0.76     MK        1.12     NL        0.97     
!   NY        1.00     OV        1.07     PT        2.09     SC        0.96     
!   TS        1.00*    WF        1.00     WZ        1.07     
! 
!  A total of 291 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.99     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        0.99     KP        1.06     
!   LA        0.98     MC        1.00*    MK        0.98     NL        0.99     
!   NY        1.08     OV        0.95     PT        1.01     SC        1.09     
!   TS        1.01     WF        1.04     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.294087Jy  sigma=0.002272
! Fit after  self-cal, rms=0.244546Jy  sigma=0.001624
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.336 mas, bmaj=3.967 mas, bpa=-11.3 degrees
! Estimated noise=373.366 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0150038 Jy
! Component: 100  -  total flux cleaned = 0.0215569 Jy
! Component: 150  -  total flux cleaned = 0.02694 Jy
! Component: 200  -  total flux cleaned = 0.030845 Jy
! Total flux subtracted in 200 components = 0.030845 Jy
! Clean residual min=-0.007462 max=0.011766 Jy/beam
! Clean residual mean=0.000498 rms=0.001732 Jy/beam
! Combined flux in latest and established models = 2.21372 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 135 components and 2.21372 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242600Jy  sigma=0.001604
! Fit after  self-cal, rms=0.242579Jy  sigma=0.001600
! Inverting map 
! Added new window around map position (10.5, -12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00960797 Jy
! Component: 100  -  total flux cleaned = 0.0139534 Jy
! Component: 150  -  total flux cleaned = 0.0176575 Jy
! Component: 200  -  total flux cleaned = 0.0205361 Jy
! Total flux subtracted in 200 components = 0.0205361 Jy
! Clean residual min=-0.006709 max=0.007197 Jy/beam
! Clean residual mean=0.000407 rms=0.001528 Jy/beam
! Combined flux in latest and established models = 2.23426 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 151 components and 2.23426 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241678Jy  sigma=0.001593
! Fit after  self-cal, rms=0.241542Jy  sigma=0.001592
! Inverting map 
selfcal true, true, soltime1
! Performing amp+phase self-cal over 120 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241542Jy  sigma=0.001592
! Fit after  self-cal, rms=0.238324Jy  sigma=0.001567
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.337 mas, bmaj=3.959 mas, bpa=-11.22 degrees
! Estimated noise=371.756 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00741293 Jy
! Component: 100  -  total flux cleaned = 0.0117001 Jy
! Component: 150  -  total flux cleaned = 0.0152731 Jy
! Component: 200  -  total flux cleaned = 0.018283 Jy
! Total flux subtracted in 200 components = 0.018283 Jy
! Clean residual min=-0.005975 max=0.005088 Jy/beam
! Clean residual mean=0.000227 rms=0.001151 Jy/beam
! Combined flux in latest and established models = 2.25254 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 161 components and 2.25254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237710Jy  sigma=0.001561
! Fit after  self-cal, rms=0.237606Jy  sigma=0.001561
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00237409 Jy
! Component: 100  -  total flux cleaned = 0.00509877 Jy
! Component: 150  -  total flux cleaned = 0.00692942 Jy
! Component: 200  -  total flux cleaned = 0.00795159 Jy
! Total flux subtracted in 200 components = 0.00795159 Jy
! Clean residual min=-0.005934 max=0.004662 Jy/beam
! Clean residual mean=0.000192 rms=0.001075 Jy/beam
! Combined flux in latest and established models = 2.26049 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 166 components and 2.26049 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237324Jy  sigma=0.001558
! Fit after  self-cal, rms=0.237277Jy  sigma=0.001558
! Inverting map 
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237277Jy  sigma=0.001558
! Fit after  self-cal, rms=0.236886Jy  sigma=0.001557
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.335 mas, bmaj=3.953 mas, bpa=-11.09 degrees
! Estimated noise=370.84 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00476905 Jy
! Component: 100  -  total flux cleaned = 0.00747292 Jy
! Component: 150  -  total flux cleaned = 0.00957841 Jy
! Component: 200  -  total flux cleaned = 0.0110201 Jy
! Total flux subtracted in 200 components = 0.0110201 Jy
! Clean residual min=-0.005574 max=0.004579 Jy/beam
! Clean residual mean=0.000115 rms=0.000993 Jy/beam
! Combined flux in latest and established models = 2.27151 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 174 components and 2.27151 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236634Jy  sigma=0.001555
! Fit after  self-cal, rms=0.236594Jy  sigma=0.001555
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0011935 Jy
! Component: 100  -  total flux cleaned = 0.00286753 Jy
! Component: 150  -  total flux cleaned = 0.00355943 Jy
! Component: 200  -  total flux cleaned = 0.00377232 Jy
! Total flux subtracted in 200 components = 0.00377232 Jy
! Clean residual min=-0.005500 max=0.004421 Jy/beam
! Clean residual mean=0.000098 rms=0.000960 Jy/beam
! Combined flux in latest and established models = 2.27528 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 176 components and 2.27528 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236461Jy  sigma=0.001554
! Fit after  self-cal, rms=0.236442Jy  sigma=0.001554
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
win_mult = win_mult * 1.2
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236442Jy  sigma=0.001554
! Fit after  self-cal, rms=0.236467Jy  sigma=0.001553
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.293 mas, bmaj=8.426 mas, bpa=-1.025 degrees
! Estimated noise=541.388 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00720244 Jy
! Component: 100  -  total flux cleaned = 0.0098849 Jy
! Component: 150  -  total flux cleaned = 0.0109804 Jy
! Component: 200  -  total flux cleaned = 0.0116895 Jy
! Total flux subtracted in 200 components = 0.0116895 Jy
! Clean residual min=-0.004735 max=0.005860 Jy/beam
! Clean residual mean=0.000162 rms=0.001548 Jy/beam
! Combined flux in latest and established models = 2.28697 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 184 components and 2.28697 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236383Jy  sigma=0.001553
! Fit after  self-cal, rms=0.236349Jy  sigma=0.001552
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000723302 Jy
! Component: 100  -  total flux cleaned = 0.001715 Jy
! Component: 150  -  total flux cleaned = 0.00242246 Jy
! Component: 200  -  total flux cleaned = 0.00288663 Jy
! Total flux subtracted in 200 components = 0.00288663 Jy
! Clean residual min=-0.004570 max=0.005288 Jy/beam
! Clean residual mean=0.000118 rms=0.001489 Jy/beam
! Combined flux in latest and established models = 2.28986 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 185 components and 2.28986 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236343Jy  sigma=0.001553
! Fit after  self-cal, rms=0.236309Jy  sigma=0.001552
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=2.334 mas, bmaj=3.95 mas, bpa=-11 degrees
! Estimated noise=370.504 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.334 x 3.95 at -11 degrees (North through East)
! Clean map  min=-0.0033119  max=0.81706 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236309Jy  sigma=0.001552
! Fit after  self-cal, rms=0.222113Jy  sigma=0.001307
! Inverting map and beam 
! Estimated beam: bmin=2.331 mas, bmaj=3.955 mas, bpa=-10.94 degrees
! Estimated noise=370.191 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000386904 Jy
! Component: 100  -  total flux cleaned = -6.27897e-05 Jy
! Component: 150  -  total flux cleaned = -5.57116e-05 Jy
! Component: 200  -  total flux cleaned = -5.42314e-05 Jy
! Total flux subtracted in 200 components = -5.42314e-05 Jy
! Clean residual min=-0.004418 max=0.003585 Jy/beam
! Clean residual mean=0.000044 rms=0.000823 Jy/beam
! Combined flux in latest and established models = 2.28981 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 193 components and 2.28981 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222005Jy  sigma=0.001306
! Fit after  self-cal, rms=0.221998Jy  sigma=0.001306
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 4.81258e-06 Jy
! Component: 100  -  total flux cleaned = 4.84415e-06 Jy
! Component: 150  -  total flux cleaned = -8.2268e-05 Jy
! Component: 200  -  total flux cleaned = -8.24811e-05 Jy
! Total flux subtracted in 200 components = -8.24811e-05 Jy
! Clean residual min=-0.004073 max=0.003627 Jy/beam
! Clean residual mean=0.000044 rms=0.000811 Jy/beam
! Combined flux in latest and established models = 2.28972 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 194 components and 2.28972 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221928Jy  sigma=0.001305
! Fit after  self-cal, rms=0.221922Jy  sigma=0.001305
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221922Jy  sigma=0.001305
! Fit after  self-cal, rms=0.221839Jy  sigma=0.001305
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.961 mas, bmaj=3.383 mas, bpa=-10.59 degrees
! Estimated noise=641.454 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.703 Jy
! Component: 100  -  total flux cleaned = 1.08912 Jy
! Component: 150  -  total flux cleaned = 1.32776 Jy
! Component: 200  -  total flux cleaned = 1.48746 Jy
! Total flux subtracted in 200 components = 1.48746 Jy
! Clean residual min=-0.020594 max=0.089135 Jy/beam
! Clean residual mean=0.000149 rms=0.007995 Jy/beam
! Combined flux in latest and established models = 1.48746 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 21 model components to the UV plane model.
! The established model now contains 21 components and 1.48746 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.331 mas, bmaj=3.953 mas, bpa=-10.88 degrees
! Estimated noise=369.896 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.198142 Jy
! Component: 100  -  total flux cleaned = 0.32939 Jy
! Component: 150  -  total flux cleaned = 0.424322 Jy
! Component: 200  -  total flux cleaned = 0.495577 Jy
! Total flux subtracted in 200 components = 0.495577 Jy
! Clean residual min=-0.010555 max=0.043430 Jy/beam
! Clean residual mean=0.001365 rms=0.005652 Jy/beam
! Combined flux in latest and established models = 1.98303 Jy
! Adding 66 model components to the UV plane model.
! The established model now contains 75 components and 1.98303 Jy
! Inverting map 
! Added new window around map position (-2, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0555831 Jy
! Component: 100  -  total flux cleaned = 0.0994363 Jy
! Component: 150  -  total flux cleaned = 0.134598 Jy
! Component: 200  -  total flux cleaned = 0.163043 Jy
! Total flux subtracted in 200 components = 0.163043 Jy
! Clean residual min=-0.005257 max=0.017337 Jy/beam
! Clean residual mean=0.000662 rms=0.002582 Jy/beam
! Combined flux in latest and established models = 2.14608 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 117 components and 2.14608 Jy
! Inverting map 
! Added new window around map position (6, -12.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0232365 Jy
! Component: 100  -  total flux cleaned = 0.0423236 Jy
! Component: 150  -  total flux cleaned = 0.0580464 Jy
! Component: 200  -  total flux cleaned = 0.0710498 Jy
! Total flux subtracted in 200 components = 0.0710498 Jy
! Clean residual min=-0.003585 max=0.007903 Jy/beam
! Clean residual mean=0.000356 rms=0.001413 Jy/beam
! Combined flux in latest and established models = 2.21713 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 146 components and 2.21713 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0108884 Jy
! Component: 100  -  total flux cleaned = 0.0200909 Jy
! Component: 150  -  total flux cleaned = 0.0278875 Jy
! Component: 200  -  total flux cleaned = 0.0345317 Jy
! Total flux subtracted in 200 components = 0.0345317 Jy
! Clean residual min=-0.003046 max=0.004911 Jy/beam
! Clean residual mean=0.000208 rms=0.000968 Jy/beam
! Combined flux in latest and established models = 2.25166 Jy
! Adding 66 model components to the UV plane model.
! The established model now contains 184 components and 2.25166 Jy
! Inverting map 
! Added new window around map position (15, -16).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00594234 Jy
! Component: 100  -  total flux cleaned = 0.0110057 Jy
! Component: 150  -  total flux cleaned = 0.0154011 Jy
! Component: 200  -  total flux cleaned = 0.0192218 Jy
! Total flux subtracted in 200 components = 0.0192218 Jy
! Clean residual min=-0.002839 max=0.003216 Jy/beam
! Clean residual mean=0.000127 rms=0.000796 Jy/beam
! Combined flux in latest and established models = 2.27088 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 202 components and 2.27088 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.292 mas, bmaj=8.429 mas, bpa=-0.9545 degrees
! Estimated noise=540.77 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0079353 Jy
! Component: 100  -  total flux cleaned = 0.0129785 Jy
! Component: 150  -  total flux cleaned = 0.0165482 Jy
! Component: 200  -  total flux cleaned = 0.0191334 Jy
! Total flux subtracted in 200 components = 0.0191334 Jy
! Clean residual min=-0.003496 max=0.004518 Jy/beam
! Clean residual mean=0.000169 rms=0.001286 Jy/beam
! Combined flux in latest and established models = 2.29001 Jy
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00188887 Jy
! Component: 100  -  total flux cleaned = 0.00287294 Jy
! Component: 150  -  total flux cleaned = 0.0034813 Jy
! Component: 200  -  total flux cleaned = 0.00402125 Jy
! Total flux subtracted in 200 components = 0.00402125 Jy
! Clean residual min=-0.003337 max=0.004501 Jy/beam
! Clean residual mean=0.000110 rms=0.001240 Jy/beam
! Combined flux in latest and established models = 2.29403 Jy
! Adding 95 model components to the UV plane model.
! The established model now contains 272 components and 2.29403 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.331 mas, bmaj=3.953 mas, bpa=-10.88 degrees
! Estimated noise=369.896 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0011959 Jy
! Component: 100  -  total flux cleaned = -0.00129013 Jy
! Component: 150  -  total flux cleaned = -0.0010097 Jy
! Component: 200  -  total flux cleaned = -0.00082184 Jy
! Total flux subtracted in 200 components = -0.00082184 Jy
! Clean residual min=-0.002581 max=0.003176 Jy/beam
! Clean residual mean=0.000034 rms=0.000699 Jy/beam
! Combined flux in latest and established models = 2.29321 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 285 components and 2.29321 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221163Jy  sigma=0.001300
! Fit after  self-cal, rms=0.221055Jy  sigma=0.001299
wmodel J0336+3218_S_2001_07_05_pus_map.mod
! Writing 285 model components to file: J0336+3218_S_2001_07_05_pus_map.mod
wobs J0336+3218_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0336+3218_S_2001_07_05_pus_uvs.fits
wwins J0336+3218_S_2001_07_05_pus_map.win
! wwins: Wrote 8 windows to J0336+3218_S_2001_07_05_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00067557 Jy
! Component: 100  -  total flux cleaned = 0.00118984 Jy
! Component: 150  -  total flux cleaned = 0.00159199 Jy
! Component: 200  -  total flux cleaned = 0.00193525 Jy
! Component: 250  -  total flux cleaned = 0.00214353 Jy
! Component: 300  -  total flux cleaned = 0.00238755 Jy
! Component: 350  -  total flux cleaned = 0.00266581 Jy
! Component: 400  -  total flux cleaned = 0.00290047 Jy
! Component: 450  -  total flux cleaned = 0.00316994 Jy
! Component: 500  -  total flux cleaned = 0.00347298 Jy
! Component: 550  -  total flux cleaned = 0.00380838 Jy
! Component: 600  -  total flux cleaned = 0.00413892 Jy
! Component: 650  -  total flux cleaned = 0.00446481 Jy
! Component: 700  -  total flux cleaned = 0.00471492 Jy
! Component: 750  -  total flux cleaned = 0.00499726 Jy
! Component: 800  -  total flux cleaned = 0.0051367 Jy
! Component: 850  -  total flux cleaned = 0.00530913 Jy
! Component: 900  -  total flux cleaned = 0.00534328 Jy
! Component: 950  -  total flux cleaned = 0.00544502 Jy
! Component: 1000  -  total flux cleaned = 0.00551264 Jy
! Component: 1050  -  total flux cleaned = 0.00567806 Jy
! Component: 1100  -  total flux cleaned = 0.00557956 Jy
! Component: 1150  -  total flux cleaned = 0.0055148 Jy
! Component: 1200  -  total flux cleaned = 0.00564449 Jy
! Component: 1250  -  total flux cleaned = 0.00574063 Jy
! Component: 1300  -  total flux cleaned = 0.00574054 Jy
! Component: 1350  -  total flux cleaned = 0.00580411 Jy
! Component: 1400  -  total flux cleaned = 0.00599229 Jy
! Component: 1450  -  total flux cleaned = 0.006054 Jy
! Component: 1500  -  total flux cleaned = 0.00608479 Jy
! Component: 1550  -  total flux cleaned = 0.00611553 Jy
! Component: 1600  -  total flux cleaned = 0.00626783 Jy
! Component: 1650  -  total flux cleaned = 0.006268 Jy
! Component: 1700  -  total flux cleaned = 0.00632851 Jy
! Component: 1750  -  total flux cleaned = 0.00647827 Jy
! Component: 1800  -  total flux cleaned = 0.00644862 Jy
! Component: 1850  -  total flux cleaned = 0.00653734 Jy
! Component: 1900  -  total flux cleaned = 0.00656671 Jy
! Component: 1950  -  total flux cleaned = 0.00662501 Jy
! Component: 2000  -  total flux cleaned = 0.00665407 Jy
! Total flux subtracted in 2048 components = 0.00668305 Jy
! Clean residual min=-0.001584 max=0.001726 Jy/beam
! Clean residual mean=0.000005 rms=0.000559 Jy/beam
! Combined flux in latest and established models = 2.2999 Jy
keep
! Adding 155 model components to the UV plane model.
! The established model now contains 436 components and 2.2999 Jy
wmap "J0336+3218_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.331 x 3.953 at -10.88 degrees (North through East)
! Clean map  min=-0.002308  max=0.81535 Jy/beam
! Writing clean map to FITS file: J0336+3218_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.815353 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000559135 
device "J0336+3218_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0336+3218_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.205727 0.205727 0.411455 0.82291 1.64582 3.29164 6.58328 13.1666 26.3331 52.6662
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0016 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.815 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.331 x 3.953 at -10.88 degrees (North through East)
! Clean map  min=-0.002308  max=0.81535 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0336+3218_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0336+3218_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0336+3218_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 00:08:33 2007