! Started logfile: J0927+3902_X_1999_12_20_pus_uvs.log on Fri Dec 14 17:17:01 2007
obs J0927+3902_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0927+3902_X_1999_12_20_pus_uva.fits
! AN table 1: 164 integrations on 190 of 190 possible baselines.
! AN table 2: 155 integrations on 190 of 190 possible baselines.
! AN table 3: 170 integrations on 190 of 190 possible baselines.
! AN table 4: 47 integrations on 190 of 190 possible baselines.
! AN table 5: 73 integrations on 190 of 190 possible baselines.
! AN table 6: 76 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.207561 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0927+3902
! 
! 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 2418 lines of history.
! 
! Reading 108056 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 J0927+3902_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 2034 telescope corrections were flagged in sub-array 1.
!  A total of 2778 telescope corrections were flagged in sub-array 2.
!  A total of 2324 telescope corrections were flagged in sub-array 3.
!  A total of 401 telescope corrections were flagged in sub-array 4.
!  A total of 783 telescope corrections were flagged in sub-array 5.
!  A total of 549 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 2034 telescope corrections were flagged in sub-array 1.
!  A total of 2778 telescope corrections were flagged in sub-array 2.
!  A total of 2324 telescope corrections were flagged in sub-array 3.
!  A total of 401 telescope corrections were flagged in sub-array 4.
!  A total of 783 telescope corrections were flagged in sub-array 5.
!  A total of 549 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 2033 telescope corrections were flagged in sub-array 1.
!  A total of 2778 telescope corrections were flagged in sub-array 2.
!  A total of 2324 telescope corrections were flagged in sub-array 3.
!  A total of 401 telescope corrections were flagged in sub-array 4.
!  A total of 783 telescope corrections were flagged in sub-array 5.
!  A total of 549 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 2034 telescope corrections were flagged in sub-array 1.
!  A total of 2778 telescope corrections were flagged in sub-array 2.
!  A total of 2324 telescope corrections were flagged in sub-array 3.
!  A total of 401 telescope corrections were flagged in sub-array 4.
!  A total of 783 telescope corrections were flagged in sub-array 5.
!  A total of 549 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=5.329065Jy  sigma=0.050925
! Fit after  self-cal, rms=4.650887Jy  sigma=0.045307
! 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 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Estimated beam: bmin=0.54 mas, bmaj=0.7214 mas, bpa=-0.0396 degrees
! Estimated noise=514.751 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 = 3.3129 Jy
! Component: 100  -  total flux cleaned = 4.60281 Jy
! Total flux subtracted in 100 components = 4.60281 Jy
! Clean residual min=-0.116863 max=0.685819 Jy/beam
! Clean residual mean=0.003090 rms=0.047769 Jy/beam
! Combined flux in latest and established models = 4.60281 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 4.60281 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.165253Jy  sigma=0.021985
! Fit after  self-cal, rms=2.164778Jy  sigma=0.021984
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.865752 Jy
! Component: 100  -  total flux cleaned = 1.48855 Jy
! Total flux subtracted in 100 components = 1.48855 Jy
! Clean residual min=-0.097569 max=0.355209 Jy/beam
! Clean residual mean=0.001858 rms=0.033219 Jy/beam
! Combined flux in latest and established models = 6.09136 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 15 components and 6.09136 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.446250Jy  sigma=0.014660
! Fit after  self-cal, rms=1.444878Jy  sigma=0.014654
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.457977 Jy
! Component: 100  -  total flux cleaned = 0.799766 Jy
! Total flux subtracted in 100 components = 0.799766 Jy
! Clean residual min=-0.096147 max=0.254295 Jy/beam
! Clean residual mean=0.001204 rms=0.027618 Jy/beam
! Combined flux in latest and established models = 6.89113 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 21 components and 6.89113 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.146974Jy  sigma=0.011400
! Fit after  self-cal, rms=1.146506Jy  sigma=0.011398
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Added new window around map position (-0.8, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.281502 Jy
! Component: 100  -  total flux cleaned = 0.49959 Jy
! Total flux subtracted in 100 components = 0.49959 Jy
! Clean residual min=-0.100597 max=0.167751 Jy/beam
! Clean residual mean=0.000796 rms=0.025065 Jy/beam
! Combined flux in latest and established models = 7.39072 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 27 components and 7.39072 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.006852Jy  sigma=0.009789
! Fit after  self-cal, rms=1.004369Jy  sigma=0.009776
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Added new window around map position (-2.2, 0.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.192832 Jy
! Component: 100  -  total flux cleaned = 0.345117 Jy
! Total flux subtracted in 100 components = 0.345117 Jy
! Clean residual min=-0.099372 max=0.092358 Jy/beam
! Clean residual mean=0.000530 rms=0.023560 Jy/beam
! Combined flux in latest and established models = 7.73584 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 29 components and 7.73584 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.937822Jy  sigma=0.008944
! Fit after  self-cal, rms=0.935779Jy  sigma=0.008932
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 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 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Estimated beam: bmin=0.6376 mas, bmaj=0.9064 mas, bpa=-4.958 degrees
! Estimated noise=260.367 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.262712 Jy
! Component: 100  -  total flux cleaned = 0.429724 Jy
! Component: 150  -  total flux cleaned = 0.546309 Jy
! Component: 200  -  total flux cleaned = 0.630015 Jy
! Total flux subtracted in 200 components = 0.630015 Jy
! Clean residual min=-0.077482 max=0.088402 Jy/beam
! Clean residual mean=-0.001493 rms=0.020443 Jy/beam
! Combined flux in latest and established models = 8.36585 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 46 components and 8.36585 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.867671Jy  sigma=0.008003
! Fit after  self-cal, rms=0.864317Jy  sigma=0.007976
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.56     GC        1.04     HH        1.00*    
!   HN        1.03     KK        0.97     KP        1.00     LA        1.07     
!   MC        0.90     MK        1.01     NY        1.01     ON        1.00     
!   OV        0.96     PT        1.10     SC        1.05     TS        1.03     
!   WF        1.01     WZ        0.96     GN        1.05     NL        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.98     GC        0.96     HH        1.00*    
!   HN        0.91     KK        0.98     KP        0.96     LA        0.98     
!   MC        1.26     MK        0.97     NY        0.97     ON        1.06     
!   OV        0.96     PT        1.00     SC        2.46     TS        0.94     
!   WF        1.00*    WZ        1.05     GN        1.00*    NL        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.96     GC        1.05     HH        1.00*    
!   HN        0.92     KK        1.09     KP        0.97     LA        0.93     
!   MC        1.02     MK        1.03     NY        0.95     ON        0.97     
!   OV        0.95     PT        0.98     SC        1.00     TS        1.00*    
!   WF        1.09     WZ        1.00     GN        0.91     NL        0.98     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.96     GC        0.99     HH        1.00*    
!   HN        0.96     KK        1.01     KP        0.98     LA        0.97     
!   MC        1.00*    MK        0.99     NY        0.95     ON        1.22     
!   OV        0.96     PT        1.01     SC        1.00*    TS        0.94     
!   WF        0.96     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        0.99     GC        0.98     HH        1.00*    
!   HN        0.93     KK        0.96     KP        0.97     LA        0.98     
!   MC        1.28     MK        1.00     NY        0.97     ON        1.00     
!   OV        0.97     PT        0.98     SC        1.03     TS        4.27     
!   WF        1.02     WZ        1.15     GN        0.98     NL        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.96     FD        0.97     GC        0.98     HH        1.83     
!   HN        1.00     KK        1.00*    KP        1.00     LA        0.98     
!   MC        0.90     MK        1.00*    NY        1.01     ON        0.93     
!   OV        0.98     PT        0.97     SC        1.01     TS        1.00*    
!   WF        1.12     WZ        0.88     GN        0.95     NL        0.99     
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.57     GC        0.99     HH        1.00*    
!   HN        1.03     KK        0.97     KP        0.95     LA        1.07     
!   MC        0.90     MK        1.01     NY        1.02     ON        1.00     
!   OV        0.97     PT        1.09     SC        1.00     TS        1.02     
!   WF        1.00     WZ        0.96     GN        1.05     NL        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.98     GC        0.91     HH        1.00*    
!   HN        0.90     KK        0.97     KP        0.92     LA        0.98     
!   MC        1.07     MK        0.98     NY        0.97     ON        1.05     
!   OV        0.96     PT        0.98     SC        2.42     TS        0.92     
!   WF        1.00*    WZ        1.03     GN        1.00*    NL        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.96     GC        1.00     HH        1.00*    
!   HN        0.91     KK        1.09     KP        0.92     LA        0.93     
!   MC        1.02     MK        1.03     NY        0.95     ON        0.97     
!   OV        0.95     PT        0.98     SC        0.95     TS        1.00*    
!   WF        1.10     WZ        1.00     GN        0.93     NL        0.99     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.97     GC        0.94     HH        1.00*    
!   HN        0.96     KK        1.01     KP        0.93     LA        0.96     
!   MC        1.00*    MK        0.99     NY        0.94     ON        1.21     
!   OV        0.97     PT        1.00     SC        1.00*    TS        0.93     
!   WF        0.97     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        0.99     GC        0.94     HH        1.00*    
!   HN        0.92     KK        0.96     KP        0.92     LA        0.97     
!   MC        1.28     MK        1.00     NY        0.96     ON        0.99     
!   OV        0.97     PT        0.98     SC        0.98     TS        4.28     
!   WF        1.02     WZ        1.14     GN        0.96     NL        0.97     
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.96     FD        0.97     GC        0.94     HH        1.74     
!   HN        0.99     KK        1.00*    KP        0.95     LA        0.98     
!   MC        0.89     MK        1.00*    NY        1.00     ON        0.93     
!   OV        0.99     PT        0.96     SC        0.96     TS        1.00*    
!   WF        1.12     WZ        0.85     GN        0.96     NL        0.99     
! 
! 
! Correcting IF 3.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.58     GC        1.03     HH        1.00*    
!   HN        1.06     KK        0.94     KP        0.97     LA        1.06     
!   MC        0.88     MK        0.99     NY        0.98     ON        1.01     
!   OV        0.96     PT        1.09     SC        1.01     TS        1.06     
!   WF        0.97     WZ        0.97     GN        1.05     NL        0.99     
! 
!  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.95     HH        1.00*    
!   HN        0.92     KK        0.98     KP        0.94     LA        0.98     
!   MC        1.06     MK        0.97     NY        0.95     ON        1.06     
!   OV        0.96     PT        0.99     SC        2.61     TS        0.92     
!   WF        1.00*    WZ        1.06     GN        1.00*    NL        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        0.96     GC        1.03     HH        1.00*    
!   HN        0.93     KK        1.10     KP        0.94     LA        0.93     
!   MC        1.01     MK        1.03     NY        0.92     ON        0.97     
!   OV        0.95     PT        0.99     SC        0.95     TS        1.00*    
!   WF        1.08     WZ        1.01     GN        0.93     NL        0.99     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.97     GC        0.98     HH        1.00*    
!   HN        0.98     KK        1.00     KP        0.95     LA        0.96     
!   MC        1.00*    MK        0.99     NY        0.90     ON        1.22     
!   OV        0.96     PT        1.00     SC        1.00*    TS        0.94     
!   WF        0.97     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        1.00     GC        0.98     HH        1.00*    
!   HN        0.94     KK        0.96     KP        0.95     LA        0.97     
!   MC        1.29     MK        1.00     NY        0.94     ON        1.00     
!   OV        0.97     PT        0.99     SC        0.98     TS        3.93     
!   WF        1.02     WZ        1.15     GN        1.00     NL        0.98     
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.94     FD        0.98     GC        0.97     HH        1.74     
!   HN        1.01     KK        1.00*    KP        0.97     LA        0.99     
!   MC        0.86     MK        1.00*    NY        0.97     ON        0.94     
!   OV        0.98     PT        0.98     SC        0.97     TS        1.00*    
!   WF        1.11     WZ        0.88     GN        0.95     NL        1.00     
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.60     GC        1.04     HH        1.00*    
!   HN        1.07     KK        0.94     KP        0.97     LA        1.07     
!   MC        0.89     MK        0.96     NY        1.02     ON        1.03     
!   OV        0.96     PT        1.09     SC        1.01     TS        1.05     
!   WF        1.01     WZ        0.97     GN        1.07     NL        1.00     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.99     GC        0.96     HH        1.00*    
!   HN        0.93     KK        0.98     KP        0.93     LA        0.99     
!   MC        1.07     MK        0.94     NY        0.99     ON        1.06     
!   OV        0.95     PT        0.98     SC        2.64     TS        0.91     
!   WF        1.00*    WZ        1.04     GN        1.00*    NL        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.97     GC        1.04     HH        1.00*    
!   HN        0.93     KK        1.09     KP        0.93     LA        0.94     
!   MC        1.07     MK        1.00     NY        0.96     ON        0.98     
!   OV        0.95     PT        1.00     SC        0.94     TS        1.00*    
!   WF        1.09     WZ        1.01     GN        0.94     NL        1.00     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.97     GC        0.98     HH        1.00*    
!   HN        1.00     KK        1.01     KP        0.94     LA        0.97     
!   MC        1.00*    MK        0.95     NY        0.94     ON        1.60     
!   OV        0.96     PT        0.99     SC        1.00*    TS        0.94     
!   WF        0.98     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        1.00     GC        0.98     HH        1.00*    
!   HN        0.94     KK        0.96     KP        0.94     LA        0.98     
!   MC        1.33     MK        0.96     NY        0.97     ON        1.01     
!   OV        0.97     PT        0.99     SC        0.98     TS        4.78     
!   WF        1.02     WZ        1.15     GN        0.97     NL        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.97     FD        0.97     GC        0.99     HH        1.72     
!   HN        1.02     KK        1.00*    KP        0.96     LA        0.99     
!   MC        0.89     MK        1.00*    NY        1.01     ON        0.94     
!   OV        0.98     PT        0.98     SC        0.97     TS        1.00*    
!   WF        1.11     WZ        0.89     GN        0.97     NL        1.00     
! 
! 
! Fit before self-cal, rms=0.864317Jy  sigma=0.007976
! Fit after  self-cal, rms=0.536296Jy  sigma=0.003264
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Estimated beam: bmin=0.6423 mas, bmaj=0.9219 mas, bpa=-6.601 degrees
! Estimated noise=260.901 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 (-1.4, 0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0522084 Jy
! Component: 100  -  total flux cleaned = 0.0693935 Jy
! Component: 150  -  total flux cleaned = 0.0759664 Jy
! Component: 200  -  total flux cleaned = 0.0813497 Jy
! Total flux subtracted in 200 components = 0.0813496 Jy
! Clean residual min=-0.019045 max=0.024271 Jy/beam
! Clean residual mean=0.001102 rms=0.006110 Jy/beam
! Combined flux in latest and established models = 8.4472 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 59 components and 8.4472 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.524753Jy  sigma=0.003138
! Fit after  self-cal, rms=0.523311Jy  sigma=0.003119
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 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.523311Jy  sigma=0.003119
! Fit after  self-cal, rms=0.443536Jy  sigma=0.002486
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Estimated beam: bmin=0.6439 mas, bmaj=0.925 mas, bpa=-7.052 degrees
! Estimated noise=261.416 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0315754 Jy
! Component: 100  -  total flux cleaned = 0.0423605 Jy
! Component: 150  -  total flux cleaned = 0.0480116 Jy
! Component: 200  -  total flux cleaned = 0.0525968 Jy
! Total flux subtracted in 200 components = 0.0525968 Jy
! Clean residual min=-0.014671 max=0.026317 Jy/beam
! Clean residual mean=0.002122 rms=0.004279 Jy/beam
! Combined flux in latest and established models = 8.49979 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 61 components and 8.49979 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.437182Jy  sigma=0.002414
! Fit after  self-cal, rms=0.436434Jy  sigma=0.002404
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 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, 0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0052239 Jy
! Component: 100  -  total flux cleaned = 0.0101743 Jy
! Component: 150  -  total flux cleaned = 0.0136874 Jy
! Component: 200  -  total flux cleaned = 0.0155415 Jy
! Total flux subtracted in 200 components = 0.0155415 Jy
! Clean residual min=-0.012367 max=0.018216 Jy/beam
! Clean residual mean=0.002016 rms=0.004051 Jy/beam
! Combined flux in latest and established models = 8.51534 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 70 components and 8.51534 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.432996Jy  sigma=0.002365
! Fit after  self-cal, rms=0.432749Jy  sigma=0.002362
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Added new window around map position (4.4, 0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00503541 Jy
! Component: 100  -  total flux cleaned = 0.00924127 Jy
! Component: 150  -  total flux cleaned = 0.0134753 Jy
! Component: 200  -  total flux cleaned = 0.0168298 Jy
! Total flux subtracted in 200 components = 0.0168298 Jy
! Clean residual min=-0.013794 max=0.015118 Jy/beam
! Clean residual mean=0.001901 rms=0.003991 Jy/beam
! Combined flux in latest and established models = 8.53217 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 81 components and 8.53217 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.430564Jy  sigma=0.002341
! Fit after  self-cal, rms=0.430427Jy  sigma=0.002339
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 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.430427Jy  sigma=0.002339
! Fit after  self-cal, rms=0.427360Jy  sigma=0.002281
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Estimated beam: bmin=0.6441 mas, bmaj=0.9257 mas, bpa=-7.188 degrees
! Estimated noise=261.519 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.016083 Jy
! Component: 100  -  total flux cleaned = 0.0256932 Jy
! Component: 150  -  total flux cleaned = 0.0317577 Jy
! Component: 200  -  total flux cleaned = 0.0357104 Jy
! Total flux subtracted in 200 components = 0.0357104 Jy
! Clean residual min=-0.011227 max=0.017656 Jy/beam
! Clean residual mean=0.001839 rms=0.003772 Jy/beam
! Combined flux in latest and established models = 8.56788 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 91 components and 8.56788 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.425043Jy  sigma=0.002257
! Fit after  self-cal, rms=0.424967Jy  sigma=0.002256
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 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 (3.6, -1.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00890666 Jy
! Component: 100  -  total flux cleaned = 0.0145308 Jy
! Component: 150  -  total flux cleaned = 0.0186619 Jy
! Component: 200  -  total flux cleaned = 0.0220562 Jy
! Total flux subtracted in 200 components = 0.0220562 Jy
! Clean residual min=-0.012589 max=0.016595 Jy/beam
! Clean residual mean=0.001692 rms=0.003694 Jy/beam
! Combined flux in latest and established models = 8.58993 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 101 components and 8.58994 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.423373Jy  sigma=0.002246
! Fit after  self-cal, rms=0.423307Jy  sigma=0.002244
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Added new window around map position (-7.4, -9.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.015246 Jy
! Component: 100  -  total flux cleaned = 0.0219697 Jy
! Component: 150  -  total flux cleaned = 0.0274021 Jy
! Component: 200  -  total flux cleaned = 0.0309816 Jy
! Total flux subtracted in 200 components = 0.0309816 Jy
! Clean residual min=-0.012476 max=0.015139 Jy/beam
! Clean residual mean=0.001443 rms=0.003513 Jy/beam
! Combined flux in latest and established models = 8.62092 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 120 components and 8.62091 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.421930Jy  sigma=0.002235
! Fit after  self-cal, rms=0.421896Jy  sigma=0.002235
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Added new window around map position (5, 7.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0149393 Jy
! Component: 100  -  total flux cleaned = 0.0217582 Jy
! Component: 150  -  total flux cleaned = 0.0274822 Jy
! Component: 200  -  total flux cleaned = 0.0318313 Jy
! Total flux subtracted in 200 components = 0.0318313 Jy
! Clean residual min=-0.012448 max=0.014181 Jy/beam
! Clean residual mean=0.001190 rms=0.003300 Jy/beam
! Combined flux in latest and established models = 8.65274 Jy
! Performing phase self-cal
! Adding 48 model components to the UV plane model.
! The established model now contains 139 components and 8.65275 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.420692Jy  sigma=0.002227
! Fit after  self-cal, rms=0.420660Jy  sigma=0.002226
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Added new window around map position (-3.8, 1.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0104945 Jy
! Component: 100  -  total flux cleaned = 0.0139962 Jy
! Component: 150  -  total flux cleaned = 0.0165424 Jy
! Component: 200  -  total flux cleaned = 0.0186767 Jy
! Total flux subtracted in 200 components = 0.0186767 Jy
! Clean residual min=-0.012666 max=0.012516 Jy/beam
! Clean residual mean=0.001064 rms=0.003234 Jy/beam
! Combined flux in latest and established models = 8.67142 Jy
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 151 components and 8.67142 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.419628Jy  sigma=0.002220
! Fit after  self-cal, rms=0.419576Jy  sigma=0.002219
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 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.419576Jy  sigma=0.002219
! Fit after  self-cal, rms=0.419943Jy  sigma=0.002208
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Estimated beam: bmin=2.238 mas, bmaj=2.459 mas, bpa=29.76 degrees
! Estimated noise=410.205 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0284047 Jy
! Component: 100  -  total flux cleaned = 0.0494616 Jy
! Component: 150  -  total flux cleaned = 0.0660202 Jy
! Component: 200  -  total flux cleaned = 0.0794058 Jy
! Total flux subtracted in 200 components = 0.0794058 Jy
! Clean residual min=-0.020199 max=0.023721 Jy/beam
! Clean residual mean=0.002725 rms=0.007905 Jy/beam
! Combined flux in latest and established models = 8.75083 Jy
selfcal
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 182 components and 8.75083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.418960Jy  sigma=0.002209
! Fit after  self-cal, rms=0.418918Jy  sigma=0.002208
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 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.0122318 Jy
! Component: 100  -  total flux cleaned = 0.0218 Jy
! Component: 150  -  total flux cleaned = 0.0297708 Jy
! Component: 200  -  total flux cleaned = 0.0364926 Jy
! Total flux subtracted in 200 components = 0.0364926 Jy
! Clean residual min=-0.020690 max=0.021708 Jy/beam
! Clean residual mean=0.001678 rms=0.007634 Jy/beam
! Combined flux in latest and established models = 8.78732 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 193 components and 8.78732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.418787Jy  sigma=0.002213
! Fit after  self-cal, rms=0.418781Jy  sigma=0.002213
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 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 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Estimated beam: bmin=0.6442 mas, bmaj=0.926 mas, bpa=-7.276 degrees
! Estimated noise=261.533 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6442 x 0.926 at -7.276 degrees (North through East)
! Clean map  min=-0.0097621  max=5.0241 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.418781Jy  sigma=0.002213
! Fit after  self-cal, rms=0.782506Jy  sigma=0.001900
! Inverting map and beam 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Estimated beam: bmin=0.6446 mas, bmaj=0.9261 mas, bpa=-7.223 degrees
! Estimated noise=261.859 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00353585 Jy
! Component: 100  -  total flux cleaned = 0.00464488 Jy
! Component: 150  -  total flux cleaned = 0.0056629 Jy
! Component: 200  -  total flux cleaned = 0.00662285 Jy
! Total flux subtracted in 200 components = 0.00662285 Jy
! Clean residual min=-0.009582 max=0.012334 Jy/beam
! Clean residual mean=0.000524 rms=0.002970 Jy/beam
! Combined flux in latest and established models = 8.79395 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 196 components and 8.79395 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.782072Jy  sigma=0.001890
! Fit after  self-cal, rms=0.782059Jy  sigma=0.001890
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000448221 Jy
! Component: 100  -  total flux cleaned = 0.00044979 Jy
! Component: 150  -  total flux cleaned = 0.00129454 Jy
! Component: 200  -  total flux cleaned = 0.00156392 Jy
! Total flux subtracted in 200 components = 0.00156392 Jy
! Clean residual min=-0.009640 max=0.012267 Jy/beam
! Clean residual mean=0.000516 rms=0.002942 Jy/beam
! Combined flux in latest and established models = 8.79551 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 201 components and 8.79551 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.781702Jy  sigma=0.001883
! Fit after  self-cal, rms=0.781678Jy  sigma=0.001883
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.781678Jy  sigma=0.001883
! Fit after  self-cal, rms=0.784364Jy  sigma=0.001882
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 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Estimated beam: bmin=0.5461 mas, bmaj=0.741 mas, bpa=-5.041 degrees
! Estimated noise=526.206 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.3852 Jy
! Component: 100  -  total flux cleaned = 4.65008 Jy
! Component: 150  -  total flux cleaned = 5.46323 Jy
! Component: 200  -  total flux cleaned = 6.05513 Jy
! Total flux subtracted in 200 components = 6.05513 Jy
! Clean residual min=-0.048476 max=0.338166 Jy/beam
! Clean residual mean=0.002065 rms=0.023921 Jy/beam
! Combined flux in latest and established models = 6.05513 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 16 model components to the UV plane model.
! The established model now contains 16 components and 6.05513 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Estimated beam: bmin=0.6447 mas, bmaj=0.9263 mas, bpa=-7.244 degrees
! Estimated noise=261.919 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.8303 Jy
! Component: 100  -  total flux cleaned = 1.33852 Jy
! Component: 150  -  total flux cleaned = 1.67744 Jy
! Component: 200  -  total flux cleaned = 1.91208 Jy
! Total flux subtracted in 200 components = 1.91208 Jy
! Clean residual min=-0.025593 max=0.130514 Jy/beam
! Clean residual mean=0.006081 rms=0.017898 Jy/beam
! Combined flux in latest and established models = 7.96722 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 42 components and 7.96722 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.166716 Jy
! Component: 100  -  total flux cleaned = 0.287269 Jy
! Component: 150  -  total flux cleaned = 0.376783 Jy
! Component: 200  -  total flux cleaned = 0.444235 Jy
! Total flux subtracted in 200 components = 0.444235 Jy
! Clean residual min=-0.013297 max=0.039614 Jy/beam
! Clean residual mean=0.003207 rms=0.006779 Jy/beam
! Combined flux in latest and established models = 8.41145 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 62 components and 8.41145 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Added new window around map position (0, 0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0511238 Jy
! Component: 100  -  total flux cleaned = 0.0909343 Jy
! Component: 150  -  total flux cleaned = 0.123331 Jy
! Component: 200  -  total flux cleaned = 0.150362 Jy
! Total flux subtracted in 200 components = 0.150362 Jy
! Clean residual min=-0.014027 max=0.020239 Jy/beam
! Clean residual mean=0.002227 rms=0.004299 Jy/beam
! Combined flux in latest and established models = 8.56181 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 85 components and 8.56181 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Added new window around map position (2.2, -1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0220587 Jy
! Component: 100  -  total flux cleaned = 0.0365249 Jy
! Component: 150  -  total flux cleaned = 0.0491669 Jy
! Component: 200  -  total flux cleaned = 0.061659 Jy
! Total flux subtracted in 200 components = 0.061659 Jy
! Clean residual min=-0.011679 max=0.016974 Jy/beam
! Clean residual mean=0.001795 rms=0.003757 Jy/beam
! Combined flux in latest and established models = 8.62347 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 104 components and 8.62347 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Added new window around map position (-2.2, 2.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0143539 Jy
! Component: 100  -  total flux cleaned = 0.0247307 Jy
! Component: 150  -  total flux cleaned = 0.0357184 Jy
! Component: 200  -  total flux cleaned = 0.0454761 Jy
! Total flux subtracted in 200 components = 0.0454761 Jy
! Clean residual min=-0.010087 max=0.013464 Jy/beam
! Clean residual mean=0.001476 rms=0.003456 Jy/beam
! Combined flux in latest and established models = 8.66895 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 124 components and 8.66895 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 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 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Estimated beam: bmin=2.237 mas, bmaj=2.458 mas, bpa=29.55 degrees
! Estimated noise=410.633 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0345963 Jy
! Component: 100  -  total flux cleaned = 0.0604455 Jy
! Component: 150  -  total flux cleaned = 0.0813239 Jy
! Component: 200  -  total flux cleaned = 0.0986089 Jy
! Total flux subtracted in 200 components = 0.0986089 Jy
! Clean residual min=-0.018472 max=0.021280 Jy/beam
! Clean residual mean=0.002903 rms=0.007653 Jy/beam
! Combined flux in latest and established models = 8.76756 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.0144844 Jy
! Component: 100  -  total flux cleaned = 0.0267214 Jy
! Component: 150  -  total flux cleaned = 0.0371052 Jy
! Component: 200  -  total flux cleaned = 0.0459381 Jy
! Total flux subtracted in 200 components = 0.0459381 Jy
! Clean residual min=-0.019138 max=0.019629 Jy/beam
! Clean residual mean=0.001545 rms=0.007211 Jy/beam
! Combined flux in latest and established models = 8.8135 Jy
! Adding 78 model components to the UV plane model.
! The established model now contains 189 components and 8.8135 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! Estimated beam: bmin=0.6447 mas, bmaj=0.9263 mas, bpa=-7.244 degrees
! Estimated noise=261.919 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00665308 Jy
! Component: 100  -  total flux cleaned = -0.00666239 Jy
! Component: 150  -  total flux cleaned = -0.00665045 Jy
! Component: 200  -  total flux cleaned = -0.00622008 Jy
! Total flux subtracted in 200 components = -0.00622008 Jy
! Clean residual min=-0.010163 max=0.011746 Jy/beam
! Clean residual mean=0.000438 rms=0.003008 Jy/beam
! Combined flux in latest and established models = 8.80728 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 196 components and 8.80728 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.784099Jy  sigma=0.001889
! Fit after  self-cal, rms=0.782929Jy  sigma=0.001881
wmodel J0927+3902_X_1999_12_20_pus_map.mod
! Writing 196 model components to file: J0927+3902_X_1999_12_20_pus_map.mod
wobs J0927+3902_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0927+3902_X_1999_12_20_pus_uvs.fits
wwins J0927+3902_X_1999_12_20_pus_map.win
! wwins: Wrote 13 windows to J0927+3902_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 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00551178 Jy
! Component: 100  -  total flux cleaned = 0.00953686 Jy
! Component: 150  -  total flux cleaned = 0.0131303 Jy
! Component: 200  -  total flux cleaned = 0.0151159 Jy
! Component: 250  -  total flux cleaned = 0.0166921 Jy
! Component: 300  -  total flux cleaned = 0.0185712 Jy
! Component: 350  -  total flux cleaned = 0.0202386 Jy
! Component: 400  -  total flux cleaned = 0.0215454 Jy
! Component: 450  -  total flux cleaned = 0.0229866 Jy
! Component: 500  -  total flux cleaned = 0.0242483 Jy
! Component: 550  -  total flux cleaned = 0.0258008 Jy
! Component: 600  -  total flux cleaned = 0.0271756 Jy
! Component: 650  -  total flux cleaned = 0.0286799 Jy
! Component: 700  -  total flux cleaned = 0.0297178 Jy
! Component: 750  -  total flux cleaned = 0.0304507 Jy
! Component: 800  -  total flux cleaned = 0.0313211 Jy
! Component: 850  -  total flux cleaned = 0.0320397 Jy
! Component: 900  -  total flux cleaned = 0.0330342 Jy
! Component: 950  -  total flux cleaned = 0.0338766 Jy
! Component: 1000  -  total flux cleaned = 0.0348467 Jy
! Total flux subtracted in 1024 components = 0.0351226 Jy
! Clean residual min=-0.007414 max=0.007070 Jy/beam
! Clean residual mean=0.000197 rms=0.002678 Jy/beam
! Combined flux in latest and established models = 8.8424 Jy
keep
! Adding 83 model components to the UV plane model.
! The established model now contains 277 components and 8.8424 Jy
![Exited script file: muppet]
wmap "J0927+3902_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6447 x 0.9263 at -7.244 degrees (North through East)
! Clean map  min=-0.0087215  max=5.0445 Jy/beam
! Writing clean map to FITS file: J0927+3902_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 5.04447 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.95% of the data.
!  The x-axis pixel size should ideally be below 0.1588 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1715 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00267454 
device "J0927+3902_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0927+3902_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.159058 0.159058 0.318115 0.63623 1.27246 2.54492 5.08984 10.1797 20.3594 40.7188 81.4375
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.008 
print "peak=",int(1000*peak_flux)/1000
! peak= 5.044 
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.6447 x 0.9263 at -7.244 degrees (North through East)
! Clean map  min=-0.0087215  max=5.0445 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0927+3902_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0927+3902_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0927+3902_X_1999_12_20_pus_uvs.log closed on Fri Dec 14 17:17:50 2007