! Started logfile: J0555+3948_S_1999_12_20_pus_uvs.log on Fri Dec 21 12:55:48 2007
obs J0555+3948_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0555+3948_S_1999_12_20_pus_uva.fits
! AN table 1: 139 integrations on 190 of 190 possible baselines.
! AN table 2: 265 integrations on 190 of 190 possible baselines.
! AN table 3: 176 integrations on 190 of 190 possible baselines.
! AN table 4: 302 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.242863 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0555+3948
! 
! 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 2302 lines of history.
! 
! Reading 162796 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 J0555+3948_S_1999_12_20_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 2402 telescope corrections were flagged in sub-array 1.
!  A total of 2533 telescope corrections were flagged in sub-array 2.
!  A total of 1579 telescope corrections were flagged in sub-array 3.
!  A total of 3996 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2402 telescope corrections were flagged in sub-array 1.
!  A total of 2604 telescope corrections were flagged in sub-array 2.
!  A total of 1579 telescope corrections were flagged in sub-array 3.
!  A total of 3955 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2421 telescope corrections were flagged in sub-array 1.
!  A total of 2732 telescope corrections were flagged in sub-array 2.
!  A total of 1579 telescope corrections were flagged in sub-array 3.
!  A total of 3977 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2402 telescope corrections were flagged in sub-array 1.
!  A total of 2533 telescope corrections were flagged in sub-array 2.
!  A total of 1579 telescope corrections were flagged in sub-array 3.
!  A total of 3956 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.563910Jy  sigma=0.021549
! Fit after  self-cal, rms=1.912449Jy  sigma=0.016696
! 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.979 mas, bmaj=2.635 mas, bpa=-6.833 degrees
! Estimated noise=684.28 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 = 2.04392 Jy
! Component: 100  -  total flux cleaned = 2.56917 Jy
! Total flux subtracted in 100 components = 2.56917 Jy
! Clean residual min=-0.039785 max=0.231380 Jy/beam
! Clean residual mean=0.000213 rms=0.010627 Jy/beam
! Combined flux in latest and established models = 2.56917 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 2.56917 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.578964Jy  sigma=0.005190
! Fit after  self-cal, rms=0.578937Jy  sigma=0.005190
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.25347 Jy
! Component: 100  -  total flux cleaned = 0.406483 Jy
! Total flux subtracted in 100 components = 0.406483 Jy
! Clean residual min=-0.039186 max=0.082953 Jy/beam
! Clean residual mean=0.000048 rms=0.006746 Jy/beam
! Combined flux in latest and established models = 2.97565 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 18 components and 2.97565 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.392638Jy  sigma=0.003214
! Fit after  self-cal, rms=0.392500Jy  sigma=0.003213
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.103065 Jy
! Component: 100  -  total flux cleaned = 0.173011 Jy
! Total flux subtracted in 100 components = 0.173011 Jy
! Clean residual min=-0.038085 max=0.038279 Jy/beam
! Clean residual mean=-0.000021 rms=0.005781 Jy/beam
! Combined flux in latest and established models = 3.14866 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 22 components and 3.14866 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.355397Jy  sigma=0.002705
! Fit after  self-cal, rms=0.355373Jy  sigma=0.002705
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0483325 Jy
! Component: 100  -  total flux cleaned = 0.0713546 Jy
! Total flux subtracted in 100 components = 0.0713546 Jy
! Clean residual min=-0.037571 max=0.023686 Jy/beam
! Clean residual mean=-0.000050 rms=0.005529 Jy/beam
! Combined flux in latest and established models = 3.22002 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 26 components and 3.22002 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349226Jy  sigma=0.002586
! Fit after  self-cal, rms=0.349199Jy  sigma=0.002586
! 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.679 mas, bmaj=3.553 mas, bpa=-9.633 degrees
! Estimated noise=228.605 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.039759 Jy
! Component: 100  -  total flux cleaned = 0.0564313 Jy
! Component: 150  -  total flux cleaned = 0.0643774 Jy
! Component: 200  -  total flux cleaned = 0.0661943 Jy
! Total flux subtracted in 200 components = 0.0661943 Jy
! Clean residual min=-0.024466 max=0.019172 Jy/beam
! Clean residual mean=-0.001189 rms=0.004959 Jy/beam
! Combined flux in latest and established models = 3.28621 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 30 components and 3.28621 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.348324Jy  sigma=0.002524
! Fit after  self-cal, rms=0.348294Jy  sigma=0.002524
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00     HH        1.21     
!   HN        1.07     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.02     MK        1.00*    NY        1.03     ON        1.02     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.07     
!   WF        1.12     WZ        0.98     GN        1.00*    NL        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.01     GC        1.04     HH        1.00*    
!   HN        1.02     KK        1.05     KP        1.02     LA        1.01     
!   MC        1.01     MK        1.04     NY        1.00     ON        1.04     
!   OV        1.00     PT        1.03     SC        1.04     TS        1.19     
!   WF        1.04     WZ        0.95     GN        0.98     NL        1.00     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.02     GC        1.02     HH        1.00*    
!   HN        0.98     KK        0.99     KP        1.04     LA        1.02     
!   MC        1.00*    MK        0.99     NY        0.98     ON        1.10     
!   OV        0.99     PT        1.04     SC        1.09     TS        1.04     
!   WF        1.03     WZ        1.00*    GN        1.01     NL        1.00     
! 
!  A total of 93 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.01     GC        1.03     HH        1.21     
!   HN        1.05     KK        1.06     KP        1.02     LA        1.01     
!   MC        1.00     MK        1.07     NY        1.08     ON        1.10     
!   OV        1.00     PT        1.03     SC        1.06     TS        1.44     
!   WF        1.07     WZ        1.00     GN        0.97     NL        1.01     
! 
! 
! Correcting IF 2.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.99     HH        1.26     
!   HN        1.14     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.07     MK        1.00*    NY        1.04     ON        1.04     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.07     
!   WF        1.10     WZ        1.02     GN        1.00*    NL        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.05     GC        1.02     HH        1.00*    
!   HN        1.08     KK        0.99     KP        1.02     LA        0.99     
!   MC        1.08     MK        1.02     NY        0.99     ON        1.04     
!   OV        0.96     PT        1.00     SC        1.03     TS        1.20     
!   WF        1.04     WZ        1.02     GN        0.99     NL        0.99     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.06     GC        1.01     HH        1.00*    
!   HN        1.03     KK        0.92     KP        1.02     LA        1.00     
!   MC        1.00*    MK        0.96     NY        0.97     ON        1.10     
!   OV        0.96     PT        1.01     SC        1.07     TS        1.04     
!   WF        1.02     WZ        1.00*    GN        1.01     NL        1.00     
! 
!  A total of 36 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.05     GC        1.03     HH        1.24     
!   HN        1.13     KK        1.00     KP        1.00     LA        0.98     
!   MC        1.24     MK        1.03     NY        1.08     ON        1.07     
!   OV        0.97     PT        1.00     SC        1.04     TS        1.41     
!   WF        1.06     WZ        1.04     GN        0.97     NL        1.00     
! 
! 
! Correcting IF 3.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.99     HH        1.23     
!   HN        1.07     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NY        1.01     ON        1.02     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.01     
!   WF        1.08     WZ        1.02     GN        1.00*    NL        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.00     GC        1.01     HH        1.00*    
!   HN        1.00     KK        1.01     KP        0.98     LA        0.99     
!   MC        1.00*    MK        0.99     NY        0.98     ON        1.03     
!   OV        0.98     PT        0.96     SC        1.03     TS        1.12     
!   WF        1.01     WZ        0.97     GN        0.99     NL        0.95     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00     GC        1.00     HH        1.00*    
!   HN        0.99     KK        0.93     KP        0.98     LA        1.00     
!   MC        1.00*    MK        0.93     NY        0.95     ON        1.06     
!   OV        0.97     PT        0.94     SC        1.07     TS        0.99     
!   WF        1.00     WZ        1.00*    GN        1.01     NL        0.95     
! 
!  A total of 45 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00     GC        1.02     HH        1.19     
!   HN        1.03     KK        1.01     KP        0.98     LA        0.99     
!   MC        1.00*    MK        1.01     NY        1.06     ON        1.04     
!   OV        0.98     PT        0.96     SC        1.06     TS        1.50     
!   WF        1.04     WZ        1.04     GN        0.96     NL        0.96     
! 
! 
! Correcting IF 4.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.97     HH        1.18     
!   HN        1.09     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.96     MK        1.00*    NY        1.00     ON        1.03     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.03     
!   WF        1.08     WZ        1.00     GN        1.00*    NL        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.98     GC        1.00     HH        1.00*    
!   HN        1.03     KK        1.00     KP        0.98     LA        0.98     
!   MC        0.91     MK        1.02     NY        0.97     ON        1.01     
!   OV        0.94     PT        1.00     SC        1.03     TS        1.15     
!   WF        1.01     WZ        0.96     GN        0.99     NL        0.94     
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.99     GC        0.99     HH        1.00*    
!   HN        0.97     KK        0.93     KP        0.99     LA        0.99     
!   MC        1.00*    MK        0.96     NY        0.94     ON        1.04     
!   OV        0.93     PT        0.92     SC        1.07     TS        1.01     
!   WF        1.01     WZ        1.00*    GN        1.00     NL        0.94     
! 
!  A total of 45 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.98     GC        1.00     HH        1.18     
!   HN        1.07     KK        0.99     KP        0.98     LA        0.99     
!   MC        1.10     MK        1.03     NY        1.05     ON        1.04     
!   OV        0.94     PT        0.98     SC        1.03     TS        1.50     
!   WF        1.03     WZ        1.02     GN        0.95     NL        0.95     
! 
! 
! Fit before self-cal, rms=0.348294Jy  sigma=0.002524
! Fit after  self-cal, rms=0.301707Jy  sigma=0.001996
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.694 mas, bmaj=3.589 mas, bpa=-11.11 degrees
! Estimated noise=229.339 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.0234176 Jy
! Component: 100  -  total flux cleaned = -0.0244518 Jy
! Component: 150  -  total flux cleaned = -0.0248575 Jy
! Component: 200  -  total flux cleaned = -0.025501 Jy
! Total flux subtracted in 200 components = -0.025501 Jy
! Clean residual min=-0.013311 max=0.011263 Jy/beam
! Clean residual mean=-0.000332 rms=0.003107 Jy/beam
! Combined flux in latest and established models = 3.26071 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 33 components and 3.26071 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299149Jy  sigma=0.001980
! Fit after  self-cal, rms=0.299211Jy  sigma=0.001980
! 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.299211Jy  sigma=0.001980
! Fit after  self-cal, rms=0.260730Jy  sigma=0.001646
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.694 mas, bmaj=3.596 mas, bpa=-10.66 degrees
! Estimated noise=229.303 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00333624 Jy
! Component: 100  -  total flux cleaned = -0.00380964 Jy
! Component: 150  -  total flux cleaned = -0.00400875 Jy
! Component: 200  -  total flux cleaned = -0.00418338 Jy
! Total flux subtracted in 200 components = -0.00418338 Jy
! Clean residual min=-0.010079 max=0.004180 Jy/beam
! Clean residual mean=-0.000001 rms=0.001014 Jy/beam
! Combined flux in latest and established models = 3.25652 Jy
selfcal
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 34 components and 3.25652 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260351Jy  sigma=0.001642
! Fit after  self-cal, rms=0.260329Jy  sigma=0.001642
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.00029708 Jy
! Component: 100  -  total flux cleaned = -0.000563522 Jy
! Component: 150  -  total flux cleaned = -0.000810963 Jy
! Component: 200  -  total flux cleaned = -0.00103417 Jy
! Total flux subtracted in 200 components = -0.00103417 Jy
! Clean residual min=-0.009231 max=0.004174 Jy/beam
! Clean residual mean=0.000004 rms=0.001004 Jy/beam
! Combined flux in latest and established models = 3.25549 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 35 components and 3.25549 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260208Jy  sigma=0.001641
! Fit after  self-cal, rms=0.260207Jy  sigma=0.001641
! 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.260207Jy  sigma=0.001641
! Fit after  self-cal, rms=0.335356Jy  sigma=0.001617
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.693 mas, bmaj=3.602 mas, bpa=-10.71 degrees
! Estimated noise=229.387 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00179288 Jy
! Component: 100  -  total flux cleaned = -0.00212083 Jy
! Component: 150  -  total flux cleaned = -0.00240374 Jy
! Component: 200  -  total flux cleaned = -0.00266452 Jy
! Total flux subtracted in 200 components = -0.00266452 Jy
! Clean residual min=-0.009472 max=0.003183 Jy/beam
! Clean residual mean=-0.000001 rms=0.000847 Jy/beam
! Combined flux in latest and established models = 3.25283 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 36 components and 3.25283 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335196Jy  sigma=0.001615
! Fit after  self-cal, rms=0.335176Jy  sigma=0.001615
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.00027275 Jy
! Component: 100  -  total flux cleaned = -0.000489086 Jy
! Component: 150  -  total flux cleaned = -0.000693157 Jy
! Component: 200  -  total flux cleaned = -0.000783658 Jy
! Total flux subtracted in 200 components = -0.000783658 Jy
! Clean residual min=-0.008917 max=0.003256 Jy/beam
! Clean residual mean=0.000002 rms=0.000838 Jy/beam
! Combined flux in latest and established models = 3.25204 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 38 components and 3.25204 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335104Jy  sigma=0.001614
! Fit after  self-cal, rms=0.335113Jy  sigma=0.001614
! 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.335113Jy  sigma=0.001614
! Fit after  self-cal, rms=0.335809Jy  sigma=0.001614
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.639 mas, bmaj=8.498 mas, bpa=-4.797 degrees
! Estimated noise=309.986 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00418702 Jy
! Component: 100  -  total flux cleaned = -0.0053502 Jy
! Component: 150  -  total flux cleaned = -0.00564853 Jy
! Component: 200  -  total flux cleaned = -0.00565795 Jy
! Total flux subtracted in 200 components = -0.00565795 Jy
! Clean residual min=-0.003186 max=0.003765 Jy/beam
! Clean residual mean=0.000053 rms=0.001140 Jy/beam
! Combined flux in latest and established models = 3.24638 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 42 components and 3.24638 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335834Jy  sigma=0.001613
! Fit after  self-cal, rms=0.335811Jy  sigma=0.001613
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 = 4.42446e-05 Jy
! Component: 100  -  total flux cleaned = 4.74168e-05 Jy
! Component: 150  -  total flux cleaned = 4.89491e-05 Jy
! Component: 200  -  total flux cleaned = 4.98121e-05 Jy
! Total flux subtracted in 200 components = 4.98121e-05 Jy
! Clean residual min=-0.003193 max=0.003758 Jy/beam
! Clean residual mean=0.000052 rms=0.001140 Jy/beam
! Combined flux in latest and established models = 3.24643 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 44 components and 3.24643 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335813Jy  sigma=0.001613
! Fit after  self-cal, rms=0.335810Jy  sigma=0.001613
! 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.693 mas, bmaj=3.607 mas, bpa=-10.74 degrees
! Estimated noise=229.484 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.693 x 3.607 at -10.74 degrees (North through East)
! Clean map  min=-0.0029977  max=2.8695 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.335810Jy  sigma=0.001613
! Fit after  self-cal, rms=0.333627Jy  sigma=0.001244
! Inverting map and beam 
! Estimated beam: bmin=2.695 mas, bmaj=3.607 mas, bpa=-10.77 degrees
! Estimated noise=229.182 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00281323 Jy
! Component: 100  -  total flux cleaned = -0.00307128 Jy
! Component: 150  -  total flux cleaned = -0.00329883 Jy
! Component: 200  -  total flux cleaned = -0.00361679 Jy
! Total flux subtracted in 200 components = -0.00361679 Jy
! Clean residual min=-0.008895 max=0.002316 Jy/beam
! Clean residual mean=-0.000043 rms=0.000638 Jy/beam
! Combined flux in latest and established models = 3.24282 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 45 components and 3.24282 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333508Jy  sigma=0.001243
! Fit after  self-cal, rms=0.333536Jy  sigma=0.001243
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000221864 Jy
! Component: 100  -  total flux cleaned = -0.000407299 Jy
! Component: 150  -  total flux cleaned = -0.000586665 Jy
! Component: 200  -  total flux cleaned = -0.00084454 Jy
! Total flux subtracted in 200 components = -0.00084454 Jy
! Clean residual min=-0.008516 max=0.002278 Jy/beam
! Clean residual mean=-0.000039 rms=0.000627 Jy/beam
! Combined flux in latest and established models = 3.24197 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 45 components and 3.24197 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333477Jy  sigma=0.001242
! Fit after  self-cal, rms=0.333487Jy  sigma=0.001242
! 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.333487Jy  sigma=0.001242
! Fit after  self-cal, rms=0.332687Jy  sigma=0.001242
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.995 mas, bmaj=2.691 mas, bpa=-8.215 degrees
! Estimated noise=701.658 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.09294 Jy
! Component: 100  -  total flux cleaned = 2.60777 Jy
! Component: 150  -  total flux cleaned = 2.84219 Jy
! Component: 200  -  total flux cleaned = 2.97478 Jy
! Total flux subtracted in 200 components = 2.97478 Jy
! Clean residual min=-0.012263 max=0.070352 Jy/beam
! Clean residual mean=0.000096 rms=0.003842 Jy/beam
! Combined flux in latest and established models = 2.97478 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 17 model components to the UV plane model.
! The established model now contains 17 components and 2.97478 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.695 mas, bmaj=3.611 mas, bpa=-10.81 degrees
! Estimated noise=229.144 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.130872 Jy
! Component: 100  -  total flux cleaned = 0.194764 Jy
! Component: 150  -  total flux cleaned = 0.228545 Jy
! Component: 200  -  total flux cleaned = 0.245088 Jy
! Total flux subtracted in 200 components = 0.245088 Jy
! Clean residual min=-0.009431 max=0.010395 Jy/beam
! Clean residual mean=0.000045 rms=0.000903 Jy/beam
! Combined flux in latest and established models = 3.21987 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 42 components and 3.21987 Jy
! Inverting map 
! Added new window around map position (-0.5, 2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00435763 Jy
! Component: 100  -  total flux cleaned = 0.0071103 Jy
! Component: 150  -  total flux cleaned = 0.00952448 Jy
! Component: 200  -  total flux cleaned = 0.0116515 Jy
! Total flux subtracted in 200 components = 0.0116515 Jy
! Clean residual min=-0.005353 max=0.005534 Jy/beam
! Clean residual mean=-0.000007 rms=0.000716 Jy/beam
! Combined flux in latest and established models = 3.23152 Jy
! Adding 13 model components to the UV plane model.
! The established model now contains 45 components and 3.23152 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000957885 Jy
! Component: 100  -  total flux cleaned = 0.00182188 Jy
! Component: 150  -  total flux cleaned = 0.00234156 Jy
! Component: 200  -  total flux cleaned = 0.00282447 Jy
! Total flux subtracted in 200 components = 0.00282447 Jy
! Clean residual min=-0.003900 max=0.003873 Jy/beam
! Clean residual mean=-0.000020 rms=0.000659 Jy/beam
! Combined flux in latest and established models = 3.23435 Jy
! Adding 12 model components to the UV plane model.
! The established model now contains 48 components and 3.23435 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.644 mas, bmaj=8.504 mas, bpa=-4.926 degrees
! Estimated noise=308.999 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 7.74528e-05 Jy
! Component: 100  -  total flux cleaned = -0.000102784 Jy
! Component: 150  -  total flux cleaned = -0.000293409 Jy
! Component: 200  -  total flux cleaned = -0.000459424 Jy
! Total flux subtracted in 200 components = -0.000459424 Jy
! Clean residual min=-0.002276 max=0.001782 Jy/beam
! Clean residual mean=-0.000059 rms=0.000581 Jy/beam
! Combined flux in latest and established models = 3.23389 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.00014428 Jy
! Component: 100  -  total flux cleaned = -0.000250953 Jy
! Component: 150  -  total flux cleaned = -0.000363416 Jy
! Component: 200  -  total flux cleaned = -0.000446506 Jy
! Total flux subtracted in 200 components = -0.000446506 Jy
! Clean residual min=-0.002310 max=0.001792 Jy/beam
! Clean residual mean=-0.000053 rms=0.000577 Jy/beam
! Combined flux in latest and established models = 3.23344 Jy
! Adding 15 model components to the UV plane model.
! The established model now contains 62 components and 3.23344 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.695 mas, bmaj=3.611 mas, bpa=-10.81 degrees
! Estimated noise=229.144 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000799058 Jy
! Component: 100  -  total flux cleaned = -0.000366012 Jy
! Component: 150  -  total flux cleaned = -0.00015915 Jy
! Component: 200  -  total flux cleaned = -0.000160107 Jy
! Total flux subtracted in 200 components = -0.000160107 Jy
! Clean residual min=-0.003264 max=0.003079 Jy/beam
! Clean residual mean=-0.000016 rms=0.000629 Jy/beam
! Combined flux in latest and established models = 3.23328 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 65 components and 3.23328 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333895Jy  sigma=0.001248
! Fit after  self-cal, rms=0.333505Jy  sigma=0.001248
wmodel J0555+3948_S_1999_12_20_pus_map.mod
! Writing 65 model components to file: J0555+3948_S_1999_12_20_pus_map.mod
wobs J0555+3948_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0555+3948_S_1999_12_20_pus_uvs.fits
wwins J0555+3948_S_1999_12_20_pus_map.win
! wwins: Wrote 2 windows to J0555+3948_S_1999_12_20_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 = -3.28056e-05 Jy
! Component: 100  -  total flux cleaned = -0.000154895 Jy
! Component: 150  -  total flux cleaned = -0.00033402 Jy
! Component: 200  -  total flux cleaned = -0.000451937 Jy
! Component: 250  -  total flux cleaned = -0.00062604 Jy
! Component: 300  -  total flux cleaned = -0.000682883 Jy
! Component: 350  -  total flux cleaned = -0.000738147 Jy
! Component: 400  -  total flux cleaned = -0.000793459 Jy
! Component: 450  -  total flux cleaned = -0.000848119 Jy
! Component: 500  -  total flux cleaned = -0.000902401 Jy
! Component: 550  -  total flux cleaned = -0.000848884 Jy
! Component: 600  -  total flux cleaned = -0.000848897 Jy
! Component: 650  -  total flux cleaned = -0.000848705 Jy
! Component: 700  -  total flux cleaned = -0.000796165 Jy
! Component: 750  -  total flux cleaned = -0.000744208 Jy
! Component: 800  -  total flux cleaned = -0.000694015 Jy
! Component: 850  -  total flux cleaned = -0.000694066 Jy
! Component: 900  -  total flux cleaned = -0.000694013 Jy
! Component: 950  -  total flux cleaned = -0.000693839 Jy
! Component: 1000  -  total flux cleaned = -0.00064426 Jy
! Component: 1050  -  total flux cleaned = -0.000546912 Jy
! Component: 1100  -  total flux cleaned = -0.000594843 Jy
! Component: 1150  -  total flux cleaned = -0.000546762 Jy
! Component: 1200  -  total flux cleaned = -0.000546294 Jy
! Component: 1250  -  total flux cleaned = -0.00054608 Jy
! Component: 1300  -  total flux cleaned = -0.000499696 Jy
! Component: 1350  -  total flux cleaned = -0.000545844 Jy
! Component: 1400  -  total flux cleaned = -0.000545687 Jy
! Component: 1450  -  total flux cleaned = -0.000545722 Jy
! Component: 1500  -  total flux cleaned = -0.000500307 Jy
! Component: 1550  -  total flux cleaned = -0.000500738 Jy
! Component: 1600  -  total flux cleaned = -0.000456312 Jy
! Component: 1650  -  total flux cleaned = -0.000456772 Jy
! Component: 1700  -  total flux cleaned = -0.000456465 Jy
! Component: 1750  -  total flux cleaned = -0.000412961 Jy
! Component: 1800  -  total flux cleaned = -0.000327072 Jy
! Component: 1850  -  total flux cleaned = -0.000370239 Jy
! Component: 1900  -  total flux cleaned = -0.000327562 Jy
! Component: 1950  -  total flux cleaned = -0.000285611 Jy
! Component: 2000  -  total flux cleaned = -0.000327508 Jy
! Total flux subtracted in 2048 components = -0.000285907 Jy
! Clean residual min=-0.002083 max=0.002094 Jy/beam
! Clean residual mean=-0.000014 rms=0.000579 Jy/beam
! Combined flux in latest and established models = 3.233 Jy
keep
! Adding 41 model components to the UV plane model.
! The established model now contains 93 components and 3.233 Jy
![Exited script file: muppet]
wmap "J0555+3948_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.695 x 3.611 at -10.81 degrees (North through East)
! Clean map  min=-0.0025021  max=2.8693 Jy/beam
! Writing clean map to FITS file: J0555+3948_S_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.86932 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000578971 
device "J0555+3948_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0555+3948_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0605339 0.0605339 0.121068 0.242135 0.484271 0.968542 1.93708 3.87417 7.74833 15.4967 30.9933 61.9867
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.869 
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.695 x 3.611 at -10.81 degrees (North through East)
! Clean map  min=-0.0025021  max=2.8693 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0555+3948_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0555+3948_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0555+3948_S_1999_12_20_pus_uvs.log closed on Fri Dec 21 12:56:48 2007