! Started logfile: J0530+1331_S_2000_05_22_pus_uvs.log on Mon Nov 19 18:37:49 2007
obs J0530+1331_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J0530+1331_S_2000_05_22_pus_uva.fits
! AN table 1: 167 integrations on 190 of 190 possible baselines.
! AN table 2: 147 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.122511 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0530+1331
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2003 lines of history.
! 
! Reading 29236 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 J0530+1331_S_2000_05_22_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 2540 telescope corrections were flagged in sub-array 1.
!  A total of 2042 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 2.
!  A total of 2540 telescope corrections were flagged in sub-array 1.
!  A total of 2042 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 3.
!  A total of 2540 telescope corrections were flagged in sub-array 1.
!  A total of 2042 telescope corrections were flagged in sub-array 2.
! 
! Correcting IF 4.
!  A total of 2540 telescope corrections were flagged in sub-array 1.
!  A total of 2042 telescope corrections were flagged in sub-array 2.
! 
! Fit before self-cal, rms=1.624066Jy  sigma=0.017846
! Fit after  self-cal, rms=1.165549Jy  sigma=0.011778
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.058 mas, bmaj=4.316 mas, bpa=-8.659 degrees
! Estimated noise=801.961 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.26411 Jy
! Component: 100  -  total flux cleaned = 1.74146 Jy
! Total flux subtracted in 100 components = 1.74146 Jy
! Clean residual min=-0.043152 max=0.220890 Jy/beam
! Clean residual mean=0.000923 rms=0.017300 Jy/beam
! Combined flux in latest and established models = 1.74146 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.74146 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.740379Jy  sigma=0.006230
! Fit after  self-cal, rms=0.739467Jy  sigma=0.006225
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.265685 Jy
! Component: 100  -  total flux cleaned = 0.438858 Jy
! Total flux subtracted in 100 components = 0.438858 Jy
! Clean residual min=-0.026447 max=0.093962 Jy/beam
! Clean residual mean=0.000441 rms=0.009024 Jy/beam
! Combined flux in latest and established models = 2.18031 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 22 components and 2.18031 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.587929Jy  sigma=0.003631
! Fit after  self-cal, rms=0.587357Jy  sigma=0.003625
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.120489 Jy
! Component: 100  -  total flux cleaned = 0.204991 Jy
! Total flux subtracted in 100 components = 0.204991 Jy
! Clean residual min=-0.019149 max=0.055066 Jy/beam
! Clean residual mean=0.000219 rms=0.005953 Jy/beam
! Combined flux in latest and established models = 2.3853 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 29 components and 2.3853 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.550745Jy  sigma=0.002782
! Fit after  self-cal, rms=0.550529Jy  sigma=0.002779
! Inverting map 
! Added new window around map position (2, 4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0650716 Jy
! Component: 100  -  total flux cleaned = 0.112558 Jy
! Total flux subtracted in 100 components = 0.112558 Jy
! Clean residual min=-0.016185 max=0.029651 Jy/beam
! Clean residual mean=0.000098 rms=0.004677 Jy/beam
! Combined flux in latest and established models = 2.49786 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 41 components and 2.49786 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.539789Jy  sigma=0.002485
! Fit after  self-cal, rms=0.539401Jy  sigma=0.002478
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0389467 Jy
! Component: 100  -  total flux cleaned = 0.0680449 Jy
! Total flux subtracted in 100 components = 0.0680449 Jy
! Clean residual min=-0.015689 max=0.021232 Jy/beam
! Clean residual mean=0.000025 rms=0.004080 Jy/beam
! Combined flux in latest and established models = 2.56591 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 44 components and 2.56591 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.535794Jy  sigma=0.002372
! Fit after  self-cal, rms=0.535620Jy  sigma=0.002369
! 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.394 mas, bmaj=5.33 mas, bpa=-9.924 degrees
! Estimated noise=397.357 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.0290534 Jy
! Component: 100  -  total flux cleaned = 0.0470991 Jy
! Component: 150  -  total flux cleaned = 0.0593917 Jy
! Component: 200  -  total flux cleaned = 0.067942 Jy
! Total flux subtracted in 200 components = 0.067942 Jy
! Clean residual min=-0.017262 max=0.019833 Jy/beam
! Clean residual mean=-0.000373 rms=0.004116 Jy/beam
! Combined flux in latest and established models = 2.63385 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 54 components and 2.63385 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.533897Jy  sigma=0.002320
! Fit after  self-cal, rms=0.533687Jy  sigma=0.002315
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.98     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        0.95     KP        0.98     
!   MA        1.00*    MC        1.17     MK        1.01     NL        0.99     
!   NY        1.13     OV        1.04     PT        0.98     SC        1.05     
!   TS        1.00*    WF        1.01     WZ        1.18     LA        0.98     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.01     GC        1.00     GG        1.00*    
!   HH        1.18     HN        1.01     KK        1.08     KP        1.06     
!   MA        0.86     MC        1.06     MK        1.02     NL        1.02     
!   NY        1.08     OV        1.01     PT        1.00     SC        1.00*    
!   TS        1.02     WF        1.00     WZ        1.00     LA        1.01     
! 
! 
! Correcting IF 2.
!  A total of 21 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.00*    HN        1.04     KK        1.02     KP        0.97     
!   MA        1.00*    MC        1.12     MK        0.97     NL        1.01     
!   NY        1.13     OV        0.98     PT        0.96     SC        1.05     
!   TS        1.00*    WF        1.01     WZ        1.13     LA        0.92     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.03     GC        0.98     GG        1.00*    
!   HH        1.50     HN        1.09     KK        1.02     KP        1.01     
!   MA        0.66     MC        0.96     MK        0.96     NL        1.06     
!   NY        1.05     OV        1.00     PT        1.00     SC        1.00*    
!   TS        1.05     WF        1.05     WZ        1.00     LA        0.96     
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        0.97     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.99     KP        1.01     
!   MA        1.00*    MC        1.23     MK        0.97     NL        0.96     
!   NY        1.10     OV        1.01     PT        0.96     SC        1.02     
!   TS        1.00*    WF        1.02     WZ        1.12     LA        0.97     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.01     GC        0.97     GG        1.00*    
!   HH        1.17     HN        1.04     KK        0.95     KP        1.01     
!   MA        0.69     MC        0.95     MK        0.95     NL        0.99     
!   NY        1.08     OV        1.02     PT        0.97     SC        1.00*    
!   TS        1.05     WF        1.05     WZ        1.06     LA        1.02     
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.98     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.02     KP        0.99     
!   MA        1.00*    MC        1.70     MK        1.01     NL        0.98     
!   NY        1.05     OV        0.98     PT        1.07     SC        1.01     
!   TS        1.00*    WF        1.01     WZ        1.13     LA        0.99     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.02     GC        0.97     GG        1.00*    
!   HH        1.29     HN        1.05     KK        0.97     KP        1.02     
!   MA        0.95     MC        0.74     MK        1.00     NL        1.00     
!   NY        0.95     OV        1.00     PT        1.02     SC        1.00*    
!   TS        1.06     WF        1.05     WZ        1.08     LA        1.01     
! 
! 
! Fit before self-cal, rms=0.533687Jy  sigma=0.002315
! Fit after  self-cal, rms=0.615723Jy  sigma=0.002042
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.43 mas, bmaj=5.478 mas, bpa=-9.665 degrees
! Estimated noise=402.011 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 (5.5, 7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00845098 Jy
! Component: 100  -  total flux cleaned = 0.00960262 Jy
! Component: 150  -  total flux cleaned = 0.0102354 Jy
! Component: 200  -  total flux cleaned = 0.0110157 Jy
! Total flux subtracted in 200 components = 0.0110157 Jy
! Clean residual min=-0.007992 max=0.009189 Jy/beam
! Clean residual mean=0.000329 rms=0.002235 Jy/beam
! Combined flux in latest and established models = 2.64486 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 70 components and 2.64486 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.615185Jy  sigma=0.002028
! Fit after  self-cal, rms=0.616331Jy  sigma=0.002027
! 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.616331Jy  sigma=0.002027
! Fit after  self-cal, rms=0.607316Jy  sigma=0.001973
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.433 mas, bmaj=5.477 mas, bpa=-9.668 degrees
! Estimated noise=402.329 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000771876 Jy
! Component: 100  -  total flux cleaned = 0.0019489 Jy
! Component: 150  -  total flux cleaned = 0.00276835 Jy
! Component: 200  -  total flux cleaned = 0.00369111 Jy
! Total flux subtracted in 200 components = 0.00369111 Jy
! Clean residual min=-0.007031 max=0.007932 Jy/beam
! Clean residual mean=0.000254 rms=0.002113 Jy/beam
! Combined flux in latest and established models = 2.64856 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 80 components and 2.64856 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.607112Jy  sigma=0.001968
! Fit after  self-cal, rms=0.606956Jy  sigma=0.001968
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.00135824 Jy
! Component: 100  -  total flux cleaned = 0.00215155 Jy
! Component: 150  -  total flux cleaned = 0.00272496 Jy
! Component: 200  -  total flux cleaned = 0.0032477 Jy
! Total flux subtracted in 200 components = 0.0032477 Jy
! Clean residual min=-0.006583 max=0.007860 Jy/beam
! Clean residual mean=0.000234 rms=0.002054 Jy/beam
! Combined flux in latest and established models = 2.6518 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 84 components and 2.6518 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.606864Jy  sigma=0.001966
! Fit after  self-cal, rms=0.606833Jy  sigma=0.001966
! 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.606833Jy  sigma=0.001966
! Fit after  self-cal, rms=0.604022Jy  sigma=0.001963
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.436 mas, bmaj=5.477 mas, bpa=-9.694 degrees
! Estimated noise=402.887 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0024832 Jy
! Component: 100  -  total flux cleaned = 0.00338157 Jy
! Component: 150  -  total flux cleaned = 0.00376919 Jy
! Component: 200  -  total flux cleaned = 0.00400576 Jy
! Total flux subtracted in 200 components = 0.00400576 Jy
! Clean residual min=-0.006268 max=0.007390 Jy/beam
! Clean residual mean=0.000210 rms=0.001993 Jy/beam
! Combined flux in latest and established models = 2.65581 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 87 components and 2.65581 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.603958Jy  sigma=0.001962
! Fit after  self-cal, rms=0.603945Jy  sigma=0.001962
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.00103267 Jy
! Component: 100  -  total flux cleaned = 0.00125546 Jy
! Component: 150  -  total flux cleaned = 0.0016635 Jy
! Component: 200  -  total flux cleaned = 0.00195295 Jy
! Total flux subtracted in 200 components = 0.00195295 Jy
! Clean residual min=-0.006023 max=0.007355 Jy/beam
! Clean residual mean=0.000198 rms=0.001963 Jy/beam
! Combined flux in latest and established models = 2.65776 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 92 components and 2.65776 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.603905Jy  sigma=0.001961
! Fit after  self-cal, rms=0.603892Jy  sigma=0.001961
! 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.603892Jy  sigma=0.001961
! Fit after  self-cal, rms=0.605714Jy  sigma=0.001960
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.465 mas, bmaj=9.688 mas, bpa=-13.92 degrees
! Estimated noise=582.519 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00456679 Jy
! Component: 100  -  total flux cleaned = 0.00477802 Jy
! Component: 150  -  total flux cleaned = 0.00495402 Jy
! Component: 200  -  total flux cleaned = 0.00511029 Jy
! Total flux subtracted in 200 components = 0.00511029 Jy
! Clean residual min=-0.009888 max=0.011642 Jy/beam
! Clean residual mean=0.000507 rms=0.004372 Jy/beam
! Combined flux in latest and established models = 2.66287 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 104 components and 2.66287 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.605748Jy  sigma=0.001961
! Fit after  self-cal, rms=0.605726Jy  sigma=0.001961
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.000745735 Jy
! Component: 100  -  total flux cleaned = 0.000885872 Jy
! Component: 150  -  total flux cleaned = 0.00100564 Jy
! Component: 200  -  total flux cleaned = 0.00106021 Jy
! Total flux subtracted in 200 components = 0.00106021 Jy
! Clean residual min=-0.009756 max=0.011774 Jy/beam
! Clean residual mean=0.000489 rms=0.004308 Jy/beam
! Combined flux in latest and established models = 2.66393 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 108 components and 2.66393 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.605775Jy  sigma=0.001961
! Fit after  self-cal, rms=0.605752Jy  sigma=0.001961
! 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.439 mas, bmaj=5.477 mas, bpa=-9.72 degrees
! Estimated noise=403.407 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.439 x 5.477 at -9.72 degrees (North through East)
! Clean map  min=-0.0054098  max=1.7713 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.605752Jy  sigma=0.001961
! Fit after  self-cal, rms=0.696791Jy  sigma=0.001502
! Inverting map and beam 
! Estimated beam: bmin=2.437 mas, bmaj=5.481 mas, bpa=-9.802 degrees
! Estimated noise=402.694 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00319142 Jy
! Component: 100  -  total flux cleaned = -0.00360046 Jy
! Component: 150  -  total flux cleaned = -0.00336221 Jy
! Component: 200  -  total flux cleaned = -0.00325648 Jy
! Total flux subtracted in 200 components = -0.00325648 Jy
! Clean residual min=-0.003386 max=0.004377 Jy/beam
! Clean residual mean=0.000133 rms=0.000992 Jy/beam
! Combined flux in latest and established models = 2.66068 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 115 components and 2.66068 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.696758Jy  sigma=0.001499
! Fit after  self-cal, rms=0.696764Jy  sigma=0.001499
! Inverting map 
! Added new window around map position (-13, -13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00298645 Jy
! Component: 100  -  total flux cleaned = 0.00288756 Jy
! Component: 150  -  total flux cleaned = 0.00289104 Jy
! Component: 200  -  total flux cleaned = 0.00307455 Jy
! Total flux subtracted in 200 components = 0.00307455 Jy
! Clean residual min=-0.003172 max=0.003605 Jy/beam
! Clean residual mean=0.000113 rms=0.000924 Jy/beam
! Combined flux in latest and established models = 2.66375 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 128 components and 2.66375 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.696725Jy  sigma=0.001497
! Fit after  self-cal, rms=0.696720Jy  sigma=0.001497
! 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.696720Jy  sigma=0.001497
! Fit after  self-cal, rms=0.698296Jy  sigma=0.001497
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.111 mas, bmaj=4.369 mas, bpa=-8.584 degrees
! Estimated noise=822.07 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.28725 Jy
! Component: 100  -  total flux cleaned = 1.75716 Jy
! Component: 150  -  total flux cleaned = 2.01099 Jy
! Component: 200  -  total flux cleaned = 2.17656 Jy
! Total flux subtracted in 200 components = 2.17656 Jy
! Clean residual min=-0.021959 max=0.090291 Jy/beam
! Clean residual mean=0.000534 rms=0.008014 Jy/beam
! Combined flux in latest and established models = 2.17656 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 29 model components to the UV plane model.
! The established model now contains 29 components and 2.17656 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.438 mas, bmaj=5.481 mas, bpa=-9.826 degrees
! Estimated noise=402.72 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.168798 Jy
! Component: 100  -  total flux cleaned = 0.267354 Jy
! Component: 150  -  total flux cleaned = 0.329816 Jy
! Component: 200  -  total flux cleaned = 0.371351 Jy
! Total flux subtracted in 200 components = 0.371351 Jy
! Clean residual min=-0.008249 max=0.025614 Jy/beam
! Clean residual mean=0.000848 rms=0.003674 Jy/beam
! Combined flux in latest and established models = 2.54791 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 70 components and 2.54791 Jy
! Inverting map 
! Added new window around map position (-2.5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0296422 Jy
! Component: 100  -  total flux cleaned = 0.050821 Jy
! Component: 150  -  total flux cleaned = 0.0666142 Jy
! Component: 200  -  total flux cleaned = 0.07871 Jy
! Total flux subtracted in 200 components = 0.07871 Jy
! Clean residual min=-0.004658 max=0.007107 Jy/beam
! Clean residual mean=0.000342 rms=0.001562 Jy/beam
! Combined flux in latest and established models = 2.62662 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 106 components and 2.62662 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00876166 Jy
! Component: 100  -  total flux cleaned = 0.0128756 Jy
! Component: 150  -  total flux cleaned = 0.0162121 Jy
! Component: 200  -  total flux cleaned = 0.0194329 Jy
! Total flux subtracted in 200 components = 0.0194329 Jy
! Clean residual min=-0.004097 max=0.005346 Jy/beam
! Clean residual mean=0.000218 rms=0.001176 Jy/beam
! Combined flux in latest and established models = 2.64605 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 118 components and 2.64605 Jy
! Inverting map 
! Added new window around map position (13.5, 21.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00432637 Jy
! Component: 100  -  total flux cleaned = 0.0071937 Jy
! Component: 150  -  total flux cleaned = 0.00960457 Jy
! Component: 200  -  total flux cleaned = 0.0118201 Jy
! Total flux subtracted in 200 components = 0.0118201 Jy
! Clean residual min=-0.004059 max=0.004053 Jy/beam
! Clean residual mean=0.000144 rms=0.001008 Jy/beam
! Combined flux in latest and established models = 2.65787 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 132 components and 2.65787 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.461 mas, bmaj=9.696 mas, bpa=-13.93 degrees
! Estimated noise=581.929 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00488601 Jy
! Component: 100  -  total flux cleaned = 0.00684939 Jy
! Component: 150  -  total flux cleaned = 0.00781943 Jy
! Component: 200  -  total flux cleaned = 0.0085843 Jy
! Total flux subtracted in 200 components = 0.0085843 Jy
! Clean residual min=-0.002208 max=0.003369 Jy/beam
! Clean residual mean=0.000277 rms=0.000889 Jy/beam
! Combined flux in latest and established models = 2.66646 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.000521559 Jy
! Component: 100  -  total flux cleaned = 0.0006965 Jy
! Component: 150  -  total flux cleaned = 0.000849899 Jy
! Component: 200  -  total flux cleaned = 0.000988431 Jy
! Total flux subtracted in 200 components = 0.000988431 Jy
! Clean residual min=-0.002073 max=0.003176 Jy/beam
! Clean residual mean=0.000259 rms=0.000850 Jy/beam
! Combined flux in latest and established models = 2.66745 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 182 components and 2.66745 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.438 mas, bmaj=5.481 mas, bpa=-9.826 degrees
! Estimated noise=402.72 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00147658 Jy
! Component: 100  -  total flux cleaned = -0.00118808 Jy
! Component: 150  -  total flux cleaned = -0.00105647 Jy
! Component: 200  -  total flux cleaned = -0.000929262 Jy
! Total flux subtracted in 200 components = -0.000929262 Jy
! Clean residual min=-0.003818 max=0.003685 Jy/beam
! Clean residual mean=0.000092 rms=0.000917 Jy/beam
! Combined flux in latest and established models = 2.66652 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 197 components and 2.66652 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.698228Jy  sigma=0.001503
! Fit after  self-cal, rms=0.698289Jy  sigma=0.001502
wmodel J0530+1331_S_2000_05_22_pus_map.mod
! Writing 197 model components to file: J0530+1331_S_2000_05_22_pus_map.mod
wobs J0530+1331_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J0530+1331_S_2000_05_22_pus_uvs.fits
wwins J0530+1331_S_2000_05_22_pus_map.win
! wwins: Wrote 6 windows to J0530+1331_S_2000_05_22_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.000545733 Jy
! Component: 100  -  total flux cleaned = 0.00105771 Jy
! Component: 150  -  total flux cleaned = 0.00117808 Jy
! Component: 200  -  total flux cleaned = 0.00117756 Jy
! Component: 250  -  total flux cleaned = 0.00117766 Jy
! Component: 300  -  total flux cleaned = 0.00117829 Jy
! Component: 350  -  total flux cleaned = 0.00123251 Jy
! Component: 400  -  total flux cleaned = 0.00133822 Jy
! Component: 450  -  total flux cleaned = 0.00149345 Jy
! Component: 500  -  total flux cleaned = 0.0014934 Jy
! Component: 550  -  total flux cleaned = 0.00164418 Jy
! Component: 600  -  total flux cleaned = 0.00184192 Jy
! Component: 650  -  total flux cleaned = 0.00208545 Jy
! Component: 700  -  total flux cleaned = 0.00227779 Jy
! Component: 750  -  total flux cleaned = 0.00246783 Jy
! Component: 800  -  total flux cleaned = 0.0026091 Jy
! Component: 850  -  total flux cleaned = 0.00284217 Jy
! Component: 900  -  total flux cleaned = 0.00307233 Jy
! Component: 950  -  total flux cleaned = 0.00325379 Jy
! Component: 1000  -  total flux cleaned = 0.00343384 Jy
! Component: 1050  -  total flux cleaned = 0.00370085 Jy
! Component: 1100  -  total flux cleaned = 0.00396463 Jy
! Component: 1150  -  total flux cleaned = 0.00409561 Jy
! Component: 1200  -  total flux cleaned = 0.00439751 Jy
! Component: 1250  -  total flux cleaned = 0.00448327 Jy
! Component: 1300  -  total flux cleaned = 0.00477986 Jy
! Component: 1350  -  total flux cleaned = 0.00494726 Jy
! Component: 1400  -  total flux cleaned = 0.00515494 Jy
! Component: 1450  -  total flux cleaned = 0.0054017 Jy
! Component: 1500  -  total flux cleaned = 0.00544227 Jy
! Component: 1550  -  total flux cleaned = 0.00572466 Jy
! Component: 1600  -  total flux cleaned = 0.0057642 Jy
! Component: 1650  -  total flux cleaned = 0.00592328 Jy
! Component: 1700  -  total flux cleaned = 0.00608145 Jy
! Component: 1750  -  total flux cleaned = 0.00623761 Jy
! Component: 1800  -  total flux cleaned = 0.0064318 Jy
! Component: 1850  -  total flux cleaned = 0.00654735 Jy
! Component: 1900  -  total flux cleaned = 0.00677666 Jy
! Component: 1950  -  total flux cleaned = 0.00689043 Jy
! Component: 2000  -  total flux cleaned = 0.00700354 Jy
! Total flux subtracted in 2048 components = 0.00722822 Jy
! Clean residual min=-0.002528 max=0.002215 Jy/beam
! Clean residual mean=0.000050 rms=0.000697 Jy/beam
! Combined flux in latest and established models = 2.67375 Jy
keep
! Adding 138 model components to the UV plane model.
! The established model now contains 331 components and 2.67375 Jy
![Exited script file: muppet]
wmap "J0530+1331_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.438 x 5.481 at -9.826 degrees (North through East)
! Clean map  min=-0.0031173  max=1.7735 Jy/beam
! Writing clean map to FITS file: J0530+1331_S_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.77347 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000697357 
device "J0530+1331_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J0530+1331_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.117965 0.117965 0.23593 0.471859 0.943718 1.88744 3.77487 7.54975 15.0995 30.199 60.398
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.773 
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.438 x 5.481 at -9.826 degrees (North through East)
! Clean map  min=-0.0031173  max=1.7735 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0530+1331_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J0530+1331_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0530+1331_S_2000_05_22_pus_uvs.log closed on Mon Nov 19 18:38:07 2007