! Started logfile: J0136+4751_S_2000_05_22_pus_uvs.log on Mon Nov 19 18:31:48 2007
obs J0136+4751_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J0136+4751_S_2000_05_22_pus_uva.fits
! AN table 1: 472 integrations on 190 of 190 possible baselines.
! AN table 2: 123 integrations on 190 of 190 possible baselines.
! AN table 3: 106 integrations on 190 of 190 possible baselines.
! AN table 4: 344 integrations on 190 of 190 possible baselines.
! AN table 5: 48 integrations on 190 of 190 possible baselines.
! AN table 6: 85 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.177513 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0136+4751
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2003 lines of history.
! 
! Reading 158924 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 
![@muppet J0136+4751_S_2000_05_22_pus]
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 6506 telescope corrections were flagged in sub-array 1.
!  A total of 1531 telescope corrections were flagged in sub-array 2.
!  A total of 986 telescope corrections were flagged in sub-array 3.
!  A total of 4535 telescope corrections were flagged in sub-array 4.
!  A total of 629 telescope corrections were flagged in sub-array 5.
!  A total of 1367 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 6506 telescope corrections were flagged in sub-array 1.
!  A total of 1531 telescope corrections were flagged in sub-array 2.
!  A total of 986 telescope corrections were flagged in sub-array 3.
!  A total of 4535 telescope corrections were flagged in sub-array 4.
!  A total of 629 telescope corrections were flagged in sub-array 5.
!  A total of 1367 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 6507 telescope corrections were flagged in sub-array 1.
!  A total of 1531 telescope corrections were flagged in sub-array 2.
!  A total of 986 telescope corrections were flagged in sub-array 3.
!  A total of 4535 telescope corrections were flagged in sub-array 4.
!  A total of 629 telescope corrections were flagged in sub-array 5.
!  A total of 1367 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 6507 telescope corrections were flagged in sub-array 1.
!  A total of 1531 telescope corrections were flagged in sub-array 2.
!  A total of 986 telescope corrections were flagged in sub-array 3.
!  A total of 4535 telescope corrections were flagged in sub-array 4.
!  A total of 629 telescope corrections were flagged in sub-array 5.
!  A total of 1367 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.822019Jy  sigma=0.007580
! Fit after  self-cal, rms=0.375709Jy  sigma=0.002877
! 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.874 mas, bmaj=2.585 mas, bpa=1.722 degrees
! Estimated noise=466.435 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.735993 Jy
! Component: 100  -  total flux cleaned = 0.944466 Jy
! Total flux subtracted in 100 components = 0.944466 Jy
! Clean residual min=-0.015702 max=0.093623 Jy/beam
! Clean residual mean=0.000199 rms=0.004888 Jy/beam
! Combined flux in latest and established models = 0.944466 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.944466 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382099Jy  sigma=0.002994
! Fit after  self-cal, rms=0.381985Jy  sigma=0.002994
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.104167 Jy
! Component: 100  -  total flux cleaned = 0.167866 Jy
! Total flux subtracted in 100 components = 0.167866 Jy
! Clean residual min=-0.012164 max=0.034965 Jy/beam
! Clean residual mean=0.000113 rms=0.003477 Jy/beam
! Combined flux in latest and established models = 1.11233 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 15 components and 1.11233 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.327533Jy  sigma=0.002256
! Fit after  self-cal, rms=0.327052Jy  sigma=0.002253
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0451499 Jy
! Component: 100  -  total flux cleaned = 0.0767949 Jy
! Total flux subtracted in 100 components = 0.0767949 Jy
! Clean residual min=-0.011835 max=0.019468 Jy/beam
! Clean residual mean=0.000073 rms=0.003077 Jy/beam
! Combined flux in latest and established models = 1.18913 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 22 components and 1.18913 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.313582Jy  sigma=0.002044
! Fit after  self-cal, rms=0.313440Jy  sigma=0.002044
! Inverting map 
! Added new window around map position (-1, 2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0242891 Jy
! Component: 100  -  total flux cleaned = 0.04298 Jy
! Total flux subtracted in 100 components = 0.04298 Jy
! Clean residual min=-0.011324 max=0.018337 Jy/beam
! Clean residual mean=0.000052 rms=0.002941 Jy/beam
! Combined flux in latest and established models = 1.23211 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 30 components and 1.23211 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308718Jy  sigma=0.001968
! Fit after  self-cal, rms=0.308633Jy  sigma=0.001968
! Inverting map 
! Added new window around map position (-3.5, 3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.019091 Jy
! Component: 100  -  total flux cleaned = 0.0333047 Jy
! Total flux subtracted in 100 components = 0.0333047 Jy
! Clean residual min=-0.010895 max=0.013671 Jy/beam
! Clean residual mean=0.000037 rms=0.002854 Jy/beam
! Combined flux in latest and established models = 1.26541 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 37 components and 1.26541 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305779Jy  sigma=0.001923
! Fit after  self-cal, rms=0.305665Jy  sigma=0.001922
! 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.296 mas, bmaj=3.522 mas, bpa=-0.2292 degrees
! Estimated noise=195.412 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.0289741 Jy
! Component: 100  -  total flux cleaned = 0.0475167 Jy
! Component: 150  -  total flux cleaned = 0.0599283 Jy
! Component: 200  -  total flux cleaned = 0.068308 Jy
! Total flux subtracted in 200 components = 0.068308 Jy
! Clean residual min=-0.007890 max=0.015764 Jy/beam
! Clean residual mean=0.000248 rms=0.002465 Jy/beam
! Combined flux in latest and established models = 1.33372 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 52 components and 1.33372 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302365Jy  sigma=0.001876
! Fit after  self-cal, rms=0.302196Jy  sigma=0.001874
! Inverting map 
! Added new window around map position (-2, 13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0171864 Jy
! Component: 100  -  total flux cleaned = 0.0277939 Jy
! Component: 150  -  total flux cleaned = 0.0352614 Jy
! Component: 200  -  total flux cleaned = 0.0408736 Jy
! Total flux subtracted in 200 components = 0.0408736 Jy
! Clean residual min=-0.007385 max=0.010181 Jy/beam
! Clean residual mean=0.000025 rms=0.002149 Jy/beam
! Combined flux in latest and established models = 1.37459 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 73 components and 1.37459 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300854Jy  sigma=0.001858
! Fit after  self-cal, rms=0.300728Jy  sigma=0.001857
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00     KP        1.00     
!   MA        1.00*    MC        1.33     MK        1.02     NL        1.01     
!   NY        1.00     OV        1.00     PT        0.98     SC        1.02     
!   TS        0.97     WF        1.11     WZ        1.11     LA        1.00     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00*    GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.01     KP        0.96     
!   MA        0.43     MC        1.05     MK        1.02     NL        1.02     
!   NY        1.05     OV        1.02     PT        1.01     SC        1.00*    
!   TS        1.01     WF        1.00*    WZ        0.99     LA        1.02     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.03     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        1.13     
!   MA        2.30     MC        0.94     MK        1.00*    NL        1.01     
!   NY        1.02     OV        1.07     PT        1.03     SC        1.05     
!   TS        0.95     WF        0.89     WZ        0.99     LA        1.02     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.97     KP        1.01     
!   MA        1.00*    MC        1.17     MK        1.01     NL        0.99     
!   NY        1.02     OV        0.99     PT        0.97     SC        1.02     
!   TS        0.93     WF        0.98     WZ        1.00*    LA        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.03     FD        1.00*    GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00*    KP        1.00*    
!   MA        1.36     MC        2.28     MK        1.00*    NL        1.00     
!   NY        1.03     OV        1.00*    PT        1.00*    SC        1.03     
!   TS        1.04     WF        0.99     WZ        1.06     LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.96     FD        0.95     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.90     KK        0.96     KP        0.97     
!   MA        0.59     MC        1.05     MK        1.00     NL        0.95     
!   NY        1.00     OV        0.97     PT        0.98     SC        0.96     
!   TS        1.17     WF        0.97     WZ        1.00*    LA        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.01     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.04     KP        0.98     
!   MA        1.00*    MC        0.89     MK        0.97     NL        1.04     
!   NY        0.99     OV        0.99     PT        0.99     SC        1.03     
!   TS        1.00     WF        1.03     WZ        1.11     LA        0.96     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00*    GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.99     KP        1.00     
!   MA        2.19     MC        1.17     MK        0.96     NL        1.06     
!   NY        1.03     OV        1.02     PT        1.04     SC        1.00*    
!   TS        1.05     WF        1.00*    WZ        0.97     LA        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.05     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.07     KK        1.00*    KP        1.06     
!   MA        1.05     MC        0.89     MK        1.00*    NL        1.03     
!   NY        1.01     OV        1.05     PT        1.02     SC        1.06     
!   TS        0.98     WF        0.99     WZ        0.99     LA        0.97     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        0.96     KP        0.97     
!   MA        1.00*    MC        1.06     MK        0.96     NL        1.01     
!   NY        1.01     OV        0.98     PT        0.99     SC        1.04     
!   TS        0.96     WF        0.98     WZ        1.00*    LA        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        1.00*    GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.00*    KP        1.00*    
!   MA        0.87     MC        1.85     MK        1.00*    NL        1.04     
!   NY        1.00     OV        1.00*    PT        1.00*    SC        1.01     
!   TS        1.07     WF        0.99     WZ        1.05     LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.96     FD        0.96     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.97     KP        0.93     
!   MA        0.69     MC        0.87     MK        0.96     NL        0.97     
!   NY        1.00     OV        0.95     PT        0.98     SC        0.98     
!   TS        1.20     WF        0.98     WZ        1.00*    LA        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00     KP        0.97     
!   MA        1.00*    MC        1.78     MK        0.95     NL        0.98     
!   NY        0.98     OV        1.00     PT        0.96     SC        1.00     
!   TS        1.00     WF        1.00     WZ        1.12     LA        1.00     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.98     KP        1.02     
!   MA        0.61     MC        0.74     MK        0.96     NL        0.99     
!   NY        1.03     OV        1.02     PT        1.01     SC        1.00*    
!   TS        1.04     WF        1.00*    WZ        1.01     LA        1.02     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.04     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.00*    KP        1.03     
!   MA        2.26     MC        1.91     MK        1.00*    NL        0.99     
!   NY        1.00     OV        1.06     PT        0.97     SC        1.03     
!   TS        0.85     WF        0.99     WZ        0.99     LA        1.02     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.99     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.93     KP        0.98     
!   MA        1.00*    MC        0.87     MK        0.96     NL        0.96     
!   NY        1.01     OV        1.01     PT        0.95     SC        1.03     
!   TS        0.95     WF        0.97     WZ        1.00*    LA        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00*    GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00*    KP        1.00*    
!   MA        1.32     MC        2.83     MK        1.00*    NL        0.98     
!   NY        1.02     OV        1.00*    PT        1.00*    SC        1.04     
!   TS        1.07     WF        0.99     WZ        1.07     LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.92     FD        0.95     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.94     KP        0.95     
!   MA        0.84     MC        1.42     MK        0.96     NL        0.93     
!   NY        1.01     OV        0.98     PT        1.12     SC        0.95     
!   TS        1.19     WF        0.97     WZ        1.00*    LA        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 120 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.01     KP        0.99     
!   MA        1.00*    MC        0.98     MK        1.00     NL        0.99     
!   NY        0.95     OV        0.98     PT        0.97     SC        0.99     
!   TS        1.00     WF        1.01     WZ        1.11     LA        0.99     
! 
!  A total of 69 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00*    GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        0.99     
!   MA        0.79     MC        0.74     MK        1.01     NL        1.00     
!   NY        1.00     OV        0.99     PT        1.02     SC        1.00*    
!   TS        1.05     WF        1.00*    WZ        1.00     LA        1.01     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.03     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.00*    KP        1.03     
!   MA        1.65     MC        1.23     MK        1.00*    NL        1.00     
!   NY        0.98     OV        1.03     PT        0.85     SC        1.02     
!   TS        1.01     WF        0.99     WZ        0.99     LA        1.02     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.99     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.96     KP        0.99     
!   MA        1.00*    MC        0.79     MK        1.01     NL        0.97     
!   NY        0.94     OV        0.98     PT        0.97     SC        1.03     
!   TS        0.96     WF        0.98     WZ        1.00*    LA        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00*    GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00*    KP        1.00*    
!   MA        1.23     MC        2.50     MK        1.00*    NL        1.00     
!   NY        0.98     OV        1.00*    PT        1.00*    SC        1.03     
!   TS        1.08     WF        0.99     WZ        1.05     LA        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.94     FD        0.96     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        0.98     KP        0.96     
!   MA        0.92     MC        1.20     MK        0.99     NL        0.94     
!   NY        0.99     OV        0.97     PT        1.24     SC        0.96     
!   TS        1.19     WF        0.99     WZ        1.00*    LA        1.00*    
! 
! 
! Fit before self-cal, rms=0.300728Jy  sigma=0.001857
! Fit after  self-cal, rms=0.324614Jy  sigma=0.001599
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.306 mas, bmaj=3.57 mas, bpa=-0.3641 degrees
! Estimated noise=196.626 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.00570052 Jy
! Component: 100  -  total flux cleaned = -0.00595219 Jy
! Component: 150  -  total flux cleaned = -0.00616549 Jy
! Component: 200  -  total flux cleaned = -0.00617515 Jy
! Total flux subtracted in 200 components = -0.00617515 Jy
! Clean residual min=-0.004207 max=0.004773 Jy/beam
! Clean residual mean=0.000091 rms=0.000931 Jy/beam
! Combined flux in latest and established models = 1.36842 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 82 components and 1.36842 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324174Jy  sigma=0.001593
! Fit after  self-cal, rms=0.324910Jy  sigma=0.001592
! Inverting map 
! Added new window around map position (-7, 1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00114774 Jy
! Component: 100  -  total flux cleaned = 0.00114541 Jy
! Component: 150  -  total flux cleaned = 0.00128743 Jy
! Component: 200  -  total flux cleaned = 0.00141868 Jy
! Total flux subtracted in 200 components = 0.00141868 Jy
! Clean residual min=-0.003392 max=0.004415 Jy/beam
! Clean residual mean=0.000084 rms=0.000894 Jy/beam
! Combined flux in latest and established models = 1.36984 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 96 components and 1.36984 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324754Jy  sigma=0.001590
! Fit after  self-cal, rms=0.324753Jy  sigma=0.001590
! Inverting map 
! Added new window around map position (1.5, 6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00332209 Jy
! Component: 100  -  total flux cleaned = 0.00319952 Jy
! Component: 150  -  total flux cleaned = 0.0034377 Jy
! Component: 200  -  total flux cleaned = 0.00354479 Jy
! Total flux subtracted in 200 components = 0.00354479 Jy
! Clean residual min=-0.003214 max=0.003555 Jy/beam
! Clean residual mean=0.000065 rms=0.000865 Jy/beam
! Combined flux in latest and established models = 1.37338 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 110 components and 1.37338 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324643Jy  sigma=0.001588
! Fit after  self-cal, rms=0.324641Jy  sigma=0.001588
! 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.324641Jy  sigma=0.001588
! Fit after  self-cal, rms=0.319985Jy  sigma=0.001565
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.314 mas, bmaj=3.577 mas, bpa=-0.6592 degrees
! Estimated noise=196.9 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00412362 Jy
! Component: 100  -  total flux cleaned = -0.0042719 Jy
! Component: 150  -  total flux cleaned = -0.00385778 Jy
! Component: 200  -  total flux cleaned = -0.00361353 Jy
! Total flux subtracted in 200 components = -0.00361353 Jy
! Clean residual min=-0.002401 max=0.002719 Jy/beam
! Clean residual mean=0.000089 rms=0.000625 Jy/beam
! Combined flux in latest and established models = 1.36977 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 121 components and 1.36977 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319797Jy  sigma=0.001562
! Fit after  self-cal, rms=0.319805Jy  sigma=0.001562
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)
! Added new window around map position (-6, 8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000947747 Jy
! Component: 100  -  total flux cleaned = 0.00135669 Jy
! Component: 150  -  total flux cleaned = 0.00163976 Jy
! Component: 200  -  total flux cleaned = 0.00181924 Jy
! Total flux subtracted in 200 components = 0.00181924 Jy
! Clean residual min=-0.002360 max=0.002651 Jy/beam
! Clean residual mean=0.000079 rms=0.000603 Jy/beam
! Combined flux in latest and established models = 1.37159 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 128 components and 1.37159 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319749Jy  sigma=0.001561
! Fit after  self-cal, rms=0.319747Jy  sigma=0.001561
! Inverting map 
! Added new window around map position (-12, 19.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00246223 Jy
! Component: 100  -  total flux cleaned = 0.00306552 Jy
! Component: 150  -  total flux cleaned = 0.00338704 Jy
! Component: 200  -  total flux cleaned = 0.00369371 Jy
! Total flux subtracted in 200 components = 0.00369371 Jy
! Clean residual min=-0.002260 max=0.002235 Jy/beam
! Clean residual mean=0.000063 rms=0.000578 Jy/beam
! Combined flux in latest and established models = 1.37528 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 141 components and 1.37528 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319704Jy  sigma=0.001561
! Fit after  self-cal, rms=0.319706Jy  sigma=0.001561
! 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.319706Jy  sigma=0.001561
! Fit after  self-cal, rms=0.393956Jy  sigma=0.001563
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.318 mas, bmaj=3.586 mas, bpa=-0.8029 degrees
! Estimated noise=197.289 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00206547 Jy
! Component: 100  -  total flux cleaned = -0.00245514 Jy
! Component: 150  -  total flux cleaned = -0.00225368 Jy
! Component: 200  -  total flux cleaned = -0.00189322 Jy
! Total flux subtracted in 200 components = -0.00189322 Jy
! Clean residual min=-0.002226 max=0.002381 Jy/beam
! Clean residual mean=0.000062 rms=0.000550 Jy/beam
! Combined flux in latest and established models = 1.37339 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 147 components and 1.37339 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393817Jy  sigma=0.001561
! Fit after  self-cal, rms=0.393955Jy  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)
! Added new window around map position (-2, 63).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000989941 Jy
! Component: 100  -  total flux cleaned = 0.0013222 Jy
! Component: 150  -  total flux cleaned = 0.00171146 Jy
! Component: 200  -  total flux cleaned = 0.00200783 Jy
! Total flux subtracted in 200 components = 0.00200783 Jy
! Clean residual min=-0.002183 max=0.002145 Jy/beam
! Clean residual mean=0.000053 rms=0.000536 Jy/beam
! Combined flux in latest and established models = 1.3754 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 159 components and 1.3754 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393891Jy  sigma=0.001561
! Fit after  self-cal, rms=0.393896Jy  sigma=0.001561
! 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.393896Jy  sigma=0.001561
! Fit after  self-cal, rms=0.396311Jy  sigma=0.001559
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.962 mas, bmaj=8.402 mas, bpa=32.55 degrees
! Estimated noise=291.727 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00259796 Jy
! Component: 100  -  total flux cleaned = 0.0034796 Jy
! Component: 150  -  total flux cleaned = 0.00385668 Jy
! Component: 200  -  total flux cleaned = 0.0040666 Jy
! Total flux subtracted in 200 components = 0.0040666 Jy
! Clean residual min=-0.002153 max=0.002183 Jy/beam
! Clean residual mean=0.000116 rms=0.000685 Jy/beam
! Combined flux in latest and established models = 1.37946 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 183 components and 1.37946 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.396316Jy  sigma=0.001559
! Fit after  self-cal, rms=0.396324Jy  sigma=0.001559
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.000756736 Jy
! Component: 100  -  total flux cleaned = 0.000974565 Jy
! Component: 150  -  total flux cleaned = 0.00116551 Jy
! Component: 200  -  total flux cleaned = 0.00123343 Jy
! Total flux subtracted in 200 components = 0.00123343 Jy
! Clean residual min=-0.002157 max=0.002129 Jy/beam
! Clean residual mean=0.000096 rms=0.000680 Jy/beam
! Combined flux in latest and established models = 1.3807 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 206 components and 1.3807 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.396316Jy  sigma=0.001559
! Fit after  self-cal, rms=0.396317Jy  sigma=0.001559
! 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.321 mas, bmaj=3.591 mas, bpa=-0.8917 degrees
! Estimated noise=197.544 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.321 x 3.591 at -0.8917 degrees (North through East)
! Clean map  min=-0.0021071  max=1.0468 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.396317Jy  sigma=0.001559
! Fit after  self-cal, rms=1.713158Jy  sigma=0.001409
! Inverting map and beam 
! Estimated beam: bmin=2.322 mas, bmaj=3.589 mas, bpa=-0.8895 degrees
! Estimated noise=197.113 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00275296 Jy
! Component: 100  -  total flux cleaned = -0.003076 Jy
! Component: 150  -  total flux cleaned = -0.0031489 Jy
! Component: 200  -  total flux cleaned = -0.00321811 Jy
! Total flux subtracted in 200 components = -0.00321811 Jy
! Clean residual min=-0.001827 max=0.001883 Jy/beam
! Clean residual mean=0.000037 rms=0.000394 Jy/beam
! Combined flux in latest and established models = 1.37748 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 215 components and 1.37748 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.713154Jy  sigma=0.001408
! Fit after  self-cal, rms=1.713140Jy  sigma=0.001408
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000141589 Jy
! Component: 100  -  total flux cleaned = -7.94817e-05 Jy
! Component: 150  -  total flux cleaned = -8.15998e-05 Jy
! Component: 200  -  total flux cleaned = -2.55007e-05 Jy
! Total flux subtracted in 200 components = -2.55007e-05 Jy
! Clean residual min=-0.001564 max=0.001878 Jy/beam
! Clean residual mean=0.000038 rms=0.000387 Jy/beam
! Combined flux in latest and established models = 1.37745 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 219 components and 1.37745 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.713136Jy  sigma=0.001408
! Fit after  self-cal, rms=1.713133Jy  sigma=0.001408
! Inverting map 
! Added new window around map position (3, 14).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00088224 Jy
! Component: 100  -  total flux cleaned = 0.000824183 Jy
! Component: 150  -  total flux cleaned = 0.00087702 Jy
! Component: 200  -  total flux cleaned = 0.000927999 Jy
! Total flux subtracted in 200 components = 0.000927999 Jy
! Clean residual min=-0.001445 max=0.001730 Jy/beam
! Clean residual mean=0.000033 rms=0.000378 Jy/beam
! Combined flux in latest and established models = 1.37838 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 227 components and 1.37838 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.713128Jy  sigma=0.001408
! Fit after  self-cal, rms=1.713126Jy  sigma=0.001408
! Inverting map 
! Added new window around map position (2.5, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 6.08531e-05 Jy
! Component: 100  -  total flux cleaned = 0.000279714 Jy
! Component: 150  -  total flux cleaned = 0.000430462 Jy
! Component: 200  -  total flux cleaned = 0.000525312 Jy
! Total flux subtracted in 200 components = 0.000525312 Jy
! Clean residual min=-0.001459 max=0.001436 Jy/beam
! Clean residual mean=0.000030 rms=0.000371 Jy/beam
! Combined flux in latest and established models = 1.37891 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 239 components and 1.3789 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.713120Jy  sigma=0.001408
! Fit after  self-cal, rms=1.713119Jy  sigma=0.001407
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.713119Jy  sigma=0.001407
! Fit after  self-cal, rms=1.805112Jy  sigma=0.001407
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.89 mas, bmaj=2.612 mas, bpa=0.6705 degrees
! Estimated noise=480.436 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.755903 Jy
! Component: 100  -  total flux cleaned = 0.959212 Jy
! Component: 150  -  total flux cleaned = 1.05839 Jy
! Component: 200  -  total flux cleaned = 1.11634 Jy
! Total flux subtracted in 200 components = 1.11634 Jy
! Clean residual min=-0.005284 max=0.030099 Jy/beam
! Clean residual mean=0.000110 rms=0.001874 Jy/beam
! Combined flux in latest and established models = 1.11634 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 14 model components to the UV plane model.
! The established model now contains 14 components and 1.11634 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.324 mas, bmaj=3.592 mas, bpa=-0.9304 degrees
! Estimated noise=197.12 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.0735865 Jy
! Component: 100  -  total flux cleaned = 0.1169 Jy
! Component: 150  -  total flux cleaned = 0.145773 Jy
! Component: 200  -  total flux cleaned = 0.166409 Jy
! Total flux subtracted in 200 components = 0.166409 Jy
! Clean residual min=-0.003040 max=0.011882 Jy/beam
! Clean residual mean=0.000567 rms=0.001804 Jy/beam
! Combined flux in latest and established models = 1.28275 Jy
! Adding 78 model components to the UV plane model.
! The established model now contains 84 components and 1.28275 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0158146 Jy
! Component: 100  -  total flux cleaned = 0.0283875 Jy
! Component: 150  -  total flux cleaned = 0.0385341 Jy
! Component: 200  -  total flux cleaned = 0.0468146 Jy
! Total flux subtracted in 200 components = 0.0468146 Jy
! Clean residual min=-0.001953 max=0.005072 Jy/beam
! Clean residual mean=0.000290 rms=0.000913 Jy/beam
! Combined flux in latest and established models = 1.32957 Jy
! Adding 73 model components to the UV plane model.
! The established model now contains 140 components and 1.32957 Jy
! Inverting map 
! Added new window around map position (-2, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00685169 Jy
! Component: 100  -  total flux cleaned = 0.0126095 Jy
! Component: 150  -  total flux cleaned = 0.017486 Jy
! Component: 200  -  total flux cleaned = 0.0216563 Jy
! Total flux subtracted in 200 components = 0.0216563 Jy
! Clean residual min=-0.001547 max=0.002674 Jy/beam
! Clean residual mean=0.000167 rms=0.000579 Jy/beam
! Combined flux in latest and established models = 1.35122 Jy
! Adding 76 model components to the UV plane model.
! The established model now contains 186 components and 1.35122 Jy
! Inverting map 
! Added new window around map position (-6, 14.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00359366 Jy
! Component: 100  -  total flux cleaned = 0.00669568 Jy
! Component: 150  -  total flux cleaned = 0.00941202 Jy
! Component: 200  -  total flux cleaned = 0.011725 Jy
! Total flux subtracted in 200 components = 0.011725 Jy
! Clean residual min=-0.001518 max=0.001971 Jy/beam
! Clean residual mean=0.000103 rms=0.000447 Jy/beam
! Combined flux in latest and established models = 1.36295 Jy
! Adding 76 model components to the UV plane model.
! The established model now contains 222 components and 1.36295 Jy
! Inverting map 
! Added new window around map position (-1.5, 23).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00174615 Jy
! Component: 100  -  total flux cleaned = 0.00305246 Jy
! Component: 150  -  total flux cleaned = 0.00441567 Jy
! Component: 200  -  total flux cleaned = 0.00554076 Jy
! Total flux subtracted in 200 components = 0.00554076 Jy
! Clean residual min=-0.001433 max=0.001462 Jy/beam
! Clean residual mean=0.000075 rms=0.000397 Jy/beam
! Combined flux in latest and established models = 1.36849 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 241 components and 1.36849 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.961 mas, bmaj=8.404 mas, bpa=32.46 degrees
! Estimated noise=290.791 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00379801 Jy
! Component: 100  -  total flux cleaned = 0.00631713 Jy
! Component: 150  -  total flux cleaned = 0.0081784 Jy
! Component: 200  -  total flux cleaned = 0.00958263 Jy
! Total flux subtracted in 200 components = 0.00958263 Jy
! Clean residual min=-0.001480 max=0.001784 Jy/beam
! Clean residual mean=0.000094 rms=0.000583 Jy/beam
! Combined flux in latest and established models = 1.37807 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.00103942 Jy
! Component: 100  -  total flux cleaned = 0.0016296 Jy
! Component: 150  -  total flux cleaned = 0.00209027 Jy
! Component: 200  -  total flux cleaned = 0.00247892 Jy
! Total flux subtracted in 200 components = 0.00247892 Jy
! Clean residual min=-0.001445 max=0.001805 Jy/beam
! Clean residual mean=0.000053 rms=0.000540 Jy/beam
! Combined flux in latest and established models = 1.38055 Jy
! Adding 129 model components to the UV plane model.
! The established model now contains 354 components and 1.38055 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.324 mas, bmaj=3.592 mas, bpa=-0.9304 degrees
! Estimated noise=197.12 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000502675 Jy
! Component: 100  -  total flux cleaned = -0.000401423 Jy
! Component: 150  -  total flux cleaned = -0.000267779 Jy
! Component: 200  -  total flux cleaned = -0.000185988 Jy
! Total flux subtracted in 200 components = -0.000185988 Jy
! Clean residual min=-0.001327 max=0.001278 Jy/beam
! Clean residual mean=0.000016 rms=0.000334 Jy/beam
! Combined flux in latest and established models = 1.38036 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 360 components and 1.38036 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.805100Jy  sigma=0.001407
! Fit after  self-cal, rms=1.805035Jy  sigma=0.001406
wmodel J0136+4751_S_2000_05_22_pus_map.mod
! Writing 360 model components to file: J0136+4751_S_2000_05_22_pus_map.mod
wobs J0136+4751_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J0136+4751_S_2000_05_22_pus_uvs.fits
wwins J0136+4751_S_2000_05_22_pus_map.win
! wwins: Wrote 14 windows to J0136+4751_S_2000_05_22_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.000326884 Jy
! Component: 100  -  total flux cleaned = -0.000522423 Jy
! Component: 150  -  total flux cleaned = -0.000626826 Jy
! Component: 200  -  total flux cleaned = -0.000707921 Jy
! Component: 250  -  total flux cleaned = -0.000787241 Jy
! Component: 300  -  total flux cleaned = -0.000806688 Jy
! Component: 350  -  total flux cleaned = -0.000806733 Jy
! Component: 400  -  total flux cleaned = -0.000825726 Jy
! Component: 450  -  total flux cleaned = -0.000844307 Jy
! Component: 500  -  total flux cleaned = -0.000825851 Jy
! Component: 550  -  total flux cleaned = -0.000825656 Jy
! Component: 600  -  total flux cleaned = -0.000771162 Jy
! Component: 650  -  total flux cleaned = -0.000735 Jy
! Component: 700  -  total flux cleaned = -0.000681631 Jy
! Component: 750  -  total flux cleaned = -0.000611199 Jy
! Component: 800  -  total flux cleaned = -0.000628663 Jy
! Component: 850  -  total flux cleaned = -0.000524683 Jy
! Component: 900  -  total flux cleaned = -0.000507732 Jy
! Component: 950  -  total flux cleaned = -0.000473633 Jy
! Component: 1000  -  total flux cleaned = -0.00043996 Jy
! Component: 1050  -  total flux cleaned = -0.000423053 Jy
! Component: 1100  -  total flux cleaned = -0.000389715 Jy
! Component: 1150  -  total flux cleaned = -0.000356445 Jy
! Component: 1200  -  total flux cleaned = -0.000323494 Jy
! Component: 1250  -  total flux cleaned = -0.000307173 Jy
! Component: 1300  -  total flux cleaned = -0.000274572 Jy
! Component: 1350  -  total flux cleaned = -0.000225963 Jy
! Component: 1400  -  total flux cleaned = -0.000242124 Jy
! Component: 1450  -  total flux cleaned = -0.000210124 Jy
! Component: 1500  -  total flux cleaned = -0.000210152 Jy
! Component: 1550  -  total flux cleaned = -0.000178397 Jy
! Component: 1600  -  total flux cleaned = -0.000162667 Jy
! Component: 1650  -  total flux cleaned = -0.000162702 Jy
! Component: 1700  -  total flux cleaned = -0.000162693 Jy
! Component: 1750  -  total flux cleaned = -0.000147185 Jy
! Component: 1800  -  total flux cleaned = -0.00016268 Jy
! Component: 1850  -  total flux cleaned = -0.000131875 Jy
! Component: 1900  -  total flux cleaned = -0.00011665 Jy
! Component: 1950  -  total flux cleaned = -0.000147112 Jy
! Component: 2000  -  total flux cleaned = -0.000116797 Jy
! Total flux subtracted in 2048 components = -0.000116802 Jy
! Clean residual min=-0.000935 max=0.000830 Jy/beam
! Clean residual mean=0.000016 rms=0.000287 Jy/beam
! Combined flux in latest and established models = 1.38025 Jy
keep
! Adding 170 model components to the UV plane model.
! The established model now contains 528 components and 1.38025 Jy
![Exited script file: muppet]
wmap "J0136+4751_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.324 x 3.592 at -0.9304 degrees (North through East)
! Clean map  min=-0.0010974  max=1.0466 Jy/beam
! Writing clean map to FITS file: J0136+4751_S_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.04658 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000287169 
device "J0136+4751_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J0136+4751_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0823164 0.0823164 0.164633 0.329266 0.658531 1.31706 2.63412 5.26825 10.5365 21.073 42.146 84.292
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0008 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.046 
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.324 x 3.592 at -0.9304 degrees (North through East)
! Clean map  min=-0.0010974  max=1.0466 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0136+4751_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J0136+4751_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0136+4751_S_2000_05_22_pus_uvs.log closed on Mon Nov 19 18:33:16 2007