! Started logfile: J2202+4216_X_1999_12_20_pus_uvs.log on Tue Dec 18 11:39:56 2007
obs J2202+4216_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J2202+4216_X_1999_12_20_pus_uva.fits
! AN table 1: 231 integrations on 190 of 190 possible baselines.
! AN table 2: 155 integrations on 190 of 190 possible baselines.
! AN table 3: 45 integrations on 190 of 190 possible baselines.
! AN table 4: 122 integrations on 190 of 190 possible baselines.
! AN table 5: 50 integrations on 190 of 190 possible baselines.
! AN table 6: 86 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.233015 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2202+4216
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2422 lines of history.
! 
! Reading 122016 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 = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J2202+4216_X_1999_12_20_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 = 256x256 pixels with 0.200x0.200 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 3426 telescope corrections were flagged in sub-array 1.
!  A total of 1220 telescope corrections were flagged in sub-array 2.
!  A total of 414 telescope corrections were flagged in sub-array 3.
!  A total of 1775 telescope corrections were flagged in sub-array 4.
!  A total of 343 telescope corrections were flagged in sub-array 5.
!  A total of 1432 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 3426 telescope corrections were flagged in sub-array 1.
!  A total of 1228 telescope corrections were flagged in sub-array 2.
!  A total of 414 telescope corrections were flagged in sub-array 3.
!  A total of 1774 telescope corrections were flagged in sub-array 4.
!  A total of 343 telescope corrections were flagged in sub-array 5.
!  A total of 1432 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 3426 telescope corrections were flagged in sub-array 1.
!  A total of 1217 telescope corrections were flagged in sub-array 2.
!  A total of 414 telescope corrections were flagged in sub-array 3.
!  A total of 1773 telescope corrections were flagged in sub-array 4.
!  A total of 343 telescope corrections were flagged in sub-array 5.
!  A total of 1429 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 3426 telescope corrections were flagged in sub-array 1.
!  A total of 1223 telescope corrections were flagged in sub-array 2.
!  A total of 414 telescope corrections were flagged in sub-array 3.
!  A total of 1773 telescope corrections were flagged in sub-array 4.
!  A total of 343 telescope corrections were flagged in sub-array 5.
!  A total of 1429 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=1.888541Jy  sigma=0.018762
! Fit after  self-cal, rms=0.975137Jy  sigma=0.010198
! 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 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Estimated beam: bmin=0.5366 mas, bmaj=0.6844 mas, bpa=-9.12 degrees
! Estimated noise=475.48 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 = 1.35842 Jy
! Component: 100  -  total flux cleaned = 1.67905 Jy
! Total flux subtracted in 100 components = 1.67905 Jy
! Clean residual min=-0.033775 max=0.183495 Jy/beam
! Clean residual mean=0.000319 rms=0.009949 Jy/beam
! Combined flux in latest and established models = 1.67905 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.67905 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.557792Jy  sigma=0.005535
! Fit after  self-cal, rms=0.557219Jy  sigma=0.005533
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Added new window around map position (-0.8, -1.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.183947 Jy
! Component: 100  -  total flux cleaned = 0.298828 Jy
! Total flux subtracted in 100 components = 0.298828 Jy
! Clean residual min=-0.028793 max=0.062836 Jy/beam
! Clean residual mean=0.000190 rms=0.007306 Jy/beam
! Combined flux in latest and established models = 1.97787 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 13 components and 1.97787 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.457933Jy  sigma=0.004209
! Fit after  self-cal, rms=0.453799Jy  sigma=0.004184
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0873288 Jy
! Component: 100  -  total flux cleaned = 0.151471 Jy
! Total flux subtracted in 100 components = 0.151471 Jy
! Clean residual min=-0.023453 max=0.052437 Jy/beam
! Clean residual mean=0.000124 rms=0.006315 Jy/beam
! Combined flux in latest and established models = 2.12934 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 18 components and 2.12934 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.418878Jy  sigma=0.003643
! Fit after  self-cal, rms=0.417321Jy  sigma=0.003635
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Added new window around map position (-0.6, -2.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0592171 Jy
! Component: 100  -  total flux cleaned = 0.105302 Jy
! Total flux subtracted in 100 components = 0.105302 Jy
! Clean residual min=-0.022347 max=0.036391 Jy/beam
! Clean residual mean=0.000084 rms=0.005784 Jy/beam
! Combined flux in latest and established models = 2.23465 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 22 components and 2.23465 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.397197Jy  sigma=0.003311
! Fit after  self-cal, rms=0.396106Jy  sigma=0.003306
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
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 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Estimated beam: bmin=0.652 mas, bmaj=0.8941 mas, bpa=-16.12 degrees
! Estimated noise=232.973 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.113224 Jy
! Component: 100  -  total flux cleaned = 0.18612 Jy
! Component: 150  -  total flux cleaned = 0.238054 Jy
! Component: 200  -  total flux cleaned = 0.275541 Jy
! Total flux subtracted in 200 components = 0.275541 Jy
! Clean residual min=-0.020806 max=0.053244 Jy/beam
! Clean residual mean=0.000106 rms=0.008407 Jy/beam
! Combined flux in latest and established models = 2.51019 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 43 components and 2.51019 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.369053Jy  sigma=0.002764
! Fit after  self-cal, rms=0.365823Jy  sigma=0.002724
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Added new window around map position (0.2, -4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0599885 Jy
! Component: 100  -  total flux cleaned = 0.0991259 Jy
! Component: 150  -  total flux cleaned = 0.127976 Jy
! Component: 200  -  total flux cleaned = 0.149913 Jy
! Total flux subtracted in 200 components = 0.149913 Jy
! Clean residual min=-0.021213 max=0.034347 Jy/beam
! Clean residual mean=-0.001354 rms=0.006175 Jy/beam
! Combined flux in latest and established models = 2.6601 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 64 components and 2.6601 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357052Jy  sigma=0.002546
! Fit after  self-cal, rms=0.355786Jy  sigma=0.002527
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Added new window around map position (-1.4, -3.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0344746 Jy
! Component: 100  -  total flux cleaned = 0.0555789 Jy
! Component: 150  -  total flux cleaned = 0.071564 Jy
! Component: 200  -  total flux cleaned = 0.0827618 Jy
! Total flux subtracted in 200 components = 0.0827618 Jy
! Clean residual min=-0.020672 max=0.027149 Jy/beam
! Clean residual mean=-0.002149 rms=0.005391 Jy/beam
! Combined flux in latest and established models = 2.74286 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 79 components and 2.74286 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.353044Jy  sigma=0.002468
! Fit after  self-cal, rms=0.352491Jy  sigma=0.002459
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.63     KK        1.00     KP        0.99     LA        0.97     
!   MC        1.08     MK        1.05     NY        1.00     ON        0.98     
!   OV        0.99     PT        1.03     SC        1.04     TS        0.96     
!   WF        0.98     WZ        1.04     GN        0.97     NL        0.98     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        1.04     HH       14.95     
!   HN        1.08     KK        0.96     KP        1.00     LA        1.00     
!   MC        1.00     MK        0.99     NY        1.00     ON        1.05     
!   OV        0.98     PT        0.99     SC        1.02     TS        0.95     
!   WF        1.01     WZ        1.00     GN        1.14     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.96     GC        0.97     HH        1.00*    
!   HN        1.15     KK        0.97     KP        0.96     LA        0.96     
!   MC        1.98     MK        0.99     NY        0.96     ON        1.03     
!   OV        0.97     PT        0.98     SC        1.05     TS        1.10     
!   WF        1.07     WZ        1.30     GN        0.97     NL        0.97     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.08     FD        1.12     GC        1.14     HH        1.29     
!   HN        1.00     KK        1.00*    KP        1.52     LA        1.03     
!   MC        1.00     MK        1.00*    NY        1.05     ON        2.75     
!   OV        1.00*    PT        1.06     SC        1.12     TS        3.97     
!   WF        0.97     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        0.98     GC        0.98     HH        1.00*    
!   HN        1.33     KK        1.02     KP        1.00     LA        1.00     
!   MC        1.00*    MK        1.02     NY        1.00     ON        1.00     
!   OV        0.97     PT        0.99     SC        1.17     TS        0.97     
!   WF        1.00     WZ        1.00*    GN        1.01     NL        0.99     
! 
!  A total of 57 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.07     FD        1.00*    GC        0.95     HH        0.75     
!   HN        1.00*    KK        1.23     KP        1.00*    LA        1.00*    
!   MC        0.92     MK        1.00*    NY        0.93     ON        0.95     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.23     
!   WF        2.96     WZ        0.84     GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        0.96     HH        1.00*    
!   HN        1.61     KK        1.00     KP        0.94     LA        0.96     
!   MC        1.04     MK        1.05     NY        0.97     ON        0.96     
!   OV        0.99     PT        1.01     SC        0.99     TS        0.94     
!   WF        0.98     WZ        1.01     GN        0.98     NL        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GC        0.99     HH       15.00     
!   HN        1.07     KK        0.94     KP        0.95     LA        1.00     
!   MC        1.00     MK        0.99     NY        1.00     ON        1.04     
!   OV        0.98     PT        0.98     SC        0.97     TS        0.95     
!   WF        1.01     WZ        0.98     GN        1.14     NL        0.99     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.96     GC        0.93     HH        1.00*    
!   HN        1.13     KK        0.97     KP        0.92     LA        0.95     
!   MC        1.97     MK        1.00     NY        0.96     ON        1.03     
!   OV        0.96     PT        0.97     SC        1.00     TS        1.08     
!   WF        1.06     WZ        1.24     GN        0.97     NL        0.97     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.08     FD        1.12     GC        1.09     HH        2.06     
!   HN        0.99     KK        1.00*    KP        1.52     LA        1.02     
!   MC        0.99     MK        1.00*    NY        1.04     ON        1.13     
!   OV        1.00*    PT        1.05     SC        1.05     TS        1.00*    
!   WF        0.98     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        0.98     GC        0.94     HH        1.00*    
!   HN        1.33     KK        1.00     KP        0.95     LA        0.99     
!   MC        1.00*    MK        1.01     NY        0.99     ON        0.98     
!   OV        0.97     PT        0.98     SC        1.13     TS        0.96     
!   WF        1.02     WZ        1.00*    GN        1.00     NL        0.99     
! 
!  A total of 57 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.08     FD        1.00*    GC        0.91     HH        0.77     
!   HN        1.00*    KK        1.27     KP        1.00*    LA        1.00*    
!   MC        0.91     MK        1.00*    NY        0.94     ON        0.93     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.22     
!   WF        6.86     WZ        0.80     GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.99     GC        0.97     HH        1.00*    
!   HN        1.67     KK        0.99     KP        0.95     LA        0.95     
!   MC        1.00     MK        1.03     NY        0.94     ON        0.94     
!   OV        0.97     PT        1.02     SC        0.98     TS        0.96     
!   WF        0.98     WZ        1.02     GN        0.97     NL        0.96     
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.97     GC        1.02     HH       12.17     
!   HN        1.08     KK        0.94     KP        0.96     LA        0.99     
!   MC        0.96     MK        0.98     NY        0.96     ON        1.04     
!   OV        0.97     PT        0.99     SC        0.95     TS        0.94     
!   WF        1.00     WZ        0.98     GN        1.13     NL        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.95     GC        0.94     HH        1.00*    
!   HN        1.13     KK        0.96     KP        0.93     LA        0.94     
!   MC        1.98     MK        0.98     NY        0.92     ON        1.02     
!   OV        0.94     PT        0.97     SC        0.99     TS        1.09     
!   WF        1.03     WZ        1.29     GN        0.94     NL        0.95     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        1.11     GC        1.12     HH        1.21     
!   HN        0.99     KK        1.00*    KP        1.57     LA        1.01     
!   MC        0.96     MK        1.00*    NY        1.01     ON        2.16     
!   OV        1.00*    PT        1.04     SC        1.06     TS        1.00*    
!   WF        0.95     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.97     FD        0.98     GC        0.96     HH        1.00*    
!   HN        1.37     KK        1.00     KP        0.96     LA        0.98     
!   MC        1.00*    MK        1.00     NY        0.94     ON        0.98     
!   OV        0.96     PT        0.99     SC        1.15     TS        0.96     
!   WF        0.99     WZ        1.00*    GN        0.99     NL        0.97     
! 
!  A total of 57 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.04     FD        1.00*    GC        0.95     HH        0.74     
!   HN        1.00*    KK        1.04     KP        1.00*    LA        1.00*    
!   MC        0.89     MK        1.00*    NY        0.89     ON        0.94     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.24     
!   WF        3.36     WZ        0.80     GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        0.97     HH        1.00*    
!   HN        1.76     KK        0.99     KP        0.93     LA        0.95     
!   MC        1.06     MK        1.00     NY        0.99     ON        0.97     
!   OV        0.97     PT        1.01     SC        0.98     TS        0.96     
!   WF        0.96     WZ        1.03     GN        0.97     NL        0.97     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        1.02     HH        9.81     
!   HN        1.09     KK        0.94     KP        0.95     LA        0.99     
!   MC        0.97     MK        0.94     NY        0.99     ON        1.03     
!   OV        0.96     PT        0.98     SC        0.94     TS        0.94     
!   WF        0.99     WZ        0.97     GN        1.13     NL        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.94     GC        0.94     HH        1.00*    
!   HN        1.19     KK        0.96     KP        0.91     LA        0.94     
!   MC        2.11     MK        0.95     NY        0.95     ON        1.02     
!   OV        0.94     PT        0.98     SC        0.99     TS        1.07     
!   WF        1.03     WZ        1.23     GN        0.95     NL        0.97     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        1.11     GC        1.13     HH        1.24     
!   HN        1.00     KK        1.00*    KP        1.53     LA        1.02     
!   MC        0.97     MK        1.00*    NY        1.04     ON        1.12     
!   OV        1.00*    PT        1.02     SC        1.05     TS        1.00*    
!   WF        0.95     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        0.97     GC        0.96     HH        1.00*    
!   HN        1.41     KK        1.00     KP        0.94     LA        0.99     
!   MC        1.00*    MK        0.96     NY        0.98     ON        0.98     
!   OV        0.95     PT        0.98     SC        1.11     TS        0.95     
!   WF        1.01     WZ        1.00*    GN        0.99     NL        0.99     
! 
!  A total of 57 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.09     FD        1.00*    GC        0.94     HH        0.79     
!   HN        1.00*    KK        1.20     KP        1.00*    LA        1.00*    
!   MC        0.90     MK        1.00*    NY        0.91     ON        0.92     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.21     
!   WF        2.39     WZ        0.83     GN        1.00*    NL        1.00*    
! 
! 
! Fit before self-cal, rms=0.352491Jy  sigma=0.002459
! Fit after  self-cal, rms=0.522017Jy  sigma=0.001664
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Estimated beam: bmin=0.6532 mas, bmaj=0.8982 mas, bpa=-15.32 degrees
! Estimated noise=233.776 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.00976372 Jy
! Component: 100  -  total flux cleaned = 0.0126227 Jy
! Component: 150  -  total flux cleaned = 0.0158536 Jy
! Component: 200  -  total flux cleaned = 0.0179332 Jy
! Total flux subtracted in 200 components = 0.0179332 Jy
! Clean residual min=-0.014377 max=0.015478 Jy/beam
! Clean residual mean=0.000990 rms=0.003243 Jy/beam
! Combined flux in latest and established models = 2.76079 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 103 components and 2.76079 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.521186Jy  sigma=0.001645
! Fit after  self-cal, rms=0.521617Jy  sigma=0.001643
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
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.521617Jy  sigma=0.001643
! Fit after  self-cal, rms=0.497688Jy  sigma=0.001421
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Estimated beam: bmin=0.6532 mas, bmaj=0.8996 mas, bpa=-15.14 degrees
! Estimated noise=234.693 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00429907 Jy
! Component: 100  -  total flux cleaned = -0.00278218 Jy
! Component: 150  -  total flux cleaned = -0.00179599 Jy
! Component: 200  -  total flux cleaned = -0.000622885 Jy
! Total flux subtracted in 200 components = -0.000622885 Jy
! Clean residual min=-0.004752 max=0.012540 Jy/beam
! Clean residual mean=0.001065 rms=0.002222 Jy/beam
! Combined flux in latest and established models = 2.76017 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 111 components and 2.76017 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.497136Jy  sigma=0.001407
! Fit after  self-cal, rms=0.496813Jy  sigma=0.001406
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
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, -5.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0133212 Jy
! Component: 100  -  total flux cleaned = 0.0185611 Jy
! Component: 150  -  total flux cleaned = 0.0209109 Jy
! Component: 200  -  total flux cleaned = 0.0230131 Jy
! Total flux subtracted in 200 components = 0.0230131 Jy
! Clean residual min=-0.004458 max=0.008863 Jy/beam
! Clean residual mean=0.000846 rms=0.001837 Jy/beam
! Combined flux in latest and established models = 2.78319 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 130 components and 2.78319 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.496399Jy  sigma=0.001388
! Fit after  self-cal, rms=0.496326Jy  sigma=0.001388
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Added new window around map position (0.4, -6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00897801 Jy
! Component: 100  -  total flux cleaned = 0.0102583 Jy
! Component: 150  -  total flux cleaned = 0.0118895 Jy
! Component: 200  -  total flux cleaned = 0.0132006 Jy
! Total flux subtracted in 200 components = 0.0132006 Jy
! Clean residual min=-0.004323 max=0.007186 Jy/beam
! Clean residual mean=0.000731 rms=0.001679 Jy/beam
! Combined flux in latest and established models = 2.79639 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 151 components and 2.79639 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.496091Jy  sigma=0.001379
! Fit after  self-cal, rms=0.496065Jy  sigma=0.001379
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
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.496065Jy  sigma=0.001379
! Fit after  self-cal, rms=0.549861Jy  sigma=0.001340
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Estimated beam: bmin=0.6529 mas, bmaj=0.9004 mas, bpa=-15.08 degrees
! Estimated noise=234.523 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000849044 Jy
! Component: 100  -  total flux cleaned = 0.00135452 Jy
! Component: 150  -  total flux cleaned = 0.00290583 Jy
! Component: 200  -  total flux cleaned = 0.00393769 Jy
! Total flux subtracted in 200 components = 0.00393769 Jy
! Clean residual min=-0.003875 max=0.007131 Jy/beam
! Clean residual mean=0.000733 rms=0.001417 Jy/beam
! Combined flux in latest and established models = 2.80032 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 164 components and 2.80032 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.549673Jy  sigma=0.001333
! Fit after  self-cal, rms=0.549592Jy  sigma=0.001333
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
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 (1.8, -10.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00662662 Jy
! Component: 100  -  total flux cleaned = 0.0092015 Jy
! Component: 150  -  total flux cleaned = 0.0103783 Jy
! Component: 200  -  total flux cleaned = 0.0114967 Jy
! Total flux subtracted in 200 components = 0.0114967 Jy
! Clean residual min=-0.003517 max=0.005143 Jy/beam
! Clean residual mean=0.000632 rms=0.001262 Jy/beam
! Combined flux in latest and established models = 2.81182 Jy
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 187 components and 2.81182 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.549400Jy  sigma=0.001327
! Fit after  self-cal, rms=0.549375Jy  sigma=0.001327
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.549375Jy  sigma=0.001327
! Fit after  self-cal, rms=0.549146Jy  sigma=0.001326
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Estimated beam: bmin=2.379 mas, bmaj=2.478 mas, bpa=19.18 degrees
! Estimated noise=352.881 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0137867 Jy
! Component: 100  -  total flux cleaned = 0.0224638 Jy
! Component: 150  -  total flux cleaned = 0.0284189 Jy
! Component: 200  -  total flux cleaned = 0.0307937 Jy
! Total flux subtracted in 200 components = 0.0307937 Jy
! Clean residual min=-0.005318 max=0.008094 Jy/beam
! Clean residual mean=0.001542 rms=0.002304 Jy/beam
! Combined flux in latest and established models = 2.84261 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 207 components and 2.84261 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.549068Jy  sigma=0.001324
! Fit after  self-cal, rms=0.549038Jy  sigma=0.001324
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
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.00420112 Jy
! Component: 100  -  total flux cleaned = 0.00569868 Jy
! Component: 150  -  total flux cleaned = 0.00676249 Jy
! Component: 200  -  total flux cleaned = 0.00760269 Jy
! Total flux subtracted in 200 components = 0.00760269 Jy
! Clean residual min=-0.005169 max=0.007975 Jy/beam
! Clean residual mean=0.001309 rms=0.002261 Jy/beam
! Combined flux in latest and established models = 2.85022 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 213 components and 2.85022 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.549018Jy  sigma=0.001324
! Fit after  self-cal, rms=0.549004Jy  sigma=0.001324
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
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 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Estimated beam: bmin=0.6527 mas, bmaj=0.9006 mas, bpa=-15.05 degrees
! Estimated noise=234.427 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6527 x 0.9006 at -15.05 degrees (North through East)
! Clean map  min=-0.0025327  max=1.7993 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.549004Jy  sigma=0.001324
! Fit after  self-cal, rms=1.202174Jy  sigma=0.001243
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Estimated beam: bmin=0.6527 mas, bmaj=0.9004 mas, bpa=-15.04 degrees
! Estimated noise=234.451 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0016465 Jy
! Component: 100  -  total flux cleaned = -0.00146733 Jy
! Component: 150  -  total flux cleaned = -0.00130434 Jy
! Component: 200  -  total flux cleaned = -0.00115506 Jy
! Total flux subtracted in 200 components = -0.00115506 Jy
! Clean residual min=-0.003440 max=0.004633 Jy/beam
! Clean residual mean=0.000515 rms=0.001036 Jy/beam
! Combined flux in latest and established models = 2.84906 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 216 components and 2.84906 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.202119Jy  sigma=0.001239
! Fit after  self-cal, rms=1.202064Jy  sigma=0.001239
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Added new window around map position (6.2, -4.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00272238 Jy
! Component: 100  -  total flux cleaned = 0.00286731 Jy
! Component: 150  -  total flux cleaned = 0.00314466 Jy
! Component: 200  -  total flux cleaned = 0.00340876 Jy
! Total flux subtracted in 200 components = 0.00340876 Jy
! Clean residual min=-0.003060 max=0.003906 Jy/beam
! Clean residual mean=0.000478 rms=0.000995 Jy/beam
! Combined flux in latest and established models = 2.85247 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 226 components and 2.85247 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.202017Jy  sigma=0.001237
! Fit after  self-cal, rms=1.201996Jy  sigma=0.001237
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.201996Jy  sigma=0.001237
! Fit after  self-cal, rms=1.202028Jy  sigma=0.001236
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 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Estimated beam: bmin=0.5377 mas, bmaj=0.6965 mas, bpa=-8.458 degrees
! Estimated noise=485.154 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.37058 Jy
! Component: 100  -  total flux cleaned = 1.70018 Jy
! Component: 150  -  total flux cleaned = 1.87476 Jy
! Component: 200  -  total flux cleaned = 1.98734 Jy
! Total flux subtracted in 200 components = 1.98734 Jy
! Clean residual min=-0.011045 max=0.063153 Jy/beam
! Clean residual mean=0.000306 rms=0.004740 Jy/beam
! Combined flux in latest and established models = 1.98734 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 13 model components to the UV plane model.
! The established model now contains 13 components and 1.98734 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Estimated beam: bmin=0.6525 mas, bmaj=0.9007 mas, bpa=-15.01 degrees
! Estimated noise=234.415 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.190135 Jy
! Component: 100  -  total flux cleaned = 0.315663 Jy
! Component: 150  -  total flux cleaned = 0.4084 Jy
! Component: 200  -  total flux cleaned = 0.479334 Jy
! Total flux subtracted in 200 components = 0.479334 Jy
! Clean residual min=-0.005563 max=0.042303 Jy/beam
! Clean residual mean=0.003785 rms=0.007605 Jy/beam
! Combined flux in latest and established models = 2.46667 Jy
! Adding 65 model components to the UV plane model.
! The established model now contains 67 components and 2.46667 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Added new window around map position (-0.2, -1.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0556764 Jy
! Component: 100  -  total flux cleaned = 0.100315 Jy
! Component: 150  -  total flux cleaned = 0.136948 Jy
! Component: 200  -  total flux cleaned = 0.167263 Jy
! Total flux subtracted in 200 components = 0.167263 Jy
! Clean residual min=-0.003358 max=0.019773 Jy/beam
! Clean residual mean=0.002382 rms=0.003986 Jy/beam
! Combined flux in latest and established models = 2.63394 Jy
! Adding 80 model components to the UV plane model.
! The established model now contains 125 components and 2.63394 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Added new window around map position (1.4, -3.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0255938 Jy
! Component: 100  -  total flux cleaned = 0.047245 Jy
! Component: 150  -  total flux cleaned = 0.065754 Jy
! Component: 200  -  total flux cleaned = 0.0817281 Jy
! Total flux subtracted in 200 components = 0.0817281 Jy
! Clean residual min=-0.002602 max=0.010718 Jy/beam
! Clean residual mean=0.001687 rms=0.002487 Jy/beam
! Combined flux in latest and established models = 2.71567 Jy
! Adding 92 model components to the UV plane model.
! The established model now contains 185 components and 2.71566 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Added new window around map position (-0.6, -6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0140299 Jy
! Component: 100  -  total flux cleaned = 0.0263589 Jy
! Component: 150  -  total flux cleaned = 0.0373418 Jy
! Component: 200  -  total flux cleaned = 0.0471752 Jy
! Total flux subtracted in 200 components = 0.0471752 Jy
! Clean residual min=-0.002213 max=0.007286 Jy/beam
! Clean residual mean=0.001280 rms=0.001776 Jy/beam
! Combined flux in latest and established models = 2.76284 Jy
! Adding 85 model components to the UV plane model.
! The established model now contains 229 components and 2.76284 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Estimated beam: bmin=2.379 mas, bmaj=2.477 mas, bpa=19 degrees
! Estimated noise=353.066 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0263807 Jy
! Component: 100  -  total flux cleaned = 0.0449772 Jy
! Component: 150  -  total flux cleaned = 0.0590163 Jy
! Component: 200  -  total flux cleaned = 0.0700864 Jy
! Total flux subtracted in 200 components = 0.0700864 Jy
! Clean residual min=-0.004244 max=0.008572 Jy/beam
! Clean residual mean=0.002426 rms=0.002622 Jy/beam
! Combined flux in latest and established models = 2.83293 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.00888707 Jy
! Component: 100  -  total flux cleaned = 0.0161006 Jy
! Component: 150  -  total flux cleaned = 0.0219774 Jy
! Component: 200  -  total flux cleaned = 0.0267772 Jy
! Total flux subtracted in 200 components = 0.0267772 Jy
! Clean residual min=-0.004263 max=0.006552 Jy/beam
! Clean residual mean=0.001534 rms=0.001968 Jy/beam
! Combined flux in latest and established models = 2.8597 Jy
! Adding 137 model components to the UV plane model.
! The established model now contains 335 components and 2.8597 Jy
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! Estimated beam: bmin=0.6525 mas, bmaj=0.9007 mas, bpa=-15.01 degrees
! Estimated noise=234.415 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00201665 Jy
! Component: 100  -  total flux cleaned = 0.00308088 Jy
! Component: 150  -  total flux cleaned = 0.00351013 Jy
! Component: 200  -  total flux cleaned = 0.00420488 Jy
! Total flux subtracted in 200 components = 0.00420488 Jy
! Clean residual min=-0.003006 max=0.003811 Jy/beam
! Clean residual mean=0.000395 rms=0.000885 Jy/beam
! Combined flux in latest and established models = 2.86391 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 349 components and 2.86391 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.201819Jy  sigma=0.001232
! Fit after  self-cal, rms=1.202317Jy  sigma=0.001230
wmodel J2202+4216_X_1999_12_20_pus_map.mod
! Writing 349 model components to file: J2202+4216_X_1999_12_20_pus_map.mod
wobs J2202+4216_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J2202+4216_X_1999_12_20_pus_uvs.fits
wwins J2202+4216_X_1999_12_20_pus_map.win
! wwins: Wrote 12 windows to J2202+4216_X_1999_12_20_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00177671 Jy
! Component: 100  -  total flux cleaned = 0.00338639 Jy
! Component: 150  -  total flux cleaned = 0.0049019 Jy
! Component: 200  -  total flux cleaned = 0.00634733 Jy
! Component: 250  -  total flux cleaned = 0.00757568 Jy
! Component: 300  -  total flux cleaned = 0.00876926 Jy
! Component: 350  -  total flux cleaned = 0.00993062 Jy
! Component: 400  -  total flux cleaned = 0.0110618 Jy
! Component: 450  -  total flux cleaned = 0.0120668 Jy
! Component: 500  -  total flux cleaned = 0.0130993 Jy
! Component: 550  -  total flux cleaned = 0.0140619 Jy
! Component: 600  -  total flux cleaned = 0.015005 Jy
! Component: 650  -  total flux cleaned = 0.0159289 Jy
! Component: 700  -  total flux cleaned = 0.0168803 Jy
! Component: 750  -  total flux cleaned = 0.0177695 Jy
! Component: 800  -  total flux cleaned = 0.0185997 Jy
! Component: 850  -  total flux cleaned = 0.0194159 Jy
! Component: 900  -  total flux cleaned = 0.0202187 Jy
! Component: 950  -  total flux cleaned = 0.0209265 Jy
! Component: 1000  -  total flux cleaned = 0.0216654 Jy
! Total flux subtracted in 1024 components = 0.0219093 Jy
! Clean residual min=-0.002035 max=0.002392 Jy/beam
! Clean residual mean=0.000199 rms=0.000779 Jy/beam
! Combined flux in latest and established models = 2.88582 Jy
keep
! Adding 71 model components to the UV plane model.
! The established model now contains 418 components and 2.88582 Jy
![Exited script file: muppet]
wmap "J2202+4216_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6525 x 0.9007 at -15.01 degrees (North through East)
! Clean map  min=-0.0022512  max=1.8022 Jy/beam
! Writing clean map to FITS file: J2202+4216_X_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.80223 
invert
! Inverting map 
! Your choice of large map pixels excluded 3.41% of the data.
!  The x-axis pixel size should ideally be below 0.154 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1412 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000776999 
device "J2202+4216_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J2202+4216_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.12934 0.12934 0.258679 0.517359 1.03472 2.06943 4.13887 8.27774 16.5555 33.111 66.2219
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.802 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6525 x 0.9007 at -15.01 degrees (North through East)
! Clean map  min=-0.0022512  max=1.8022 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2202+4216_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J2202+4216_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2202+4216_X_1999_12_20_pus_uvs.log closed on Tue Dec 18 11:40:45 2007