! Started logfile: J1310+3220_S_2001_04_09_pus_uvs.log on Fri Oct  5 16:03:59 2007
obs J1310+3220_S_2001_04_09_pus_uva.fits
! Reading UV FITS file: J1310+3220_S_2001_04_09_pus_uva.fits
! AN table 1: 242 integrations on 190 of 190 possible baselines.
! AN table 2: 64 integrations on 190 of 190 possible baselines.
! AN table 3: 191 integrations on 190 of 190 possible baselines.
! AN table 4: 72 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.200509 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 1949 lines of history.
! 
! Reading 86708 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_04_09_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 3318 telescope corrections were flagged in sub-array 1.
!  A total of 605 telescope corrections were flagged in sub-array 2.
!  A total of 2106 telescope corrections were flagged in sub-array 3.
!  A total of 993 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 3318 telescope corrections were flagged in sub-array 1.
!  A total of 605 telescope corrections were flagged in sub-array 2.
!  A total of 2106 telescope corrections were flagged in sub-array 3.
!  A total of 993 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 3318 telescope corrections were flagged in sub-array 1.
!  A total of 605 telescope corrections were flagged in sub-array 2.
!  A total of 2106 telescope corrections were flagged in sub-array 3.
!  A total of 993 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 3318 telescope corrections were flagged in sub-array 1.
!  A total of 605 telescope corrections were flagged in sub-array 2.
!  A total of 2106 telescope corrections were flagged in sub-array 3.
!  A total of 993 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.916241Jy  sigma=0.007615
! Fit after  self-cal, rms=0.502652Jy  sigma=0.004040
! 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.953 mas, bmaj=2.882 mas, bpa=-3.013 degrees
! Estimated noise=692.836 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.785988 Jy
! Component: 100  -  total flux cleaned = 1.10218 Jy
! Total flux subtracted in 100 components = 1.10218 Jy
! Clean residual min=-0.026921 max=0.146584 Jy/beam
! Clean residual mean=0.000114 rms=0.007865 Jy/beam
! Combined flux in latest and established models = 1.10218 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.10218 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.395352Jy  sigma=0.003219
! Fit after  self-cal, rms=0.391579Jy  sigma=0.003210
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.165197 Jy
! Component: 100  -  total flux cleaned = 0.251334 Jy
! Total flux subtracted in 100 components = 0.251334 Jy
! Clean residual min=-0.014564 max=0.041727 Jy/beam
! Clean residual mean=0.000047 rms=0.003935 Jy/beam
! Combined flux in latest and established models = 1.35351 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 13 components and 1.35351 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302873Jy  sigma=0.002073
! Fit after  self-cal, rms=0.300991Jy  sigma=0.002066
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0514086 Jy
! Component: 100  -  total flux cleaned = 0.0836556 Jy
! Total flux subtracted in 100 components = 0.0836556 Jy
! Clean residual min=-0.012822 max=0.019065 Jy/beam
! Clean residual mean=0.000023 rms=0.003163 Jy/beam
! Combined flux in latest and established models = 1.43717 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 21 components and 1.43717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289659Jy  sigma=0.001867
! Fit after  self-cal, rms=0.289488Jy  sigma=0.001866
! Inverting map 
! Added new window around map position (-8, 2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.023481 Jy
! Component: 100  -  total flux cleaned = 0.0411041 Jy
! Total flux subtracted in 100 components = 0.0411041 Jy
! Clean residual min=-0.012962 max=0.013760 Jy/beam
! Clean residual mean=0.000007 rms=0.002970 Jy/beam
! Combined flux in latest and established models = 1.47827 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 34 components and 1.47827 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286852Jy  sigma=0.001812
! Fit after  self-cal, rms=0.286752Jy  sigma=0.001812
! 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.364 mas, bmaj=3.91 mas, bpa=-8.787 degrees
! Estimated noise=291.854 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.0277223 Jy
! Component: 100  -  total flux cleaned = 0.0455032 Jy
! Component: 150  -  total flux cleaned = 0.0579487 Jy
! Component: 200  -  total flux cleaned = 0.0667268 Jy
! Total flux subtracted in 200 components = 0.0667268 Jy
! Clean residual min=-0.008332 max=0.011821 Jy/beam
! Clean residual mean=-0.000257 rms=0.002410 Jy/beam
! Combined flux in latest and established models = 1.545 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 47 components and 1.545 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.284776Jy  sigma=0.001763
! Fit after  self-cal, rms=0.284482Jy  sigma=0.001761
! Inverting map 
! Added new window around map position (-5, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0134181 Jy
! Component: 100  -  total flux cleaned = 0.0171195 Jy
! Component: 150  -  total flux cleaned = 0.0204003 Jy
! Component: 200  -  total flux cleaned = 0.0217791 Jy
! Total flux subtracted in 200 components = 0.0217791 Jy
! Clean residual min=-0.009236 max=0.008956 Jy/beam
! Clean residual mean=-0.000358 rms=0.002208 Jy/beam
! Combined flux in latest and established models = 1.56678 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 61 components and 1.56678 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.283707Jy  sigma=0.001751
! Fit after  self-cal, rms=0.283604Jy  sigma=0.001750
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 384 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00     GC        1.07     GG        1.00*    
!   HH        1.17     HN        1.01     KK        1.00*    KP        1.03     
!   LA        0.98     MA        0.96     MC        1.42     MK        1.00*    
!   NL        0.99     NY        0.95     OV        1.03     PT        0.96     
!   SC        0.97     TS        1.04     WF        1.18     WZ        0.96     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.96     KP        1.03     
!   LA        0.96     MA        1.27     MC        0.99     MK        0.98     
!   NL        0.98     NY        0.95     OV        1.01     PT        0.96     
!   SC        0.97     TS        1.00*    WF        0.91     WZ        1.13     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.96     KP        1.00     
!   LA        0.97     MA        0.91     MC        0.86     MK        0.97     
!   NL        0.98     NY        0.96     OV        1.01     PT        0.96     
!   SC        0.99     TS        0.95     WF        1.02     WZ        1.01     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.09     GC        1.33     GG        1.00*    
!   HH        1.10     HN        0.97     KK        1.00*    KP        1.00*    
!   LA        1.01     MA        0.89     MC        1.57     MK        1.00*    
!   NL        0.94     NY        0.95     OV        1.00*    PT        1.00     
!   SC        1.00     TS        1.00*    WF        1.05     WZ        1.01     
! 
! 
! Correcting IF 2.
!  A total of 384 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        1.01     GG        1.00*    
!   HH        1.28     HN        0.99     KK        1.00*    KP        0.92     
!   LA        1.00     MA        0.85     MC        1.12     MK        1.00*    
!   NL        0.99     NY        0.98     OV        1.00     PT        1.00     
!   SC        0.98     TS        1.09     WF        1.06     WZ        0.96     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.99     KP        1.18     
!   LA        1.00     MA        1.50     MC        1.02     MK        1.02     
!   NL        0.98     NY        0.98     OV        0.99     PT        0.98     
!   SC        0.98     TS        1.00*    WF        1.01     WZ        1.13     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.99     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.96     KP        0.92     
!   LA        0.99     MA        1.28     MC        0.95     MK        0.99     
!   NL        0.99     NY        0.99     OV        0.98     PT        1.00     
!   SC        1.01     TS        0.99     WF        1.04     WZ        1.02     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.07     GC        1.28     GG        1.00*    
!   HH        1.13     HN        0.95     KK        1.00*    KP        1.00*    
!   LA        1.04     MA        1.27     MC        1.05     MK        1.00*    
!   NL        0.94     NY        0.99     OV        1.00*    PT        1.05     
!   SC        1.00     TS        1.00*    WF        0.99     WZ        1.00     
! 
! 
! Correcting IF 3.
!  A total of 384 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.00     GC        1.03     GG        1.00*    
!   HH        1.06     HN        1.05     KK        1.00*    KP        1.04     
!   LA        0.98     MA        0.94     MC        1.03     MK        1.00*    
!   NL        1.00     NY        0.96     OV        1.01     PT        1.00     
!   SC        0.97     TS        0.96     WF        1.05     WZ        1.01     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.01     KP        1.02     
!   LA        0.96     MA        1.09     MC        1.09     MK        0.99     
!   NL        0.99     NY        0.98     OV        1.00     PT        0.99     
!   SC        0.98     TS        1.00*    WF        1.04     WZ        1.10     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.01     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.99     KP        1.02     
!   LA        0.95     MA        1.14     MC        1.07     MK        0.98     
!   NL        0.99     NY        0.97     OV        0.99     PT        0.98     
!   SC        1.00     TS        1.00     WF        1.04     WZ        1.01     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.09     FD        1.08     GC        1.29     GG        1.00*    
!   HH        1.12     HN        1.01     KK        1.00*    KP        1.00*    
!   LA        1.00     MA        1.03     MC        1.12     MK        1.00*    
!   NL        0.95     NY        0.92     OV        1.00*    PT        1.04     
!   SC        1.00     TS        1.00*    WF        1.05     WZ        1.00     
! 
! 
! Correcting IF 4.
!  A total of 384 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.02     GC        1.03     GG        1.00*    
!   HH        1.22     HN        1.04     KK        1.00*    KP        1.03     
!   LA        1.01     MA        0.74     MC        1.30     MK        1.00*    
!   NL        1.00     NY        1.01     OV        1.01     PT        1.03     
!   SC        0.99     TS        0.73     WF        1.09     WZ        1.13     
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.02     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        0.99     KP        1.02     
!   LA        1.00     MA        2.18     MC        1.30     MK        0.98     
!   NL        0.99     NY        1.00     OV        0.99     PT        1.02     
!   SC        1.00     TS        1.00*    WF        1.02     WZ        1.10     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.01     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.96     KP        1.01     
!   LA        1.01     MA        1.20     MC        0.64     MK        0.95     
!   NL        0.99     NY        1.01     OV        0.99     PT        1.03     
!   SC        1.01     TS        0.97     WF        1.03     WZ        1.11     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.08     GC        1.34     GG        1.00*    
!   HH        1.35     HN        1.01     KK        1.00*    KP        1.00*    
!   LA        1.03     MA        0.98     MC        1.09     MK        1.00*    
!   NL        0.96     NY        1.02     OV        1.00*    PT        1.04     
!   SC        1.01     TS        1.00*    WF        1.03     WZ        1.04     
! 
! 
! Fit before self-cal, rms=0.283604Jy  sigma=0.001750
! Fit after  self-cal, rms=0.346529Jy  sigma=0.001598
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.401 mas, bmaj=4.017 mas, bpa=-7.965 degrees
! Estimated noise=294.462 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 (-10, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00882815 Jy
! Component: 100  -  total flux cleaned = 0.0107819 Jy
! Component: 150  -  total flux cleaned = 0.0113894 Jy
! Component: 200  -  total flux cleaned = 0.0123102 Jy
! Total flux subtracted in 200 components = 0.0123102 Jy
! Clean residual min=-0.003977 max=0.003238 Jy/beam
! Clean residual mean=0.000075 rms=0.000863 Jy/beam
! Combined flux in latest and established models = 1.57909 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 91 components and 1.57909 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346244Jy  sigma=0.001593
! Fit after  self-cal, rms=0.347876Jy  sigma=0.001592
! 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.347876Jy  sigma=0.001592
! Fit after  self-cal, rms=0.355001Jy  sigma=0.001574
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.401 mas, bmaj=4.021 mas, bpa=-7.981 degrees
! Estimated noise=294.568 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00363882 Jy
! Component: 100  -  total flux cleaned = 0.00437219 Jy
! Component: 150  -  total flux cleaned = 0.00457823 Jy
! Component: 200  -  total flux cleaned = 0.00477317 Jy
! Total flux subtracted in 200 components = 0.00477317 Jy
! Clean residual min=-0.004014 max=0.002810 Jy/beam
! Clean residual mean=0.000100 rms=0.000695 Jy/beam
! Combined flux in latest and established models = 1.58386 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 103 components and 1.58386 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354909Jy  sigma=0.001573
! Fit after  self-cal, rms=0.355090Jy  sigma=0.001573
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.000774389 Jy
! Component: 100  -  total flux cleaned = 0.00094211 Jy
! Component: 150  -  total flux cleaned = 0.00101935 Jy
! Component: 200  -  total flux cleaned = 0.00109147 Jy
! Total flux subtracted in 200 components = 0.00109147 Jy
! Clean residual min=-0.003938 max=0.002827 Jy/beam
! Clean residual mean=0.000093 rms=0.000680 Jy/beam
! Combined flux in latest and established models = 1.58495 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 108 components and 1.58495 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.355056Jy  sigma=0.001572
! Fit after  self-cal, rms=0.355071Jy  sigma=0.001572
! 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.355071Jy  sigma=0.001572
! Fit after  self-cal, rms=0.358209Jy  sigma=0.001572
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.403 mas, bmaj=4.021 mas, bpa=-7.94 degrees
! Estimated noise=294.672 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00103888 Jy
! Component: 100  -  total flux cleaned = 0.00127436 Jy
! Component: 150  -  total flux cleaned = 0.00141832 Jy
! Component: 200  -  total flux cleaned = 0.00155255 Jy
! Total flux subtracted in 200 components = 0.00155255 Jy
! Clean residual min=-0.003720 max=0.002762 Jy/beam
! Clean residual mean=0.000101 rms=0.000659 Jy/beam
! Combined flux in latest and established models = 1.5865 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 113 components and 1.5865 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358175Jy  sigma=0.001572
! Fit after  self-cal, rms=0.358244Jy  sigma=0.001572
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.000329056 Jy
! Component: 100  -  total flux cleaned = 0.000329104 Jy
! Component: 150  -  total flux cleaned = 0.000445264 Jy
! Component: 200  -  total flux cleaned = 0.00049834 Jy
! Total flux subtracted in 200 components = 0.00049834 Jy
! Clean residual min=-0.003599 max=0.002768 Jy/beam
! Clean residual mean=0.000098 rms=0.000652 Jy/beam
! Combined flux in latest and established models = 1.587 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 115 components and 1.587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358227Jy  sigma=0.001571
! Fit after  self-cal, rms=0.358237Jy  sigma=0.001571
! 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.358237Jy  sigma=0.001571
! Fit after  self-cal, rms=0.360242Jy  sigma=0.001571
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.636 mas, bmaj=8.979 mas, bpa=9.258 degrees
! Estimated noise=412.097 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00120441 Jy
! Component: 100  -  total flux cleaned = 0.00148017 Jy
! Component: 150  -  total flux cleaned = 0.00147899 Jy
! Component: 200  -  total flux cleaned = 0.00147828 Jy
! Total flux subtracted in 200 components = 0.00147828 Jy
! Clean residual min=-0.003033 max=0.004717 Jy/beam
! Clean residual mean=0.000309 rms=0.001247 Jy/beam
! Combined flux in latest and established models = 1.58848 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 138 components and 1.58848 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360232Jy  sigma=0.001571
! Fit after  self-cal, rms=0.360252Jy  sigma=0.001571
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.000181481 Jy
! Component: 100  -  total flux cleaned = 0.000268172 Jy
! Component: 150  -  total flux cleaned = 0.000292673 Jy
! Component: 200  -  total flux cleaned = 0.000292565 Jy
! Total flux subtracted in 200 components = 0.000292565 Jy
! Clean residual min=-0.003065 max=0.004664 Jy/beam
! Clean residual mean=0.000303 rms=0.001251 Jy/beam
! Combined flux in latest and established models = 1.58877 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 144 components and 1.58877 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360251Jy  sigma=0.001571
! Fit after  self-cal, rms=0.360247Jy  sigma=0.001571
! 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.404 mas, bmaj=4.021 mas, bpa=-7.911 degrees
! Estimated noise=294.782 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.404 x 4.021 at -7.911 degrees (North through East)
! Clean map  min=-0.0024383  max=1.1102 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.360247Jy  sigma=0.001571
! Fit after  self-cal, rms=0.552680Jy  sigma=0.001447
! Inverting map and beam 
! Estimated beam: bmin=2.402 mas, bmaj=4.016 mas, bpa=-7.867 degrees
! Estimated noise=294.437 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000415215 Jy
! Component: 100  -  total flux cleaned = -0.000516903 Jy
! Component: 150  -  total flux cleaned = -0.000564198 Jy
! Component: 200  -  total flux cleaned = -0.000519767 Jy
! Total flux subtracted in 200 components = -0.000519767 Jy
! Clean residual min=-0.003334 max=0.002567 Jy/beam
! Clean residual mean=0.000086 rms=0.000626 Jy/beam
! Combined flux in latest and established models = 1.58825 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 153 components and 1.58825 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.552668Jy  sigma=0.001446
! Fit after  self-cal, rms=0.552702Jy  sigma=0.001446
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -4.62213e-05 Jy
! Component: 100  -  total flux cleaned = -4.62248e-05 Jy
! Component: 150  -  total flux cleaned = -8.75457e-05 Jy
! Component: 200  -  total flux cleaned = -8.8178e-05 Jy
! Total flux subtracted in 200 components = -8.8178e-05 Jy
! Clean residual min=-0.003221 max=0.002544 Jy/beam
! Clean residual mean=0.000087 rms=0.000623 Jy/beam
! Combined flux in latest and established models = 1.58816 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 160 components and 1.58816 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.552696Jy  sigma=0.001446
! Fit after  self-cal, rms=0.552707Jy  sigma=0.001446
! 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.552707Jy  sigma=0.001446
! Fit after  self-cal, rms=0.614119Jy  sigma=0.001446
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.971 mas, bmaj=2.954 mas, bpa=-2.359 degrees
! Estimated noise=710.995 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.797939 Jy
! Component: 100  -  total flux cleaned = 1.11763 Jy
! Component: 150  -  total flux cleaned = 1.27996 Jy
! Component: 200  -  total flux cleaned = 1.36451 Jy
! Total flux subtracted in 200 components = 1.36451 Jy
! Clean residual min=-0.008764 max=0.040778 Jy/beam
! Clean residual mean=0.000096 rms=0.002707 Jy/beam
! Combined flux in latest and established models = 1.36451 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 1.36451 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.403 mas, bmaj=4.017 mas, bpa=-7.849 degrees
! Estimated noise=294.457 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.0723043 Jy
! Component: 100  -  total flux cleaned = 0.113447 Jy
! Component: 150  -  total flux cleaned = 0.141196 Jy
! Component: 200  -  total flux cleaned = 0.161061 Jy
! Total flux subtracted in 200 components = 0.161061 Jy
! Clean residual min=-0.003228 max=0.011250 Jy/beam
! Clean residual mean=0.000378 rms=0.001578 Jy/beam
! Combined flux in latest and established models = 1.52557 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 55 components and 1.52557 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0145546 Jy
! Component: 100  -  total flux cleaned = 0.0253569 Jy
! Component: 150  -  total flux cleaned = 0.0335099 Jy
! Component: 200  -  total flux cleaned = 0.0397356 Jy
! Total flux subtracted in 200 components = 0.0397356 Jy
! Clean residual min=-0.002216 max=0.003792 Jy/beam
! Clean residual mean=0.000199 rms=0.000764 Jy/beam
! Combined flux in latest and established models = 1.5653 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 81 components and 1.5653 Jy
! Inverting map 
! Added new window around map position (-1, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00484896 Jy
! Component: 100  -  total flux cleaned = 0.00870496 Jy
! Component: 150  -  total flux cleaned = 0.0114577 Jy
! Component: 200  -  total flux cleaned = 0.0128457 Jy
! Total flux subtracted in 200 components = 0.0128457 Jy
! Clean residual min=-0.002039 max=0.002645 Jy/beam
! Clean residual mean=0.000139 rms=0.000636 Jy/beam
! Combined flux in latest and established models = 1.57815 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 102 components and 1.57815 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.638 mas, bmaj=8.981 mas, bpa=9.208 degrees
! Estimated noise=411.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00411733 Jy
! Component: 100  -  total flux cleaned = 0.00612938 Jy
! Component: 150  -  total flux cleaned = 0.00723375 Jy
! Component: 200  -  total flux cleaned = 0.00789555 Jy
! Total flux subtracted in 200 components = 0.00789555 Jy
! Clean residual min=-0.002964 max=0.004463 Jy/beam
! Clean residual mean=0.000319 rms=0.001187 Jy/beam
! Combined flux in latest and established models = 1.58604 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.00031295 Jy
! Component: 100  -  total flux cleaned = 0.000369592 Jy
! Component: 150  -  total flux cleaned = 0.000422521 Jy
! Component: 200  -  total flux cleaned = 0.000459892 Jy
! Total flux subtracted in 200 components = 0.000459892 Jy
! Clean residual min=-0.002975 max=0.004458 Jy/beam
! Clean residual mean=0.000312 rms=0.001186 Jy/beam
! Combined flux in latest and established models = 1.5865 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 148 components and 1.5865 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.403 mas, bmaj=4.017 mas, bpa=-7.849 degrees
! Estimated noise=294.457 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00112176 Jy
! Component: 100  -  total flux cleaned = -0.00119521 Jy
! Component: 150  -  total flux cleaned = -0.00119262 Jy
! Component: 200  -  total flux cleaned = -0.00119103 Jy
! Total flux subtracted in 200 components = -0.00119103 Jy
! Clean residual min=-0.002097 max=0.002578 Jy/beam
! Clean residual mean=0.000103 rms=0.000610 Jy/beam
! Combined flux in latest and established models = 1.58531 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 153 components and 1.58531 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.614114Jy  sigma=0.001446
! Fit after  self-cal, rms=0.614311Jy  sigma=0.001446
wmodel J1310+3220_S_2001_04_09_pus_map.mod
! Writing 153 model components to file: J1310+3220_S_2001_04_09_pus_map.mod
wobs J1310+3220_S_2001_04_09_pus_uvs.fits
! Writing UV FITS file: J1310+3220_S_2001_04_09_pus_uvs.fits
wwins J1310+3220_S_2001_04_09_pus_map.win
! wwins: Wrote 5 windows to J1310+3220_S_2001_04_09_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.00116448 Jy
! Component: 100  -  total flux cleaned = 0.00220998 Jy
! Component: 150  -  total flux cleaned = 0.00308061 Jy
! Component: 200  -  total flux cleaned = 0.00380073 Jy
! Component: 250  -  total flux cleaned = 0.00438895 Jy
! Component: 300  -  total flux cleaned = 0.00488897 Jy
! Component: 350  -  total flux cleaned = 0.00537808 Jy
! Component: 400  -  total flux cleaned = 0.00578979 Jy
! Component: 450  -  total flux cleaned = 0.00622764 Jy
! Component: 500  -  total flux cleaned = 0.00665791 Jy
! Component: 550  -  total flux cleaned = 0.00698407 Jy
! Component: 600  -  total flux cleaned = 0.00736968 Jy
! Component: 650  -  total flux cleaned = 0.00774958 Jy
! Component: 700  -  total flux cleaned = 0.00803103 Jy
! Component: 750  -  total flux cleaned = 0.00833978 Jy
! Component: 800  -  total flux cleaned = 0.00861415 Jy
! Component: 850  -  total flux cleaned = 0.00885533 Jy
! Component: 900  -  total flux cleaned = 0.00909385 Jy
! Component: 950  -  total flux cleaned = 0.0093888 Jy
! Component: 1000  -  total flux cleaned = 0.00959296 Jy
! Component: 1050  -  total flux cleaned = 0.00985287 Jy
! Component: 1100  -  total flux cleaned = 0.0101386 Jy
! Component: 1150  -  total flux cleaned = 0.0103369 Jy
! Component: 1200  -  total flux cleaned = 0.0105895 Jy
! Component: 1250  -  total flux cleaned = 0.0108676 Jy
! Component: 1300  -  total flux cleaned = 0.0111156 Jy
! Component: 1350  -  total flux cleaned = 0.0113344 Jy
! Component: 1400  -  total flux cleaned = 0.0115513 Jy
! Component: 1450  -  total flux cleaned = 0.0117667 Jy
! Component: 1500  -  total flux cleaned = 0.0119272 Jy
! Component: 1550  -  total flux cleaned = 0.0121399 Jy
! Component: 1600  -  total flux cleaned = 0.0123248 Jy
! Component: 1650  -  total flux cleaned = 0.0125085 Jy
! Component: 1700  -  total flux cleaned = 0.012639 Jy
! Component: 1750  -  total flux cleaned = 0.0128982 Jy
! Component: 1800  -  total flux cleaned = 0.0130014 Jy
! Component: 1850  -  total flux cleaned = 0.0132063 Jy
! Component: 1900  -  total flux cleaned = 0.0133847 Jy
! Component: 1950  -  total flux cleaned = 0.0135873 Jy
! Component: 2000  -  total flux cleaned = 0.0136627 Jy
! Total flux subtracted in 2048 components = 0.0138132 Jy
! Clean residual min=-0.001574 max=0.001511 Jy/beam
! Clean residual mean=0.000044 rms=0.000470 Jy/beam
! Combined flux in latest and established models = 1.59912 Jy
keep
! Adding 150 model components to the UV plane model.
! The established model now contains 303 components and 1.59912 Jy
![Exited script file: muppet]
wmap "J1310+3220_S_2001_04_09_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.403 x 4.017 at -7.849 degrees (North through East)
! Clean map  min=-0.0017149  max=1.1116 Jy/beam
! Writing clean map to FITS file: J1310+3220_S_2001_04_09_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.11164 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000469878 
device "J1310+3220_S_2001_04_09_pus\_map.eps/VPS"
! Attempting to open device: 'J1310+3220_S_2001_04_09_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.126806 0.126806 0.253613 0.507225 1.01445 2.0289 4.0578 8.11561 16.2312 32.4624 64.9248
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.111 
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.403 x 4.017 at -7.849 degrees (North through East)
! Clean map  min=-0.0017149  max=1.1116 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1310+3220_S_2001_04_09_pus\_map.gif/vgif"
! Attempting to open device: 'J1310+3220_S_2001_04_09_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1310+3220_S_2001_04_09_pus_uvs.log closed on Fri Oct  5 16:04:34 2007