! Started logfile: J0530+1331_S_2001_10_29_pus_uvs.log on Thu Feb 28 12:26:30 2008
obs J0530+1331_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0530+1331_S_2001_10_29_pus_uva.fits
! AN table 1: 77 integrations on 153 of 153 possible baselines.
! AN table 2: 171 integrations on 153 of 153 possible baselines.
! AN table 3: 80 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.108042 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2608 lines of history.
! 
! Reading 21688 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_2001_10_29_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1124 telescope corrections were flagged in sub-array 1.
!  A total of 2545 telescope corrections were flagged in sub-array 2.
!  A total of 713 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1124 telescope corrections were flagged in sub-array 1.
!  A total of 2545 telescope corrections were flagged in sub-array 2.
!  A total of 729 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1124 telescope corrections were flagged in sub-array 1.
!  A total of 2545 telescope corrections were flagged in sub-array 2.
!  A total of 713 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1183 telescope corrections were flagged in sub-array 1.
!  A total of 2629 telescope corrections were flagged in sub-array 2.
!  A total of 713 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.329104Jy  sigma=0.010865
! Fit after  self-cal, rms=0.804482Jy  sigma=0.006826
! 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.946 mas, bmaj=4.505 mas, bpa=-2.693 degrees
! Estimated noise=1261.49 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.07904 Jy
! Component: 100  -  total flux cleaned = 1.47111 Jy
! Total flux subtracted in 100 components = 1.47111 Jy
! Clean residual min=-0.051278 max=0.188555 Jy/beam
! Clean residual mean=0.001149 rms=0.015540 Jy/beam
! Combined flux in latest and established models = 1.47111 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 1.47111 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.493046Jy  sigma=0.004121
! Fit after  self-cal, rms=0.491736Jy  sigma=0.004115
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.216841 Jy
! Component: 100  -  total flux cleaned = 0.346631 Jy
! Total flux subtracted in 100 components = 0.346631 Jy
! Clean residual min=-0.028773 max=0.067134 Jy/beam
! Clean residual mean=0.000594 rms=0.008070 Jy/beam
! Combined flux in latest and established models = 1.81774 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 21 components and 1.81774 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.320604Jy  sigma=0.002504
! Fit after  self-cal, rms=0.319684Jy  sigma=0.002500
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0847017 Jy
! Component: 100  -  total flux cleaned = 0.141375 Jy
! Total flux subtracted in 100 components = 0.141375 Jy
! Clean residual min=-0.021425 max=0.038580 Jy/beam
! Clean residual mean=0.000369 rms=0.005953 Jy/beam
! Combined flux in latest and established models = 1.95912 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 32 components and 1.95912 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.279658Jy  sigma=0.002060
! Fit after  self-cal, rms=0.279235Jy  sigma=0.002058
! Inverting map 
! Added new window around map position (2.5, 1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0437049 Jy
! Component: 100  -  total flux cleaned = 0.0754275 Jy
! Total flux subtracted in 100 components = 0.0754275 Jy
! Clean residual min=-0.020605 max=0.027035 Jy/beam
! Clean residual mean=0.000249 rms=0.005195 Jy/beam
! Combined flux in latest and established models = 2.03455 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 39 components and 2.03455 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267789Jy  sigma=0.001909
! Fit after  self-cal, rms=0.267413Jy  sigma=0.001907
! 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.558 mas, bmaj=6.755 mas, bpa=-6.398 degrees
! Estimated noise=633.203 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.0504111 Jy
! Component: 100  -  total flux cleaned = 0.0790548 Jy
! Component: 150  -  total flux cleaned = 0.0910353 Jy
! Component: 200  -  total flux cleaned = 0.0964216 Jy
! Total flux subtracted in 200 components = 0.0964216 Jy
! Clean residual min=-0.021225 max=0.033841 Jy/beam
! Clean residual mean=0.000249 rms=0.007605 Jy/beam
! Combined flux in latest and established models = 2.13097 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 57 components and 2.13097 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260089Jy  sigma=0.001793
! Fit after  self-cal, rms=0.259680Jy  sigma=0.001790
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.92     KK        1.00*    KP        1.10     LA        0.97     
!   MA        1.12     MC        1.07     MK        1.00*    NL        0.87     
!   OV        1.03     PT        0.95     SC        0.98     TS        1.00*    
!   WF        0.94     WZ        1.04     
! 
!  A total of 147 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        1.00*    GG        1.00*    HH        1.35     
!   HN        1.06     KK        1.06     KP        1.04     LA        1.01     
!   MA        1.64     MC        0.99     MK        0.97     NL        1.06     
!   OV        0.99     PT        1.00*    SC        1.04     TS        1.00*    
!   WF        1.08     WZ        1.07     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        1.01     KP        1.06     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        0.98     
!   OV        0.95     PT        0.97     SC        1.02     TS        1.00     
!   WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.96     KK        1.00*    KP        1.12     LA        0.98     
!   MA        0.81     MC        1.13     MK        1.00*    NL        0.96     
!   OV        1.07     PT        1.00     SC        0.99     TS        1.00*    
!   WF        1.03     WZ        1.02     
! 
!  A total of 147 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.18     
!   HN        1.05     KK        1.05     KP        0.97     LA        0.97     
!   MA        1.46     MC        0.94     MK        0.99     NL        1.07     
!   OV        1.02     PT        1.00*    SC        1.03     TS        1.00*    
!   WF        1.01     WZ        1.06     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.04     KP        0.88     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.00     
!   OV        0.98     PT        0.96     SC        1.04     TS        1.05     
!   WF        1.02     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.86     KK        1.00*    KP        1.09     LA        0.98     
!   MA        0.97     MC        1.12     MK        1.00*    NL        0.93     
!   OV        1.06     PT        1.02     SC        0.99     TS        1.00*    
!   WF        0.95     WZ        1.05     
! 
!  A total of 147 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.20     
!   HN        1.04     KK        1.01     KP        1.03     LA        0.96     
!   MA        1.02     MC        0.94     MK        0.94     NL        1.07     
!   OV        1.02     PT        1.00*    SC        1.02     TS        1.00*    
!   WF        1.09     WZ        1.06     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00     KP        1.00     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.01     
!   OV        1.01     PT        1.01     SC        1.01     TS        1.01     
!   WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.89     KK        1.00*    KP        1.05     LA        1.02     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.01     
!   OV        1.04     PT        1.02     SC        1.00     TS        1.00*    
!   WF        1.02     WZ        1.00     
! 
!  A total of 162 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.47     
!   HN        1.07     KK        0.98     KP        1.03     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        0.98     NL        1.10     
!   OV        1.00     PT        1.00*    SC        1.02     TS        1.00*    
!   WF        1.03     WZ        1.00     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        0.98     KP        1.00     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.01     NL        1.04     
!   OV        0.96     PT        0.95     SC        1.03     TS        1.03     
!   WF        1.02     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.259680Jy  sigma=0.001790
! Fit after  self-cal, rms=0.234015Jy  sigma=0.001534
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.555 mas, bmaj=7.144 mas, bpa=-6.558 degrees
! Estimated noise=641.466 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.00195482 Jy
! Component: 100  -  total flux cleaned = 0.0012696 Jy
! Component: 150  -  total flux cleaned = 0.000923054 Jy
! Component: 200  -  total flux cleaned = 0.000928571 Jy
! Total flux subtracted in 200 components = 0.000928571 Jy
! Clean residual min=-0.010737 max=0.016612 Jy/beam
! Clean residual mean=0.000959 rms=0.003445 Jy/beam
! Combined flux in latest and established models = 2.1319 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 65 components and 2.1319 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233632Jy  sigma=0.001531
! Fit after  self-cal, rms=0.233758Jy  sigma=0.001530
! 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.233758Jy  sigma=0.001530
! Fit after  self-cal, rms=0.223299Jy  sigma=0.001413
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.557 mas, bmaj=7.142 mas, bpa=-6.568 degrees
! Estimated noise=641.358 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00647409 Jy
! Component: 100  -  total flux cleaned = 0.00647447 Jy
! Component: 150  -  total flux cleaned = 0.00663669 Jy
! Component: 200  -  total flux cleaned = 0.00663592 Jy
! Total flux subtracted in 200 components = 0.00663592 Jy
! Clean residual min=-0.004383 max=0.009972 Jy/beam
! Clean residual mean=0.000629 rms=0.001529 Jy/beam
! Combined flux in latest and established models = 2.13853 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 71 components and 2.13853 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222983Jy  sigma=0.001409
! Fit after  self-cal, rms=0.222924Jy  sigma=0.001408
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 (4.5, 11).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00966851 Jy
! Component: 100  -  total flux cleaned = 0.0124045 Jy
! Component: 150  -  total flux cleaned = 0.0137463 Jy
! Component: 200  -  total flux cleaned = 0.0144576 Jy
! Total flux subtracted in 200 components = 0.0144576 Jy
! Clean residual min=-0.003995 max=0.006308 Jy/beam
! Clean residual mean=0.000399 rms=0.001261 Jy/beam
! Combined flux in latest and established models = 2.15299 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 90 components and 2.15299 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222441Jy  sigma=0.001404
! Fit after  self-cal, rms=0.222413Jy  sigma=0.001403
! Inverting map 
! Added new window around map position (-1, 48).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00482453 Jy
! Component: 100  -  total flux cleaned = 0.00726868 Jy
! Component: 150  -  total flux cleaned = 0.00906133 Jy
! Component: 200  -  total flux cleaned = 0.00974867 Jy
! Total flux subtracted in 200 components = 0.00974867 Jy
! Clean residual min=-0.004298 max=0.004243 Jy/beam
! Clean residual mean=0.000257 rms=0.001115 Jy/beam
! Combined flux in latest and established models = 2.16274 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 101 components and 2.16274 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222194Jy  sigma=0.001401
! Fit after  self-cal, rms=0.222185Jy  sigma=0.001401
! 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.222185Jy  sigma=0.001401
! Fit after  self-cal, rms=0.222455Jy  sigma=0.001400
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.559 mas, bmaj=7.143 mas, bpa=-6.583 degrees
! Estimated noise=641.268 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00243972 Jy
! Component: 100  -  total flux cleaned = 0.00305862 Jy
! Component: 150  -  total flux cleaned = 0.00393825 Jy
! Component: 200  -  total flux cleaned = 0.00463311 Jy
! Total flux subtracted in 200 components = 0.00463311 Jy
! Clean residual min=-0.003181 max=0.003606 Jy/beam
! Clean residual mean=0.000221 rms=0.001016 Jy/beam
! Combined flux in latest and established models = 2.16737 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 111 components and 2.16737 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222323Jy  sigma=0.001399
! Fit after  self-cal, rms=0.222320Jy  sigma=0.001399
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.000442003 Jy
! Component: 100  -  total flux cleaned = 0.00114401 Jy
! Component: 150  -  total flux cleaned = 0.00138677 Jy
! Component: 200  -  total flux cleaned = 0.00153686 Jy
! Total flux subtracted in 200 components = 0.00153686 Jy
! Clean residual min=-0.003146 max=0.003470 Jy/beam
! Clean residual mean=0.000198 rms=0.000984 Jy/beam
! Combined flux in latest and established models = 2.16891 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 120 components and 2.16891 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222252Jy  sigma=0.001398
! Fit after  self-cal, rms=0.222249Jy  sigma=0.001398
! 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.222249Jy  sigma=0.001398
! Fit after  self-cal, rms=0.222430Jy  sigma=0.001398
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.103 mas, bmaj=10.87 mas, bpa=-10.71 degrees
! Estimated noise=864.645 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00151797 Jy
! Component: 100  -  total flux cleaned = 0.00227395 Jy
! Component: 150  -  total flux cleaned = 0.00288399 Jy
! Component: 200  -  total flux cleaned = 0.00318796 Jy
! Total flux subtracted in 200 components = 0.00318796 Jy
! Clean residual min=-0.003303 max=0.004464 Jy/beam
! Clean residual mean=0.000390 rms=0.001196 Jy/beam
! Combined flux in latest and established models = 2.1721 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 137 components and 2.1721 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222401Jy  sigma=0.001398
! Fit after  self-cal, rms=0.222396Jy  sigma=0.001398
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.000140805 Jy
! Component: 100  -  total flux cleaned = 0.000648143 Jy
! Component: 150  -  total flux cleaned = 0.000905693 Jy
! Component: 200  -  total flux cleaned = 0.00113106 Jy
! Total flux subtracted in 200 components = 0.00113106 Jy
! Clean residual min=-0.003340 max=0.004500 Jy/beam
! Clean residual mean=0.000348 rms=0.001172 Jy/beam
! Combined flux in latest and established models = 2.17323 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 147 components and 2.17323 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.222395Jy  sigma=0.001398
! Fit after  self-cal, rms=0.222392Jy  sigma=0.001398
! 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.56 mas, bmaj=7.146 mas, bpa=-6.585 degrees
! Estimated noise=641.363 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.56 x 7.146 at -6.585 degrees (North through East)
! Clean map  min=-0.0030909  max=1.5846 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.222392Jy  sigma=0.001398
! Fit after  self-cal, rms=0.224020Jy  sigma=0.001215
! Inverting map and beam 
! Estimated beam: bmin=2.561 mas, bmaj=7.139 mas, bpa=-6.575 degrees
! Estimated noise=641.124 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000297103 Jy
! Component: 100  -  total flux cleaned = -0.000298803 Jy
! Component: 150  -  total flux cleaned = -0.000227534 Jy
! Component: 200  -  total flux cleaned = -0.000227416 Jy
! Total flux subtracted in 200 components = -0.000227416 Jy
! Clean residual min=-0.002887 max=0.003301 Jy/beam
! Clean residual mean=0.000163 rms=0.000842 Jy/beam
! Combined flux in latest and established models = 2.173 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 158 components and 2.173 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223940Jy  sigma=0.001215
! Fit after  self-cal, rms=0.223944Jy  sigma=0.001215
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 7.89321e-05 Jy
! Component: 100  -  total flux cleaned = 1.61115e-05 Jy
! Component: 150  -  total flux cleaned = -4.35499e-05 Jy
! Component: 200  -  total flux cleaned = -0.000100794 Jy
! Total flux subtracted in 200 components = -0.000100794 Jy
! Clean residual min=-0.002843 max=0.003263 Jy/beam
! Clean residual mean=0.000164 rms=0.000831 Jy/beam
! Combined flux in latest and established models = 2.1729 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 166 components and 2.1729 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223898Jy  sigma=0.001215
! Fit after  self-cal, rms=0.223898Jy  sigma=0.001215
! 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.223898Jy  sigma=0.001215
! Fit after  self-cal, rms=0.223914Jy  sigma=0.001215
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.959 mas, bmaj=5.037 mas, bpa=-3.735 degrees
! Estimated noise=1271.32 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.10067 Jy
! Component: 100  -  total flux cleaned = 1.49421 Jy
! Component: 150  -  total flux cleaned = 1.70456 Jy
! Component: 200  -  total flux cleaned = 1.82753 Jy
! Total flux subtracted in 200 components = 1.82753 Jy
! Clean residual min=-0.018696 max=0.063423 Jy/beam
! Clean residual mean=0.000621 rms=0.006422 Jy/beam
! Combined flux in latest and established models = 1.82753 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 1.82753 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.561 mas, bmaj=7.142 mas, bpa=-6.582 degrees
! Estimated noise=641.043 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.126422 Jy
! Component: 100  -  total flux cleaned = 0.195848 Jy
! Component: 150  -  total flux cleaned = 0.238522 Jy
! Component: 200  -  total flux cleaned = 0.266333 Jy
! Total flux subtracted in 200 components = 0.266333 Jy
! Clean residual min=-0.004495 max=0.016530 Jy/beam
! Clean residual mean=0.001391 rms=0.002466 Jy/beam
! Combined flux in latest and established models = 2.09386 Jy
! Adding 52 model components to the UV plane model.
! The established model now contains 67 components and 2.09386 Jy
! Inverting map 
! Added new window around map position (-2, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0198331 Jy
! Component: 100  -  total flux cleaned = 0.0337039 Jy
! Component: 150  -  total flux cleaned = 0.0436684 Jy
! Component: 200  -  total flux cleaned = 0.0510398 Jy
! Total flux subtracted in 200 components = 0.0510398 Jy
! Clean residual min=-0.003508 max=0.005281 Jy/beam
! Clean residual mean=0.000568 rms=0.001176 Jy/beam
! Combined flux in latest and established models = 2.1449 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 92 components and 2.1449 Jy
! Inverting map 
! Added new window around map position (9, 18).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00632082 Jy
! Component: 100  -  total flux cleaned = 0.00987285 Jy
! Component: 150  -  total flux cleaned = 0.0126544 Jy
! Component: 200  -  total flux cleaned = 0.0150001 Jy
! Total flux subtracted in 200 components = 0.0150001 Jy
! Clean residual min=-0.003103 max=0.003670 Jy/beam
! Clean residual mean=0.000338 rms=0.000981 Jy/beam
! Combined flux in latest and established models = 2.1599 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 111 components and 2.1599 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.101 mas, bmaj=10.87 mas, bpa=-10.67 degrees
! Estimated noise=863.838 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00485304 Jy
! Component: 100  -  total flux cleaned = 0.00805111 Jy
! Component: 150  -  total flux cleaned = 0.0102068 Jy
! Component: 200  -  total flux cleaned = 0.0111051 Jy
! Total flux subtracted in 200 components = 0.0111051 Jy
! Clean residual min=-0.003327 max=0.003679 Jy/beam
! Clean residual mean=0.000439 rms=0.001091 Jy/beam
! Combined flux in latest and established models = 2.171 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.000522156 Jy
! Component: 100  -  total flux cleaned = 0.000930051 Jy
! Component: 150  -  total flux cleaned = 0.00124613 Jy
! Component: 200  -  total flux cleaned = 0.00144028 Jy
! Total flux subtracted in 200 components = 0.00144028 Jy
! Clean residual min=-0.003332 max=0.003596 Jy/beam
! Clean residual mean=0.000384 rms=0.001067 Jy/beam
! Combined flux in latest and established models = 2.17244 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 162 components and 2.17244 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.561 mas, bmaj=7.142 mas, bpa=-6.582 degrees
! Estimated noise=641.043 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00162691 Jy
! Component: 100  -  total flux cleaned = -0.00175909 Jy
! Component: 150  -  total flux cleaned = -0.00164312 Jy
! Component: 200  -  total flux cleaned = -0.00142779 Jy
! Total flux subtracted in 200 components = -0.00142779 Jy
! Clean residual min=-0.003167 max=0.003486 Jy/beam
! Clean residual mean=0.000174 rms=0.000875 Jy/beam
! Combined flux in latest and established models = 2.17102 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 175 components and 2.17102 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224597Jy  sigma=0.001218
! Fit after  self-cal, rms=0.224474Jy  sigma=0.001217
wmodel J0530+1331_S_2001_10_29_pus_map.mod
! Writing 175 model components to file: J0530+1331_S_2001_10_29_pus_map.mod
wobs J0530+1331_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0530+1331_S_2001_10_29_pus_uvs.fits
wwins J0530+1331_S_2001_10_29_pus_map.win
! wwins: Wrote 6 windows to J0530+1331_S_2001_10_29_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000922082 Jy
! Component: 100  -  total flux cleaned = 0.00148101 Jy
! Component: 150  -  total flux cleaned = 0.00201256 Jy
! Component: 200  -  total flux cleaned = 0.00247371 Jy
! Component: 250  -  total flux cleaned = 0.00297142 Jy
! Component: 300  -  total flux cleaned = 0.00321486 Jy
! Component: 350  -  total flux cleaned = 0.00354882 Jy
! Component: 400  -  total flux cleaned = 0.00378304 Jy
! Component: 450  -  total flux cleaned = 0.00405966 Jy
! Component: 500  -  total flux cleaned = 0.00428659 Jy
! Component: 550  -  total flux cleaned = 0.00455486 Jy
! Component: 600  -  total flux cleaned = 0.00477533 Jy
! Component: 650  -  total flux cleaned = 0.00503626 Jy
! Component: 700  -  total flux cleaned = 0.00529333 Jy
! Component: 750  -  total flux cleaned = 0.00546264 Jy
! Component: 800  -  total flux cleaned = 0.00571388 Jy
! Component: 850  -  total flux cleaned = 0.00587955 Jy
! Component: 900  -  total flux cleaned = 0.00608435 Jy
! Component: 950  -  total flux cleaned = 0.00628684 Jy
! Component: 1000  -  total flux cleaned = 0.00648729 Jy
! Component: 1050  -  total flux cleaned = 0.00668563 Jy
! Component: 1100  -  total flux cleaned = 0.0068035 Jy
! Component: 1150  -  total flux cleaned = 0.00695903 Jy
! Component: 1200  -  total flux cleaned = 0.00699763 Jy
! Component: 1250  -  total flux cleaned = 0.0071124 Jy
! Component: 1300  -  total flux cleaned = 0.00718829 Jy
! Component: 1350  -  total flux cleaned = 0.00726369 Jy
! Component: 1400  -  total flux cleaned = 0.00737576 Jy
! Component: 1450  -  total flux cleaned = 0.00748709 Jy
! Component: 1500  -  total flux cleaned = 0.00759697 Jy
! Component: 1550  -  total flux cleaned = 0.0077061 Jy
! Component: 1600  -  total flux cleaned = 0.00766993 Jy
! Component: 1650  -  total flux cleaned = 0.00784988 Jy
! Component: 1700  -  total flux cleaned = 0.00795685 Jy
! Component: 1750  -  total flux cleaned = 0.0079922 Jy
! Component: 1800  -  total flux cleaned = 0.00813307 Jy
! Component: 1850  -  total flux cleaned = 0.00820281 Jy
! Component: 1900  -  total flux cleaned = 0.00816799 Jy
! Component: 1950  -  total flux cleaned = 0.00827168 Jy
! Component: 2000  -  total flux cleaned = 0.00834021 Jy
! Total flux subtracted in 2048 components = 0.00837445 Jy
! Clean residual min=-0.001840 max=0.002026 Jy/beam
! Clean residual mean=0.000055 rms=0.000648 Jy/beam
! Combined flux in latest and established models = 2.17939 Jy
keep
! Adding 135 model components to the UV plane model.
! The established model now contains 308 components and 2.17939 Jy
![Exited script file: muppet]
wmap "J0530+1331_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.561 x 7.142 at -6.582 degrees (North through East)
! Clean map  min=-0.0028449  max=1.5854 Jy/beam
! Writing clean map to FITS file: J0530+1331_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.58538 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000648739 
device "J0530+1331_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0530+1331_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.12276 0.12276 0.245521 0.491042 0.982083 1.96417 3.92833 7.85667 15.7133 31.4267 62.8533
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.585 
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.561 x 7.142 at -6.582 degrees (North through East)
! Clean map  min=-0.0028449  max=1.5854 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0530+1331_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0530+1331_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0530+1331_S_2001_10_29_pus_uvs.log closed on Thu Feb 28 12:26:44 2008