! Started logfile: J1310+3220_S_2001_10_29_pus_uvs.log on Thu Feb 28 13:17:50 2008
obs J1310+3220_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1310+3220_S_2001_10_29_pus_uva.fits
! AN table 1: 36 integrations on 153 of 153 possible baselines.
! AN table 2: 343 integrations on 153 of 153 possible baselines.
! AN table 3: 67 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.103432 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2608 lines of history.
! 
! Reading 28232 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J1310+3220_S_2001_10_29_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 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 442 telescope corrections were flagged in sub-array 1.
!  A total of 4679 telescope corrections were flagged in sub-array 2.
!  A total of 757 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 442 telescope corrections were flagged in sub-array 1.
!  A total of 4679 telescope corrections were flagged in sub-array 2.
!  A total of 757 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 442 telescope corrections were flagged in sub-array 1.
!  A total of 4855 telescope corrections were flagged in sub-array 2.
!  A total of 757 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 442 telescope corrections were flagged in sub-array 1.
!  A total of 4956 telescope corrections were flagged in sub-array 2.
!  A total of 806 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.177174Jy  sigma=0.009035
! Fit after  self-cal, rms=0.542654Jy  sigma=0.003825
! 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=1.761 mas, bmaj=3.155 mas, bpa=0.8813 degrees
! Estimated noise=1091.16 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.774034 Jy
! Component: 100  -  total flux cleaned = 1.09518 Jy
! Total flux subtracted in 100 components = 1.09518 Jy
! Clean residual min=-0.035052 max=0.146618 Jy/beam
! Clean residual mean=-0.000019 rms=0.011407 Jy/beam
! Combined flux in latest and established models = 1.09518 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.09518 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.385933Jy  sigma=0.002873
! Fit after  self-cal, rms=0.381696Jy  sigma=0.002853
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.16895 Jy
! Component: 100  -  total flux cleaned = 0.264082 Jy
! Total flux subtracted in 100 components = 0.264082 Jy
! Clean residual min=-0.022870 max=0.050170 Jy/beam
! Clean residual mean=-0.000012 rms=0.006577 Jy/beam
! Combined flux in latest and established models = 1.35926 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 21 components and 1.35926 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.280469Jy  sigma=0.001936
! Fit after  self-cal, rms=0.278547Jy  sigma=0.001926
! Inverting map 
! Added new window around map position (-2, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0639132 Jy
! Component: 100  -  total flux cleaned = 0.10501 Jy
! Total flux subtracted in 100 components = 0.10501 Jy
! Clean residual min=-0.021172 max=0.030879 Jy/beam
! Clean residual mean=-0.000012 rms=0.005460 Jy/beam
! Combined flux in latest and established models = 1.46427 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 34 components and 1.46427 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263931Jy  sigma=0.001776
! Fit after  self-cal, rms=0.263400Jy  sigma=0.001774
! 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=2.159 mas, bmaj=3.794 mas, bpa=3.534 degrees
! Estimated noise=588.711 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, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0393988 Jy
! Component: 100  -  total flux cleaned = 0.0598249 Jy
! Component: 150  -  total flux cleaned = 0.0729913 Jy
! Component: 200  -  total flux cleaned = 0.0799366 Jy
! Total flux subtracted in 200 components = 0.0799366 Jy
! Clean residual min=-0.019297 max=0.023991 Jy/beam
! Clean residual mean=0.000282 rms=0.005772 Jy/beam
! Combined flux in latest and established models = 1.54421 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 59 components and 1.54421 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257420Jy  sigma=0.001723
! Fit after  self-cal, rms=0.256821Jy  sigma=0.001718
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.81     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.38     KK        1.00*    KP        1.00*    LA        0.89     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.92     
!   OV        0.84     PT        0.90     SC        1.03     TS        1.00*    
!   WF        1.05     WZ        1.19     
! 
!  A total of 393 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.20     
!   HN        0.99     KK        0.93     KP        1.07     LA        1.01     
!   MA        0.98     MC        1.12     MK        1.08     NL        1.03     
!   OV        1.02     PT        1.03     SC        0.95     TS        0.99     
!   WF        0.96     WZ        0.99     
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.84     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.94     KK        1.23     KP        0.90     LA        0.90     
!   MA        1.03     MC        0.98     MK        1.11     NL        0.97     
!   OV        0.86     PT        0.90     SC        0.92     TS        1.00*    
!   WF        0.89     WZ        1.03     
! 
! 
! Correcting IF 2.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.87     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.00*    LA        0.87     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.94     
!   OV        0.83     PT        0.89     SC        1.02     TS        1.00*    
!   WF        1.02     WZ        1.17     
! 
!  A total of 393 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        1.26     
!   HN        1.00     KK        0.92     KP        0.89     LA        0.99     
!   MA        0.88     MC        1.06     MK        0.98     NL        1.06     
!   OV        1.05     PT        1.02     SC        0.96     TS        1.03     
!   WF        0.96     WZ        1.04     
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.89     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.97     KK        1.26     KP        1.19     LA        0.88     
!   MA        0.95     MC        0.92     MK        1.13     NL        0.98     
!   OV        0.91     PT        0.89     SC        0.92     TS        1.00*    
!   WF        1.00     WZ        1.03     
! 
! 
! Correcting IF 3.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.89     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.10     KK        1.00*    KP        1.00*    LA        0.96     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        0.88     
!   OV        0.88     PT        1.01     SC        1.00     TS        1.00*    
!   WF        1.03     WZ        1.20     
! 
!  A total of 273 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        1.17     
!   HN        0.99     KK        0.95     KP        1.04     LA        0.99     
!   MA        1.00     MC        0.94     MK        0.94     NL        1.04     
!   OV        1.07     PT        1.03     SC        0.97     TS        1.03     
!   WF        0.96     WZ        1.02     
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.29     KP        0.92     LA        0.90     
!   MA        0.96     MC        1.79     MK        1.10     NL        0.99     
!   OV        0.90     PT        0.95     SC        0.94     TS        1.00*    
!   WF        1.25     WZ        1.05     
! 
! 
! Correcting IF 4.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.87     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.06     KK        1.00*    KP        1.00*    LA        0.89     
!   MA        1.00*    MC        1.00*    MK        0.99     NL        0.98     
!   OV        0.85     PT        0.99     SC        1.02     TS        1.00*    
!   WF        1.02     WZ        1.19     
! 
!  A total of 201 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.00*    GG        1.00*    HH        1.05     
!   HN        1.01     KK        0.92     KP        1.05     LA        1.03     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        1.15     
!   OV        1.05     PT        1.00     SC        0.98     TS        1.05     
!   WF        0.97     WZ        1.09     
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.21     KP        0.93     LA        0.92     
!   MA        1.00*    MC        1.00*    MK        1.14     NL        1.01     
!   OV        0.89     PT        0.97     SC        0.98     TS        1.00*    
!   WF        1.02     WZ        1.02     
! 
! 
! Fit before self-cal, rms=0.256821Jy  sigma=0.001718
! Fit after  self-cal, rms=0.231852Jy  sigma=0.001382
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.242 mas, bmaj=3.875 mas, bpa=2.755 degrees
! Estimated noise=605.914 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.00795479 Jy
! Component: 100  -  total flux cleaned = 0.00926562 Jy
! Component: 150  -  total flux cleaned = 0.0108374 Jy
! Component: 200  -  total flux cleaned = 0.0116987 Jy
! Total flux subtracted in 200 components = 0.0116987 Jy
! Clean residual min=-0.010233 max=0.010757 Jy/beam
! Clean residual mean=0.000202 rms=0.002618 Jy/beam
! Combined flux in latest and established models = 1.55591 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 78 components and 1.55591 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230961Jy  sigma=0.001375
! Fit after  self-cal, rms=0.231000Jy  sigma=0.001374
! 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.231000Jy  sigma=0.001374
! Fit after  self-cal, rms=0.250680Jy  sigma=0.001313
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.298 mas, bmaj=4.015 mas, bpa=-0.9555 degrees
! Estimated noise=613.242 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00591328 Jy
! Component: 100  -  total flux cleaned = 0.0067806 Jy
! Component: 150  -  total flux cleaned = 0.00733615 Jy
! Component: 200  -  total flux cleaned = 0.00749723 Jy
! Total flux subtracted in 200 components = 0.00749723 Jy
! Clean residual min=-0.005039 max=0.004874 Jy/beam
! Clean residual mean=0.000278 rms=0.001166 Jy/beam
! Combined flux in latest and established models = 1.5634 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 88 components and 1.5634 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250163Jy  sigma=0.001309
! Fit after  self-cal, rms=0.250149Jy  sigma=0.001309
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.00163362 Jy
! Component: 100  -  total flux cleaned = 0.00179084 Jy
! Component: 150  -  total flux cleaned = 0.00191992 Jy
! Component: 200  -  total flux cleaned = 0.00215903 Jy
! Total flux subtracted in 200 components = 0.00215903 Jy
! Clean residual min=-0.005148 max=0.004465 Jy/beam
! Clean residual mean=0.000258 rms=0.001130 Jy/beam
! Combined flux in latest and established models = 1.56556 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 92 components and 1.56556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249911Jy  sigma=0.001308
! Fit after  self-cal, rms=0.249880Jy  sigma=0.001308
! 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.249880Jy  sigma=0.001308
! Fit after  self-cal, rms=0.282347Jy  sigma=0.001307
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.329 mas, bmaj=4.121 mas, bpa=-3.16 degrees
! Estimated noise=617.781 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00309084 Jy
! Component: 100  -  total flux cleaned = 0.00374665 Jy
! Component: 150  -  total flux cleaned = 0.00417391 Jy
! Component: 200  -  total flux cleaned = 0.0046889 Jy
! Total flux subtracted in 200 components = 0.0046889 Jy
! Clean residual min=-0.004107 max=0.004846 Jy/beam
! Clean residual mean=0.000203 rms=0.001108 Jy/beam
! Combined flux in latest and established models = 1.57025 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 97 components and 1.57025 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281953Jy  sigma=0.001306
! Fit after  self-cal, rms=0.281939Jy  sigma=0.001305
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.000923976 Jy
! Component: 100  -  total flux cleaned = 0.00104538 Jy
! Component: 150  -  total flux cleaned = 0.00116392 Jy
! Component: 200  -  total flux cleaned = 0.00116486 Jy
! Total flux subtracted in 200 components = 0.00116486 Jy
! Clean residual min=-0.004160 max=0.004589 Jy/beam
! Clean residual mean=0.000192 rms=0.001093 Jy/beam
! Combined flux in latest and established models = 1.57142 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 101 components and 1.57142 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281705Jy  sigma=0.001305
! Fit after  self-cal, rms=0.281689Jy  sigma=0.001305
! 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.281689Jy  sigma=0.001305
! Fit after  self-cal, rms=0.281967Jy  sigma=0.001304
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.991 mas, bmaj=9.157 mas, bpa=14 degrees
! Estimated noise=843.594 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0043434 Jy
! Component: 100  -  total flux cleaned = 0.00525755 Jy
! Component: 150  -  total flux cleaned = 0.00544024 Jy
! Component: 200  -  total flux cleaned = 0.00551029 Jy
! Total flux subtracted in 200 components = 0.00551029 Jy
! Clean residual min=-0.003807 max=0.005138 Jy/beam
! Clean residual mean=0.000346 rms=0.001447 Jy/beam
! Combined flux in latest and established models = 1.57693 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 118 components and 1.57693 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281923Jy  sigma=0.001304
! Fit after  self-cal, rms=0.281928Jy  sigma=0.001304
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.000593427 Jy
! Component: 100  -  total flux cleaned = 0.000768441 Jy
! Component: 150  -  total flux cleaned = 0.000738334 Jy
! Component: 200  -  total flux cleaned = 0.0007653 Jy
! Total flux subtracted in 200 components = 0.0007653 Jy
! Clean residual min=-0.003677 max=0.005018 Jy/beam
! Clean residual mean=0.000324 rms=0.001446 Jy/beam
! Combined flux in latest and established models = 1.57769 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 121 components and 1.57769 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281927Jy  sigma=0.001304
! Fit after  self-cal, rms=0.281927Jy  sigma=0.001304
! 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=2.329 mas, bmaj=4.128 mas, bpa=-3.271 degrees
! Estimated noise=618.322 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.329 x 4.128 at -3.271 degrees (North through East)
! Clean map  min=-0.0036588  max=1.0581 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.281927Jy  sigma=0.001304
! Fit after  self-cal, rms=0.376480Jy  sigma=0.001155
! Inverting map and beam 
! Estimated beam: bmin=2.256 mas, bmaj=3.927 mas, bpa=1.287 degrees
! Estimated noise=608.616 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000534102 Jy
! Component: 100  -  total flux cleaned = -0.00083287 Jy
! Component: 150  -  total flux cleaned = -0.00109188 Jy
! Component: 200  -  total flux cleaned = -0.00132513 Jy
! Total flux subtracted in 200 components = -0.00132513 Jy
! Clean residual min=-0.003466 max=0.004136 Jy/beam
! Clean residual mean=0.000072 rms=0.000947 Jy/beam
! Combined flux in latest and established models = 1.57637 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 129 components and 1.57637 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.376418Jy  sigma=0.001154
! Fit after  self-cal, rms=0.376399Jy  sigma=0.001154
! Inverting map 
! Added new window around map position (-9.5, 14.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00323205 Jy
! Component: 100  -  total flux cleaned = 0.00393968 Jy
! Component: 150  -  total flux cleaned = 0.00393824 Jy
! Component: 200  -  total flux cleaned = 0.00393968 Jy
! Total flux subtracted in 200 components = 0.00393968 Jy
! Clean residual min=-0.003358 max=0.003301 Jy/beam
! Clean residual mean=0.000027 rms=0.000889 Jy/beam
! Combined flux in latest and established models = 1.58031 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 140 components and 1.58031 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.376325Jy  sigma=0.001153
! Fit after  self-cal, rms=0.376233Jy  sigma=0.001153
! 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.376233Jy  sigma=0.001153
! Fit after  self-cal, rms=0.376800Jy  sigma=0.001153
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=1.825 mas, bmaj=3.291 mas, bpa=-0.5881 degrees
! Estimated noise=1143.05 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.780225 Jy
! Component: 100  -  total flux cleaned = 1.1021 Jy
! Component: 150  -  total flux cleaned = 1.26377 Jy
! Component: 200  -  total flux cleaned = 1.34973 Jy
! Total flux subtracted in 200 components = 1.34973 Jy
! Clean residual min=-0.011310 max=0.041720 Jy/beam
! Clean residual mean=-0.000001 rms=0.003739 Jy/beam
! Combined flux in latest and established models = 1.34973 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 1.34973 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.251 mas, bmaj=3.92 mas, bpa=1.495 degrees
! Estimated noise=607.847 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.0770689 Jy
! Component: 100  -  total flux cleaned = 0.122316 Jy
! Component: 150  -  total flux cleaned = 0.151863 Jy
! Component: 200  -  total flux cleaned = 0.172111 Jy
! Total flux subtracted in 200 components = 0.172111 Jy
! Clean residual min=-0.004763 max=0.011389 Jy/beam
! Clean residual mean=0.000590 rms=0.002062 Jy/beam
! Combined flux in latest and established models = 1.52185 Jy
! Adding 49 model components to the UV plane model.
! The established model now contains 59 components and 1.52184 Jy
! Inverting map 
! Added new window around map position (0, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0142519 Jy
! Component: 100  -  total flux cleaned = 0.0245276 Jy
! Component: 150  -  total flux cleaned = 0.0322474 Jy
! Component: 200  -  total flux cleaned = 0.0383237 Jy
! Total flux subtracted in 200 components = 0.0383237 Jy
! Clean residual min=-0.003525 max=0.005411 Jy/beam
! Clean residual mean=0.000225 rms=0.001093 Jy/beam
! Combined flux in latest and established models = 1.56017 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 92 components and 1.56017 Jy
! Inverting map 
! Added new window around map position (1, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00538606 Jy
! Component: 100  -  total flux cleaned = 0.0093129 Jy
! Component: 150  -  total flux cleaned = 0.0122092 Jy
! Component: 200  -  total flux cleaned = 0.0139054 Jy
! Total flux subtracted in 200 components = 0.0139054 Jy
! Clean residual min=-0.003143 max=0.004037 Jy/beam
! Clean residual mean=0.000088 rms=0.000888 Jy/beam
! Combined flux in latest and established models = 1.57407 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 114 components and 1.57407 Jy
! Inverting map 
! Added new window around map position (-28.5, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00378824 Jy
! Component: 100  -  total flux cleaned = 0.0052142 Jy
! Component: 150  -  total flux cleaned = 0.00602738 Jy
! Component: 200  -  total flux cleaned = 0.00661659 Jy
! Total flux subtracted in 200 components = 0.00661659 Jy
! Clean residual min=-0.003190 max=0.003045 Jy/beam
! Clean residual mean=0.000015 rms=0.000819 Jy/beam
! Combined flux in latest and established models = 1.58069 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 130 components and 1.58069 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=7.987 mas, bmaj=9.163 mas, bpa=13.89 degrees
! Estimated noise=842.901 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00264553 Jy
! Component: 100  -  total flux cleaned = 0.00351432 Jy
! Component: 150  -  total flux cleaned = 0.0038129 Jy
! Component: 200  -  total flux cleaned = 0.00407297 Jy
! Total flux subtracted in 200 components = 0.00407297 Jy
! Clean residual min=-0.003597 max=0.003371 Jy/beam
! Clean residual mean=-0.000058 rms=0.001112 Jy/beam
! Combined flux in latest and established models = 1.58476 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.000193111 Jy
! Component: 100  -  total flux cleaned = 0.000367308 Jy
! Component: 150  -  total flux cleaned = 0.000494171 Jy
! Component: 200  -  total flux cleaned = 0.000609895 Jy
! Total flux subtracted in 200 components = 0.000609895 Jy
! Clean residual min=-0.003607 max=0.003374 Jy/beam
! Clean residual mean=-0.000076 rms=0.001092 Jy/beam
! Combined flux in latest and established models = 1.58537 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 172 components and 1.58537 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.251 mas, bmaj=3.92 mas, bpa=1.495 degrees
! Estimated noise=607.847 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00149592 Jy
! Component: 100  -  total flux cleaned = -0.00168073 Jy
! Component: 150  -  total flux cleaned = -0.00156465 Jy
! Component: 200  -  total flux cleaned = -0.00150825 Jy
! Total flux subtracted in 200 components = -0.00150825 Jy
! Clean residual min=-0.003145 max=0.003078 Jy/beam
! Clean residual mean=-0.000016 rms=0.000782 Jy/beam
! Combined flux in latest and established models = 1.58387 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 182 components and 1.58386 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.376593Jy  sigma=0.001150
! Fit after  self-cal, rms=0.376492Jy  sigma=0.001150
wmodel J1310+3220_S_2001_10_29_pus_map.mod
! Writing 182 model components to file: J1310+3220_S_2001_10_29_pus_map.mod
wobs J1310+3220_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1310+3220_S_2001_10_29_pus_uvs.fits
wwins J1310+3220_S_2001_10_29_pus_map.win
! wwins: Wrote 7 windows to J1310+3220_S_2001_10_29_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.000291303 Jy
! Component: 100  -  total flux cleaned = 0.000290249 Jy
! Component: 150  -  total flux cleaned = -1.08802e-05 Jy
! Component: 200  -  total flux cleaned = -0.000253241 Jy
! Component: 250  -  total flux cleaned = -0.000253171 Jy
! Component: 300  -  total flux cleaned = -0.000208244 Jy
! Component: 350  -  total flux cleaned = -0.00016378 Jy
! Component: 400  -  total flux cleaned = -0.000163506 Jy
! Component: 450  -  total flux cleaned = -3.22302e-05 Jy
! Component: 500  -  total flux cleaned = 1.03806e-05 Jy
! Component: 550  -  total flux cleaned = 9.81282e-06 Jy
! Component: 600  -  total flux cleaned = 9.92077e-06 Jy
! Component: 650  -  total flux cleaned = 1.00993e-05 Jy
! Component: 700  -  total flux cleaned = 1.01977e-05 Jy
! Component: 750  -  total flux cleaned = 9.08521e-05 Jy
! Component: 800  -  total flux cleaned = 9.10126e-05 Jy
! Component: 850  -  total flux cleaned = 0.000208856 Jy
! Component: 900  -  total flux cleaned = 0.000130462 Jy
! Component: 950  -  total flux cleaned = 0.000130355 Jy
! Component: 1000  -  total flux cleaned = 0.000206628 Jy
! Component: 1050  -  total flux cleaned = 0.000282063 Jy
! Component: 1100  -  total flux cleaned = 0.000244593 Jy
! Component: 1150  -  total flux cleaned = 0.000244684 Jy
! Component: 1200  -  total flux cleaned = 0.000354698 Jy
! Component: 1250  -  total flux cleaned = 0.000245485 Jy
! Component: 1300  -  total flux cleaned = 0.000281512 Jy
! Component: 1350  -  total flux cleaned = 0.000245886 Jy
! Component: 1400  -  total flux cleaned = 0.000316704 Jy
! Component: 1450  -  total flux cleaned = 0.00024596 Jy
! Component: 1500  -  total flux cleaned = 0.000211097 Jy
! Component: 1550  -  total flux cleaned = 0.000211391 Jy
! Component: 1600  -  total flux cleaned = 0.000245885 Jy
! Component: 1650  -  total flux cleaned = 0.000245882 Jy
! Component: 1700  -  total flux cleaned = 0.000279522 Jy
! Component: 1750  -  total flux cleaned = 0.000212065 Jy
! Component: 1800  -  total flux cleaned = 0.000212182 Jy
! Component: 1850  -  total flux cleaned = 0.000178837 Jy
! Component: 1900  -  total flux cleaned = 0.00017877 Jy
! Component: 1950  -  total flux cleaned = 0.000145935 Jy
! Component: 2000  -  total flux cleaned = 0.000113314 Jy
! Total flux subtracted in 2048 components = 0.000145899 Jy
! Clean residual min=-0.001987 max=0.002316 Jy/beam
! Clean residual mean=-0.000017 rms=0.000599 Jy/beam
! Combined flux in latest and established models = 1.58401 Jy
keep
! Adding 160 model components to the UV plane model.
! The established model now contains 342 components and 1.58401 Jy
![Exited script file: muppet]
wmap "J1310+3220_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.251 x 3.92 at 1.495 degrees (North through East)
! Clean map  min=-0.0024797  max=1.0324 Jy/beam
! Writing clean map to FITS file: J1310+3220_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.03235 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000596003 
device "J1310+3220_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1310+3220_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.173198 0.173198 0.346396 0.692791 1.38558 2.77116 5.54233 11.0847 22.1693 44.3386 88.6773
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.032 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.251 x 3.92 at 1.495 degrees (North through East)
! Clean map  min=-0.0024797  max=1.0324 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1310+3220_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1310+3220_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1310+3220_S_2001_10_29_pus_uvs.log closed on Thu Feb 28 13:18:07 2008