! Started logfile: J0239+0416_S_2003_06_18_pus_uvs.log on Wed Jan 24 17:01:40 2007
obs J0239+0416_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J0239+0416_S_2003_06_18_pus_uva.fits
! AN table 1: 24 integrations on 153 of 153 possible baselines.
! AN table 2: 303 integrations on 153 of 153 possible baselines.
! AN table 3: 55 integrations on 153 of 153 possible baselines.
! AN table 4: 203 integrations on 153 of 153 possible baselines.
! AN table 5: 79 integrations on 153 of 153 possible baselines.
! AN table 6: 112 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0352571 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0239+0416
! 
! 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  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2429 lines of history.
! 
! Reading 16744 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
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.500x0.500 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 313 telescope corrections were flagged in sub-array 1.
!  A total of 5177 telescope corrections were flagged in sub-array 2.
!  A total of 938 telescope corrections were flagged in sub-array 3.
!  A total of 3184 telescope corrections were flagged in sub-array 4.
!  A total of 1237 telescope corrections were flagged in sub-array 5.
!  A total of 1512 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 313 telescope corrections were flagged in sub-array 1.
!  A total of 5177 telescope corrections were flagged in sub-array 2.
!  A total of 938 telescope corrections were flagged in sub-array 3.
!  A total of 3186 telescope corrections were flagged in sub-array 4.
!  A total of 1237 telescope corrections were flagged in sub-array 5.
!  A total of 1512 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 313 telescope corrections were flagged in sub-array 1.
!  A total of 5177 telescope corrections were flagged in sub-array 2.
!  A total of 938 telescope corrections were flagged in sub-array 3.
!  A total of 3189 telescope corrections were flagged in sub-array 4.
!  A total of 1237 telescope corrections were flagged in sub-array 5.
!  A total of 1512 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 313 telescope corrections were flagged in sub-array 1.
!  A total of 5186 telescope corrections were flagged in sub-array 2.
!  A total of 938 telescope corrections were flagged in sub-array 3.
!  A total of 3193 telescope corrections were flagged in sub-array 4.
!  A total of 1237 telescope corrections were flagged in sub-array 5.
!  A total of 1512 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.753103Jy  sigma=0.007236
! Fit after  self-cal, rms=0.479981Jy  sigma=0.004726
! 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 
! Estimated beam: bmin=2.327 mas, bmaj=6.8 mas, bpa=-1.342 degrees
! Estimated noise=750.4 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.438121 Jy
! Component: 100  -  total flux cleaned = 0.578541 Jy
! Total flux subtracted in 100 components = 0.578541 Jy
! Clean residual min=-0.017233 max=0.056763 Jy/beam
! Clean residual mean=0.000379 rms=0.006000 Jy/beam
! Combined flux in latest and established models = 0.578541 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.578541 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280960Jy  sigma=0.002309
! Fit after  self-cal, rms=0.280782Jy  sigma=0.002307
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.057814 Jy
! Component: 100  -  total flux cleaned = 0.0825372 Jy
! Total flux subtracted in 100 components = 0.0825372 Jy
! Clean residual min=-0.014918 max=0.017181 Jy/beam
! Clean residual mean=0.000293 rms=0.004023 Jy/beam
! Combined flux in latest and established models = 0.661078 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 18 components and 0.661078 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269448Jy  sigma=0.002086
! Fit after  self-cal, rms=0.269486Jy  sigma=0.002085
! Inverting map 
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 
! Estimated beam: bmin=3.326 mas, bmaj=7.839 mas, bpa=-6.932 degrees
! Estimated noise=591.184 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.0200967 Jy
! Component: 100  -  total flux cleaned = 0.0295863 Jy
! Component: 150  -  total flux cleaned = 0.0346667 Jy
! Component: 200  -  total flux cleaned = 0.0375443 Jy
! Total flux subtracted in 200 components = 0.0375443 Jy
! Clean residual min=-0.010664 max=0.016622 Jy/beam
! Clean residual mean=0.000838 rms=0.003911 Jy/beam
! Combined flux in latest and established models = 0.698622 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 38 components and 0.698622 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268953Jy  sigma=0.002057
! Fit after  self-cal, rms=0.268888Jy  sigma=0.002056
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.97     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.00*    LA        1.05     MA        1.00*    
!   MK        1.00*    NL        1.04     ON        1.00*    OV        1.00*    
!   PT        1.08     SC        0.91     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.07     FD        0.88     GG        1.00*    HN        1.99     
!   KK        1.00*    KP        0.73     LA        0.94     MA        1.00*    
!   MK        0.91     NL        1.01     ON        1.00*    OV        0.81     
!   PT        0.93     SC        1.00*    TC        1.00*    TS        1.09     
!   WF        1.08     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.07     KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00     NL        1.00*    ON        1.00*    OV        0.99     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        0.93     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.11     OV        1.00*    
!   PT        1.00*    SC        0.94     TC        1.00*    TS        1.00*    
!   WF        0.90     WZ        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.03     FD        0.96     GG        1.00*    HN        1.00     
!   KK        1.00*    KP        0.95     LA        0.96     MA        1.00*    
!   MK        1.00*    NL        1.02     ON        1.00*    OV        1.20     
!   PT        0.96     SC        0.90     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 105 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.03     FD        0.98     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        0.99     LA        0.98     MA        1.00*    
!   MK        1.00*    NL        1.04     ON        1.00*    OV        1.34     
!   PT        0.97     SC        0.89     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00     GG        1.00*    HN        1.01     
!   KK        1.00*    KP        1.00*    LA        1.00     MA        1.00*    
!   MK        1.00*    NL        0.96     ON        1.00*    OV        1.00*    
!   PT        1.06     SC        0.97     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.90     GG        1.00*    HN        1.44     
!   KK        1.00*    KP        0.87     LA        0.91     MA        1.00*    
!   MK        1.07     NL        0.97     ON        1.00*    OV        0.69     
!   PT        0.92     SC        1.00*    TC        1.00*    TS        1.03     
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.04     KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.12     NL        1.00*    ON        1.00*    OV        0.98     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 144 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.04     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.03     OV        1.00*    
!   PT        1.00*    SC        0.93     TC        1.00*    TS        1.00*    
!   WF        0.95     WZ        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.04     FD        0.96     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.03     LA        0.97     MA        1.00*    
!   MK        1.00*    NL        0.98     ON        1.00*    OV        0.95     
!   PT        1.00     SC        0.91     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 105 telescope corrections were flagged in sub-array 6.
!  Telescope amplitude corrections in sub-array 6:
!   BR        1.02     FD        0.97     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.07     LA        0.98     MA        1.00*    
!   MK        1.00*    NL        0.97     ON        1.00*    OV        1.06     
!   PT        0.98     SC        0.95     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.05     GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.00*    LA        0.97     MA        1.00*    
!   MK        1.00*    NL        0.98     ON        1.00*    OV        1.00*    
!   PT        1.06     SC        1.11     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 84 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.91     GG        1.00*    HN        1.72     
!   KK        1.00*    KP        0.93     LA        0.90     MA        1.00*    
!   MK        1.03     NL        0.96     ON        1.00*    OV        1.00     
!   PT        0.94     SC        1.00*    TC        1.00*    TS        1.10     
!   WF        1.07     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.06     KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.11     NL        1.00*    ON        1.00*    OV        1.09     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.08     OV        1.00*    
!   PT        1.00*    SC        1.14     TC        1.00*    TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.02     FD        0.99     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.03     LA        1.00     MA        1.00*    
!   MK        1.00*    NL        0.98     ON        1.00*    OV        1.06     
!   PT        1.04     SC        1.05     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 105 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.08     
!   KK        1.00*    KP        1.03     LA        0.94     MA        1.00*    
!   MK        1.00*    NL        0.99     ON        1.00*    OV        1.18     
!   PT        1.00     SC        1.09     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.04     GG        1.00*    HN        1.10     
!   KK        1.00*    KP        1.00*    LA        1.05     MA        1.00*    
!   MK        1.00*    NL        1.07     ON        1.00*    OV        1.00*    
!   PT        1.12     SC        1.08     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.94     GG        1.00*    HN        2.26     
!   KK        1.00*    KP        0.90     LA        0.97     MA        1.00*    
!   MK        0.98     NL        1.02     ON        1.00*    OV        0.94     
!   PT        0.98     SC        1.00*    TC        1.00*    TS        1.07     
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.07     KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.01     NL        1.00*    ON        1.00*    OV        0.95     
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 141 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        0.92     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.12     OV        1.00*    
!   PT        1.00*    SC        1.15     TC        1.00*    TS        1.00*    
!   WF        1.01     WZ        1.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        0.97     GG        1.00*    HN        1.01     
!   KK        1.00*    KP        1.08     LA        0.98     MA        1.00*    
!   MK        1.00*    NL        1.07     ON        1.00*    OV        0.93     
!   PT        1.05     SC        1.11     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 105 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        0.96     
!   KK        1.00*    KP        1.07     LA        1.00     MA        1.00*    
!   MK        1.00*    NL        1.04     ON        1.00*    OV        1.10     
!   PT        1.03     SC        1.07     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.268888Jy  sigma=0.002056
! Fit after  self-cal, rms=0.320986Jy  sigma=0.001903
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.341 mas, bmaj=8.005 mas, bpa=-6.728 degrees
! Estimated noise=608.016 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 (-8.5, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00746521 Jy
! Component: 100  -  total flux cleaned = 0.0080922 Jy
! Component: 150  -  total flux cleaned = 0.00843995 Jy
! Component: 200  -  total flux cleaned = 0.00834451 Jy
! Total flux subtracted in 200 components = 0.00834451 Jy
! Clean residual min=-0.006209 max=0.006874 Jy/beam
! Clean residual mean=-0.000011 rms=0.001570 Jy/beam
! Combined flux in latest and established models = 0.706967 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 60 components and 0.706967 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.320777Jy  sigma=0.001899
! Fit after  self-cal, rms=0.321311Jy  sigma=0.001897
! Inverting map 
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.321311Jy  sigma=0.001897
! Fit after  self-cal, rms=0.323062Jy  sigma=0.001894
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.339 mas, bmaj=8.001 mas, bpa=-6.641 degrees
! Estimated noise=607.409 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0035616 Jy
! Component: 100  -  total flux cleaned = 0.00411503 Jy
! Component: 150  -  total flux cleaned = 0.00412835 Jy
! Component: 200  -  total flux cleaned = 0.00413008 Jy
! Total flux subtracted in 200 components = 0.00413008 Jy
! Clean residual min=-0.005888 max=0.006610 Jy/beam
! Clean residual mean=0.000002 rms=0.001455 Jy/beam
! Combined flux in latest and established models = 0.711097 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 70 components and 0.711097 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.322975Jy  sigma=0.001892
! Fit after  self-cal, rms=0.323012Jy  sigma=0.001892
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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 (-42, 13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00645714 Jy
! Component: 100  -  total flux cleaned = 0.00942102 Jy
! Component: 150  -  total flux cleaned = 0.00987167 Jy
! Component: 200  -  total flux cleaned = 0.0101043 Jy
! Total flux subtracted in 200 components = 0.0101043 Jy
! Clean residual min=-0.005314 max=0.003954 Jy/beam
! Clean residual mean=-0.000170 rms=0.001178 Jy/beam
! Combined flux in latest and established models = 0.721201 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 96 components and 0.721201 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.322868Jy  sigma=0.001890
! Fit after  self-cal, rms=0.322883Jy  sigma=0.001890
! Inverting map 
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.322883Jy  sigma=0.001890
! Fit after  self-cal, rms=0.323700Jy  sigma=0.001889
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.342 mas, bmaj=8 mas, bpa=-6.614 degrees
! Estimated noise=606.779 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00282777 Jy
! Component: 100  -  total flux cleaned = 0.00347675 Jy
! Component: 150  -  total flux cleaned = 0.00417144 Jy
! Component: 200  -  total flux cleaned = 0.00463208 Jy
! Total flux subtracted in 200 components = 0.00463208 Jy
! Clean residual min=-0.004742 max=0.003789 Jy/beam
! Clean residual mean=-0.000087 rms=0.001079 Jy/beam
! Combined flux in latest and established models = 0.725833 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 111 components and 0.725833 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323649Jy  sigma=0.001888
! Fit after  self-cal, rms=0.323685Jy  sigma=0.001888
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.00078562 Jy
! Component: 100  -  total flux cleaned = 0.000964026 Jy
! Component: 150  -  total flux cleaned = 0.000964598 Jy
! Component: 200  -  total flux cleaned = 0.00101738 Jy
! Total flux subtracted in 200 components = 0.00101738 Jy
! Clean residual min=-0.004782 max=0.003696 Jy/beam
! Clean residual mean=-0.000103 rms=0.001062 Jy/beam
! Combined flux in latest and established models = 0.72685 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 124 components and 0.72685 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323662Jy  sigma=0.001888
! Fit after  self-cal, rms=0.323670Jy  sigma=0.001888
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 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.323670Jy  sigma=0.001888
! Fit after  self-cal, rms=0.324394Jy  sigma=0.001888
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.489 mas, bmaj=12.4 mas, bpa=-23.03 degrees
! Estimated noise=723.76 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00171844 Jy
! Component: 100  -  total flux cleaned = 0.00229461 Jy
! Component: 150  -  total flux cleaned = 0.00235395 Jy
! Component: 200  -  total flux cleaned = 0.00239965 Jy
! Total flux subtracted in 200 components = 0.00239965 Jy
! Clean residual min=-0.003587 max=0.004210 Jy/beam
! Clean residual mean=-0.000150 rms=0.001282 Jy/beam
! Combined flux in latest and established models = 0.72925 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 149 components and 0.72925 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324406Jy  sigma=0.001887
! Fit after  self-cal, rms=0.324386Jy  sigma=0.001887
flux_cutoff = imstat(rms) * dynam
! Inverting map 
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.000470378 Jy
! Component: 100  -  total flux cleaned = 0.000514845 Jy
! Component: 150  -  total flux cleaned = 0.000478811 Jy
! Component: 200  -  total flux cleaned = 0.000512454 Jy
! Total flux subtracted in 200 components = 0.000512454 Jy
! Clean residual min=-0.003463 max=0.004069 Jy/beam
! Clean residual mean=-0.000169 rms=0.001255 Jy/beam
! Combined flux in latest and established models = 0.729763 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 165 components and 0.729762 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324388Jy  sigma=0.001887
! Fit after  self-cal, rms=0.324381Jy  sigma=0.001887
! Inverting map 
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 
! Estimated beam: bmin=3.344 mas, bmaj=8.004 mas, bpa=-6.591 degrees
! Estimated noise=606.634 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.344 x 8.004 at -6.591 degrees (North through East)
! Clean map  min=-0.0041404  max=0.60172 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.324381Jy  sigma=0.001887
! Fit after  self-cal, rms=0.521115Jy  sigma=0.001683
! Inverting map and beam 
! Estimated beam: bmin=3.345 mas, bmaj=8.013 mas, bpa=-6.558 degrees
! Estimated noise=606.477 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000361238 Jy
! Component: 100  -  total flux cleaned = 0.000540517 Jy
! Component: 150  -  total flux cleaned = 0.000745623 Jy
! Component: 200  -  total flux cleaned = 0.000746702 Jy
! Total flux subtracted in 200 components = 0.000746702 Jy
! Clean residual min=-0.003906 max=0.003667 Jy/beam
! Clean residual mean=-0.000043 rms=0.000958 Jy/beam
! Combined flux in latest and established models = 0.730509 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 174 components and 0.730509 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.521092Jy  sigma=0.001682
! Fit after  self-cal, rms=0.521124Jy  sigma=0.001682
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000313681 Jy
! Component: 100  -  total flux cleaned = 0.00031397 Jy
! Component: 150  -  total flux cleaned = 0.000356365 Jy
! Component: 200  -  total flux cleaned = 0.000354812 Jy
! Total flux subtracted in 200 components = 0.000354812 Jy
! Clean residual min=-0.003921 max=0.003686 Jy/beam
! Clean residual mean=-0.000048 rms=0.000952 Jy/beam
! Combined flux in latest and established models = 0.730864 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 181 components and 0.730864 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.521111Jy  sigma=0.001682
! Fit after  self-cal, rms=0.521115Jy  sigma=0.001682
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.521115Jy  sigma=0.001682
! Fit after  self-cal, rms=0.646736Jy  sigma=0.001682
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 
! Estimated beam: bmin=2.351 mas, bmaj=6.943 mas, bpa=-1.495 degrees
! Estimated noise=760.717 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.437501 Jy
! Component: 100  -  total flux cleaned = 0.576745 Jy
! Component: 150  -  total flux cleaned = 0.632608 Jy
! Component: 200  -  total flux cleaned = 0.655761 Jy
! Total flux subtracted in 200 components = 0.655761 Jy
! Clean residual min=-0.006203 max=0.010870 Jy/beam
! Clean residual mean=0.000128 rms=0.001885 Jy/beam
! Combined flux in latest and established models = 0.655761 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 11 model components to the UV plane model.
! The established model now contains 11 components and 0.655761 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.348 mas, bmaj=8.02 mas, bpa=-6.546 degrees
! Estimated noise=606.364 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.0234574 Jy
! Component: 100  -  total flux cleaned = 0.0368763 Jy
! Component: 150  -  total flux cleaned = 0.0465272 Jy
! Component: 200  -  total flux cleaned = 0.0537678 Jy
! Total flux subtracted in 200 components = 0.0537678 Jy
! Clean residual min=-0.005108 max=0.004938 Jy/beam
! Clean residual mean=0.000306 rms=0.001429 Jy/beam
! Combined flux in latest and established models = 0.709529 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 58 components and 0.709529 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.48 mas, bmaj=12.41 mas, bpa=-22.92 degrees
! Estimated noise=723.099 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00796711 Jy
! Component: 100  -  total flux cleaned = 0.0130051 Jy
! Component: 150  -  total flux cleaned = 0.0163939 Jy
! Component: 200  -  total flux cleaned = 0.0187091 Jy
! Total flux subtracted in 200 components = 0.0187091 Jy
! Clean residual min=-0.003332 max=0.004599 Jy/beam
! Clean residual mean=0.000003 rms=0.001294 Jy/beam
! Combined flux in latest and established models = 0.728238 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.000609535 Jy
! Component: 100  -  total flux cleaned = 0.00107082 Jy
! Component: 150  -  total flux cleaned = 0.00147455 Jy
! Component: 200  -  total flux cleaned = 0.00182851 Jy
! Total flux subtracted in 200 components = 0.00182851 Jy
! Clean residual min=-0.003199 max=0.004315 Jy/beam
! Clean residual mean=-0.000056 rms=0.001204 Jy/beam
! Combined flux in latest and established models = 0.730066 Jy
! Adding 91 model components to the UV plane model.
! The established model now contains 145 components and 0.730066 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.348 mas, bmaj=8.02 mas, bpa=-6.546 degrees
! Estimated noise=606.364 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000275617 Jy
! Component: 100  -  total flux cleaned = 0.000610259 Jy
! Component: 150  -  total flux cleaned = 0.000785483 Jy
! Component: 200  -  total flux cleaned = 0.000895322 Jy
! Total flux subtracted in 200 components = 0.000895322 Jy
! Clean residual min=-0.004281 max=0.003734 Jy/beam
! Clean residual mean=-0.000038 rms=0.000960 Jy/beam
! Combined flux in latest and established models = 0.730962 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 164 components and 0.730962 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.646741Jy  sigma=0.001682
! Fit after  self-cal, rms=0.646711Jy  sigma=0.001682
wmodel J0239+0416_S_2003_06_18_pus_map.mod
! Writing 164 model components to file: J0239+0416_S_2003_06_18_pus_map.mod
wobs J0239+0416_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J0239+0416_S_2003_06_18_pus_uvs.fits
wwins J0239+0416_S_2003_06_18_pus_map.win
! wwins: Wrote 3 windows to J0239+0416_S_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 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000358878 Jy
! Component: 100  -  total flux cleaned = -0.000112577 Jy
! Component: 150  -  total flux cleaned = 2.28996e-06 Jy
! Component: 200  -  total flux cleaned = 3.13764e-06 Jy
! Component: 250  -  total flux cleaned = -9.73253e-05 Jy
! Component: 300  -  total flux cleaned = -0.000388775 Jy
! Component: 350  -  total flux cleaned = -0.00057709 Jy
! Component: 400  -  total flux cleaned = -0.000805702 Jy
! Component: 450  -  total flux cleaned = -0.000984513 Jy
! Component: 500  -  total flux cleaned = -0.00115822 Jy
! Component: 550  -  total flux cleaned = -0.00128485 Jy
! Component: 600  -  total flux cleaned = -0.00132656 Jy
! Component: 650  -  total flux cleaned = -0.00148999 Jy
! Component: 700  -  total flux cleaned = -0.00164964 Jy
! Component: 750  -  total flux cleaned = -0.00184511 Jy
! Component: 800  -  total flux cleaned = -0.00199857 Jy
! Component: 850  -  total flux cleaned = -0.00214866 Jy
! Component: 900  -  total flux cleaned = -0.00225917 Jy
! Component: 950  -  total flux cleaned = -0.00240428 Jy
! Component: 1000  -  total flux cleaned = -0.00254702 Jy
! Component: 1050  -  total flux cleaned = -0.00258236 Jy
! Component: 1100  -  total flux cleaned = -0.00265181 Jy
! Component: 1150  -  total flux cleaned = -0.00278889 Jy
! Component: 1200  -  total flux cleaned = -0.00289002 Jy
! Component: 1250  -  total flux cleaned = -0.00295665 Jy
! Component: 1300  -  total flux cleaned = -0.00305556 Jy
! Component: 1350  -  total flux cleaned = -0.00315321 Jy
! Component: 1400  -  total flux cleaned = -0.00324945 Jy
! Component: 1450  -  total flux cleaned = -0.0033761 Jy
! Component: 1500  -  total flux cleaned = -0.00343878 Jy
! Component: 1550  -  total flux cleaned = -0.00353172 Jy
! Component: 1600  -  total flux cleaned = -0.00359292 Jy
! Component: 1650  -  total flux cleaned = -0.00368405 Jy
! Component: 1700  -  total flux cleaned = -0.00374422 Jy
! Component: 1750  -  total flux cleaned = -0.00383363 Jy
! Component: 1800  -  total flux cleaned = -0.00392202 Jy
! Component: 1850  -  total flux cleaned = -0.00403889 Jy
! Component: 1900  -  total flux cleaned = -0.00403883 Jy
! Component: 1950  -  total flux cleaned = -0.00415392 Jy
! Component: 2000  -  total flux cleaned = -0.00418244 Jy
! Total flux subtracted in 2048 components = -0.00429558 Jy
! Clean residual min=-0.001742 max=0.001766 Jy/beam
! Clean residual mean=-0.000023 rms=0.000586 Jy/beam
! Combined flux in latest and established models = 0.726666 Jy
keep
! Adding 138 model components to the UV plane model.
! The established model now contains 302 components and 0.726666 Jy
wmap "J0239+0416_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.348 x 8.02 at -6.546 degrees (North through East)
! Clean map  min=-0.0033524  max=0.60048 Jy/beam
! Writing clean map to FITS file: J0239+0416_S_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 0.600476 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000582919 
device "J0239+0416_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J0239+0416_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.291228 0.291228 0.582457 1.16491 2.32983 4.65966 9.31931 18.6386 37.2772 74.5545
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.6 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.348 x 8.02 at -6.546 degrees (North through East)
! Clean map  min=-0.0033524  max=0.60048 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0239+0416_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J0239+0416_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0239+0416_S_2003_06_18_pus_uvs.log closed on Wed Jan 24 17:05:12 2007