! Started logfile: J2330+1100_X_2003_05_07_pus_uvs.log on Thu Dec 14 18:17:57 2006
obs J2330+1100_X_2003_05_07_pus_uva.fits
! Reading UV FITS file: J2330+1100_X_2003_05_07_pus_uva.fits
! AN table 1: 304 integrations on 171 of 171 possible baselines.
! AN table 2: 113 integrations on 171 of 171 possible baselines.
! AN table 3: 329 integrations on 171 of 171 possible baselines.
! AN table 4: 193 integrations on 171 of 171 possible baselines.
! AN table 5: 243 integrations on 171 of 171 possible baselines.
! AN table 6: 17 integrations on 171 of 171 possible baselines.
! AN table 7: 205 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.132916 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2330+1100
! 
! 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 1739 lines of history.
! 
! Reading 127644 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
float field_size
field_size = 512
float field_cell
field_cell = 0.16
float taper_size
taper_size = 90.
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.160x0.160 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 3603 telescope corrections were flagged in sub-array 1.
!  A total of 2147 telescope corrections were flagged in sub-array 2.
!  A total of 3974 telescope corrections were flagged in sub-array 3.
!  A total of 2924 telescope corrections were flagged in sub-array 4.
!  A total of 3389 telescope corrections were flagged in sub-array 5.
!  A total of 284 telescope corrections were flagged in sub-array 6.
!  A total of 3804 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 2.
!  A total of 3436 telescope corrections were flagged in sub-array 1.
!  A total of 2102 telescope corrections were flagged in sub-array 2.
!  A total of 3974 telescope corrections were flagged in sub-array 3.
!  A total of 2838 telescope corrections were flagged in sub-array 4.
!  A total of 3389 telescope corrections were flagged in sub-array 5.
!  A total of 284 telescope corrections were flagged in sub-array 6.
!  A total of 3765 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 3.
!  A total of 3436 telescope corrections were flagged in sub-array 1.
!  A total of 2102 telescope corrections were flagged in sub-array 2.
!  A total of 3974 telescope corrections were flagged in sub-array 3.
!  A total of 2838 telescope corrections were flagged in sub-array 4.
!  A total of 3389 telescope corrections were flagged in sub-array 5.
!  A total of 284 telescope corrections were flagged in sub-array 6.
!  A total of 3765 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 4.
!  A total of 3435 telescope corrections were flagged in sub-array 1.
!  A total of 2102 telescope corrections were flagged in sub-array 2.
!  A total of 3974 telescope corrections were flagged in sub-array 3.
!  A total of 2838 telescope corrections were flagged in sub-array 4.
!  A total of 3389 telescope corrections were flagged in sub-array 5.
!  A total of 305 telescope corrections were flagged in sub-array 6.
!  A total of 3765 telescope corrections were flagged in sub-array 7.
! 
! Fit before self-cal, rms=0.831976Jy  sigma=0.006738
! Fit after  self-cal, rms=0.739413Jy  sigma=0.005875
! 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 0.262% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Estimated beam: bmin=0.4809 mas, bmaj=1.33 mas, bpa=-4.018 degrees
! Estimated noise=625.122 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.247981 Jy
! Component: 100  -  total flux cleaned = 0.352106 Jy
! Total flux subtracted in 100 components = 0.352106 Jy
! Clean residual min=-0.022895 max=0.075311 Jy/beam
! Clean residual mean=0.000052 rms=0.005707 Jy/beam
! Combined flux in latest and established models = 0.352106 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.352107 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319934Jy  sigma=0.002132
! Fit after  self-cal, rms=0.317220Jy  sigma=0.002121
! Inverting map 
! Your choice of large map pixels excluded 0.262% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Added new window around map position (-0.64, 0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0766363 Jy
! Component: 100  -  total flux cleaned = 0.122202 Jy
! Total flux subtracted in 100 components = 0.122202 Jy
! Clean residual min=-0.016595 max=0.044310 Jy/beam
! Clean residual mean=0.000043 rms=0.003795 Jy/beam
! Combined flux in latest and established models = 0.474309 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 22 components and 0.474309 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289615Jy  sigma=0.001669
! Fit after  self-cal, rms=0.286144Jy  sigma=0.001640
! Inverting map 
! Your choice of large map pixels excluded 0.262% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0411748 Jy
! Component: 100  -  total flux cleaned = 0.0665098 Jy
! Total flux subtracted in 100 components = 0.0665098 Jy
! Clean residual min=-0.009918 max=0.026436 Jy/beam
! Clean residual mean=0.000039 rms=0.002737 Jy/beam
! Combined flux in latest and established models = 0.540818 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 28 components and 0.540818 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276770Jy  sigma=0.001467
! Fit after  self-cal, rms=0.275522Jy  sigma=0.001457
! Inverting map 
! Your choice of large map pixels excluded 0.262% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Added new window around map position (-1.12, 1.28).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0256165 Jy
! Component: 100  -  total flux cleaned = 0.0411544 Jy
! Total flux subtracted in 100 components = 0.0411544 Jy
! Clean residual min=-0.009226 max=0.016642 Jy/beam
! Clean residual mean=0.000034 rms=0.002252 Jy/beam
! Combined flux in latest and established models = 0.581973 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 43 components and 0.581973 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.271847Jy  sigma=0.001388
! Fit after  self-cal, rms=0.271222Jy  sigma=0.001382
! Inverting map 
! Your choice of large map pixels excluded 0.262% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0155409 Jy
! Component: 100  -  total flux cleaned = 0.0253791 Jy
! Total flux subtracted in 100 components = 0.0253791 Jy
! Clean residual min=-0.008277 max=0.013193 Jy/beam
! Clean residual mean=0.000031 rms=0.002028 Jy/beam
! Combined flux in latest and established models = 0.607352 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 46 components and 0.607352 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269828Jy  sigma=0.001355
! Fit after  self-cal, rms=0.269555Jy  sigma=0.001353
! Inverting map 
! Your choice of large map pixels excluded 0.262% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Added new window around map position (-4.32, 7.36).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.013482 Jy
! Component: 100  -  total flux cleaned = 0.0230083 Jy
! Total flux subtracted in 100 components = 0.0230083 Jy
! Clean residual min=-0.007459 max=0.009928 Jy/beam
! Clean residual mean=0.000021 rms=0.001863 Jy/beam
! Combined flux in latest and established models = 0.63036 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 51 components and 0.63036 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268388Jy  sigma=0.001329
! Fit after  self-cal, rms=0.268261Jy  sigma=0.001328
! Inverting map 
! Your choice of large map pixels excluded 0.262% of the data.
!  The x-axis pixel size should ideally be below 0.156 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 0.262% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Estimated beam: bmin=0.5934 mas, bmaj=1.526 mas, bpa=-4.424 degrees
! Estimated noise=247.047 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 (-5.12, 7.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0187558 Jy
! Component: 100  -  total flux cleaned = 0.0320346 Jy
! Component: 150  -  total flux cleaned = 0.0421921 Jy
! Component: 200  -  total flux cleaned = 0.0502266 Jy
! Total flux subtracted in 200 components = 0.0502266 Jy
! Clean residual min=-0.006607 max=0.010590 Jy/beam
! Clean residual mean=-0.000008 rms=0.001959 Jy/beam
! Combined flux in latest and established models = 0.680587 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 80 components and 0.680587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266895Jy  sigma=0.001296
! Fit after  self-cal, rms=0.266574Jy  sigma=0.001294
! Inverting map 
! Your choice of large map pixels excluded 0.262% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GG        1.00*    HN        0.97     
!   KK        0.61     KP        1.03     LA        0.94     MA        1.00*    
!   MC        1.00*    MK        0.99     NL        1.04     ON        1.00*    
!   OV        0.96     PT        0.96     SC        1.06     TC        1.00     
!   TS        0.97     WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.03     GG        1.00*    HN        1.29     
!   KK        1.00*    KP        1.06     LA        0.93     MA        1.03     
!   MC        1.21     MK        1.00*    NL        1.03     ON        1.09     
!   OV        0.98     PT        0.95     SC        1.06     TC        1.00*    
!   TS        1.00*    WF        1.08     WZ        1.05     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.01     GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.03     LA        0.95     MA        1.00*    
!   MC        1.00*    MK        0.96     NL        1.05     ON        1.00*    
!   OV        0.96     PT        0.95     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.03     FD        1.03     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.20     LA        0.98     MA        1.05     
!   MC        1.01     MK        1.00*    NL        1.16     ON        0.94     
!   OV        1.05     PT        0.99     SC        1.02     TC        1.00*    
!   TS        1.00*    WF        1.06     WZ        0.99     
! 
!  A total of 39 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 7.
!  Telescope amplitude corrections in sub-array 7:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00     
!   MC        1.07     MK        1.00*    NL        1.00*    ON        1.00     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.01     
! 
! 
! Correcting IF 2.
!  A total of 195 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        0.97     LA        0.94     MA        1.00*    
!   MC        1.00*    MK        0.98     NL        1.00     ON        1.00*    
!   OV        0.95     PT        1.01     SC        1.02     TC        1.05     
!   TS        0.96     WF        1.03     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.02     GG        1.00*    HN        1.33     
!   KK        1.00*    KP        1.00     LA        0.94     MA        1.03     
!   MC        1.20     MK        1.00*    NL        0.99     ON        1.05     
!   OV        0.97     PT        0.98     SC        0.99     TC        1.00*    
!   TS        1.00*    WF        1.10     WZ        1.07     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.01     GG        1.00*    HN        1.00     
!   KK        1.00*    KP        0.98     LA        0.94     MA        1.00*    
!   MC        1.00*    MK        0.98     NL        1.00     ON        1.00*    
!   OV        0.95     PT        0.99     SC        1.00*    TC        1.00*    
!   TS        0.92     WF        1.07     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.07     FD        1.04     GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.08     LA        0.96     MA        0.90     
!   MC        1.03     MK        1.00*    NL        1.10     ON        0.93     
!   OV        1.04     PT        1.02     SC        0.98     TC        1.00*    
!   TS        1.00*    WF        1.11     WZ        0.99     
! 
!  A total of 39 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 7.
!  Telescope amplitude corrections in sub-array 7:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.97     
!   MC        0.98     MK        1.00*    NL        1.00*    ON        1.05     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.07     
! 
! 
! Correcting IF 3.
!  A total of 195 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        0.99     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        0.91     LA        0.95     MA        1.00*    
!   MC        1.00*    MK        1.00     NL        0.98     ON        1.00*    
!   OV        1.00     PT        1.03     SC        1.02     TC        1.04     
!   TS        0.90     WF        0.99     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        0.99     GG        1.00*    HN        1.33     
!   KK        1.00*    KP        0.94     LA        0.95     MA        1.00     
!   MC        1.14     MK        1.00*    NL        0.97     ON        1.06     
!   OV        1.02     PT        1.01     SC        1.05     TC        1.00*    
!   TS        1.00*    WF        1.08     WZ        1.02     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        0.99     GG        1.00*    HN        1.00     
!   KK        1.00*    KP        0.92     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        0.97     NL        1.00     ON        1.00*    
!   OV        0.99     PT        1.01     SC        1.00*    TC        1.00*    
!   TS        0.87     WF        1.00     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.06     FD        1.03     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.00     LA        0.99     MA        1.55     
!   MC        0.97     MK        1.00*    NL        1.10     ON        1.53     
!   OV        1.08     PT        1.04     SC        0.98     TC        1.00*    
!   TS        1.00*    WF        1.04     WZ        1.03     
! 
!  A total of 39 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 7.
!  Telescope amplitude corrections in sub-array 7:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.98     
!   MC        0.95     MK        1.00*    NL        1.00*    ON        1.04     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.96     
! 
! 
! Correcting IF 4.
!  A total of 195 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.97     GG        1.00*    HN        1.00     
!   KK        1.00*    KP        0.97     LA        0.93     MA        1.00*    
!   MC        1.00*    MK        1.03     NL        0.99     ON        1.00*    
!   OV        0.98     PT        1.05     SC        1.07     TC        1.10     
!   TS        0.90     WF        0.98     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.99     GG        1.00*    HN        1.41     
!   KK        1.00*    KP        1.00     LA        0.92     MA        1.01     
!   MC        1.13     MK        1.00*    NL        0.98     ON        1.04     
!   OV        1.01     PT        1.02     SC        1.06     TC        1.00*    
!   TS        1.00*    WF        1.06     WZ        1.00     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.97     GG        1.00*    HN        1.05     
!   KK        1.00*    KP        0.98     LA        0.93     MA        1.00*    
!   MC        1.00*    MK        1.02     NL        1.00     ON        1.00*    
!   OV        0.99     PT        1.02     SC        1.00*    TC        1.00*    
!   TS        0.82     WF        0.98     WZ        1.00*    
! 
!  A total of 81 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        1.00     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.07     LA        0.97     MA        1.43     
!   MC        0.93     MK        1.00*    NL        1.10     ON        0.93     
!   OV        1.09     PT        1.08     SC        1.04     TC        1.00*    
!   TS        1.00*    WF        1.00     WZ        0.99     
! 
!  A total of 18 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 7.
!  Telescope amplitude corrections in sub-array 7:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.02     
!   MC        0.93     MK        1.00*    NL        1.00*    ON        1.19     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.09     
! 
! 
! Fit before self-cal, rms=0.266574Jy  sigma=0.001294
! Fit after  self-cal, rms=0.296122Jy  sigma=0.001266
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Estimated beam: bmin=0.5918 mas, bmaj=1.536 mas, bpa=-4.168 degrees
! Estimated noise=249.938 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 (-3.68, 8.16).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00676723 Jy
! Component: 100  -  total flux cleaned = 0.0101758 Jy
! Component: 150  -  total flux cleaned = 0.012175 Jy
! Component: 200  -  total flux cleaned = 0.0142252 Jy
! Total flux subtracted in 200 components = 0.0142252 Jy
! Clean residual min=-0.003813 max=0.005687 Jy/beam
! Clean residual mean=0.000199 rms=0.000962 Jy/beam
! Combined flux in latest and established models = 0.694812 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 96 components and 0.694812 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295770Jy  sigma=0.001260
! Fit after  self-cal, rms=0.296294Jy  sigma=0.001259
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Added new window around map position (-1.44, 6.24).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00415637 Jy
! Component: 100  -  total flux cleaned = 0.0060513 Jy
! Component: 150  -  total flux cleaned = 0.00770031 Jy
! Component: 200  -  total flux cleaned = 0.0092839 Jy
! Total flux subtracted in 200 components = 0.0092839 Jy
! Clean residual min=-0.003397 max=0.004119 Jy/beam
! Clean residual mean=0.000158 rms=0.000830 Jy/beam
! Combined flux in latest and established models = 0.704096 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 107 components and 0.704096 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296117Jy  sigma=0.001257
! Fit after  self-cal, rms=0.296088Jy  sigma=0.001257
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 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.296088Jy  sigma=0.001257
! Fit after  self-cal, rms=0.297193Jy  sigma=0.001255
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Estimated beam: bmin=0.591 mas, bmaj=1.532 mas, bpa=-3.956 degrees
! Estimated noise=248.283 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00119324 Jy
! Component: 100  -  total flux cleaned = 0.00284863 Jy
! Component: 150  -  total flux cleaned = 0.00441255 Jy
! Component: 200  -  total flux cleaned = 0.00590597 Jy
! Total flux subtracted in 200 components = 0.00590597 Jy
! Clean residual min=-0.002937 max=0.003815 Jy/beam
! Clean residual mean=0.000161 rms=0.000724 Jy/beam
! Combined flux in latest and established models = 0.710002 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 115 components and 0.710002 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297072Jy  sigma=0.001254
! Fit after  self-cal, rms=0.297109Jy  sigma=0.001254
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 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 (8.8, -4.32).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00212018 Jy
! Component: 100  -  total flux cleaned = 0.0029597 Jy
! Component: 150  -  total flux cleaned = 0.00408755 Jy
! Component: 200  -  total flux cleaned = 0.00486013 Jy
! Total flux subtracted in 200 components = 0.00486013 Jy
! Clean residual min=-0.002774 max=0.002812 Jy/beam
! Clean residual mean=0.000142 rms=0.000665 Jy/beam
! Combined flux in latest and established models = 0.714862 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 125 components and 0.714862 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297017Jy  sigma=0.001252
! Fit after  self-cal, rms=0.296993Jy  sigma=0.001252
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Added new window around map position (-1.92, 3.04).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00138836 Jy
! Component: 100  -  total flux cleaned = 0.00207505 Jy
! Component: 150  -  total flux cleaned = 0.00269518 Jy
! Component: 200  -  total flux cleaned = 0.00327177 Jy
! Total flux subtracted in 200 components = 0.00327177 Jy
! Clean residual min=-0.002604 max=0.002451 Jy/beam
! Clean residual mean=0.000128 rms=0.000632 Jy/beam
! Combined flux in latest and established models = 0.718134 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 136 components and 0.718134 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296928Jy  sigma=0.001252
! Fit after  self-cal, rms=0.296919Jy  sigma=0.001251
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 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.296919Jy  sigma=0.001251
! Fit after  self-cal, rms=0.301867Jy  sigma=0.001251
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Estimated beam: bmin=0.5906 mas, bmaj=1.528 mas, bpa=-3.796 degrees
! Estimated noise=247.049 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000965413 Jy
! Component: 100  -  total flux cleaned = 0.00212902 Jy
! Component: 150  -  total flux cleaned = 0.00307918 Jy
! Component: 200  -  total flux cleaned = 0.00379617 Jy
! Total flux subtracted in 200 components = 0.00379617 Jy
! Clean residual min=-0.002297 max=0.002398 Jy/beam
! Clean residual mean=0.000121 rms=0.000580 Jy/beam
! Combined flux in latest and established models = 0.72193 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 147 components and 0.72193 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301816Jy  sigma=0.001250
! Fit after  self-cal, rms=0.301926Jy  sigma=0.001250
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 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.000329077 Jy
! Component: 100  -  total flux cleaned = 0.00101773 Jy
! Component: 150  -  total flux cleaned = 0.0014559 Jy
! Component: 200  -  total flux cleaned = 0.00175007 Jy
! Total flux subtracted in 200 components = 0.00175007 Jy
! Clean residual min=-0.002277 max=0.002313 Jy/beam
! Clean residual mean=0.000114 rms=0.000559 Jy/beam
! Combined flux in latest and established models = 0.72368 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 153 components and 0.72368 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.301888Jy  sigma=0.001250
! Fit after  self-cal, rms=0.301885Jy  sigma=0.001250
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 90 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.301885Jy  sigma=0.001250
! Fit after  self-cal, rms=0.299106Jy  sigma=0.001249
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Estimated beam: bmin=1.912 mas, bmaj=2.626 mas, bpa=-2.459 degrees
! Estimated noise=297.85 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0017841 Jy
! Component: 100  -  total flux cleaned = 0.00292376 Jy
! Component: 150  -  total flux cleaned = 0.00384104 Jy
! Component: 200  -  total flux cleaned = 0.00465855 Jy
! Total flux subtracted in 200 components = 0.00465855 Jy
! Clean residual min=-0.001741 max=0.002352 Jy/beam
! Clean residual mean=0.000227 rms=0.000599 Jy/beam
! Combined flux in latest and established models = 0.728339 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 177 components and 0.728339 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299079Jy  sigma=0.001249
! Fit after  self-cal, rms=0.299053Jy  sigma=0.001249
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 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 = -6.69081e-06 Jy
! Component: 100  -  total flux cleaned = 0.000456764 Jy
! Component: 150  -  total flux cleaned = 0.0010527 Jy
! Component: 200  -  total flux cleaned = 0.00147871 Jy
! Total flux subtracted in 200 components = 0.00147871 Jy
! Clean residual min=-0.001619 max=0.002336 Jy/beam
! Clean residual mean=0.000214 rms=0.000579 Jy/beam
! Combined flux in latest and established models = 0.729817 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 189 components and 0.729818 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299037Jy  sigma=0.001249
! Fit after  self-cal, rms=0.299020Jy  sigma=0.001249
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 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 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Estimated beam: bmin=0.5903 mas, bmaj=1.525 mas, bpa=-3.703 degrees
! Estimated noise=246.284 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5903 x 1.525 at -3.703 degrees (North through East)
! Clean map  min=-0.0020796  max=0.28174 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
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 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Estimated beam: bmin=0.4767 mas, bmaj=1.328 mas, bpa=-3.526 degrees
! Estimated noise=620.854 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.249536 Jy
! Component: 100  -  total flux cleaned = 0.380275 Jy
! Component: 150  -  total flux cleaned = 0.458473 Jy
! Component: 200  -  total flux cleaned = 0.507388 Jy
! Total flux subtracted in 200 components = 0.507388 Jy
! Clean residual min=-0.010796 max=0.025979 Jy/beam
! Clean residual mean=0.000075 rms=0.002661 Jy/beam
! Combined flux in latest and established models = 0.507388 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 0.507387 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Estimated beam: bmin=0.5903 mas, bmaj=1.525 mas, bpa=-3.703 degrees
! Estimated noise=246.284 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.051004 Jy
! Component: 100  -  total flux cleaned = 0.0820795 Jy
! Component: 150  -  total flux cleaned = 0.105371 Jy
! Component: 200  -  total flux cleaned = 0.12353 Jy
! Total flux subtracted in 200 components = 0.12353 Jy
! Clean residual min=-0.005383 max=0.010798 Jy/beam
! Clean residual mean=0.000488 rms=0.002218 Jy/beam
! Combined flux in latest and established models = 0.630918 Jy
! Adding 49 model components to the UV plane model.
! The established model now contains 56 components and 0.630918 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0145153 Jy
! Component: 100  -  total flux cleaned = 0.0262705 Jy
! Component: 150  -  total flux cleaned = 0.0359369 Jy
! Component: 200  -  total flux cleaned = 0.0441402 Jy
! Total flux subtracted in 200 components = 0.0441402 Jy
! Clean residual min=-0.003516 max=0.005521 Jy/beam
! Clean residual mean=0.000311 rms=0.001263 Jy/beam
! Combined flux in latest and established models = 0.675058 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 95 components and 0.675058 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Added new window around map position (0.64, -0.48).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00709855 Jy
! Component: 100  -  total flux cleaned = 0.01322 Jy
! Component: 150  -  total flux cleaned = 0.018565 Jy
! Component: 200  -  total flux cleaned = 0.0232542 Jy
! Total flux subtracted in 200 components = 0.0232542 Jy
! Clean residual min=-0.002653 max=0.003249 Jy/beam
! Clean residual mean=0.000219 rms=0.000835 Jy/beam
! Combined flux in latest and established models = 0.698312 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 124 components and 0.698312 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 90 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Estimated beam: bmin=1.912 mas, bmaj=2.626 mas, bpa=-2.459 degrees
! Estimated noise=297.85 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0071864 Jy
! Component: 100  -  total flux cleaned = 0.0125515 Jy
! Component: 150  -  total flux cleaned = 0.0167648 Jy
! Component: 200  -  total flux cleaned = 0.0201411 Jy
! Total flux subtracted in 200 components = 0.0201411 Jy
! Clean residual min=-0.001908 max=0.002593 Jy/beam
! Clean residual mean=0.000312 rms=0.000773 Jy/beam
! Combined flux in latest and established models = 0.718453 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.00274758 Jy
! Component: 100  -  total flux cleaned = 0.00500036 Jy
! Component: 150  -  total flux cleaned = 0.00685104 Jy
! Component: 200  -  total flux cleaned = 0.0083756 Jy
! Total flux subtracted in 200 components = 0.0083756 Jy
! Clean residual min=-0.001696 max=0.002085 Jy/beam
! Clean residual mean=0.000239 rms=0.000580 Jy/beam
! Combined flux in latest and established models = 0.726829 Jy
! Adding 122 model components to the UV plane model.
! The established model now contains 234 components and 0.726829 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! Estimated beam: bmin=0.5903 mas, bmaj=1.525 mas, bpa=-3.703 degrees
! Estimated noise=246.284 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 7.11336e-05 Jy
! Component: 100  -  total flux cleaned = 0.000203317 Jy
! Component: 150  -  total flux cleaned = 0.000443502 Jy
! Component: 200  -  total flux cleaned = 0.000670718 Jy
! Total flux subtracted in 200 components = 0.000670718 Jy
! Clean residual min=-0.002121 max=0.002107 Jy/beam
! Clean residual mean=0.000104 rms=0.000499 Jy/beam
! Combined flux in latest and established models = 0.7275 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 258 components and 0.7275 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299187Jy  sigma=0.001248
! Fit after  self-cal, rms=0.298969Jy  sigma=0.001247
wmodel J2330+1100_X_2003_05_07_pus_map.mod
! Writing 258 model components to file: J2330+1100_X_2003_05_07_pus_map.mod
wobs J2330+1100_X_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J2330+1100_X_2003_05_07_pus_uvs.fits
wwins J2330+1100_X_2003_05_07_pus_map.win
! wwins: Wrote 10 windows to J2330+1100_X_2003_05_07_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 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000157936 Jy
! Component: 100  -  total flux cleaned = 0.000726263 Jy
! Component: 150  -  total flux cleaned = 0.001299 Jy
! Component: 200  -  total flux cleaned = 0.00185321 Jy
! Component: 250  -  total flux cleaned = 0.00227233 Jy
! Component: 300  -  total flux cleaned = 0.00259265 Jy
! Component: 350  -  total flux cleaned = 0.00293398 Jy
! Component: 400  -  total flux cleaned = 0.00315712 Jy
! Component: 450  -  total flux cleaned = 0.00340355 Jy
! Component: 500  -  total flux cleaned = 0.00367308 Jy
! Component: 550  -  total flux cleaned = 0.00388553 Jy
! Component: 600  -  total flux cleaned = 0.00422614 Jy
! Component: 650  -  total flux cleaned = 0.00445846 Jy
! Component: 700  -  total flux cleaned = 0.00473929 Jy
! Component: 750  -  total flux cleaned = 0.00499135 Jy
! Component: 800  -  total flux cleaned = 0.00519059 Jy
! Component: 850  -  total flux cleaned = 0.00546172 Jy
! Component: 900  -  total flux cleaned = 0.00565698 Jy
! Component: 950  -  total flux cleaned = 0.00587447 Jy
! Component: 1000  -  total flux cleaned = 0.00611326 Jy
! Component: 1050  -  total flux cleaned = 0.00632616 Jy
! Component: 1100  -  total flux cleaned = 0.00649043 Jy
! Component: 1150  -  total flux cleaned = 0.00667637 Jy
! Component: 1200  -  total flux cleaned = 0.00688376 Jy
! Component: 1250  -  total flux cleaned = 0.00708943 Jy
! Component: 1300  -  total flux cleaned = 0.00731597 Jy
! Component: 1350  -  total flux cleaned = 0.00751792 Jy
! Component: 1400  -  total flux cleaned = 0.00767385 Jy
! Component: 1450  -  total flux cleaned = 0.00785061 Jy
! Component: 1500  -  total flux cleaned = 0.00809135 Jy
! Component: 1550  -  total flux cleaned = 0.00822166 Jy
! Component: 1600  -  total flux cleaned = 0.00843715 Jy
! Component: 1650  -  total flux cleaned = 0.0085655 Jy
! Component: 1700  -  total flux cleaned = 0.00875678 Jy
! Component: 1750  -  total flux cleaned = 0.00892547 Jy
! Component: 1800  -  total flux cleaned = 0.00921852 Jy
! Component: 1850  -  total flux cleaned = 0.00930154 Jy
! Component: 1900  -  total flux cleaned = 0.00954916 Jy
! Component: 1950  -  total flux cleaned = 0.009713 Jy
! Component: 2000  -  total flux cleaned = 0.00989623 Jy
! Total flux subtracted in 2048 components = 0.0100379 Jy
! Clean residual min=-0.001045 max=0.001135 Jy/beam
! Clean residual mean=0.000068 rms=0.000370 Jy/beam
! Combined flux in latest and established models = 0.737537 Jy
keep
! Adding 152 model components to the UV plane model.
! The established model now contains 407 components and 0.737538 Jy
wmap "J2330+1100_X_2003_05_07_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5903 x 1.525 at -3.703 degrees (North through East)
! Clean map  min=-0.0020411  max=0.2799 Jy/beam
! Writing clean map to FITS file: J2330+1100_X_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.279899 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.266% of the data.
!  The x-axis pixel size should ideally be below 0.156 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000371089 
device "J2330+1100_X_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J2330+1100_X_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.397739 0.397739 0.795479 1.59096 3.18191 6.36383 12.7277 25.4553 50.9106
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.279 
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.5903 x 1.525 at -3.703 degrees (North through East)
! Clean map  min=-0.0020411  max=0.2799 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2330+1100_X_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J2330+1100_X_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2330+1100_X_2003_05_07_pus_uvs.log closed on Thu Dec 14 18:31:56 2006