! Started logfile: J0530+1331_S_1998_10_01_pus_uvs.log on Thu Feb  7 17:05:29 2008
obs J0530+1331_S_1998_10_01_pus_uva.fits
! Reading UV FITS file: J0530+1331_S_1998_10_01_pus_uva.fits
! AN table 1: 168 integrations on 136 of 136 possible baselines.
! AN table 2: 208 integrations on 136 of 136 possible baselines.
! AN table 3: 50 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.189192 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.22298e+09        4e+06          1        4e+06
!  02        2  2.24298e+09        4e+06          1        4e+06
!  03        3  2.33298e+09        4e+06          1        4e+06
!  04        4  2.36298e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 1537 lines of history.
! 
! Reading 43844 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_1998_10_01_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 1796 telescope corrections were flagged in sub-array 1.
!  A total of 2167 telescope corrections were flagged in sub-array 2.
!  A total of 662 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1796 telescope corrections were flagged in sub-array 1.
!  A total of 2167 telescope corrections were flagged in sub-array 2.
!  A total of 662 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1796 telescope corrections were flagged in sub-array 1.
!  A total of 2167 telescope corrections were flagged in sub-array 2.
!  A total of 662 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1796 telescope corrections were flagged in sub-array 1.
!  A total of 2167 telescope corrections were flagged in sub-array 2.
!  A total of 662 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.586718Jy  sigma=0.012880
! Fit after  self-cal, rms=1.471040Jy  sigma=0.012090
! 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.284 mas, bmaj=4.621 mas, bpa=-8.603 degrees
! Estimated noise=742.021 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.62045 Jy
! Component: 100  -  total flux cleaned = 2.12438 Jy
! Total flux subtracted in 100 components = 2.12438 Jy
! Clean residual min=-0.048759 max=0.223760 Jy/beam
! Clean residual mean=0.000959 rms=0.016591 Jy/beam
! Combined flux in latest and established models = 2.12438 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 2.12438 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.691270Jy  sigma=0.005252
! Fit after  self-cal, rms=0.690200Jy  sigma=0.005249
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.260344 Jy
! Component: 100  -  total flux cleaned = 0.425128 Jy
! Total flux subtracted in 100 components = 0.425128 Jy
! Clean residual min=-0.031729 max=0.088771 Jy/beam
! Clean residual mean=0.000478 rms=0.009779 Jy/beam
! Combined flux in latest and established models = 2.54951 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 30 components and 2.54951 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.522620Jy  sigma=0.003576
! Fit after  self-cal, rms=0.521484Jy  sigma=0.003572
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.111454 Jy
! Component: 100  -  total flux cleaned = 0.188702 Jy
! Total flux subtracted in 100 components = 0.188702 Jy
! Clean residual min=-0.027035 max=0.056108 Jy/beam
! Clean residual mean=0.000266 rms=0.007804 Jy/beam
! Combined flux in latest and established models = 2.73821 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 39 components and 2.73821 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.481167Jy  sigma=0.003131
! Fit after  self-cal, rms=0.480705Jy  sigma=0.003129
! Inverting map 
! Added new window around map position (2, -5.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0614507 Jy
! Component: 100  -  total flux cleaned = 0.105892 Jy
! Total flux subtracted in 100 components = 0.105892 Jy
! Clean residual min=-0.026542 max=0.041017 Jy/beam
! Clean residual mean=0.000152 rms=0.007124 Jy/beam
! Combined flux in latest and established models = 2.8441 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 42 components and 2.8441 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.468458Jy  sigma=0.002999
! Fit after  self-cal, rms=0.468165Jy  sigma=0.002996
! 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.877 mas, bmaj=5.763 mas, bpa=-13.68 degrees
! Estimated noise=440.793 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, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0609912 Jy
! Component: 100  -  total flux cleaned = 0.100113 Jy
! Component: 150  -  total flux cleaned = 0.125831 Jy
! Component: 200  -  total flux cleaned = 0.136938 Jy
! Total flux subtracted in 200 components = 0.136938 Jy
! Clean residual min=-0.018138 max=0.029414 Jy/beam
! Clean residual mean=-0.000756 rms=0.005479 Jy/beam
! Combined flux in latest and established models = 2.98104 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 70 components and 2.98104 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.458882Jy  sigma=0.002908
! Fit after  self-cal, rms=0.458556Jy  sigma=0.002904
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 66 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.99     GC        1.01     HN        1.00     
!   KK        0.98     KP        0.99     LA        0.96     MK        0.99     
!   NL        0.99     NY        1.02     ON        1.12     OV        0.98     
!   PT        1.02     SC        1.03     WF        1.04     MC        1.00     
!   GN        0.94     
! 
!  A total of 153 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.99     GC        1.00     HN        0.98     
!   KK        0.98     KP        0.99     LA        0.95     MK        0.98     
!   NL        1.00     NY        1.16     ON        1.02     OV        1.00     
!   PT        1.04     SC        1.01     WF        1.00     MC        1.00*    
!   GN        0.97     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.02     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00     ON        1.06     OV        1.00*    
!   PT        1.00*    SC        1.05     WF        1.04     MC        0.92     
!   GN        1.00     
! 
! 
! Correcting IF 2.
!  A total of 66 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.99     GC        0.99     HN        1.06     
!   KK        0.97     KP        0.91     LA        1.01     MK        1.05     
!   NL        0.97     NY        1.05     ON        1.08     OV        0.97     
!   PT        0.96     SC        1.05     WF        1.07     MC        1.26     
!   GN        0.96     
! 
!  A total of 153 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        0.97     HN        1.04     
!   KK        0.98     KP        0.90     LA        1.01     MK        1.03     
!   NL        1.03     NY        1.21     ON        1.09     OV        1.00     
!   PT        1.01     SC        1.04     WF        1.04     MC        1.00*    
!   GN        0.98     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.09     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.03     ON        1.06     OV        1.00*    
!   PT        1.00*    SC        1.07     WF        1.02     MC        0.87     
!   GN        1.01     
! 
! 
! Correcting IF 3.
!  A total of 66 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.04     GC        1.02     HN        1.00     
!   KK        0.98     KP        0.96     LA        1.01     MK        0.99     
!   NL        0.99     NY        1.05     ON        1.12     OV        0.98     
!   PT        1.00     SC        1.04     WF        1.09     MC        1.09     
!   GN        0.97     
! 
!  A total of 153 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.04     GC        1.02     HN        1.00     
!   KK        0.98     KP        0.96     LA        1.01     MK        0.95     
!   NL        1.03     NY        1.23     ON        1.01     OV        1.00     
!   PT        1.02     SC        1.03     WF        1.02     MC        1.00*    
!   GN        1.00     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.03     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.05     ON        0.92     OV        1.00*    
!   PT        1.00*    SC        1.07     WF        1.02     MC        1.62     
!   GN        1.05     
! 
! 
! Correcting IF 4.
!  A total of 66 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.01     GC        1.01     HN        1.02     
!   KK        0.98     KP        0.95     LA        1.00     MK        1.00     
!   NL        0.98     NY        1.05     ON        1.09     OV        1.01     
!   PT        1.03     SC        1.03     WF        1.06     MC        1.14     
!   GN        0.95     
! 
!  A total of 153 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.01     HN        1.02     
!   KK        0.99     KP        0.93     LA        1.01     MK        0.96     
!   NL        1.03     NY        1.20     ON        0.96     OV        1.02     
!   PT        1.14     SC        1.04     WF        1.01     MC        1.00*    
!   GN        0.99     
! 
!  A total of 57 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    HN        1.02     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.05     ON        1.00     OV        1.00*    
!   PT        1.00*    SC        1.03     WF        1.11     MC        2.74     
!   GN        1.04     
! 
! 
! Fit before self-cal, rms=0.458556Jy  sigma=0.002904
! Fit after  self-cal, rms=0.446029Jy  sigma=0.002680
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.893 mas, bmaj=5.929 mas, bpa=-13.62 degrees
! Estimated noise=444.354 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.00127273 Jy
! Component: 100  -  total flux cleaned = 0.00263231 Jy
! Component: 150  -  total flux cleaned = 0.00417003 Jy
! Component: 200  -  total flux cleaned = 0.00451862 Jy
! Total flux subtracted in 200 components = 0.00451862 Jy
! Clean residual min=-0.013496 max=0.015024 Jy/beam
! Clean residual mean=0.000074 rms=0.003809 Jy/beam
! Combined flux in latest and established models = 2.98556 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 86 components and 2.98556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.445015Jy  sigma=0.002673
! Fit after  self-cal, rms=0.445631Jy  sigma=0.002672
! 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.445631Jy  sigma=0.002672
! Fit after  self-cal, rms=0.462424Jy  sigma=0.002533
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.897 mas, bmaj=5.948 mas, bpa=-14.02 degrees
! Estimated noise=444.067 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00454063 Jy
! Component: 100  -  total flux cleaned = -0.00481536 Jy
! Component: 150  -  total flux cleaned = -0.00457837 Jy
! Component: 200  -  total flux cleaned = -0.00437056 Jy
! Total flux subtracted in 200 components = -0.00437056 Jy
! Clean residual min=-0.005896 max=0.006515 Jy/beam
! Clean residual mean=0.000184 rms=0.001530 Jy/beam
! Combined flux in latest and established models = 2.98119 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 100 components and 2.98119 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.462119Jy  sigma=0.002530
! Fit after  self-cal, rms=0.462477Jy  sigma=0.002530
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (9.5, 15).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0023963 Jy
! Component: 100  -  total flux cleaned = 0.00300292 Jy
! Component: 150  -  total flux cleaned = 0.00353786 Jy
! Component: 200  -  total flux cleaned = 0.00401696 Jy
! Total flux subtracted in 200 components = 0.00401696 Jy
! Clean residual min=-0.005402 max=0.005693 Jy/beam
! Clean residual mean=0.000165 rms=0.001453 Jy/beam
! Combined flux in latest and established models = 2.9852 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 111 components and 2.9852 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.462300Jy  sigma=0.002528
! Fit after  self-cal, rms=0.462284Jy  sigma=0.002528
! 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.462284Jy  sigma=0.002528
! Fit after  self-cal, rms=0.464295Jy  sigma=0.002525
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.898 mas, bmaj=5.95 mas, bpa=-14.06 degrees
! Estimated noise=443.96 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00169257 Jy
! Component: 100  -  total flux cleaned = -0.0016994 Jy
! Component: 150  -  total flux cleaned = -0.00154327 Jy
! Component: 200  -  total flux cleaned = -0.00140261 Jy
! Total flux subtracted in 200 components = -0.00140261 Jy
! Clean residual min=-0.004954 max=0.005049 Jy/beam
! Clean residual mean=0.000157 rms=0.001298 Jy/beam
! Combined flux in latest and established models = 2.9838 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 121 components and 2.9838 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.464160Jy  sigma=0.002524
! Fit after  self-cal, rms=0.464151Jy  sigma=0.002524
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.000231794 Jy
! Component: 100  -  total flux cleaned = 0.000180853 Jy
! Component: 150  -  total flux cleaned = 0.000309887 Jy
! Component: 200  -  total flux cleaned = 0.0005505 Jy
! Total flux subtracted in 200 components = 0.0005505 Jy
! Clean residual min=-0.004717 max=0.004920 Jy/beam
! Clean residual mean=0.000154 rms=0.001265 Jy/beam
! Combined flux in latest and established models = 2.98435 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 126 components and 2.98435 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.464061Jy  sigma=0.002523
! Fit after  self-cal, rms=0.464052Jy  sigma=0.002523
! 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.464052Jy  sigma=0.002523
! Fit after  self-cal, rms=0.464732Jy  sigma=0.002523
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.474 mas, bmaj=10.05 mas, bpa=-7.092 degrees
! Estimated noise=579.733 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00190515 Jy
! Component: 100  -  total flux cleaned = -0.00182723 Jy
! Component: 150  -  total flux cleaned = -0.00167381 Jy
! Component: 200  -  total flux cleaned = -0.00154628 Jy
! Total flux subtracted in 200 components = -0.00154628 Jy
! Clean residual min=-0.004485 max=0.005889 Jy/beam
! Clean residual mean=0.000356 rms=0.001389 Jy/beam
! Combined flux in latest and established models = 2.98281 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 146 components and 2.98281 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.464692Jy  sigma=0.002523
! Fit after  self-cal, rms=0.464678Jy  sigma=0.002522
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.000146305 Jy
! Component: 100  -  total flux cleaned = -0.000148143 Jy
! Component: 150  -  total flux cleaned = -3.75448e-05 Jy
! Component: 200  -  total flux cleaned = 0.000104301 Jy
! Total flux subtracted in 200 components = 0.000104301 Jy
! Clean residual min=-0.004257 max=0.005869 Jy/beam
! Clean residual mean=0.000356 rms=0.001380 Jy/beam
! Combined flux in latest and established models = 2.98291 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 160 components and 2.98291 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.464657Jy  sigma=0.002522
! Fit after  self-cal, rms=0.464650Jy  sigma=0.002522
! Inverting map 
! Added new window around map position (27.5, 47).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0048946 Jy
! Component: 100  -  total flux cleaned = 0.00492457 Jy
! Component: 150  -  total flux cleaned = 0.00494835 Jy
! Component: 200  -  total flux cleaned = 0.00464022 Jy
! Total flux subtracted in 200 components = 0.00464022 Jy
! Clean residual min=-0.003712 max=0.005217 Jy/beam
! Clean residual mean=0.000280 rms=0.001166 Jy/beam
! Combined flux in latest and established models = 2.98755 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 191 components and 2.98755 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.464605Jy  sigma=0.002522
! Fit after  self-cal, rms=0.464604Jy  sigma=0.002522
! Inverting map 
! Added new window around map position (59.5, -44.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00405701 Jy
! Component: 100  -  total flux cleaned = 0.00519115 Jy
! Component: 150  -  total flux cleaned = 0.00602365 Jy
! Component: 200  -  total flux cleaned = 0.00655978 Jy
! Total flux subtracted in 200 components = 0.00655978 Jy
! Clean residual min=-0.003419 max=0.003521 Jy/beam
! Clean residual mean=0.000186 rms=0.001071 Jy/beam
! Combined flux in latest and established models = 2.99411 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 221 components and 2.99411 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.464566Jy  sigma=0.002521
! Fit after  self-cal, rms=0.464551Jy  sigma=0.002521
! 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.898 mas, bmaj=5.953 mas, bpa=-14.09 degrees
! Estimated noise=443.934 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.898 x 5.953 at -14.09 degrees (North through East)
! Clean map  min=-0.0046903  max=2.2599 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.464551Jy  sigma=0.002521
! Fit after  self-cal, rms=0.517222Jy  sigma=0.002314
! Inverting map and beam 
! Estimated beam: bmin=2.897 mas, bmaj=5.953 mas, bpa=-14.1 degrees
! Estimated noise=443.562 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00218558 Jy
! Component: 100  -  total flux cleaned = -0.0023478 Jy
! Component: 150  -  total flux cleaned = -0.00249205 Jy
! Component: 200  -  total flux cleaned = -0.00236172 Jy
! Total flux subtracted in 200 components = -0.00236172 Jy
! Clean residual min=-0.004332 max=0.004234 Jy/beam
! Clean residual mean=0.000066 rms=0.001044 Jy/beam
! Combined flux in latest and established models = 2.99175 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 248 components and 2.99175 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.517121Jy  sigma=0.002313
! Fit after  self-cal, rms=0.517127Jy  sigma=0.002313
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000131125 Jy
! Component: 100  -  total flux cleaned = -0.000253 Jy
! Component: 150  -  total flux cleaned = -1.89817e-05 Jy
! Component: 200  -  total flux cleaned = 9.28342e-05 Jy
! Total flux subtracted in 200 components = 9.28342e-05 Jy
! Clean residual min=-0.004315 max=0.004218 Jy/beam
! Clean residual mean=0.000067 rms=0.001019 Jy/beam
! Combined flux in latest and established models = 2.99184 Jy
! Performing phase self-cal
! Adding 49 model components to the UV plane model.
! The established model now contains 267 components and 2.99184 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.517066Jy  sigma=0.002313
! Fit after  self-cal, rms=0.517072Jy  sigma=0.002313
! 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.517072Jy  sigma=0.002313
! Fit after  self-cal, rms=0.517312Jy  sigma=0.002313
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.31 mas, bmaj=4.728 mas, bpa=-9.617 degrees
! Estimated noise=749.81 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.64832 Jy
! Component: 100  -  total flux cleaned = 2.16149 Jy
! Component: 150  -  total flux cleaned = 2.40878 Jy
! Component: 200  -  total flux cleaned = 2.55378 Jy
! Total flux subtracted in 200 components = 2.55378 Jy
! Clean residual min=-0.018430 max=0.077875 Jy/beam
! Clean residual mean=0.000488 rms=0.006570 Jy/beam
! Combined flux in latest and established models = 2.55378 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 23 model components to the UV plane model.
! The established model now contains 23 components and 2.55378 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.898 mas, bmaj=5.954 mas, bpa=-14.11 degrees
! Estimated noise=443.337 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.154891 Jy
! Component: 100  -  total flux cleaned = 0.240053 Jy
! Component: 150  -  total flux cleaned = 0.292195 Jy
! Component: 200  -  total flux cleaned = 0.326995 Jy
! Total flux subtracted in 200 components = 0.326995 Jy
! Clean residual min=-0.007224 max=0.020452 Jy/beam
! Clean residual mean=0.000648 rms=0.003012 Jy/beam
! Combined flux in latest and established models = 2.88077 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 73 components and 2.88077 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.0245579 Jy
! Component: 100  -  total flux cleaned = 0.0420437 Jy
! Component: 150  -  total flux cleaned = 0.0548171 Jy
! Component: 200  -  total flux cleaned = 0.0637629 Jy
! Total flux subtracted in 200 components = 0.0637629 Jy
! Clean residual min=-0.005737 max=0.005846 Jy/beam
! Clean residual mean=0.000304 rms=0.001458 Jy/beam
! Combined flux in latest and established models = 2.94453 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 94 components and 2.94453 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.477 mas, bmaj=10.06 mas, bpa=-7.139 degrees
! Estimated noise=578.683 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0114745 Jy
! Component: 100  -  total flux cleaned = 0.0191485 Jy
! Component: 150  -  total flux cleaned = 0.0251197 Jy
! Component: 200  -  total flux cleaned = 0.0287854 Jy
! Total flux subtracted in 200 components = 0.0287854 Jy
! Clean residual min=-0.004005 max=0.004017 Jy/beam
! Clean residual mean=0.000381 rms=0.001236 Jy/beam
! Combined flux in latest and established models = 2.97332 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.00304631 Jy
! Component: 100  -  total flux cleaned = 0.00562732 Jy
! Component: 150  -  total flux cleaned = 0.00786125 Jy
! Component: 200  -  total flux cleaned = 0.0097177 Jy
! Total flux subtracted in 200 components = 0.0097177 Jy
! Clean residual min=-0.003419 max=0.003540 Jy/beam
! Clean residual mean=0.000242 rms=0.001034 Jy/beam
! Combined flux in latest and established models = 2.98304 Jy
! Adding 106 model components to the UV plane model.
! The established model now contains 199 components and 2.98304 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.898 mas, bmaj=5.954 mas, bpa=-14.11 degrees
! Estimated noise=443.337 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00237179 Jy
! Component: 100  -  total flux cleaned = -0.000335706 Jy
! Component: 150  -  total flux cleaned = 0.0010724 Jy
! Component: 200  -  total flux cleaned = 0.00237086 Jy
! Total flux subtracted in 200 components = 0.00237086 Jy
! Clean residual min=-0.004115 max=0.004737 Jy/beam
! Clean residual mean=0.000092 rms=0.001104 Jy/beam
! Combined flux in latest and established models = 2.98541 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 219 components and 2.98541 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.519193Jy  sigma=0.002317
! Fit after  self-cal, rms=0.519669Jy  sigma=0.002317
wmodel J0530+1331_S_1998_10_01_pus_map.mod
! Writing 219 model components to file: J0530+1331_S_1998_10_01_pus_map.mod
wobs J0530+1331_S_1998_10_01_pus_uvs.fits
! Writing UV FITS file: J0530+1331_S_1998_10_01_pus_uvs.fits
wwins J0530+1331_S_1998_10_01_pus_map.win
! wwins: Wrote 7 windows to J0530+1331_S_1998_10_01_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.00212227 Jy
! Component: 100  -  total flux cleaned = 0.00310273 Jy
! Component: 150  -  total flux cleaned = 0.00353212 Jy
! Component: 200  -  total flux cleaned = 0.00373662 Jy
! Component: 250  -  total flux cleaned = 0.00407163 Jy
! Component: 300  -  total flux cleaned = 0.0045987 Jy
! Component: 350  -  total flux cleaned = 0.00511729 Jy
! Component: 400  -  total flux cleaned = 0.00537314 Jy
! Component: 450  -  total flux cleaned = 0.00556368 Jy
! Component: 500  -  total flux cleaned = 0.00575121 Jy
! Component: 550  -  total flux cleaned = 0.00593587 Jy
! Component: 600  -  total flux cleaned = 0.00605738 Jy
! Component: 650  -  total flux cleaned = 0.0061778 Jy
! Component: 700  -  total flux cleaned = 0.00623757 Jy
! Component: 750  -  total flux cleaned = 0.0063559 Jy
! Component: 800  -  total flux cleaned = 0.00647249 Jy
! Component: 850  -  total flux cleaned = 0.00641415 Jy
! Component: 900  -  total flux cleaned = 0.00652973 Jy
! Component: 950  -  total flux cleaned = 0.00670056 Jy
! Component: 1000  -  total flux cleaned = 0.00675655 Jy
! Component: 1050  -  total flux cleaned = 0.00686872 Jy
! Component: 1100  -  total flux cleaned = 0.00703564 Jy
! Component: 1150  -  total flux cleaned = 0.00703546 Jy
! Component: 1200  -  total flux cleaned = 0.00709053 Jy
! Component: 1250  -  total flux cleaned = 0.00719967 Jy
! Component: 1300  -  total flux cleaned = 0.0073619 Jy
! Component: 1350  -  total flux cleaned = 0.00741557 Jy
! Component: 1400  -  total flux cleaned = 0.00752222 Jy
! Component: 1450  -  total flux cleaned = 0.00757545 Jy
! Component: 1500  -  total flux cleaned = 0.00757579 Jy
! Component: 1550  -  total flux cleaned = 0.00783807 Jy
! Component: 1600  -  total flux cleaned = 0.00783796 Jy
! Component: 1650  -  total flux cleaned = 0.00794093 Jy
! Component: 1700  -  total flux cleaned = 0.00809502 Jy
! Component: 1750  -  total flux cleaned = 0.00804381 Jy
! Component: 1800  -  total flux cleaned = 0.00819583 Jy
! Component: 1850  -  total flux cleaned = 0.00824546 Jy
! Component: 1900  -  total flux cleaned = 0.00814529 Jy
! Component: 1950  -  total flux cleaned = 0.00824513 Jy
! Component: 2000  -  total flux cleaned = 0.00834417 Jy
! Total flux subtracted in 2048 components = 0.00844251 Jy
! Clean residual min=-0.003729 max=0.003122 Jy/beam
! Clean residual mean=0.000045 rms=0.000937 Jy/beam
! Combined flux in latest and established models = 2.99385 Jy
keep
! Adding 124 model components to the UV plane model.
! The established model now contains 330 components and 2.99385 Jy
![Exited script file: muppet]
wmap "J0530+1331_S_1998_10_01_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.898 x 5.954 at -14.11 degrees (North through East)
! Clean map  min=-0.0039996  max=2.2628 Jy/beam
! Writing clean map to FITS file: J0530+1331_S_1998_10_01_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.26284 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00093656 
device "J0530+1331_S_1998_10_01_pus\_map.eps/VPS"
! Attempting to open device: 'J0530+1331_S_1998_10_01_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.124166 0.124166 0.248333 0.496665 0.99333 1.98666 3.97332 7.94664 15.8933 31.7866 63.5731
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0028 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.262 
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.898 x 5.954 at -14.11 degrees (North through East)
! Clean map  min=-0.0039996  max=2.2628 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0530+1331_S_1998_10_01_pus\_map.gif/vgif"
! Attempting to open device: 'J0530+1331_S_1998_10_01_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0530+1331_S_1998_10_01_pus_uvs.log closed on Thu Feb  7 17:05:50 2008