! Started logfile: J1230+1223_S_1999_05_10_pus_uvs.log on Mon Jan 21 18:55:01 2008
obs J1230+1223_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1230+1223_S_1999_05_10_pus_uva.fits
! AN table 1: 167 integrations on 153 of 153 possible baselines.
! AN table 2: 65 integrations on 153 of 153 possible baselines.
! AN table 3: 99 integrations on 153 of 153 possible baselines.
! AN table 4: 87 integrations on 153 of 153 possible baselines.
! AN table 5: 74 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.135116 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1230+1223
! 
! 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 1998 lines of history.
! 
! Reading 40684 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 = 1024 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J1230+1223_S_1999_05_10_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 = 1024x1024 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 2044 telescope corrections were flagged in sub-array 1.
!  A total of 756 telescope corrections were flagged in sub-array 2.
!  A total of 1641 telescope corrections were flagged in sub-array 3.
!  A total of 993 telescope corrections were flagged in sub-array 4.
!  A total of 901 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 2044 telescope corrections were flagged in sub-array 1.
!  A total of 756 telescope corrections were flagged in sub-array 2.
!  A total of 1641 telescope corrections were flagged in sub-array 3.
!  A total of 993 telescope corrections were flagged in sub-array 4.
!  A total of 901 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 2044 telescope corrections were flagged in sub-array 1.
!  A total of 756 telescope corrections were flagged in sub-array 2.
!  A total of 1641 telescope corrections were flagged in sub-array 3.
!  A total of 993 telescope corrections were flagged in sub-array 4.
!  A total of 901 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 2057 telescope corrections were flagged in sub-array 1.
!  A total of 756 telescope corrections were flagged in sub-array 2.
!  A total of 1782 telescope corrections were flagged in sub-array 3.
!  A total of 1011 telescope corrections were flagged in sub-array 4.
!  A total of 931 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.873523Jy  sigma=0.005464
! Fit after  self-cal, rms=0.633450Jy  sigma=0.004083
! 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=2.047 mas, bmaj=3.679 mas, bpa=1.763 degrees
! Estimated noise=940.557 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.579303 Jy
! Component: 100  -  total flux cleaned = 0.8339 Jy
! Total flux subtracted in 100 components = 0.8339 Jy
! Clean residual min=-0.033032 max=0.137347 Jy/beam
! Clean residual mean=0.000412 rms=0.010056 Jy/beam
! Combined flux in latest and established models = 0.8339 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.8339 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.558797Jy  sigma=0.003729
! Fit after  self-cal, rms=0.557314Jy  sigma=0.003724
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.138087 Jy
! Component: 100  -  total flux cleaned = 0.217205 Jy
! Total flux subtracted in 100 components = 0.217205 Jy
! Clean residual min=-0.028856 max=0.108057 Jy/beam
! Clean residual mean=0.000356 rms=0.008243 Jy/beam
! Combined flux in latest and established models = 1.05111 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 24 components and 1.05111 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.478678Jy  sigma=0.003123
! Fit after  self-cal, rms=0.478359Jy  sigma=0.003120
! Inverting map 
! Added new window around map position (-3.5, 1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0961657 Jy
! Component: 100  -  total flux cleaned = 0.151257 Jy
! Total flux subtracted in 100 components = 0.151257 Jy
! Clean residual min=-0.025196 max=0.080630 Jy/beam
! Clean residual mean=0.000315 rms=0.007200 Jy/beam
! Combined flux in latest and established models = 1.20236 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 34 components and 1.20236 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434956Jy  sigma=0.002782
! Fit after  self-cal, rms=0.432804Jy  sigma=0.002770
! Inverting map 
! Added new window around map position (-7, 2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0700975 Jy
! Component: 100  -  total flux cleaned = 0.113549 Jy
! Total flux subtracted in 100 components = 0.113549 Jy
! Clean residual min=-0.022996 max=0.066620 Jy/beam
! Clean residual mean=0.000283 rms=0.006422 Jy/beam
! Combined flux in latest and established models = 1.31591 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 49 components and 1.31591 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.403148Jy  sigma=0.002543
! Fit after  self-cal, rms=0.401725Jy  sigma=0.002535
! Inverting map 
! Added new window around map position (3, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0543671 Jy
! Component: 100  -  total flux cleaned = 0.0897615 Jy
! Total flux subtracted in 100 components = 0.0897615 Jy
! Clean residual min=-0.021525 max=0.051682 Jy/beam
! Clean residual mean=0.000259 rms=0.005839 Jy/beam
! Combined flux in latest and established models = 1.40567 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 68 components and 1.40567 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383816Jy  sigma=0.002398
! Fit after  self-cal, rms=0.383588Jy  sigma=0.002395
! Inverting map 
! Added new window around map position (-12, 3.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0524894 Jy
! Component: 100  -  total flux cleaned = 0.0866437 Jy
! Total flux subtracted in 100 components = 0.0866437 Jy
! Clean residual min=-0.020221 max=0.043936 Jy/beam
! Clean residual mean=0.000237 rms=0.005385 Jy/beam
! Combined flux in latest and established models = 1.49232 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 91 components and 1.49232 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.366133Jy  sigma=0.002253
! Fit after  self-cal, rms=0.365505Jy  sigma=0.002249
! Inverting map 
! Added new window around map position (-18.5, 7.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0455909 Jy
! Component: 100  -  total flux cleaned = 0.0770556 Jy
! Total flux subtracted in 100 components = 0.0770556 Jy
! Clean residual min=-0.019407 max=0.028536 Jy/beam
! Clean residual mean=0.000218 rms=0.004971 Jy/beam
! Combined flux in latest and established models = 1.56937 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 122 components and 1.56937 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349146Jy  sigma=0.002120
! Fit after  self-cal, rms=0.348621Jy  sigma=0.002117
! 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.583 mas, bmaj=4.312 mas, bpa=3.594 degrees
! Estimated noise=552.606 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 (-21.5, 8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0936933 Jy
! Component: 100  -  total flux cleaned = 0.167467 Jy
! Component: 150  -  total flux cleaned = 0.228357 Jy
! Component: 200  -  total flux cleaned = 0.279676 Jy
! Total flux subtracted in 200 components = 0.279676 Jy
! Clean residual min=-0.014789 max=0.052169 Jy/beam
! Clean residual mean=0.006516 rms=0.007383 Jy/beam
! Combined flux in latest and established models = 1.84905 Jy
! Performing phase self-cal
! Adding 109 model components to the UV plane model.
! The established model now contains 211 components and 1.84905 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307821Jy  sigma=0.001796
! Fit after  self-cal, rms=0.305797Jy  sigma=0.001780
! Inverting map 
! Added new window around map position (-27.5, 10).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0578572 Jy
! Component: 100  -  total flux cleaned = 0.101839 Jy
! Component: 150  -  total flux cleaned = 0.138935 Jy
! Component: 200  -  total flux cleaned = 0.170832 Jy
! Total flux subtracted in 200 components = 0.170832 Jy
! Clean residual min=-0.011075 max=0.033710 Jy/beam
! Clean residual mean=0.004806 rms=0.005135 Jy/beam
! Combined flux in latest and established models = 2.01988 Jy
! Performing phase self-cal
! Adding 91 model components to the UV plane model.
! The established model now contains 266 components and 2.01988 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288602Jy  sigma=0.001641
! Fit after  self-cal, rms=0.287579Jy  sigma=0.001634
! Inverting map 
! Added new window around map position (-33.5, 10.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0361807 Jy
! Component: 100  -  total flux cleaned = 0.0639951 Jy
! Component: 150  -  total flux cleaned = 0.0879701 Jy
! Component: 200  -  total flux cleaned = 0.108936 Jy
! Total flux subtracted in 200 components = 0.108936 Jy
! Clean residual min=-0.009587 max=0.023439 Jy/beam
! Clean residual mean=0.003716 rms=0.004127 Jy/beam
! Combined flux in latest and established models = 2.12882 Jy
! Performing phase self-cal
! Adding 92 model components to the UV plane model.
! The established model now contains 324 components and 2.12882 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280026Jy  sigma=0.001576
! Fit after  self-cal, rms=0.279605Jy  sigma=0.001573
! Inverting map 
! Added new window around map position (-15.5, 6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0245078 Jy
! Component: 100  -  total flux cleaned = 0.0423871 Jy
! Component: 150  -  total flux cleaned = 0.0577867 Jy
! Component: 200  -  total flux cleaned = 0.0712045 Jy
! Total flux subtracted in 200 components = 0.0712045 Jy
! Clean residual min=-0.010169 max=0.021637 Jy/beam
! Clean residual mean=0.003001 rms=0.003765 Jy/beam
! Combined flux in latest and established models = 2.20002 Jy
! Performing phase self-cal
! Adding 80 model components to the UV plane model.
! The established model now contains 373 components and 2.20002 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276138Jy  sigma=0.001548
! Fit after  self-cal, rms=0.275926Jy  sigma=0.001547
! Inverting map 
! Added new window around map position (-63, 25).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0243429 Jy
! Component: 100  -  total flux cleaned = 0.0406455 Jy
! Component: 150  -  total flux cleaned = 0.0532301 Jy
! Component: 200  -  total flux cleaned = 0.0642205 Jy
! Total flux subtracted in 200 components = 0.0642205 Jy
! Clean residual min=-0.010019 max=0.017850 Jy/beam
! Clean residual mean=0.002443 rms=0.003261 Jy/beam
! Combined flux in latest and established models = 2.26424 Jy
! Performing phase self-cal
! Adding 79 model components to the UV plane model.
! The established model now contains 431 components and 2.26424 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273016Jy  sigma=0.001525
! Fit after  self-cal, rms=0.272696Jy  sigma=0.001523
! Inverting map 
! Added new window around map position (-83, 33).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0194977 Jy
! Component: 100  -  total flux cleaned = 0.0330147 Jy
! Component: 150  -  total flux cleaned = 0.0441725 Jy
! Component: 200  -  total flux cleaned = 0.0540084 Jy
! Total flux subtracted in 200 components = 0.0540084 Jy
! Clean residual min=-0.009388 max=0.014247 Jy/beam
! Clean residual mean=0.002009 rms=0.002959 Jy/beam
! Combined flux in latest and established models = 2.31825 Jy
! Performing phase self-cal
! Adding 71 model components to the UV plane model.
! The established model now contains 471 components and 2.31825 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270472Jy  sigma=0.001509
! Fit after  self-cal, rms=0.270316Jy  sigma=0.001507
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GC        1.09     HH        1.00*    
!   HN        1.00     KK        1.15     KP        0.99     LA        0.96     
!   MC        1.17     MK        0.90     NL        0.98     NY        0.97     
!   ON        1.05     OV        1.00     PT        1.00     SC        1.05     
!   WF        1.04     WZ        1.23     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.96     GC        1.05     HH        1.00*    
!   HN        0.97     KK        1.11     KP        1.36     LA        0.98     
!   MC        1.00*    MK        0.94     NL        0.99     NY        1.02     
!   ON        1.00*    OV        1.03     PT        0.98     SC        0.98     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.94     GC        1.00*    HH        0.92     
!   HN        0.97     KK        1.00*    KP        1.02     LA        0.97     
!   MC        1.21     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.03     SC        1.01     
!   WF        1.00     WZ        0.94     
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.93     
!   HN        0.92     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.15     MK        1.00*    NL        1.06     NY        1.02     
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.07     
!   WF        0.93     WZ        0.97     
! 
! 
! Correcting IF 2.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.02     GC        1.08     HH        1.00*    
!   HN        0.97     KK        1.13     KP        1.01     LA        0.95     
!   MC        1.34     MK        0.95     NL        1.01     NY        0.94     
!   ON        1.06     OV        0.98     PT        1.00     SC        1.08     
!   WF        1.04     WZ        1.25     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00     GC        1.04     HH        1.00*    
!   HN        0.97     KK        1.07     KP        1.00     LA        0.95     
!   MC        1.00*    MK        1.01     NL        1.00     NY        1.00     
!   ON        1.00*    OV        0.91     PT        0.99     SC        0.97     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.98     GC        1.00*    HH        0.96     
!   HN        0.97     KK        1.00*    KP        1.03     LA        1.00     
!   MC        1.49     MK        1.00*    NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.00     SC        1.00     
!   WF        0.96     WZ        0.93     
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.94     
!   HN        0.91     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.09     MK        1.00*    NL        1.07     NY        0.98     
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.07     
!   WF        0.93     WZ        1.00     
! 
! 
! Correcting IF 3.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        1.08     HH        1.00*    
!   HN        0.96     KK        1.10     KP        1.00     LA        0.97     
!   MC        1.30     MK        0.92     NL        1.01     NY        1.01     
!   ON        1.05     OV        0.99     PT        0.95     SC        1.04     
!   WF        1.03     WZ        3.63     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        1.03     HH        1.00*    
!   HN        0.96     KK        1.06     KP        0.97     LA        0.97     
!   MC        1.00*    MK        0.91     NL        0.99     NY        1.07     
!   ON        1.00*    OV        0.88     PT        0.96     SC        0.98     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.97     GC        1.00*    HH        1.10     
!   HN        0.96     KK        1.00*    KP        1.03     LA        1.02     
!   MC        2.00     MK        1.00*    NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.02     SC        0.96     
!   WF        1.01     WZ        0.85     
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.92     
!   HN        0.92     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.69     MK        1.00*    NL        1.06     NY        1.03     
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.08     
!   WF        0.94     WZ        0.96     
! 
! 
! Correcting IF 4.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.99     GC        1.04     HH        1.00*    
!   HN        0.99     KK        1.10     KP        0.98     LA        0.97     
!   MC        1.88     MK        0.95     NL        1.03     NY        0.97     
!   ON        0.96     OV        0.95     PT        0.99     SC        1.05     
!   WF        1.04     WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.96     GC        1.00     HH        1.00*    
!   HN        0.98     KK        1.09     KP        0.97     LA        0.97     
!   MC        1.00*    MK        0.91     NL        1.00     NY        1.10     
!   ON        1.00*    OV        0.86     PT        1.18     SC        0.97     
!   WF        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.95     GC        1.00*    HH        0.99     
!   HN        0.95     KK        1.00*    KP        1.02     LA        1.01     
!   MC        1.24     MK        1.00*    NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.04     SC        0.97     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.96     
!   HN        0.93     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.58     MK        1.00*    NL        1.05     NY        0.98     
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.07     
!   WF        0.93     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.270316Jy  sigma=0.001507
! Fit after  self-cal, rms=0.277906Jy  sigma=0.001410
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.626 mas, bmaj=4.341 mas, bpa=5.072 degrees
! Estimated noise=560.35 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.00809739 Jy
! Component: 100  -  total flux cleaned = 0.0129822 Jy
! Component: 150  -  total flux cleaned = 0.0161475 Jy
! Component: 200  -  total flux cleaned = 0.0190354 Jy
! Total flux subtracted in 200 components = 0.0190354 Jy
! Clean residual min=-0.007463 max=0.011196 Jy/beam
! Clean residual mean=0.000367 rms=0.002347 Jy/beam
! Combined flux in latest and established models = 2.33729 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 496 components and 2.33729 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277439Jy  sigma=0.001406
! Fit after  self-cal, rms=0.277867Jy  sigma=0.001406
! 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.277867Jy  sigma=0.001406
! Fit after  self-cal, rms=0.276930Jy  sigma=0.001380
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.633 mas, bmaj=4.346 mas, bpa=5.456 degrees
! Estimated noise=560.704 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00367401 Jy
! Component: 100  -  total flux cleaned = 0.00671043 Jy
! Component: 150  -  total flux cleaned = 0.00939907 Jy
! Component: 200  -  total flux cleaned = 0.011458 Jy
! Total flux subtracted in 200 components = 0.011458 Jy
! Clean residual min=-0.007311 max=0.009507 Jy/beam
! Clean residual mean=0.000324 rms=0.002095 Jy/beam
! Combined flux in latest and established models = 2.34874 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 511 components and 2.34874 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276589Jy  sigma=0.001377
! Fit after  self-cal, rms=0.276641Jy  sigma=0.001377
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 (-69, 30).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00979147 Jy
! Component: 100  -  total flux cleaned = 0.0140373 Jy
! Component: 150  -  total flux cleaned = 0.015676 Jy
! Component: 200  -  total flux cleaned = 0.016659 Jy
! Total flux subtracted in 200 components = 0.016659 Jy
! Clean residual min=-0.007171 max=0.009076 Jy/beam
! Clean residual mean=0.000178 rms=0.001983 Jy/beam
! Combined flux in latest and established models = 2.3654 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 533 components and 2.3654 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276211Jy  sigma=0.001373
! Fit after  self-cal, rms=0.276182Jy  sigma=0.001373
! Inverting map 
! Added new window around map position (-44.5, 19).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0101588 Jy
! Component: 100  -  total flux cleaned = 0.016593 Jy
! Component: 150  -  total flux cleaned = 0.0191098 Jy
! Component: 200  -  total flux cleaned = 0.0200761 Jy
! Total flux subtracted in 200 components = 0.0200761 Jy
! Clean residual min=-0.006920 max=0.007247 Jy/beam
! Clean residual mean=-0.000030 rms=0.001863 Jy/beam
! Combined flux in latest and established models = 2.38548 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 554 components and 2.38548 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275783Jy  sigma=0.001368
! Fit after  self-cal, rms=0.275754Jy  sigma=0.001368
! 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.275754Jy  sigma=0.001368
! Fit after  self-cal, rms=0.277151Jy  sigma=0.001367
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.636 mas, bmaj=4.348 mas, bpa=5.618 degrees
! Estimated noise=561.201 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0063968 Jy
! Component: 100  -  total flux cleaned = 0.0103581 Jy
! Component: 150  -  total flux cleaned = 0.0128118 Jy
! Component: 200  -  total flux cleaned = 0.0145756 Jy
! Total flux subtracted in 200 components = 0.0145756 Jy
! Clean residual min=-0.006936 max=0.007515 Jy/beam
! Clean residual mean=0.000117 rms=0.001807 Jy/beam
! Combined flux in latest and established models = 2.40006 Jy
selfcal
! Performing phase self-cal
! Adding 52 model components to the UV plane model.
! The established model now contains 566 components and 2.40006 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276921Jy  sigma=0.001364
! Fit after  self-cal, rms=0.276922Jy  sigma=0.001364
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.00268165 Jy
! Component: 100  -  total flux cleaned = 0.00448259 Jy
! Component: 150  -  total flux cleaned = 0.00601652 Jy
! Component: 200  -  total flux cleaned = 0.00706807 Jy
! Total flux subtracted in 200 components = 0.00706807 Jy
! Clean residual min=-0.006868 max=0.007302 Jy/beam
! Clean residual mean=0.000045 rms=0.001791 Jy/beam
! Combined flux in latest and established models = 2.40712 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 572 components and 2.40712 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276789Jy  sigma=0.001363
! Fit after  self-cal, rms=0.276786Jy  sigma=0.001363
! 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.276786Jy  sigma=0.001363
! Fit after  self-cal, rms=0.277752Jy  sigma=0.001363
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.6 mas, bmaj=9.215 mas, bpa=-7.745 degrees
! Estimated noise=744.637 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00978706 Jy
! Component: 100  -  total flux cleaned = 0.0163905 Jy
! Component: 150  -  total flux cleaned = 0.0211473 Jy
! Component: 200  -  total flux cleaned = 0.0225556 Jy
! Total flux subtracted in 200 components = 0.0225556 Jy
! Clean residual min=-0.012256 max=0.012068 Jy/beam
! Clean residual mean=-0.000043 rms=0.003507 Jy/beam
! Combined flux in latest and established models = 2.42968 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 588 components and 2.42968 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277714Jy  sigma=0.001362
! Fit after  self-cal, rms=0.277706Jy  sigma=0.001362
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.00347665 Jy
! Component: 100  -  total flux cleaned = 0.00506987 Jy
! Component: 150  -  total flux cleaned = 0.00583494 Jy
! Component: 200  -  total flux cleaned = 0.00641464 Jy
! Total flux subtracted in 200 components = 0.00641464 Jy
! Clean residual min=-0.012161 max=0.012096 Jy/beam
! Clean residual mean=-0.000217 rms=0.003513 Jy/beam
! Combined flux in latest and established models = 2.43609 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 597 components and 2.43609 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277708Jy  sigma=0.001361
! Fit after  self-cal, rms=0.277705Jy  sigma=0.001361
! 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.639 mas, bmaj=4.352 mas, bpa=5.631 degrees
! Estimated noise=561.807 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.639 x 4.352 at 5.631 degrees (North through East)
! Clean map  min=-0.0065373  max=0.7837 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.277705Jy  sigma=0.001361
! Fit after  self-cal, rms=0.318125Jy  sigma=0.001217
! Inverting map and beam 
! Estimated beam: bmin=2.629 mas, bmaj=4.345 mas, bpa=5.777 degrees
! Estimated noise=560.498 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000885796 Jy
! Component: 100  -  total flux cleaned = 0.00130832 Jy
! Component: 150  -  total flux cleaned = 0.00143739 Jy
! Component: 200  -  total flux cleaned = 0.00155684 Jy
! Total flux subtracted in 200 components = 0.00155684 Jy
! Clean residual min=-0.006243 max=0.006790 Jy/beam
! Clean residual mean=0.000104 rms=0.001658 Jy/beam
! Combined flux in latest and established models = 2.43765 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 621 components and 2.43765 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318014Jy  sigma=0.001216
! Fit after  self-cal, rms=0.318025Jy  sigma=0.001216
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000719599 Jy
! Component: 100  -  total flux cleaned = 0.000952396 Jy
! Component: 150  -  total flux cleaned = 0.00106064 Jy
! Component: 200  -  total flux cleaned = 0.00116626 Jy
! Total flux subtracted in 200 components = 0.00116626 Jy
! Clean residual min=-0.006204 max=0.006739 Jy/beam
! Clean residual mean=0.000092 rms=0.001648 Jy/beam
! Combined flux in latest and established models = 2.43882 Jy
! Performing phase self-cal
! Adding 44 model components to the UV plane model.
! The established model now contains 628 components and 2.43882 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317949Jy  sigma=0.001215
! Fit after  self-cal, rms=0.317963Jy  sigma=0.001215
! 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.317963Jy  sigma=0.001215
! Fit after  self-cal, rms=0.317681Jy  sigma=0.001215
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=2.088 mas, bmaj=3.683 mas, bpa=4.659 degrees
! Estimated noise=980.303 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.599179 Jy
! Component: 100  -  total flux cleaned = 0.857131 Jy
! Component: 150  -  total flux cleaned = 1.00698 Jy
! Component: 200  -  total flux cleaned = 1.11618 Jy
! Total flux subtracted in 200 components = 1.11618 Jy
! Clean residual min=-0.027619 max=0.063671 Jy/beam
! Clean residual mean=0.000340 rms=0.007499 Jy/beam
! Combined flux in latest and established models = 1.11618 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 26 model components to the UV plane model.
! The established model now contains 26 components and 1.11618 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.629 mas, bmaj=4.344 mas, bpa=5.887 degrees
! Estimated noise=560.536 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.196978 Jy
! Component: 100  -  total flux cleaned = 0.342733 Jy
! Component: 150  -  total flux cleaned = 0.458175 Jy
! Component: 200  -  total flux cleaned = 0.552893 Jy
! Total flux subtracted in 200 components = 0.552893 Jy
! Clean residual min=-0.014752 max=0.058113 Jy/beam
! Clean residual mean=0.007922 rms=0.010959 Jy/beam
! Combined flux in latest and established models = 1.66907 Jy
! Adding 115 model components to the UV plane model.
! The established model now contains 125 components and 1.66907 Jy
! Inverting map 
! Added new window around map position (-9.5, 3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0798408 Jy
! Component: 100  -  total flux cleaned = 0.14812 Jy
! Component: 150  -  total flux cleaned = 0.206841 Jy
! Component: 200  -  total flux cleaned = 0.257596 Jy
! Total flux subtracted in 200 components = 0.257596 Jy
! Clean residual min=-0.010294 max=0.031403 Jy/beam
! Clean residual mean=0.005177 rms=0.006810 Jy/beam
! Combined flux in latest and established models = 1.92666 Jy
! Adding 141 model components to the UV plane model.
! The established model now contains 258 components and 1.92667 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0442703 Jy
! Component: 100  -  total flux cleaned = 0.0834635 Jy
! Component: 150  -  total flux cleaned = 0.118482 Jy
! Component: 200  -  total flux cleaned = 0.149967 Jy
! Total flux subtracted in 200 components = 0.149967 Jy
! Clean residual min=-0.007679 max=0.020585 Jy/beam
! Clean residual mean=0.003637 rms=0.004784 Jy/beam
! Combined flux in latest and established models = 2.07663 Jy
! Adding 134 model components to the UV plane model.
! The established model now contains 346 components and 2.07663 Jy
! Inverting map 
! Added new window around map position (-38, 17.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0286054 Jy
! Component: 100  -  total flux cleaned = 0.0546601 Jy
! Component: 150  -  total flux cleaned = 0.0784361 Jy
! Component: 200  -  total flux cleaned = 0.100194 Jy
! Total flux subtracted in 200 components = 0.100194 Jy
! Clean residual min=-0.006495 max=0.015823 Jy/beam
! Clean residual mean=0.002645 rms=0.003591 Jy/beam
! Combined flux in latest and established models = 2.17683 Jy
! Adding 132 model components to the UV plane model.
! The established model now contains 424 components and 2.17683 Jy
! Inverting map 
! Added new window around map position (-77, 29.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0202737 Jy
! Component: 100  -  total flux cleaned = 0.0387927 Jy
! Component: 150  -  total flux cleaned = 0.0558751 Jy
! Component: 200  -  total flux cleaned = 0.0716397 Jy
! Total flux subtracted in 200 components = 0.0716397 Jy
! Clean residual min=-0.005929 max=0.013186 Jy/beam
! Clean residual mean=0.001951 rms=0.002826 Jy/beam
! Combined flux in latest and established models = 2.24847 Jy
! Adding 125 model components to the UV plane model.
! The established model now contains 488 components and 2.24847 Jy
! Inverting map 
! Added new window around map position (-50.5, 22).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0151721 Jy
! Component: 100  -  total flux cleaned = 0.0287547 Jy
! Component: 150  -  total flux cleaned = 0.0413068 Jy
! Component: 200  -  total flux cleaned = 0.0529424 Jy
! Total flux subtracted in 200 components = 0.0529424 Jy
! Clean residual min=-0.005744 max=0.009086 Jy/beam
! Clean residual mean=0.001439 rms=0.002310 Jy/beam
! Combined flux in latest and established models = 2.30141 Jy
! Adding 134 model components to the UV plane model.
! The established model now contains 558 components and 2.30141 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.606 mas, bmaj=9.217 mas, bpa=-7.639 degrees
! Estimated noise=742.924 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0262847 Jy
! Component: 100  -  total flux cleaned = 0.0475043 Jy
! Component: 150  -  total flux cleaned = 0.0649295 Jy
! Component: 200  -  total flux cleaned = 0.0793573 Jy
! Total flux subtracted in 200 components = 0.0793573 Jy
! Clean residual min=-0.011120 max=0.013626 Jy/beam
! Clean residual mean=0.001836 rms=0.003817 Jy/beam
! Combined flux in latest and established models = 2.38077 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.0120288 Jy
! Component: 100  -  total flux cleaned = 0.0220992 Jy
! Component: 150  -  total flux cleaned = 0.0305533 Jy
! Component: 200  -  total flux cleaned = 0.0376539 Jy
! Total flux subtracted in 200 components = 0.0376539 Jy
! Clean residual min=-0.011159 max=0.011894 Jy/beam
! Clean residual mean=0.000852 rms=0.003388 Jy/beam
! Combined flux in latest and established models = 2.41842 Jy
! Adding 240 model components to the UV plane model.
! The established model now contains 745 components and 2.41842 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.629 mas, bmaj=4.344 mas, bpa=5.887 degrees
! Estimated noise=560.536 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00411838 Jy
! Component: 100  -  total flux cleaned = 0.00677726 Jy
! Component: 150  -  total flux cleaned = 0.0093021 Jy
! Component: 200  -  total flux cleaned = 0.0113873 Jy
! Total flux subtracted in 200 components = 0.0113873 Jy
! Clean residual min=-0.005792 max=0.006988 Jy/beam
! Clean residual mean=0.000205 rms=0.001588 Jy/beam
! Combined flux in latest and established models = 2.42981 Jy
selfcal
! Performing phase self-cal
! Adding 48 model components to the UV plane model.
! The established model now contains 778 components and 2.42981 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.316987Jy  sigma=0.001210
! Fit after  self-cal, rms=0.316979Jy  sigma=0.001210
wmodel J1230+1223_S_1999_05_10_pus_map.mod
! Writing 778 model components to file: J1230+1223_S_1999_05_10_pus_map.mod
wobs J1230+1223_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1230+1223_S_1999_05_10_pus_uvs.fits
wwins J1230+1223_S_1999_05_10_pus_map.win
! wwins: Wrote 18 windows to J1230+1223_S_1999_05_10_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=4096  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00313626 Jy
! Component: 100  -  total flux cleaned = 0.00514665 Jy
! Component: 150  -  total flux cleaned = 0.00652153 Jy
! Component: 200  -  total flux cleaned = 0.00794371 Jy
! Component: 250  -  total flux cleaned = 0.00922069 Jy
! Component: 300  -  total flux cleaned = 0.010271 Jy
! Component: 350  -  total flux cleaned = 0.0112031 Jy
! Component: 400  -  total flux cleaned = 0.0118414 Jy
! Component: 450  -  total flux cleaned = 0.0123763 Jy
! Component: 500  -  total flux cleaned = 0.0129888 Jy
! Component: 550  -  total flux cleaned = 0.0133328 Jy
! Component: 600  -  total flux cleaned = 0.0137573 Jy
! Component: 650  -  total flux cleaned = 0.0143422 Jy
! Component: 700  -  total flux cleaned = 0.0145904 Jy
! Component: 750  -  total flux cleaned = 0.0149982 Jy
! Component: 800  -  total flux cleaned = 0.0153194 Jy
! Component: 850  -  total flux cleaned = 0.0156366 Jy
! Component: 900  -  total flux cleaned = 0.0158716 Jy
! Component: 950  -  total flux cleaned = 0.0161041 Jy
! Component: 1000  -  total flux cleaned = 0.0163348 Jy
! Component: 1050  -  total flux cleaned = 0.0167136 Jy
! Component: 1100  -  total flux cleaned = 0.0170881 Jy
! Component: 1150  -  total flux cleaned = 0.0170874 Jy
! Component: 1200  -  total flux cleaned = 0.0173086 Jy
! Component: 1250  -  total flux cleaned = 0.0175998 Jy
! Component: 1300  -  total flux cleaned = 0.0178158 Jy
! Component: 1350  -  total flux cleaned = 0.0178873 Jy
! Component: 1400  -  total flux cleaned = 0.018029 Jy
! Component: 1450  -  total flux cleaned = 0.0181698 Jy
! Component: 1500  -  total flux cleaned = 0.0181699 Jy
! Component: 1550  -  total flux cleaned = 0.0183091 Jy
! Component: 1600  -  total flux cleaned = 0.0184462 Jy
! Component: 1650  -  total flux cleaned = 0.0185143 Jy
! Component: 1700  -  total flux cleaned = 0.0185816 Jy
! Component: 1750  -  total flux cleaned = 0.0185813 Jy
! Component: 1800  -  total flux cleaned = 0.018648 Jy
! Component: 1850  -  total flux cleaned = 0.0187141 Jy
! Component: 1900  -  total flux cleaned = 0.0188453 Jy
! Component: 1950  -  total flux cleaned = 0.0187809 Jy
! Component: 2000  -  total flux cleaned = 0.0188456 Jy
! Component: 2050  -  total flux cleaned = 0.0189732 Jy
! Component: 2100  -  total flux cleaned = 0.0190364 Jy
! Component: 2150  -  total flux cleaned = 0.0192253 Jy
! Component: 2200  -  total flux cleaned = 0.0191624 Jy
! Component: 2250  -  total flux cleaned = 0.0192869 Jy
! Component: 2300  -  total flux cleaned = 0.0194102 Jy
! Component: 2350  -  total flux cleaned = 0.0194712 Jy
! Component: 2400  -  total flux cleaned = 0.0195931 Jy
! Component: 2450  -  total flux cleaned = 0.0197138 Jy
! Component: 2500  -  total flux cleaned = 0.0197138 Jy
! Component: 2550  -  total flux cleaned = 0.0200123 Jy
! Component: 2600  -  total flux cleaned = 0.0198939 Jy
! Component: 2650  -  total flux cleaned = 0.020012 Jy
! Component: 2700  -  total flux cleaned = 0.0201295 Jy
! Component: 2750  -  total flux cleaned = 0.0200715 Jy
! Component: 2800  -  total flux cleaned = 0.0203031 Jy
! Component: 2850  -  total flux cleaned = 0.020418 Jy
! Component: 2900  -  total flux cleaned = 0.0204176 Jy
! Component: 2950  -  total flux cleaned = 0.0205311 Jy
! Component: 3000  -  total flux cleaned = 0.0206441 Jy
! Component: 3050  -  total flux cleaned = 0.0207001 Jy
! Component: 3100  -  total flux cleaned = 0.020812 Jy
! Component: 3150  -  total flux cleaned = 0.0209232 Jy
! Component: 3200  -  total flux cleaned = 0.0208677 Jy
! Component: 3250  -  total flux cleaned = 0.0209779 Jy
! Component: 3300  -  total flux cleaned = 0.0209782 Jy
! Component: 3350  -  total flux cleaned = 0.0209235 Jy
! Component: 3400  -  total flux cleaned = 0.0210862 Jy
! Component: 3450  -  total flux cleaned = 0.021086 Jy
! Component: 3500  -  total flux cleaned = 0.0211933 Jy
! Component: 3550  -  total flux cleaned = 0.021193 Jy
! Component: 3600  -  total flux cleaned = 0.0212462 Jy
! Component: 3650  -  total flux cleaned = 0.0212989 Jy
! Component: 3700  -  total flux cleaned = 0.0212463 Jy
! Component: 3750  -  total flux cleaned = 0.0214557 Jy
! Component: 3800  -  total flux cleaned = 0.0215079 Jy
! Component: 3850  -  total flux cleaned = 0.0215598 Jy
! Component: 3900  -  total flux cleaned = 0.0216629 Jy
! Component: 3950  -  total flux cleaned = 0.0217142 Jy
! Component: 4000  -  total flux cleaned = 0.0218166 Jy
! Component: 4050  -  total flux cleaned = 0.0218676 Jy
! Total flux subtracted in 4096 components = 0.0219688 Jy
! Clean residual min=-0.003059 max=0.003194 Jy/beam
! Clean residual mean=0.000036 rms=0.000991 Jy/beam
! Combined flux in latest and established models = 2.45178 Jy
keep
! Adding 379 model components to the UV plane model.
! The established model now contains 1157 components and 2.45178 Jy
![Exited script file: muppet]
wmap "J1230+1223_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.629 x 4.344 at 5.887 degrees (North through East)
! Clean map  min=-0.0042657  max=0.78662 Jy/beam
! Writing clean map to FITS file: J1230+1223_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.786618 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00099496 
device "J1230+1223_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1230+1223_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.379458 0.379458 0.758915 1.51783 3.03566 6.07132 12.1426 24.2853 48.5706 97.1411
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.786 
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.629 x 4.344 at 5.887 degrees (North through East)
! Clean map  min=-0.0042657  max=0.78662 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1230+1223_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1230+1223_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1230+1223_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 18:56:05 2008