! Started logfile: J0854+2006_X_1999_12_20_pus_uvs.log on Tue Dec 18 12:44:29 2007
obs J0854+2006_X_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0854+2006_X_1999_12_20_pus_uva.fits
! AN table 1: 236 integrations on 190 of 190 possible baselines.
! AN table 2: 64 integrations on 190 of 190 possible baselines.
! AN table 3: 116 integrations on 190 of 190 possible baselines.
! AN table 4: 27 integrations on 190 of 190 possible baselines.
! AN table 5: 149 integrations on 190 of 190 possible baselines.
! AN table 6: 99 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.154978 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0854+2006
! 
! 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 81388 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 J0854+2006_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 3229 telescope corrections were flagged in sub-array 1.
!  A total of 1017 telescope corrections were flagged in sub-array 2.
!  A total of 1698 telescope corrections were flagged in sub-array 3.
!  A total of 276 telescope corrections were flagged in sub-array 4.
!  A total of 1797 telescope corrections were flagged in sub-array 5.
!  A total of 1451 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 3235 telescope corrections were flagged in sub-array 1.
!  A total of 1017 telescope corrections were flagged in sub-array 2.
!  A total of 1671 telescope corrections were flagged in sub-array 3.
!  A total of 276 telescope corrections were flagged in sub-array 4.
!  A total of 1797 telescope corrections were flagged in sub-array 5.
!  A total of 1445 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 3315 telescope corrections were flagged in sub-array 1.
!  A total of 1017 telescope corrections were flagged in sub-array 2.
!  A total of 1688 telescope corrections were flagged in sub-array 3.
!  A total of 276 telescope corrections were flagged in sub-array 4.
!  A total of 1795 telescope corrections were flagged in sub-array 5.
!  A total of 1451 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 3244 telescope corrections were flagged in sub-array 1.
!  A total of 1017 telescope corrections were flagged in sub-array 2.
!  A total of 1688 telescope corrections were flagged in sub-array 3.
!  A total of 276 telescope corrections were flagged in sub-array 4.
!  A total of 1807 telescope corrections were flagged in sub-array 5.
!  A total of 1454 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=1.390223Jy  sigma=0.012959
! Fit after  self-cal, rms=0.815439Jy  sigma=0.007926
! 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 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Estimated beam: bmin=0.535 mas, bmaj=0.8919 mas, bpa=-5.484 degrees
! Estimated noise=612.014 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.867942 Jy
! Component: 100  -  total flux cleaned = 1.25997 Jy
! Total flux subtracted in 100 components = 1.25997 Jy
! Clean residual min=-0.046987 max=0.250324 Jy/beam
! Clean residual mean=0.000969 rms=0.015235 Jy/beam
! Combined flux in latest and established models = 1.25997 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 1.25997 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.612735Jy  sigma=0.006036
! Fit after  self-cal, rms=0.598882Jy  sigma=0.005959
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Added new window around map position (-0.6, -0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.279592 Jy
! Component: 100  -  total flux cleaned = 0.433742 Jy
! Total flux subtracted in 100 components = 0.433742 Jy
! Clean residual min=-0.031156 max=0.123259 Jy/beam
! Clean residual mean=0.000526 rms=0.008402 Jy/beam
! Combined flux in latest and established models = 1.69371 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 9 components and 1.69371 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381712Jy  sigma=0.003500
! Fit after  self-cal, rms=0.364243Jy  sigma=0.003394
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.119294 Jy
! Component: 100  -  total flux cleaned = 0.188344 Jy
! Total flux subtracted in 100 components = 0.188344 Jy
! Clean residual min=-0.021345 max=0.057846 Jy/beam
! Clean residual mean=0.000338 rms=0.005577 Jy/beam
! Combined flux in latest and established models = 1.88205 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 14 components and 1.88205 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299641Jy  sigma=0.002522
! Fit after  self-cal, rms=0.296359Jy  sigma=0.002503
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0549971 Jy
! Component: 100  -  total flux cleaned = 0.0920379 Jy
! Total flux subtracted in 100 components = 0.0920379 Jy
! Clean residual min=-0.018534 max=0.041098 Jy/beam
! Clean residual mean=0.000244 rms=0.004760 Jy/beam
! Combined flux in latest and established models = 1.97409 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 21 components and 1.97409 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277042Jy  sigma=0.002188
! Fit after  self-cal, rms=0.276377Jy  sigma=0.002184
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Added new window around map position (-1.4, -0.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0402851 Jy
! Component: 100  -  total flux cleaned = 0.0668018 Jy
! Total flux subtracted in 100 components = 0.0668018 Jy
! Clean residual min=-0.019085 max=0.026642 Jy/beam
! Clean residual mean=0.000170 rms=0.004308 Jy/beam
! Combined flux in latest and established models = 2.04089 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 26 components and 2.04089 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266542Jy  sigma=0.002014
! Fit after  self-cal, rms=0.265745Jy  sigma=0.002007
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 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 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Estimated beam: bmin=0.7033 mas, bmaj=1.187 mas, bpa=-8.602 degrees
! Estimated noise=313.002 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.0537014 Jy
! Component: 100  -  total flux cleaned = 0.0868001 Jy
! Component: 150  -  total flux cleaned = 0.108666 Jy
! Component: 200  -  total flux cleaned = 0.123486 Jy
! Total flux subtracted in 200 components = 0.123486 Jy
! Clean residual min=-0.013801 max=0.026887 Jy/beam
! Clean residual mean=0.000321 rms=0.005188 Jy/beam
! Combined flux in latest and established models = 2.16438 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 44 components and 2.16438 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257406Jy  sigma=0.001838
! Fit after  self-cal, rms=0.256788Jy  sigma=0.001830
! Inverting map 
! Your choice of large map pixels excluded 4.13% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 57 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        0.98     HH        0.88     
!   HN        0.94     KK        1.00     KP        0.99     LA        0.98     
!   MC        1.46     MK        1.00     NY        0.98     ON        0.97     
!   OV        0.99     PT        1.00     SC        1.05     TS        0.89     
!   WF        0.99     WZ        1.05     GN        0.98     NL        0.97     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        0.95     HH        1.00*    
!   HN        1.00*    KK        0.94     KP        0.99     LA        1.01     
!   MC        1.00*    MK        1.00*    NY        1.09     ON        1.00*    
!   OV        0.96     PT        1.02     SC        1.00*    TS        0.86     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.45     GC        1.00*    HH        0.87     
!   HN        1.06     KK        1.00*    KP        1.00*    LA        1.35     
!   MC        0.93     MK        1.00*    NY        1.00     ON        0.98     
!   OV        1.00*    PT        1.78     SC        1.09     TS        1.00*    
!   WF        0.98     WZ        0.95     GN        1.00     NL        1.01     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.01     GC        1.03     HH        1.00*    
!   HN        0.95     KK        1.01     KP        1.01     LA        1.00     
!   MC        1.00*    MK        1.00     NY        1.03     ON        1.00*    
!   OV        0.98     PT        1.00     SC        1.10     TS        1.00     
!   WF        0.96     WZ        1.00*    GN        1.03     NL        0.99     
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.98     GC        1.07     HH        0.97     
!   HN        1.10     KK        1.00*    KP        1.01     LA        0.98     
!   MC        0.93     MK        1.00*    NY        1.01     ON        0.97     
!   OV        1.01     PT        0.98     SC        0.98     TS        1.00*    
!   WF        1.09     WZ        1.05     GN        0.97     NL        1.01     
! 
!  A total of 21 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.97     FD        0.99     GC        0.96     HH        1.00*    
!   HN        0.96     KK        1.00*    KP        1.01     LA        1.01     
!   MC        1.08     MK        2.13     NY        1.01     ON        1.01     
!   OV        1.00     PT        1.01     SC        0.97     TS        1.00*    
!   WF        1.12     WZ        0.99     GN        1.00*    NL        0.99     
! 
! 
! Correcting IF 2.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        0.93     HH        0.79     
!   HN        0.94     KK        0.99     KP        0.94     LA        0.98     
!   MC        1.47     MK        1.02     NY        0.99     ON        0.98     
!   OV        0.99     PT        0.99     SC        1.00     TS        0.83     
!   WF        1.00     WZ        1.04     GN        0.96     NL        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        0.90     HH        1.00*    
!   HN        1.00*    KK        0.93     KP        0.95     LA        1.00     
!   MC        1.00*    MK        1.00*    NY        1.09     ON        1.00*    
!   OV        0.98     PT        1.01     SC        1.00*    TS        0.86     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.52     GC        1.00*    HH        0.90     
!   HN        1.10     KK        1.00*    KP        1.00*    LA        1.40     
!   MC        0.93     MK        1.00*    NY        1.01     ON        0.98     
!   OV        1.00*    PT        2.07     SC        1.01     TS        1.00*    
!   WF        0.97     WZ        0.88     GN        1.03     NL        1.00     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.02     GC        1.00     HH        1.00*    
!   HN        0.94     KK        1.03     KP        0.95     LA        1.00     
!   MC        1.00*    MK        0.99     NY        1.03     ON        1.00*    
!   OV        0.98     PT        0.99     SC        1.04     TS        0.97     
!   WF        0.99     WZ        1.00*    GN        1.01     NL        0.98     
! 
!  A total of 18 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.99     GC        1.00     HH        1.00     
!   HN        1.08     KK        1.00*    KP        0.96     LA        0.97     
!   MC        0.93     MK        1.00*    NY        0.97     ON        0.98     
!   OV        1.02     PT        0.97     SC        0.92     TS        1.00*    
!   WF        1.09     WZ        0.99     GN        0.98     NL        1.02     
! 
!  A total of 27 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.98     FD        0.99     GC        0.93     HH        1.00*    
!   HN        0.94     KK        1.00*    KP        0.96     LA        1.02     
!   MC        1.04     MK        2.02     NY        0.99     ON        1.02     
!   OV        1.00     PT        0.99     SC        0.93     TS        1.00*    
!   WF        1.13     WZ        0.99     GN        1.00*    NL        1.00     
! 
! 
! Correcting IF 3.
!  A total of 129 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00     GC        0.97     HH        0.91     
!   HN        0.96     KK        1.15     KP        0.97     LA        0.98     
!   MC        1.45     MK        0.98     NY        0.96     ON        0.99     
!   OV        0.99     PT        1.00     SC        1.01     TS        0.81     
!   WF        1.01     WZ        1.03     GN        1.00     NL        0.99     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.01     GC        0.94     HH        1.00*    
!   HN        1.00*    KK        0.92     KP        0.97     LA        1.00     
!   MC        1.00*    MK        1.00*    NY        1.06     ON        1.00*    
!   OV        0.97     PT        1.02     SC        1.00*    TS        0.86     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.76     GC        1.00*    HH        1.38     
!   HN        1.23     KK        1.00*    KP        1.00*    LA        1.62     
!   MC        1.00     MK        1.00*    NY        0.99     ON        1.00     
!   OV        1.00*    PT        2.96     SC        0.96     TS        1.00*    
!   WF        0.94     WZ        1.07     GN        1.05     NL        1.07     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        1.02     GC        1.04     HH        1.00*    
!   HN        0.97     KK        1.00     KP        0.97     LA        1.00     
!   MC        1.00*    MK        1.00     NY        1.00     ON        1.00*    
!   OV        0.98     PT        1.00     SC        1.06     TS        0.98     
!   WF        0.99     WZ        1.00*    GN        1.03     NL        0.99     
! 
!  A total of 24 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.96     FD        0.99     GC        1.09     HH        1.13     
!   HN        1.11     KK        1.00*    KP        0.98     LA        0.98     
!   MC        0.93     MK        1.00*    NY        0.93     ON        1.01     
!   OV        1.01     PT        0.99     SC        0.94     TS        1.00*    
!   WF        1.07     WZ        1.05     GN        0.97     NL        1.02     
! 
!  A total of 33 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.96     FD        1.00     GC        0.97     HH        1.00*    
!   HN        0.97     KK        1.00*    KP        0.98     LA        1.01     
!   MC        1.03     MK        2.26     NY        0.97     ON        1.03     
!   OV        0.99     PT        1.01     SC        0.93     TS        1.00*    
!   WF        1.10     WZ        1.03     GN        1.00*    NL        0.99     
! 
! 
! Correcting IF 4.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     GC        0.98     HH        0.94     
!   HN        0.96     KK        0.99     KP        0.95     LA        0.98     
!   MC        1.50     MK        0.98     NY        1.01     ON        0.99     
!   OV        0.99     PT        1.00     SC        0.99     TS        0.83     
!   WF        1.00     WZ        1.03     GN        0.99     NL        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.01     GC        0.95     HH        1.00*    
!   HN        1.00*    KK        0.95     KP        0.95     LA        1.01     
!   MC        1.00*    MK        1.00*    NY        1.09     ON        1.00*    
!   OV        0.98     PT        1.01     SC        1.00*    TS        0.85     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.60     GC        1.00*    HH        0.87     
!   HN        1.12     KK        1.00*    KP        1.00*    LA        1.51     
!   MC        0.94     MK        1.00*    NY        1.01     ON        0.98     
!   OV        1.00*    PT        2.03     SC        1.02     TS        1.00*    
!   WF        0.95     WZ        0.96     GN        1.02     NL        1.03     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.01     GC        1.04     HH        1.00*    
!   HN        0.96     KK        1.01     KP        0.96     LA        1.01     
!   MC        1.00*    MK        0.96     NY        1.05     ON        1.00*    
!   OV        0.98     PT        1.00     SC        1.04     TS        1.01     
!   WF        0.99     WZ        1.00*    GN        1.01     NL        0.99     
! 
!  A total of 24 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.99     GC        1.13     HH        1.00     
!   HN        1.14     KK        1.00*    KP        0.97     LA        0.99     
!   MC        0.95     MK        1.00*    NY        0.95     ON        1.01     
!   OV        1.01     PT        0.99     SC        0.93     TS        1.00*    
!   WF        1.08     WZ        1.08     GN        0.98     NL        1.04     
! 
!  A total of 42 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.00     FD        0.99     GC        0.96     HH        1.00*    
!   HN        0.97     KK        1.00*    KP        0.98     LA        1.01     
!   MC        1.05     MK        2.37     NY        1.01     ON        1.02     
!   OV        0.99     PT        1.01     SC        0.93     TS        1.00*    
!   WF        1.09     WZ        1.00     GN        1.00*    NL        1.01     
! 
! 
! Fit before self-cal, rms=0.256788Jy  sigma=0.001830
! Fit after  self-cal, rms=0.256668Jy  sigma=0.001505
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Estimated beam: bmin=0.7151 mas, bmaj=1.191 mas, bpa=-8.009 degrees
! Estimated noise=316.173 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 (-2.4, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0127545 Jy
! Component: 100  -  total flux cleaned = 0.0178966 Jy
! Component: 150  -  total flux cleaned = 0.0190002 Jy
! Component: 200  -  total flux cleaned = 0.0197111 Jy
! Total flux subtracted in 200 components = 0.0197111 Jy
! Clean residual min=-0.008134 max=0.008899 Jy/beam
! Clean residual mean=0.000018 rms=0.001980 Jy/beam
! Combined flux in latest and established models = 2.18409 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 61 components and 2.18409 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.255687Jy  sigma=0.001496
! Fit after  self-cal, rms=0.256247Jy  sigma=0.001494
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 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.256247Jy  sigma=0.001494
! Fit after  self-cal, rms=0.263863Jy  sigma=0.001369
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Estimated beam: bmin=0.728 mas, bmaj=1.194 mas, bpa=-6.848 degrees
! Estimated noise=321.705 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00018091 Jy
! Component: 100  -  total flux cleaned = 0.000594557 Jy
! Component: 150  -  total flux cleaned = 0.00128764 Jy
! Component: 200  -  total flux cleaned = 0.00158635 Jy
! Total flux subtracted in 200 components = 0.00158635 Jy
! Clean residual min=-0.004643 max=0.005304 Jy/beam
! Clean residual mean=0.000061 rms=0.001151 Jy/beam
! Combined flux in latest and established models = 2.18568 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 69 components and 2.18568 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262901Jy  sigma=0.001356
! Fit after  self-cal, rms=0.263283Jy  sigma=0.001355
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 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.000623812 Jy
! Component: 100  -  total flux cleaned = 0.000875923 Jy
! Component: 150  -  total flux cleaned = 0.00109748 Jy
! Component: 200  -  total flux cleaned = 0.00149645 Jy
! Total flux subtracted in 200 components = 0.00149645 Jy
! Clean residual min=-0.003441 max=0.004051 Jy/beam
! Clean residual mean=0.000053 rms=0.001077 Jy/beam
! Combined flux in latest and established models = 2.18717 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 73 components and 2.18717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262956Jy  sigma=0.001350
! Fit after  self-cal, rms=0.262998Jy  sigma=0.001349
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 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.262998Jy  sigma=0.001349
! Fit after  self-cal, rms=0.270164Jy  sigma=0.001347
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Estimated beam: bmin=0.729 mas, bmaj=1.195 mas, bpa=-6.664 degrees
! Estimated noise=322.403 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000296194 Jy
! Component: 100  -  total flux cleaned = 0.000782188 Jy
! Component: 150  -  total flux cleaned = 0.000975171 Jy
! Component: 200  -  total flux cleaned = 0.00132096 Jy
! Total flux subtracted in 200 components = 0.00132096 Jy
! Clean residual min=-0.003213 max=0.004281 Jy/beam
! Clean residual mean=0.000060 rms=0.000985 Jy/beam
! Combined flux in latest and established models = 2.1885 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 76 components and 2.1885 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269907Jy  sigma=0.001343
! Fit after  self-cal, rms=0.269972Jy  sigma=0.001342
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 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 (-12.8, 12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00198978 Jy
! Component: 100  -  total flux cleaned = 0.00244416 Jy
! Component: 150  -  total flux cleaned = 0.00272262 Jy
! Component: 200  -  total flux cleaned = 0.00310829 Jy
! Total flux subtracted in 200 components = 0.00310829 Jy
! Clean residual min=-0.003098 max=0.003723 Jy/beam
! Clean residual mean=0.000041 rms=0.000941 Jy/beam
! Combined flux in latest and established models = 2.1916 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 80 components and 2.1916 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269819Jy  sigma=0.001340
! Fit after  self-cal, rms=0.269832Jy  sigma=0.001340
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 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.269832Jy  sigma=0.001340
! Fit after  self-cal, rms=0.272814Jy  sigma=0.001340
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Estimated beam: bmin=2.271 mas, bmaj=2.729 mas, bpa=-4.211 degrees
! Estimated noise=405.952 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00385635 Jy
! Component: 100  -  total flux cleaned = 0.00486403 Jy
! Component: 150  -  total flux cleaned = 0.00514991 Jy
! Component: 200  -  total flux cleaned = 0.00534605 Jy
! Total flux subtracted in 200 components = 0.00534605 Jy
! Clean residual min=-0.003623 max=0.004674 Jy/beam
! Clean residual mean=0.000079 rms=0.001295 Jy/beam
! Combined flux in latest and established models = 2.19695 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 95 components and 2.19695 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272769Jy  sigma=0.001339
! Fit after  self-cal, rms=0.272778Jy  sigma=0.001339
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 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.000762115 Jy
! Component: 100  -  total flux cleaned = 0.000806114 Jy
! Component: 150  -  total flux cleaned = 0.000887097 Jy
! Component: 200  -  total flux cleaned = 0.000957842 Jy
! Total flux subtracted in 200 components = 0.000957842 Jy
! Clean residual min=-0.004271 max=0.004674 Jy/beam
! Clean residual mean=0.000070 rms=0.001315 Jy/beam
! Combined flux in latest and established models = 2.19791 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 101 components and 2.19791 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272757Jy  sigma=0.001339
! Fit after  self-cal, rms=0.272756Jy  sigma=0.001339
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 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 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Estimated beam: bmin=0.7295 mas, bmaj=1.197 mas, bpa=-6.558 degrees
! Estimated noise=322.967 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7295 x 1.197 at -6.558 degrees (North through East)
! Clean map  min=-0.0031635  max=1.2631 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.272756Jy  sigma=0.001339
! Fit after  self-cal, rms=1.364977Jy  sigma=0.001175
! Inverting map and beam 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Estimated beam: bmin=0.7308 mas, bmaj=1.195 mas, bpa=-6.629 degrees
! Estimated noise=322.914 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00245712 Jy
! Component: 100  -  total flux cleaned = -0.00305481 Jy
! Component: 150  -  total flux cleaned = -0.00331373 Jy
! Component: 200  -  total flux cleaned = -0.00354428 Jy
! Total flux subtracted in 200 components = -0.00354428 Jy
! Clean residual min=-0.003220 max=0.002882 Jy/beam
! Clean residual mean=-0.000004 rms=0.000775 Jy/beam
! Combined flux in latest and established models = 2.19436 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 101 components and 2.19436 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.364951Jy  sigma=0.001173
! Fit after  self-cal, rms=1.365041Jy  sigma=0.001173
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000140685 Jy
! Component: 100  -  total flux cleaned = -3.97693e-05 Jy
! Component: 150  -  total flux cleaned = 5.05446e-05 Jy
! Component: 200  -  total flux cleaned = 0.000134001 Jy
! Total flux subtracted in 200 components = 0.000134001 Jy
! Clean residual min=-0.003257 max=0.002799 Jy/beam
! Clean residual mean=-0.000005 rms=0.000764 Jy/beam
! Combined flux in latest and established models = 2.1945 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 103 components and 2.1945 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.365020Jy  sigma=0.001172
! Fit after  self-cal, rms=1.365048Jy  sigma=0.001172
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 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.365048Jy  sigma=0.001172
! Fit after  self-cal, rms=1.433118Jy  sigma=0.001172
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 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Estimated beam: bmin=0.5457 mas, bmaj=0.8996 mas, bpa=-3.436 degrees
! Estimated noise=641.269 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.912299 Jy
! Component: 100  -  total flux cleaned = 1.36261 Jy
! Component: 150  -  total flux cleaned = 1.60407 Jy
! Component: 200  -  total flux cleaned = 1.74438 Jy
! Total flux subtracted in 200 components = 1.74438 Jy
! Clean residual min=-0.012120 max=0.073743 Jy/beam
! Clean residual mean=0.000587 rms=0.005444 Jy/beam
! Combined flux in latest and established models = 1.74438 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 8 model components to the UV plane model.
! The established model now contains 8 components and 1.74438 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Estimated beam: bmin=0.7316 mas, bmaj=1.196 mas, bpa=-6.55 degrees
! Estimated noise=323.229 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.177027 Jy
! Component: 100  -  total flux cleaned = 0.269089 Jy
! Component: 150  -  total flux cleaned = 0.323155 Jy
! Component: 200  -  total flux cleaned = 0.35697 Jy
! Total flux subtracted in 200 components = 0.35697 Jy
! Clean residual min=-0.006113 max=0.020876 Jy/beam
! Clean residual mean=0.000468 rms=0.003697 Jy/beam
! Combined flux in latest and established models = 2.10135 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 46 components and 2.10135 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Added new window around map position (0.6, 0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0239393 Jy
! Component: 100  -  total flux cleaned = 0.0411403 Jy
! Component: 150  -  total flux cleaned = 0.0538936 Jy
! Component: 200  -  total flux cleaned = 0.0634196 Jy
! Total flux subtracted in 200 components = 0.0634196 Jy
! Clean residual min=-0.003233 max=0.005687 Jy/beam
! Clean residual mean=0.000134 rms=0.001287 Jy/beam
! Combined flux in latest and established models = 2.16477 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 84 components and 2.16477 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Added new window around map position (-1.4, -1.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00721684 Jy
! Component: 100  -  total flux cleaned = 0.0128438 Jy
! Component: 150  -  total flux cleaned = 0.0172837 Jy
! Component: 200  -  total flux cleaned = 0.020816 Jy
! Total flux subtracted in 200 components = 0.020816 Jy
! Clean residual min=-0.002796 max=0.003092 Jy/beam
! Clean residual mean=0.000019 rms=0.000811 Jy/beam
! Combined flux in latest and established models = 2.18558 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 102 components and 2.18558 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 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 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Estimated beam: bmin=2.272 mas, bmaj=2.731 mas, bpa=-4.254 degrees
! Estimated noise=405.248 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00428993 Jy
! Component: 100  -  total flux cleaned = 0.00633089 Jy
! Component: 150  -  total flux cleaned = 0.00680846 Jy
! Component: 200  -  total flux cleaned = 0.00725368 Jy
! Total flux subtracted in 200 components = 0.00725368 Jy
! Clean residual min=-0.003610 max=0.004400 Jy/beam
! Clean residual mean=-0.000040 rms=0.001102 Jy/beam
! Combined flux in latest and established models = 2.19284 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.00021173 Jy
! Component: 100  -  total flux cleaned = 0.000361204 Jy
! Component: 150  -  total flux cleaned = 0.000527714 Jy
! Component: 200  -  total flux cleaned = 0.000559071 Jy
! Total flux subtracted in 200 components = 0.000559071 Jy
! Clean residual min=-0.003561 max=0.004447 Jy/beam
! Clean residual mean=-0.000046 rms=0.001081 Jy/beam
! Combined flux in latest and established models = 2.19339 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 140 components and 2.19339 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! Estimated beam: bmin=0.7316 mas, bmaj=1.196 mas, bpa=-6.55 degrees
! Estimated noise=323.229 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000753587 Jy
! Component: 100  -  total flux cleaned = -0.000579951 Jy
! Component: 150  -  total flux cleaned = -0.0003392 Jy
! Component: 200  -  total flux cleaned = -4.74727e-05 Jy
! Total flux subtracted in 200 components = -4.74727e-05 Jy
! Clean residual min=-0.003121 max=0.002859 Jy/beam
! Clean residual mean=-0.000018 rms=0.000735 Jy/beam
! Combined flux in latest and established models = 2.19335 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 150 components and 2.19335 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.433134Jy  sigma=0.001173
! Fit after  self-cal, rms=1.433121Jy  sigma=0.001170
wmodel J0854+2006_X_1999_12_20_pus_map.mod
! Writing 150 model components to file: J0854+2006_X_1999_12_20_pus_map.mod
wobs J0854+2006_X_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0854+2006_X_1999_12_20_pus_uvs.fits
wwins J0854+2006_X_1999_12_20_pus_map.win
! wwins: Wrote 7 windows to J0854+2006_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 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.0013417 Jy
! Component: 100  -  total flux cleaned = -0.00188799 Jy
! Component: 150  -  total flux cleaned = -0.00179926 Jy
! Component: 200  -  total flux cleaned = -0.00153671 Jy
! Component: 250  -  total flux cleaned = -0.00136589 Jy
! Component: 300  -  total flux cleaned = -0.00115801 Jy
! Component: 350  -  total flux cleaned = -0.000955225 Jy
! Component: 400  -  total flux cleaned = -0.000678001 Jy
! Component: 450  -  total flux cleaned = -0.000600178 Jy
! Component: 500  -  total flux cleaned = -0.000485364 Jy
! Component: 550  -  total flux cleaned = -0.000446964 Jy
! Component: 600  -  total flux cleaned = -0.000409458 Jy
! Component: 650  -  total flux cleaned = -0.000335977 Jy
! Component: 700  -  total flux cleaned = -0.000372245 Jy
! Component: 750  -  total flux cleaned = -0.000300415 Jy
! Component: 800  -  total flux cleaned = -0.000336227 Jy
! Component: 850  -  total flux cleaned = -0.000336304 Jy
! Component: 900  -  total flux cleaned = -0.00037119 Jy
! Component: 950  -  total flux cleaned = -0.000440264 Jy
! Component: 1000  -  total flux cleaned = -0.000474401 Jy
! Total flux subtracted in 1024 components = -0.000474348 Jy
! Clean residual min=-0.001841 max=0.001785 Jy/beam
! Clean residual mean=-0.000008 rms=0.000636 Jy/beam
! Combined flux in latest and established models = 2.19287 Jy
keep
! Adding 72 model components to the UV plane model.
! The established model now contains 221 components and 2.19287 Jy
![Exited script file: muppet]
wmap "J0854+2006_X_1999_12_20_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7316 x 1.196 at -6.55 degrees (North through East)
! Clean map  min=-0.0030045  max=1.2638 Jy/beam
! Writing clean map to FITS file: J0854+2006_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.26375 
invert
! Inverting map 
! Your choice of large map pixels excluded 4.12% of the data.
!  The x-axis pixel size should ideally be below 0.1541 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1756 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000636487 
device "J0854+2006_X_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0854+2006_X_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.151095 0.151095 0.30219 0.604379 1.20876 2.41752 4.83503 9.67006 19.3401 38.6803 77.3605
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.263 
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.7316 x 1.196 at -6.55 degrees (North through East)
! Clean map  min=-0.0030045  max=1.2638 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0854+2006_X_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0854+2006_X_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0854+2006_X_1999_12_20_pus_uvs.log closed on Tue Dec 18 12:44:59 2007