! Started logfile: J0339-0146_X_2003_06_18_pus_uvs.log on Wed Jan 17 16:22:28 2007
obs J0339-0146_X_2003_06_18_pus_uva.fits
! Reading UV FITS file: J0339-0146_X_2003_06_18_pus_uva.fits
! AN table 1: 53 integrations on 153 of 153 possible baselines.
! AN table 2: 7 integrations on 153 of 153 possible baselines.
! AN table 3: 132 integrations on 153 of 153 possible baselines.
! AN table 4: 245 integrations on 153 of 153 possible baselines.
! AN table 5: 77 integrations on 153 of 153 possible baselines.
! AN table 6: 144 integrations on 153 of 153 possible baselines.
! AN table 7: Unused.
! AN table 8: 189 integrations on 153 of 153 possible baselines.
! AN table 9: Unused.
! Apparent sampling: 0.142903 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0339-0146
! 
! 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 2231 lines of history.
! 
! Reading 74076 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 = 256
float field_cell
field_cell = 0.2
float taper_size
taper_size = 70.
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 954 telescope corrections were flagged in sub-array 1.
!  A total of 126 telescope corrections were flagged in sub-array 2.
!  A total of 1718 telescope corrections were flagged in sub-array 3.
!  A total of 3174 telescope corrections were flagged in sub-array 4.
!  A total of 1101 telescope corrections were flagged in sub-array 5.
!  A total of 2185 telescope corrections were flagged in sub-array 6.
!  A total of 3402 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 2.
!  A total of 954 telescope corrections were flagged in sub-array 1.
!  A total of 126 telescope corrections were flagged in sub-array 2.
!  A total of 1688 telescope corrections were flagged in sub-array 3.
!  A total of 3133 telescope corrections were flagged in sub-array 4.
!  A total of 1069 telescope corrections were flagged in sub-array 5.
!  A total of 2186 telescope corrections were flagged in sub-array 6.
!  A total of 3345 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 3.
!  A total of 954 telescope corrections were flagged in sub-array 1.
!  A total of 126 telescope corrections were flagged in sub-array 2.
!  A total of 1688 telescope corrections were flagged in sub-array 3.
!  A total of 3133 telescope corrections were flagged in sub-array 4.
!  A total of 1069 telescope corrections were flagged in sub-array 5.
!  A total of 2188 telescope corrections were flagged in sub-array 6.
!  A total of 3345 telescope corrections were flagged in sub-array 7.
! 
! Correcting IF 4.
!  A total of 954 telescope corrections were flagged in sub-array 1.
!  A total of 126 telescope corrections were flagged in sub-array 2.
!  A total of 1688 telescope corrections were flagged in sub-array 3.
!  A total of 3133 telescope corrections were flagged in sub-array 4.
!  A total of 1069 telescope corrections were flagged in sub-array 5.
!  A total of 2188 telescope corrections were flagged in sub-array 6.
!  A total of 3345 telescope corrections were flagged in sub-array 7.
! 
! Fit before self-cal, rms=1.630423Jy  sigma=0.020038
! Fit after  self-cal, rms=1.009284Jy  sigma=0.012671
! 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 1.94% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Estimated beam: bmin=0.5825 mas, bmaj=1.138 mas, bpa=-0.635 degrees
! Estimated noise=750.133 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.30256 Jy
! Component: 100  -  total flux cleaned = 1.73591 Jy
! Total flux subtracted in 100 components = 1.73591 Jy
! Clean residual min=-0.049767 max=0.190239 Jy/beam
! Clean residual mean=0.000148 rms=0.018943 Jy/beam
! Combined flux in latest and established models = 1.73591 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.73591 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.569322Jy  sigma=0.006084
! Fit after  self-cal, rms=0.568202Jy  sigma=0.006079
! Inverting map 
! Your choice of large map pixels excluded 1.94% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.213776 Jy
! Component: 100  -  total flux cleaned = 0.330744 Jy
! Total flux subtracted in 100 components = 0.330744 Jy
! Clean residual min=-0.036872 max=0.072545 Jy/beam
! Clean residual mean=-0.000087 rms=0.010795 Jy/beam
! Combined flux in latest and established models = 2.06665 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 17 components and 2.06665 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.454259Jy  sigma=0.004048
! Fit after  self-cal, rms=0.453711Jy  sigma=0.004047
! Inverting map 
! Your choice of large map pixels excluded 1.94% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Added new window around map position (1.4, 0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.076745 Jy
! Component: 100  -  total flux cleaned = 0.127356 Jy
! Total flux subtracted in 100 components = 0.127356 Jy
! Clean residual min=-0.037362 max=0.048258 Jy/beam
! Clean residual mean=-0.000239 rms=0.009200 Jy/beam
! Combined flux in latest and established models = 2.19401 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 25 components and 2.19401 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.432488Jy  sigma=0.003607
! Fit after  self-cal, rms=0.431608Jy  sigma=0.003597
! Inverting map 
! Your choice of large map pixels excluded 1.94% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 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 1.94% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Estimated beam: bmin=0.8172 mas, bmaj=1.57 mas, bpa=-3.217 degrees
! Estimated noise=366.594 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.0803306 Jy
! Component: 100  -  total flux cleaned = 0.124644 Jy
! Component: 150  -  total flux cleaned = 0.150824 Jy
! Component: 200  -  total flux cleaned = 0.166614 Jy
! Total flux subtracted in 200 components = 0.166614 Jy
! Clean residual min=-0.031162 max=0.038157 Jy/beam
! Clean residual mean=-0.000719 rms=0.010683 Jy/beam
! Combined flux in latest and established models = 2.36062 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 36 components and 2.36062 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.421114Jy  sigma=0.003306
! Fit after  self-cal, rms=0.419765Jy  sigma=0.003288
! Inverting map 
! Your choice of large map pixels excluded 1.94% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        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*    
! 
!  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*    
!   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 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.96     GG        1.00*    HN        0.99     
!   KK        1.20     KP        1.01     LA        0.97     MA        1.00*    
!   MK        1.03     NL        1.04     ON        1.00*    OV        0.96     
!   PT        0.96     SC        0.99     TC        1.04     TS        1.00*    
!   WF        1.05     WZ        1.00*    
! 
!  A total of 207 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.97     GG        1.00*    HN        0.88     
!   KK        1.00*    KP        0.97     LA        0.99     MA        1.00*    
!   MK        1.00*    NL        1.08     ON        1.02     OV        0.98     
!   PT        0.99     SC        0.97     TC        1.13     TS        1.00*    
!   WF        0.97     WZ        0.83     
! 
!  A total of 84 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        0.95     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.52     ON        0.98     OV        1.00*    
!   PT        1.00*    SC        0.96     TC        1.00*    TS        1.00*    
!   WF        1.01     WZ        1.02     
! 
!  A total of 117 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.97     FD        1.03     GG        1.00*    HN        1.00*    
!   KK        1.07     KP        1.01     LA        1.00     MA        1.00*    
!   MK        0.99     NL        1.33     ON        1.00*    OV        0.98     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.41     
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 7:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        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*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        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*    
! 
!  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*    
!   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 126 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.95     GG        1.00*    HN        1.00     
!   KK        1.19     KP        0.96     LA        0.97     MA        1.00*    
!   MK        1.03     NL        1.01     ON        1.00*    OV        0.95     
!   PT        1.00     SC        0.95     TC        1.09     TS        1.00*    
!   WF        1.08     WZ        1.00*    
! 
!  A total of 207 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        0.97     GG        1.00*    HN        0.89     
!   KK        1.00*    KP        0.93     LA        1.00     MA        1.09     
!   MK        1.00*    NL        1.04     ON        1.04     OV        0.97     
!   PT        1.03     SC        0.93     TC        1.11     TS        1.00*    
!   WF        0.98     WZ        0.81     
! 
!  A total of 57 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        0.97     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.05     
!   MK        1.00*    NL        1.47     ON        1.00     OV        1.00*    
!   PT        1.00*    SC        0.91     TC        1.00*    TS        1.00*    
!   WF        1.02     WZ        0.92     
! 
!  A total of 117 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.98     FD        1.01     GG        1.00*    HN        1.00*    
!   KK        1.03     KP        0.96     LA        0.99     MA        1.00*    
!   MK        1.06     NL        1.27     ON        1.00*    OV        0.97     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        0.92     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 7.
!  Telescope amplitude corrections in sub-array 7:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        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*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        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*    
! 
!  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*    
!   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 126 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.95     GG        1.00*    HN        0.99     
!   KK        1.26     KP        1.00     LA        0.98     MA        1.00*    
!   MK        1.03     NL        0.99     ON        1.00*    OV        1.00     
!   PT        1.03     SC        0.98     TC        1.00     TS        1.00*    
!   WF        1.08     WZ        1.00*    
! 
!  A total of 207 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.06     FD        0.96     GG        1.00*    HN        0.88     
!   KK        1.00*    KP        0.97     LA        1.01     MA        1.20     
!   MK        1.00*    NL        1.03     ON        1.04     OV        1.02     
!   PT        1.06     SC        0.96     TC        1.07     TS        1.00*    
!   WF        0.96     WZ        0.83     
! 
!  A total of 57 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        0.97     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.06     
!   MK        1.00*    NL        1.45     ON        1.00     OV        1.00*    
!   PT        1.00*    SC        0.95     TC        1.00*    TS        1.00*    
!   WF        0.94     WZ        0.95     
! 
!  A total of 120 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.02     FD        1.00     GG        1.00*    HN        1.00*    
!   KK        1.11     KP        1.00     LA        1.00     MA        1.00*    
!   MK        1.05     NL        1.26     ON        1.00*    OV        1.02     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        0.93     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 7.
!  Telescope amplitude corrections in sub-array 7:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        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*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        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*    
! 
!  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*    
!   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 126 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.93     GG        1.00*    HN        1.02     
!   KK        1.19     KP        0.96     LA        0.96     MA        1.00*    
!   MK        1.04     NL        0.99     ON        1.00*    OV        0.99     
!   PT        1.03     SC        1.04     TC        1.03     TS        1.00*    
!   WF        1.06     WZ        1.00*    
! 
!  A total of 207 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        0.95     GG        1.00*    HN        0.92     
!   KK        1.00*    KP        0.93     LA        0.99     MA        1.20     
!   MK        1.00*    NL        1.03     ON        1.08     OV        1.00     
!   PT        1.07     SC        1.01     TC        1.04     TS        1.00*    
!   WF        0.94     WZ        0.86     
! 
!  A total of 57 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        0.99     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.05     
!   MK        1.00*    NL        1.44     ON        1.00     OV        1.00*    
!   PT        1.00*    SC        1.00     TC        1.00*    TS        1.00*    
!   WF        0.95     WZ        0.99     
! 
!  A total of 120 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.01     FD        1.00     GG        1.00*    HN        1.00*    
!   KK        1.04     KP        0.96     LA        0.98     MA        1.00*    
!   MK        1.09     NL        1.28     ON        1.00*    OV        1.00     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        0.93     
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 57 telescope corrections were flagged in sub-array 7.
!  Telescope amplitude corrections in sub-array 7:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        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*    
! 
! 
! Fit before self-cal, rms=0.419765Jy  sigma=0.003288
! Fit after  self-cal, rms=0.394053Jy  sigma=0.002782
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Estimated beam: bmin=0.8288 mas, bmaj=1.635 mas, bpa=-3.929 degrees
! Estimated noise=371.292 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.017864 Jy
! Component: 100  -  total flux cleaned = 0.0173785 Jy
! Component: 150  -  total flux cleaned = 0.0169987 Jy
! Component: 200  -  total flux cleaned = 0.0167363 Jy
! Total flux subtracted in 200 components = 0.0167363 Jy
! Clean residual min=-0.025403 max=0.030594 Jy/beam
! Clean residual mean=-0.000280 rms=0.007139 Jy/beam
! Combined flux in latest and established models = 2.37736 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 46 components and 2.37736 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.392865Jy  sigma=0.002758
! Fit after  self-cal, rms=0.393030Jy  sigma=0.002752
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 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.393030Jy  sigma=0.002752
! Fit after  self-cal, rms=0.382925Jy  sigma=0.002537
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Estimated beam: bmin=0.8325 mas, bmaj=1.636 mas, bpa=-3.863 degrees
! Estimated noise=370.496 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00642175 Jy
! Component: 100  -  total flux cleaned = 0.00684242 Jy
! Component: 150  -  total flux cleaned = 0.00655162 Jy
! Component: 200  -  total flux cleaned = 0.00657697 Jy
! Total flux subtracted in 200 components = 0.00657697 Jy
! Clean residual min=-0.016949 max=0.022663 Jy/beam
! Clean residual mean=-0.000410 rms=0.005051 Jy/beam
! Combined flux in latest and established models = 2.38394 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 49 components and 2.38394 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381976Jy  sigma=0.002522
! Fit after  self-cal, rms=0.381928Jy  sigma=0.002519
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (3, 1.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0178303 Jy
! Component: 100  -  total flux cleaned = 0.0178166 Jy
! Component: 150  -  total flux cleaned = 0.0178058 Jy
! Component: 200  -  total flux cleaned = 0.018344 Jy
! Total flux subtracted in 200 components = 0.018344 Jy
! Clean residual min=-0.017396 max=0.015870 Jy/beam
! Clean residual mean=-0.000591 rms=0.004632 Jy/beam
! Combined flux in latest and established models = 2.40228 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 69 components and 2.40228 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380749Jy  sigma=0.002495
! Fit after  self-cal, rms=0.380576Jy  sigma=0.002491
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 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.380576Jy  sigma=0.002491
! Fit after  self-cal, rms=0.359212Jy  sigma=0.002118
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Estimated beam: bmin=0.8336 mas, bmaj=1.635 mas, bpa=-3.835 degrees
! Estimated noise=370.314 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00959892 Jy
! Component: 100  -  total flux cleaned = 0.0131327 Jy
! Component: 150  -  total flux cleaned = 0.0153179 Jy
! Component: 200  -  total flux cleaned = 0.0159004 Jy
! Total flux subtracted in 200 components = 0.0159004 Jy
! Clean residual min=-0.005609 max=0.009236 Jy/beam
! Clean residual mean=0.000236 rms=0.001778 Jy/beam
! Combined flux in latest and established models = 2.41818 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 77 components and 2.41818 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358625Jy  sigma=0.002106
! Fit after  self-cal, rms=0.358500Jy  sigma=0.002103
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 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 (5, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00581343 Jy
! Component: 100  -  total flux cleaned = 0.00839131 Jy
! Component: 150  -  total flux cleaned = 0.00963294 Jy
! Component: 200  -  total flux cleaned = 0.0102537 Jy
! Total flux subtracted in 200 components = 0.0102537 Jy
! Clean residual min=-0.005408 max=0.006927 Jy/beam
! Clean residual mean=0.000140 rms=0.001502 Jy/beam
! Combined flux in latest and established models = 2.42843 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 84 components and 2.42843 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358157Jy  sigma=0.002098
! Fit after  self-cal, rms=0.358143Jy  sigma=0.002097
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Added new window around map position (0.6, 2.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00270298 Jy
! Component: 100  -  total flux cleaned = 0.00324055 Jy
! Component: 150  -  total flux cleaned = 0.00356107 Jy
! Component: 200  -  total flux cleaned = 0.0037047 Jy
! Total flux subtracted in 200 components = 0.0037047 Jy
! Clean residual min=-0.005413 max=0.004610 Jy/beam
! Clean residual mean=0.000092 rms=0.001395 Jy/beam
! Combined flux in latest and established models = 2.43214 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 92 components and 2.43214 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357838Jy  sigma=0.002094
! Fit after  self-cal, rms=0.357834Jy  sigma=0.002093
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 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.357834Jy  sigma=0.002093
! Fit after  self-cal, rms=0.358518Jy  sigma=0.002090
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Estimated beam: bmin=2.297 mas, bmaj=3.336 mas, bpa=-14.71 degrees
! Estimated noise=424.904 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00538872 Jy
! Component: 100  -  total flux cleaned = 0.00662443 Jy
! Component: 150  -  total flux cleaned = 0.00755057 Jy
! Component: 200  -  total flux cleaned = 0.00824674 Jy
! Total flux subtracted in 200 components = 0.00824674 Jy
! Clean residual min=-0.002877 max=0.003080 Jy/beam
! Clean residual mean=-0.000016 rms=0.001054 Jy/beam
! Combined flux in latest and established models = 2.44039 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 104 components and 2.44039 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358458Jy  sigma=0.002088
! Fit after  self-cal, rms=0.358445Jy  sigma=0.002088
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 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.000610088 Jy
! Component: 100  -  total flux cleaned = 0.00113982 Jy
! Component: 150  -  total flux cleaned = 0.00127887 Jy
! Component: 200  -  total flux cleaned = 0.001453 Jy
! Total flux subtracted in 200 components = 0.001453 Jy
! Clean residual min=-0.003418 max=0.003056 Jy/beam
! Clean residual mean=-0.000059 rms=0.001031 Jy/beam
! Combined flux in latest and established models = 2.44184 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 111 components and 2.44184 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358418Jy  sigma=0.002087
! Fit after  self-cal, rms=0.358408Jy  sigma=0.002087
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 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 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Estimated beam: bmin=0.8357 mas, bmaj=1.634 mas, bpa=-3.764 degrees
! Estimated noise=370.422 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8357 x 1.634 at -3.764 degrees (North through East)
! Clean map  min=-0.0035804  max=1.8219 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.358408Jy  sigma=0.002087
! Fit after  self-cal, rms=0.534027Jy  sigma=0.001710
! Inverting map and beam 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Estimated beam: bmin=0.836 mas, bmaj=1.632 mas, bpa=-3.733 degrees
! Estimated noise=369.979 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00133262 Jy
! Component: 100  -  total flux cleaned = 0.00198199 Jy
! Component: 150  -  total flux cleaned = 0.00184934 Jy
! Component: 200  -  total flux cleaned = 0.00185522 Jy
! Total flux subtracted in 200 components = 0.00185522 Jy
! Clean residual min=-0.003376 max=0.003388 Jy/beam
! Clean residual mean=0.000107 rms=0.000930 Jy/beam
! Combined flux in latest and established models = 2.44369 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 121 components and 2.44369 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.533839Jy  sigma=0.001707
! Fit after  self-cal, rms=0.533824Jy  sigma=0.001707
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000516414 Jy
! Component: 100  -  total flux cleaned = 0.000870819 Jy
! Component: 150  -  total flux cleaned = 0.000877218 Jy
! Component: 200  -  total flux cleaned = 0.000783344 Jy
! Total flux subtracted in 200 components = 0.000783344 Jy
! Clean residual min=-0.003421 max=0.003316 Jy/beam
! Clean residual mean=0.000099 rms=0.000894 Jy/beam
! Combined flux in latest and established models = 2.44448 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 127 components and 2.44448 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.533712Jy  sigma=0.001705
! Fit after  self-cal, rms=0.533705Jy  sigma=0.001705
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.533705Jy  sigma=0.001705
! Fit after  self-cal, rms=0.535561Jy  sigma=0.001704
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 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Estimated beam: bmin=0.5991 mas, bmaj=1.182 mas, bpa=-2.016 degrees
! Estimated noise=751.752 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.3175 Jy
! Component: 100  -  total flux cleaned = 1.74371 Jy
! Component: 150  -  total flux cleaned = 1.94361 Jy
! Component: 200  -  total flux cleaned = 2.06399 Jy
! Total flux subtracted in 200 components = 2.06399 Jy
! Clean residual min=-0.019551 max=0.064849 Jy/beam
! Clean residual mean=0.000383 rms=0.008150 Jy/beam
! Combined flux in latest and established models = 2.06399 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 17 model components to the UV plane model.
! The established model now contains 17 components and 2.06399 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Estimated beam: bmin=0.8373 mas, bmaj=1.634 mas, bpa=-3.719 degrees
! Estimated noise=369.955 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.142259 Jy
! Component: 100  -  total flux cleaned = 0.220585 Jy
! Component: 150  -  total flux cleaned = 0.269617 Jy
! Component: 200  -  total flux cleaned = 0.302128 Jy
! Total flux subtracted in 200 components = 0.302128 Jy
! Clean residual min=-0.006047 max=0.017587 Jy/beam
! Clean residual mean=0.000817 rms=0.003943 Jy/beam
! Combined flux in latest and established models = 2.36612 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 53 components and 2.36612 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0221164 Jy
! Component: 100  -  total flux cleaned = 0.0376073 Jy
! Component: 150  -  total flux cleaned = 0.0487367 Jy
! Component: 200  -  total flux cleaned = 0.0570533 Jy
! Total flux subtracted in 200 components = 0.0570533 Jy
! Clean residual min=-0.003732 max=0.006247 Jy/beam
! Clean residual mean=0.000252 rms=0.001375 Jy/beam
! Combined flux in latest and established models = 2.42317 Jy
! Adding 52 model components to the UV plane model.
! The established model now contains 92 components and 2.42317 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Added new window around map position (-0.8, -0.6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00676013 Jy
! Component: 100  -  total flux cleaned = 0.0119205 Jy
! Component: 150  -  total flux cleaned = 0.0147869 Jy
! Component: 200  -  total flux cleaned = 0.0160883 Jy
! Total flux subtracted in 200 components = 0.0160883 Jy
! Clean residual min=-0.003305 max=0.003735 Jy/beam
! Clean residual mean=0.000100 rms=0.000954 Jy/beam
! Combined flux in latest and established models = 2.43926 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 105 components and 2.43926 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 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 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Estimated beam: bmin=2.293 mas, bmaj=3.334 mas, bpa=-14.65 degrees
! Estimated noise=424.633 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00377377 Jy
! Component: 100  -  total flux cleaned = 0.00557075 Jy
! Component: 150  -  total flux cleaned = 0.00576112 Jy
! Component: 200  -  total flux cleaned = 0.00581139 Jy
! Total flux subtracted in 200 components = 0.00581139 Jy
! Clean residual min=-0.001911 max=0.002124 Jy/beam
! Clean residual mean=0.000103 rms=0.000738 Jy/beam
! Combined flux in latest and established models = 2.44507 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 = -2.27567e-06 Jy
! Component: 100  -  total flux cleaned = 3.71404e-05 Jy
! Component: 150  -  total flux cleaned = 3.58923e-05 Jy
! Component: 200  -  total flux cleaned = 3.60719e-05 Jy
! Total flux subtracted in 200 components = 3.60719e-05 Jy
! Clean residual min=-0.001808 max=0.002107 Jy/beam
! Clean residual mean=0.000109 rms=0.000713 Jy/beam
! Combined flux in latest and established models = 2.44511 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 138 components and 2.44511 Jy
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! Estimated beam: bmin=0.8373 mas, bmaj=1.634 mas, bpa=-3.719 degrees
! Estimated noise=369.955 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000153587 Jy
! Component: 100  -  total flux cleaned = -0.000181381 Jy
! Component: 150  -  total flux cleaned = -0.000285806 Jy
! Component: 200  -  total flux cleaned = -0.000290897 Jy
! Total flux subtracted in 200 components = -0.000290897 Jy
! Clean residual min=-0.003010 max=0.003182 Jy/beam
! Clean residual mean=0.000054 rms=0.000826 Jy/beam
! Combined flux in latest and established models = 2.44481 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 150 components and 2.44481 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.535821Jy  sigma=0.001701
! Fit after  self-cal, rms=0.535712Jy  sigma=0.001700
wmodel J0339-0146_X_2003_06_18_pus_map.mod
! Writing 150 model components to file: J0339-0146_X_2003_06_18_pus_map.mod
wobs J0339-0146_X_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J0339-0146_X_2003_06_18_pus_uvs.fits
wwins J0339-0146_X_2003_06_18_pus_map.win
! wwins: Wrote 6 windows to J0339-0146_X_2003_06_18_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 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000433751 Jy
! Component: 100  -  total flux cleaned = -0.000691732 Jy
! Component: 150  -  total flux cleaned = -0.000544461 Jy
! Component: 200  -  total flux cleaned = -0.000402578 Jy
! Component: 250  -  total flux cleaned = -0.000263703 Jy
! Component: 300  -  total flux cleaned = -3.67727e-05 Jy
! Component: 350  -  total flux cleaned = 5.18304e-05 Jy
! Component: 400  -  total flux cleaned = 9.57634e-05 Jy
! Component: 450  -  total flux cleaned = 0.000224588 Jy
! Component: 500  -  total flux cleaned = 0.000308781 Jy
! Component: 550  -  total flux cleaned = 0.000391333 Jy
! Component: 600  -  total flux cleaned = 0.000432132 Jy
! Component: 650  -  total flux cleaned = 0.000513063 Jy
! Component: 700  -  total flux cleaned = 0.000592435 Jy
! Component: 750  -  total flux cleaned = 0.00067125 Jy
! Component: 800  -  total flux cleaned = 0.000787003 Jy
! Component: 850  -  total flux cleaned = 0.000749054 Jy
! Component: 900  -  total flux cleaned = 0.000824332 Jy
! Component: 950  -  total flux cleaned = 0.000786973 Jy
! Component: 1000  -  total flux cleaned = 0.000786948 Jy
! Total flux subtracted in 1024 components = 0.000823498 Jy
! Clean residual min=-0.002030 max=0.002389 Jy/beam
! Clean residual mean=0.000068 rms=0.000693 Jy/beam
! Combined flux in latest and established models = 2.44564 Jy
keep
! Adding 67 model components to the UV plane model.
! The established model now contains 215 components and 2.44564 Jy
wmap "J0339-0146_X_2003_06_18_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8373 x 1.634 at -3.719 degrees (North through East)
! Clean map  min=-0.0025719  max=1.8234 Jy/beam
! Writing clean map to FITS file: J0339-0146_X_2003_06_18_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.82345 
invert
! Inverting map 
! Your choice of large map pixels excluded 1.95% of the data.
!  The x-axis pixel size should ideally be below 0.187 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1981 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000692828 
device "J0339-0146_X_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J0339-0146_X_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.113986 0.113986 0.227973 0.455946 0.911892 1.82378 3.64757 7.29514 14.5903 29.1805 58.3611
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.823 
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.8373 x 1.634 at -3.719 degrees (North through East)
! Clean map  min=-0.0025719  max=1.8234 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0339-0146_X_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J0339-0146_X_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0339-0146_X_2003_06_18_pus_uvs.log closed on Wed Jan 17 16:25:30 2007