! Started logfile: J1310+3220_S_2003_06_18_pus_uvs.log on Tue Jan 23 22:49:05 2007
obs J1310+3220_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J1310+3220_S_2003_06_18_pus_uva.fits
! AN table 1: 24 integrations on 153 of 153 possible baselines.
! AN table 2: 77 integrations on 153 of 153 possible baselines.
! AN table 3: 11 integrations on 153 of 153 possible baselines.
! AN table 4: 45 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0442113 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1310+3220
! 
! 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 2425 lines of history.
! 
! Reading 4248 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 282 telescope corrections were flagged in sub-array 1.
!  A total of 1240 telescope corrections were flagged in sub-array 2.
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  A total of 712 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 282 telescope corrections were flagged in sub-array 1.
!  A total of 1240 telescope corrections were flagged in sub-array 2.
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  A total of 712 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 282 telescope corrections were flagged in sub-array 1.
!  A total of 1240 telescope corrections were flagged in sub-array 2.
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  A total of 712 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 282 telescope corrections were flagged in sub-array 1.
!  A total of 1240 telescope corrections were flagged in sub-array 2.
!  A total of 198 telescope corrections were flagged in sub-array 3.
!  A total of 712 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.873338Jy  sigma=0.009401
! Fit after  self-cal, rms=0.360986Jy  sigma=0.004265
! 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=3.845 mas, bmaj=7.845 mas, bpa=37.17 degrees
! Estimated noise=1277.77 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.86219 Jy
! Component: 100  -  total flux cleaned = 1.12616 Jy
! Total flux subtracted in 100 components = 1.12616 Jy
! Clean residual min=-0.046248 max=0.108534 Jy/beam
! Clean residual mean=0.000680 rms=0.017555 Jy/beam
! Combined flux in latest and established models = 1.12616 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.12616 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277452Jy  sigma=0.003229
! Fit after  self-cal, rms=0.277383Jy  sigma=0.003228
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.110913 Jy
! Component: 100  -  total flux cleaned = 0.165657 Jy
! Total flux subtracted in 100 components = 0.165657 Jy
! Clean residual min=-0.034870 max=0.044909 Jy/beam
! Clean residual mean=0.000220 rms=0.010525 Jy/beam
! Combined flux in latest and established models = 1.29182 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 29 components and 1.29182 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.221329Jy  sigma=0.002557
! Fit after  self-cal, rms=0.221253Jy  sigma=0.002556
! 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=4.76 mas, bmaj=8.599 mas, bpa=32.28 degrees
! Estimated noise=937.295 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.0417577 Jy
! Component: 100  -  total flux cleaned = 0.0642215 Jy
! Component: 150  -  total flux cleaned = 0.069827 Jy
! Component: 200  -  total flux cleaned = 0.0708092 Jy
! Total flux subtracted in 200 components = 0.0708092 Jy
! Clean residual min=-0.028383 max=0.044906 Jy/beam
! Clean residual mean=-0.000198 rms=0.009889 Jy/beam
! Combined flux in latest and established models = 1.36263 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 51 components and 1.36263 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.212227Jy  sigma=0.002460
! Fit after  self-cal, rms=0.212083Jy  sigma=0.002458
! 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.02     FD        0.94     GG        1.00*    HN        1.04     
!   KK        1.00*    KP        0.92     LA        0.98     MA        1.00*    
!   MK        1.00*    NL        1.06     ON        1.00*    OV        0.77     
!   PT        1.00*    SC        0.94     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.97     GG        1.00*    HN        0.94     
!   KK        1.00*    KP        0.96     LA        0.98     MA        1.00*    
!   MK        1.00*    NL        1.12     ON        1.00*    OV        1.00     
!   PT        0.99     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.08     FD        0.98     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.99     LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.00*    OV        0.92     
!   PT        1.03     SC        1.00*    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        0.98     FD        0.95     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.02     LA        0.98     MA        1.00*    
!   MK        1.00*    NL        1.00     ON        1.00*    OV        0.92     
!   PT        1.00*    SC        0.98     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.99     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.06     LA        1.00     MA        1.00*    
!   MK        1.00*    NL        1.07     ON        1.00*    OV        0.99     
!   PT        0.99     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 9 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        1.00*    
!   KK        1.00*    KP        1.10     LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.00*    OV        0.99     
!   PT        1.12     SC        1.00*    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        0.99     FD        0.96     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.00     LA        0.95     MA        1.00*    
!   MK        1.00*    NL        1.00     ON        1.00*    OV        0.94     
!   PT        1.00*    SC        1.14     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.04     LA        0.95     MA        1.00*    
!   MK        1.00*    NL        1.07     ON        1.00*    OV        1.00     
!   PT        1.01     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.05     FD        0.97     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.09     LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.00*    OV        1.02     
!   PT        1.08     SC        1.00*    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        0.96     FD        0.98     GG        1.00*    HN        1.39     
!   KK        1.00*    KP        1.02     LA        0.99     MA        1.00*    
!   MK        1.00*    NL        1.04     ON        1.00*    OV        0.83     
!   PT        1.00*    SC        1.18     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00     GG        1.00*    HN        0.83     
!   KK        1.00*    KP        1.05     LA        1.00     MA        1.00*    
!   MK        1.00*    NL        1.14     ON        1.00*    OV        1.04     
!   PT        1.04     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   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 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.99     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.07     LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.00*    ON        1.00*    OV        0.94     
!   PT        1.11     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.212083Jy  sigma=0.002458
! Fit after  self-cal, rms=0.167377Jy  sigma=0.001956
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.817 mas, bmaj=8.69 mas, bpa=31.97 degrees
! Estimated noise=946.952 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 (-9, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00921514 Jy
! Component: 100  -  total flux cleaned = 0.00618703 Jy
! Component: 150  -  total flux cleaned = 0.00440281 Jy
! Component: 200  -  total flux cleaned = 0.00311841 Jy
! Total flux subtracted in 200 components = 0.00311841 Jy
! Clean residual min=-0.010764 max=0.010892 Jy/beam
! Clean residual mean=-0.000149 rms=0.002991 Jy/beam
! Combined flux in latest and established models = 1.36575 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 73 components and 1.36575 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165780Jy  sigma=0.001935
! Fit after  self-cal, rms=0.165793Jy  sigma=0.001932
! 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.165793Jy  sigma=0.001932
! Fit after  self-cal, rms=0.165891Jy  sigma=0.001928
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=4.813 mas, bmaj=8.696 mas, bpa=32.15 degrees
! Estimated noise=947.504 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00563049 Jy
! Component: 100  -  total flux cleaned = 0.0045939 Jy
! Component: 150  -  total flux cleaned = 0.00373876 Jy
! Component: 200  -  total flux cleaned = 0.00270909 Jy
! Total flux subtracted in 200 components = 0.00270909 Jy
! Clean residual min=-0.008338 max=0.008759 Jy/beam
! Clean residual mean=-0.000104 rms=0.002445 Jy/beam
! Combined flux in latest and established models = 1.36846 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 88 components and 1.36846 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.165199Jy  sigma=0.001919
! Fit after  self-cal, rms=0.165122Jy  sigma=0.001918
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.000782104 Jy
! Component: 100  -  total flux cleaned = 0.000263686 Jy
! Component: 150  -  total flux cleaned = 0.000142613 Jy
! Component: 200  -  total flux cleaned = 0.000144247 Jy
! Total flux subtracted in 200 components = 0.000144247 Jy
! Clean residual min=-0.008328 max=0.008395 Jy/beam
! Clean residual mean=-0.000108 rms=0.002327 Jy/beam
! Combined flux in latest and established models = 1.3686 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 102 components and 1.3686 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164944Jy  sigma=0.001916
! Fit after  self-cal, rms=0.164925Jy  sigma=0.001916
! 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.164925Jy  sigma=0.001916
! Fit after  self-cal, rms=0.165053Jy  sigma=0.001913
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=4.814 mas, bmaj=8.701 mas, bpa=32.25 degrees
! Estimated noise=947.967 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00433294 Jy
! Component: 100  -  total flux cleaned = 0.00337646 Jy
! Component: 150  -  total flux cleaned = 0.00262138 Jy
! Component: 200  -  total flux cleaned = 0.00225453 Jy
! Total flux subtracted in 200 components = 0.00225453 Jy
! Clean residual min=-0.006070 max=0.007286 Jy/beam
! Clean residual mean=-0.000072 rms=0.002014 Jy/beam
! Combined flux in latest and established models = 1.37086 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 118 components and 1.37086 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164771Jy  sigma=0.001909
! Fit after  self-cal, rms=0.164743Jy  sigma=0.001909
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.000595712 Jy
! Component: 100  -  total flux cleaned = 0.00051398 Jy
! Component: 150  -  total flux cleaned = 0.000435614 Jy
! Component: 200  -  total flux cleaned = 0.000581155 Jy
! Total flux subtracted in 200 components = 0.000581155 Jy
! Clean residual min=-0.005950 max=0.007039 Jy/beam
! Clean residual mean=-0.000078 rms=0.001955 Jy/beam
! Combined flux in latest and established models = 1.37144 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 131 components and 1.37144 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164670Jy  sigma=0.001908
! Fit after  self-cal, rms=0.164664Jy  sigma=0.001908
! 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.164664Jy  sigma=0.001908
! Fit after  self-cal, rms=0.164817Jy  sigma=0.001907
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.628 mas, bmaj=10.87 mas, bpa=6.581 degrees
! Estimated noise=1067.82 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00171741 Jy
! Component: 100  -  total flux cleaned = 0.00158718 Jy
! Component: 150  -  total flux cleaned = 0.0013349 Jy
! Component: 200  -  total flux cleaned = 0.00126027 Jy
! Total flux subtracted in 200 components = 0.00126027 Jy
! Clean residual min=-0.005621 max=0.007003 Jy/beam
! Clean residual mean=-0.000073 rms=0.002114 Jy/beam
! Combined flux in latest and established models = 1.3727 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 139 components and 1.3727 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164694Jy  sigma=0.001905
! Fit after  self-cal, rms=0.164672Jy  sigma=0.001905
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.000265358 Jy
! Component: 100  -  total flux cleaned = 0.000406431 Jy
! Component: 150  -  total flux cleaned = 0.000676759 Jy
! Component: 200  -  total flux cleaned = 0.00101755 Jy
! Total flux subtracted in 200 components = 0.00101755 Jy
! Clean residual min=-0.005679 max=0.006735 Jy/beam
! Clean residual mean=-0.000089 rms=0.002050 Jy/beam
! Combined flux in latest and established models = 1.37371 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 151 components and 1.37371 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164652Jy  sigma=0.001904
! Fit after  self-cal, rms=0.164644Jy  sigma=0.001904
! 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=4.816 mas, bmaj=8.704 mas, bpa=32.3 degrees
! Estimated noise=948.4 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.816 x 8.704 at 32.3 degrees (North through East)
! Clean map  min=-0.0068469  max=1.1421 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.164644Jy  sigma=0.001904
! Fit after  self-cal, rms=0.139810Jy  sigma=0.001575
! Inverting map and beam 
! Estimated beam: bmin=4.812 mas, bmaj=8.711 mas, bpa=32.4 degrees
! Estimated noise=947.865 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000453093 Jy
! Component: 100  -  total flux cleaned = 0.000207864 Jy
! Component: 150  -  total flux cleaned = 0.000341038 Jy
! Component: 200  -  total flux cleaned = 0.000463961 Jy
! Total flux subtracted in 200 components = 0.000463961 Jy
! Clean residual min=-0.005223 max=0.005715 Jy/beam
! Clean residual mean=-0.000033 rms=0.001532 Jy/beam
! Combined flux in latest and established models = 1.37418 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 169 components and 1.37418 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139717Jy  sigma=0.001573
! Fit after  self-cal, rms=0.139709Jy  sigma=0.001573
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000508455 Jy
! Component: 100  -  total flux cleaned = 0.000619856 Jy
! Component: 150  -  total flux cleaned = 0.000725526 Jy
! Component: 200  -  total flux cleaned = 0.000824612 Jy
! Total flux subtracted in 200 components = 0.000824612 Jy
! Clean residual min=-0.005170 max=0.005469 Jy/beam
! Clean residual mean=-0.000041 rms=0.001505 Jy/beam
! Combined flux in latest and established models = 1.375 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 181 components and 1.375 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139671Jy  sigma=0.001573
! Fit after  self-cal, rms=0.139668Jy  sigma=0.001573
! 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.139668Jy  sigma=0.001573
! Fit after  self-cal, rms=0.139758Jy  sigma=0.001572
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=3.785 mas, bmaj=7.974 mas, bpa=37.5 degrees
! Estimated noise=1205.75 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.859348 Jy
! Component: 100  -  total flux cleaned = 1.12558 Jy
! Component: 150  -  total flux cleaned = 1.23703 Jy
! Component: 200  -  total flux cleaned = 1.2949 Jy
! Total flux subtracted in 200 components = 1.2949 Jy
! Clean residual min=-0.016056 max=0.028618 Jy/beam
! Clean residual mean=0.000335 rms=0.005748 Jy/beam
! Combined flux in latest and established models = 1.2949 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 27 model components to the UV plane model.
! The established model now contains 27 components and 1.2949 Jy
! Inverting map and beam 
! Estimated beam: bmin=4.815 mas, bmaj=8.714 mas, bpa=32.4 degrees
! Estimated noise=948.094 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.039604 Jy
! Component: 100  -  total flux cleaned = 0.0611467 Jy
! Component: 150  -  total flux cleaned = 0.0727018 Jy
! Component: 200  -  total flux cleaned = 0.0771825 Jy
! Total flux subtracted in 200 components = 0.0771825 Jy
! Clean residual min=-0.008485 max=0.007063 Jy/beam
! Clean residual mean=0.000010 rms=0.001973 Jy/beam
! Combined flux in latest and established models = 1.37208 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 59 components and 1.37208 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.632 mas, bmaj=10.87 mas, bpa=6.642 degrees
! Estimated noise=1066.9 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00363987 Jy
! Component: 100  -  total flux cleaned = 0.00383202 Jy
! Component: 150  -  total flux cleaned = 0.00354468 Jy
! Component: 200  -  total flux cleaned = 0.00341686 Jy
! Total flux subtracted in 200 components = 0.00341686 Jy
! Clean residual min=-0.005273 max=0.006414 Jy/beam
! Clean residual mean=-0.000043 rms=0.001795 Jy/beam
! Combined flux in latest and established models = 1.3755 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.000188545 Jy
! Component: 100  -  total flux cleaned = 0.000528182 Jy
! Component: 150  -  total flux cleaned = 0.000753929 Jy
! Component: 200  -  total flux cleaned = 0.00102351 Jy
! Total flux subtracted in 200 components = 0.00102351 Jy
! Clean residual min=-0.005153 max=0.005771 Jy/beam
! Clean residual mean=-0.000063 rms=0.001703 Jy/beam
! Combined flux in latest and established models = 1.37652 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 97 components and 1.37652 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=4.815 mas, bmaj=8.714 mas, bpa=32.4 degrees
! Estimated noise=948.094 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000780997 Jy
! Component: 100  -  total flux cleaned = 0.000766079 Jy
! Component: 150  -  total flux cleaned = 0.00108323 Jy
! Component: 200  -  total flux cleaned = 0.00117799 Jy
! Total flux subtracted in 200 components = 0.00117799 Jy
! Clean residual min=-0.006024 max=0.005343 Jy/beam
! Clean residual mean=-0.000048 rms=0.001570 Jy/beam
! Combined flux in latest and established models = 1.3777 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 114 components and 1.3777 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139966Jy  sigma=0.001575
! Fit after  self-cal, rms=0.139948Jy  sigma=0.001575
wmodel J1310+3220_S_2003_06_18_pus_map.mod
! Writing 114 model components to file: J1310+3220_S_2003_06_18_pus_map.mod
wobs J1310+3220_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J1310+3220_S_2003_06_18_pus_uvs.fits
wwins J1310+3220_S_2003_06_18_pus_map.win
! wwins: Wrote 2 windows to J1310+3220_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.00246821 Jy
! Component: 100  -  total flux cleaned = -0.00321282 Jy
! Component: 150  -  total flux cleaned = -0.00405762 Jy
! Component: 200  -  total flux cleaned = -0.00485337 Jy
! Component: 250  -  total flux cleaned = -0.00530786 Jy
! Component: 300  -  total flux cleaned = -0.00588844 Jy
! Component: 350  -  total flux cleaned = -0.00630437 Jy
! Component: 400  -  total flux cleaned = -0.00650531 Jy
! Component: 450  -  total flux cleaned = -0.00695466 Jy
! Component: 500  -  total flux cleaned = -0.00714095 Jy
! Component: 550  -  total flux cleaned = -0.00726177 Jy
! Component: 600  -  total flux cleaned = -0.00726279 Jy
! Component: 650  -  total flux cleaned = -0.00715068 Jy
! Component: 700  -  total flux cleaned = -0.00698727 Jy
! Component: 750  -  total flux cleaned = -0.0067729 Jy
! Component: 800  -  total flux cleaned = -0.00677318 Jy
! Component: 850  -  total flux cleaned = -0.00672154 Jy
! Component: 900  -  total flux cleaned = -0.00657067 Jy
! Component: 950  -  total flux cleaned = -0.00652122 Jy
! Component: 1000  -  total flux cleaned = -0.00632772 Jy
! Component: 1050  -  total flux cleaned = -0.00628104 Jy
! Component: 1100  -  total flux cleaned = -0.00628201 Jy
! Component: 1150  -  total flux cleaned = -0.00623564 Jy
! Component: 1200  -  total flux cleaned = -0.00619075 Jy
! Component: 1250  -  total flux cleaned = -0.00614702 Jy
! Component: 1300  -  total flux cleaned = -0.00614685 Jy
! Component: 1350  -  total flux cleaned = -0.00610254 Jy
! Component: 1400  -  total flux cleaned = -0.00593401 Jy
! Component: 1450  -  total flux cleaned = -0.00597546 Jy
! Component: 1500  -  total flux cleaned = -0.00597507 Jy
! Component: 1550  -  total flux cleaned = -0.00601534 Jy
! Component: 1600  -  total flux cleaned = -0.0060156 Jy
! Component: 1650  -  total flux cleaned = -0.00597708 Jy
! Component: 1700  -  total flux cleaned = -0.00609143 Jy
! Component: 1750  -  total flux cleaned = -0.0060912 Jy
! Component: 1800  -  total flux cleaned = -0.00612856 Jy
! Component: 1850  -  total flux cleaned = -0.00601846 Jy
! Component: 1900  -  total flux cleaned = -0.00605473 Jy
! Component: 1950  -  total flux cleaned = -0.0059832 Jy
! Component: 2000  -  total flux cleaned = -0.00584315 Jy
! Total flux subtracted in 2048 components = -0.00573961 Jy
! Clean residual min=-0.001970 max=0.002145 Jy/beam
! Clean residual mean=0.000009 rms=0.000739 Jy/beam
! Combined flux in latest and established models = 1.37196 Jy
keep
! Adding 113 model components to the UV plane model.
! The established model now contains 227 components and 1.37196 Jy
wmap "J1310+3220_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.815 x 8.714 at 32.4 degrees (North through East)
! Clean map  min=-0.0065003  max=1.1395 Jy/beam
! Writing clean map to FITS file: J1310+3220_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 1.13954 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000730572 
device "J1310+3220_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J1310+3220_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.192334 0.192334 0.384668 0.769337 1.53867 3.07735 6.15469 12.3094 24.6188 49.2376 98.4751
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.139 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.815 x 8.714 at 32.4 degrees (North through East)
! Clean map  min=-0.0065003  max=1.1395 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1310+3220_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J1310+3220_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1310+3220_S_2003_06_18_pus_uvs.log closed on Tue Jan 23 22:50:12 2007