! Started logfile: J0555+3948_S_2001_10_29_pus_uvs.log on Thu Feb 28 12:48:33 2008
obs J0555+3948_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0555+3948_S_2001_10_29_pus_uva.fits
! AN table 1: 216 integrations on 153 of 153 possible baselines.
! AN table 2: 393 integrations on 153 of 153 possible baselines.
! AN table 3: 67 integrations on 153 of 153 possible baselines.
! AN table 4: 32 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.12866 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.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 55748 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_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 2879 telescope corrections were flagged in sub-array 1.
!  A total of 4534 telescope corrections were flagged in sub-array 2.
!  A total of 824 telescope corrections were flagged in sub-array 3.
!  A total of 281 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2879 telescope corrections were flagged in sub-array 1.
!  A total of 4534 telescope corrections were flagged in sub-array 2.
!  A total of 824 telescope corrections were flagged in sub-array 3.
!  A total of 281 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2879 telescope corrections were flagged in sub-array 1.
!  A total of 4534 telescope corrections were flagged in sub-array 2.
!  A total of 824 telescope corrections were flagged in sub-array 3.
!  A total of 281 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 3261 telescope corrections were flagged in sub-array 1.
!  A total of 4566 telescope corrections were flagged in sub-array 2.
!  A total of 891 telescope corrections were flagged in sub-array 3.
!  A total of 334 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.324522Jy  sigma=0.019457
! Fit after  self-cal, rms=1.920561Jy  sigma=0.016332
! 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.868 mas, bmaj=2.955 mas, bpa=-5.561 degrees
! Estimated noise=883.505 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.01497 Jy
! Component: 100  -  total flux cleaned = 2.55415 Jy
! Total flux subtracted in 100 components = 2.55415 Jy
! Clean residual min=-0.046765 max=0.232588 Jy/beam
! Clean residual mean=0.000225 rms=0.015914 Jy/beam
! Combined flux in latest and established models = 2.55414 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 2.55414 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.570957Jy  sigma=0.004820
! Fit after  self-cal, rms=0.570960Jy  sigma=0.004820
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.256575 Jy
! Component: 100  -  total flux cleaned = 0.403019 Jy
! Total flux subtracted in 100 components = 0.403019 Jy
! Clean residual min=-0.054177 max=0.074970 Jy/beam
! Clean residual mean=0.000038 rms=0.009393 Jy/beam
! Combined flux in latest and established models = 2.95716 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 17 components and 2.95716 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.373857Jy  sigma=0.002884
! Fit after  self-cal, rms=0.373869Jy  sigma=0.002884
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0890453 Jy
! Component: 100  -  total flux cleaned = 0.145633 Jy
! Total flux subtracted in 100 components = 0.145633 Jy
! Clean residual min=-0.057683 max=0.035738 Jy/beam
! Clean residual mean=-0.000026 rms=0.008151 Jy/beam
! Combined flux in latest and established models = 3.1028 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 23 components and 3.1028 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349275Jy  sigma=0.002556
! Fit after  self-cal, rms=0.349256Jy  sigma=0.002555
! 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.774 mas, bmaj=4.29 mas, bpa=-21.56 degrees
! Estimated noise=391.09 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.0402442 Jy
! Component: 100  -  total flux cleaned = 0.0404602 Jy
! Component: 150  -  total flux cleaned = 0.0398993 Jy
! Component: 200  -  total flux cleaned = 0.0394384 Jy
! Total flux subtracted in 200 components = 0.0394384 Jy
! Clean residual min=-0.028887 max=0.039640 Jy/beam
! Clean residual mean=-0.000077 rms=0.008141 Jy/beam
! Combined flux in latest and established models = 3.14224 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 27 components and 3.14224 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.346653Jy  sigma=0.002493
! Fit after  self-cal, rms=0.346648Jy  sigma=0.002493
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 216 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.00*    GG        1.00*    HH        1.12     
!   HN        0.81     KK        1.05     KP        1.24     LA        1.03     
!   MA        1.05     MC        1.15     MK        1.01     NL        0.99     
!   OV        1.01     PT        1.03     SC        0.92     TS        1.10     
!   WF        0.97     WZ        1.09     
! 
!  A total of 105 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        1.02     KP        1.06     LA        1.00     
!   MA        0.86     MC        0.98     MK        0.98     NL        1.01     
!   OV        0.99     PT        1.02     SC        1.05     TS        1.00     
!   WF        1.03     WZ        0.99     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.08     
!   HN        1.01     KK        1.00*    KP        1.12     LA        1.04     
!   MA        1.09     MC        1.10     MK        1.00*    NL        0.98     
!   OV        1.00*    PT        1.06     SC        1.02     TS        1.00*    
!   WF        1.08     WZ        0.96     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        1.00*    KP        1.03     LA        1.01     
!   MA        1.05     MC        0.98     MK        1.00*    NL        0.98     
!   OV        1.02     PT        1.03     SC        0.99     TS        1.00*    
!   WF        0.97     WZ        1.03     
! 
! 
! Correcting IF 2.
!  A total of 216 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.18     
!   HN        0.95     KK        1.05     KP        1.07     LA        0.99     
!   MA        0.85     MC        1.04     MK        1.03     NL        0.99     
!   OV        1.03     PT        1.01     SC        0.92     TS        1.14     
!   WF        1.02     WZ        1.07     
! 
!  A total of 105 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.03     KP        0.99     LA        0.96     
!   MA        0.90     MC        1.12     MK        1.01     NL        1.02     
!   OV        1.00     PT        1.01     SC        1.06     TS        1.02     
!   WF        1.02     WZ        1.03     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        1.00*    GG        1.00*    HH        1.07     
!   HN        1.00     KK        1.00*    KP        0.98     LA        1.01     
!   MA        1.01     MC        1.45     MK        1.00*    NL        0.99     
!   OV        1.00*    PT        1.04     SC        1.02     TS        1.00*    
!   WF        1.02     WZ        0.95     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.97     KK        1.00*    KP        1.14     LA        0.99     
!   MA        1.53     MC        0.95     MK        1.00*    NL        0.99     
!   OV        1.04     PT        1.00     SC        0.98     TS        1.00*    
!   WF        1.03     WZ        1.06     
! 
! 
! Correcting IF 3.
!  A total of 216 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.09     
!   HN        0.88     KK        1.03     KP        1.04     LA        0.96     
!   MA        1.10     MC        1.38     MK        0.97     NL        0.99     
!   OV        0.99     PT        1.00     SC        0.92     TS        1.10     
!   WF        0.94     WZ        1.05     
! 
!  A total of 105 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.00*    
!   HN        0.99     KK        0.98     KP        0.99     LA        0.95     
!   MA        1.19     MC        0.95     MK        0.93     NL        1.00     
!   OV        0.98     PT        0.99     SC        1.04     TS        1.02     
!   WF        1.01     WZ        1.00     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.09     
!   HN        0.99     KK        1.00*    KP        1.07     LA        0.98     
!   MA        1.12     MC        1.04     MK        1.00*    NL        0.96     
!   OV        1.00*    PT        1.03     SC        1.03     TS        1.00*    
!   WF        0.90     WZ        0.94     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.91     KK        1.00*    KP        0.94     LA        0.93     
!   MA        0.96     MC        0.98     MK        1.00*    NL        0.94     
!   OV        0.99     PT        0.99     SC        0.98     TS        1.00*    
!   WF        1.04     WZ        1.00     
! 
! 
! Correcting IF 4.
!  A total of 108 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.09     
!   HN        0.90     KK        0.97     KP        1.06     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.01     
!   OV        0.99     PT        1.02     SC        0.91     TS        1.10     
!   WF        1.00     WZ        1.06     
! 
!  A total of 102 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        0.96     KP        1.02     LA        0.97     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.05     
!   OV        0.97     PT        1.00     SC        1.04     TS        1.03     
!   WF        1.00     WZ        1.02     
! 
!  A total of 72 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.03     
!   HN        0.99     KK        1.00*    KP        1.10     LA        1.01     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        0.99     
!   OV        1.00*    PT        1.03     SC        1.01     TS        1.00*    
!   WF        1.01     WZ        0.92     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.95     KK        1.00*    KP        1.01     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        0.99     
!   OV        1.00     PT        0.98     SC        0.97     TS        1.00*    
!   WF        0.99     WZ        1.01     
! 
! 
! Fit before self-cal, rms=0.346648Jy  sigma=0.002493
! Fit after  self-cal, rms=0.289247Jy  sigma=0.002000
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.789 mas, bmaj=4.394 mas, bpa=-21.61 degrees
! Estimated noise=394.186 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.00569946 Jy
! Component: 100  -  total flux cleaned = -0.00542023 Jy
! Component: 150  -  total flux cleaned = -0.00517036 Jy
! Component: 200  -  total flux cleaned = -0.00476515 Jy
! Total flux subtracted in 200 components = -0.00476515 Jy
! Clean residual min=-0.020234 max=0.021611 Jy/beam
! Clean residual mean=-0.000591 rms=0.006035 Jy/beam
! Combined flux in latest and established models = 3.13747 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 30 components and 3.13747 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288796Jy  sigma=0.001996
! Fit after  self-cal, rms=0.289002Jy  sigma=0.001996
! 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.289002Jy  sigma=0.001996
! Fit after  self-cal, rms=0.243536Jy  sigma=0.001569
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.791 mas, bmaj=4.408 mas, bpa=-21.75 degrees
! Estimated noise=394.583 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000118805 Jy
! Component: 100  -  total flux cleaned = 0.000265125 Jy
! Component: 150  -  total flux cleaned = 0.000143015 Jy
! Component: 200  -  total flux cleaned = 3.21297e-05 Jy
! Total flux subtracted in 200 components = 3.21297e-05 Jy
! Clean residual min=-0.010783 max=0.009652 Jy/beam
! Clean residual mean=-0.000447 rms=0.002610 Jy/beam
! Combined flux in latest and established models = 3.1375 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 37 components and 3.1375 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243339Jy  sigma=0.001568
! Fit after  self-cal, rms=0.243362Jy  sigma=0.001568
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.000163363 Jy
! Component: 100  -  total flux cleaned = -0.000384376 Jy
! Component: 150  -  total flux cleaned = -0.000583821 Jy
! Component: 200  -  total flux cleaned = -0.000681508 Jy
! Total flux subtracted in 200 components = -0.000681508 Jy
! Clean residual min=-0.010787 max=0.009730 Jy/beam
! Clean residual mean=-0.000436 rms=0.002607 Jy/beam
! Combined flux in latest and established models = 3.13682 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 39 components and 3.13682 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243240Jy  sigma=0.001567
! Fit after  self-cal, rms=0.243233Jy  sigma=0.001567
! 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.243233Jy  sigma=0.001567
! Fit after  self-cal, rms=0.239115Jy  sigma=0.001522
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.789 mas, bmaj=4.411 mas, bpa=-21.8 degrees
! Estimated noise=394.674 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00172437 Jy
! Component: 100  -  total flux cleaned = 0.00184821 Jy
! Component: 150  -  total flux cleaned = 0.00196078 Jy
! Component: 200  -  total flux cleaned = 0.00195966 Jy
! Total flux subtracted in 200 components = 0.00195966 Jy
! Clean residual min=-0.005097 max=0.005173 Jy/beam
! Clean residual mean=-0.000560 rms=0.001097 Jy/beam
! Combined flux in latest and established models = 3.13878 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 40 components and 3.13878 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238951Jy  sigma=0.001521
! Fit after  self-cal, rms=0.238962Jy  sigma=0.001521
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.00011939 Jy
! Component: 100  -  total flux cleaned = -0.000212367 Jy
! Component: 150  -  total flux cleaned = -0.000384878 Jy
! Component: 200  -  total flux cleaned = -0.000546039 Jy
! Total flux subtracted in 200 components = -0.000546039 Jy
! Clean residual min=-0.005211 max=0.005138 Jy/beam
! Clean residual mean=-0.000550 rms=0.001094 Jy/beam
! Combined flux in latest and established models = 3.13823 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 40 components and 3.13823 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238878Jy  sigma=0.001521
! Fit after  self-cal, rms=0.238873Jy  sigma=0.001521
! 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.238873Jy  sigma=0.001521
! Fit after  self-cal, rms=0.238839Jy  sigma=0.001520
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.526 mas, bmaj=9.864 mas, bpa=-52.72 degrees
! Estimated noise=512.869 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00113887 Jy
! Component: 100  -  total flux cleaned = -0.00120553 Jy
! Component: 150  -  total flux cleaned = -0.0012691 Jy
! Component: 200  -  total flux cleaned = -0.00131093 Jy
! Total flux subtracted in 200 components = -0.00131093 Jy
! Clean residual min=-0.004796 max=0.003146 Jy/beam
! Clean residual mean=-0.001248 rms=0.001126 Jy/beam
! Combined flux in latest and established models = 3.13692 Jy
selfcal
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 43 components and 3.13692 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238835Jy  sigma=0.001520
! Fit after  self-cal, rms=0.238835Jy  sigma=0.001520
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.000124697 Jy
! Component: 100  -  total flux cleaned = -0.000125043 Jy
! Component: 150  -  total flux cleaned = -0.000144095 Jy
! Component: 200  -  total flux cleaned = -0.000199271 Jy
! Total flux subtracted in 200 components = -0.000199271 Jy
! Clean residual min=-0.004772 max=0.003126 Jy/beam
! Clean residual mean=-0.001240 rms=0.001126 Jy/beam
! Combined flux in latest and established models = 3.13672 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 45 components and 3.13672 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238833Jy  sigma=0.001520
! Fit after  self-cal, rms=0.238832Jy  sigma=0.001520
! 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.788 mas, bmaj=4.414 mas, bpa=-21.84 degrees
! Estimated noise=394.802 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.788 x 4.414 at -21.84 degrees (North through East)
! Clean map  min=-0.0047754  max=2.8586 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.238832Jy  sigma=0.001520
! Fit after  self-cal, rms=0.224074Jy  sigma=0.001163
! Inverting map and beam 
! Estimated beam: bmin=2.788 mas, bmaj=4.415 mas, bpa=-21.8 degrees
! Estimated noise=394.665 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000841314 Jy
! Component: 100  -  total flux cleaned = 0.000735768 Jy
! Component: 150  -  total flux cleaned = 0.000536991 Jy
! Component: 200  -  total flux cleaned = 0.000351459 Jy
! Total flux subtracted in 200 components = 0.000351459 Jy
! Clean residual min=-0.003527 max=0.003066 Jy/beam
! Clean residual mean=-0.000121 rms=0.000710 Jy/beam
! Combined flux in latest and established models = 3.13708 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 45 components and 3.13708 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223943Jy  sigma=0.001162
! Fit after  self-cal, rms=0.223934Jy  sigma=0.001162
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -8.89716e-05 Jy
! Component: 100  -  total flux cleaned = -0.000255644 Jy
! Component: 150  -  total flux cleaned = -0.000412198 Jy
! Component: 200  -  total flux cleaned = -0.000557901 Jy
! Total flux subtracted in 200 components = -0.000557901 Jy
! Clean residual min=-0.003573 max=0.002996 Jy/beam
! Clean residual mean=-0.000112 rms=0.000702 Jy/beam
! Combined flux in latest and established models = 3.13652 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 45 components and 3.13652 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223857Jy  sigma=0.001161
! Fit after  self-cal, rms=0.223851Jy  sigma=0.001161
! 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.223851Jy  sigma=0.001161
! Fit after  self-cal, rms=0.224084Jy  sigma=0.001161
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.886 mas, bmaj=3.012 mas, bpa=-5.386 degrees
! Estimated noise=909.653 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.05024 Jy
! Component: 100  -  total flux cleaned = 2.58222 Jy
! Component: 150  -  total flux cleaned = 2.82569 Jy
! Component: 200  -  total flux cleaned = 2.95468 Jy
! Total flux subtracted in 200 components = 2.95468 Jy
! Clean residual min=-0.015814 max=0.065653 Jy/beam
! Clean residual mean=0.000062 rms=0.004676 Jy/beam
! Combined flux in latest and established models = 2.95468 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 13 model components to the UV plane model.
! The established model now contains 13 components and 2.95468 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.786 mas, bmaj=4.417 mas, bpa=-21.79 degrees
! Estimated noise=394.694 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.108906 Jy
! Component: 100  -  total flux cleaned = 0.153276 Jy
! Component: 150  -  total flux cleaned = 0.172837 Jy
! Component: 200  -  total flux cleaned = 0.180388 Jy
! Total flux subtracted in 200 components = 0.180388 Jy
! Clean residual min=-0.005612 max=0.007469 Jy/beam
! Clean residual mean=-0.000054 rms=0.000971 Jy/beam
! Combined flux in latest and established models = 3.13507 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 22 components and 3.13507 Jy
! Inverting map 
! Added new window around map position (-1, 3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00123217 Jy
! Component: 100  -  total flux cleaned = 0.00123942 Jy
! Component: 150  -  total flux cleaned = 0.00174637 Jy
! Component: 200  -  total flux cleaned = 0.00174591 Jy
! Total flux subtracted in 200 components = 0.00174591 Jy
! Clean residual min=-0.004467 max=0.005525 Jy/beam
! Clean residual mean=-0.000085 rms=0.000874 Jy/beam
! Combined flux in latest and established models = 3.13682 Jy
! Adding 14 model components to the UV plane model.
! The established model now contains 28 components and 3.13682 Jy
! Inverting map 
! Added new window around map position (1, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000421899 Jy
! Component: 100  -  total flux cleaned = 0.00020711 Jy
! Component: 150  -  total flux cleaned = 7.31668e-06 Jy
! Component: 200  -  total flux cleaned = -0.000175868 Jy
! Total flux subtracted in 200 components = -0.000175868 Jy
! Clean residual min=-0.003405 max=0.004473 Jy/beam
! Clean residual mean=-0.000082 rms=0.000816 Jy/beam
! Combined flux in latest and established models = 3.13664 Jy
! Adding 17 model components to the UV plane model.
! The established model now contains 36 components and 3.13664 Jy
! Inverting map 
! Added new window around map position (6, 8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00118178 Jy
! Component: 100  -  total flux cleaned = 0.0010156 Jy
! Component: 150  -  total flux cleaned = 0.000851661 Jy
! Component: 200  -  total flux cleaned = 0.000696522 Jy
! Total flux subtracted in 200 components = 0.000696522 Jy
! Clean residual min=-0.003475 max=0.003372 Jy/beam
! Clean residual mean=-0.000094 rms=0.000774 Jy/beam
! Combined flux in latest and established models = 3.13734 Jy
! Adding 17 model components to the UV plane model.
! The established model now contains 39 components and 3.13734 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.524 mas, bmaj=9.861 mas, bpa=-52.61 degrees
! Estimated noise=512.926 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000194572 Jy
! Component: 100  -  total flux cleaned = -0.000304452 Jy
! Component: 150  -  total flux cleaned = -0.000301961 Jy
! Component: 200  -  total flux cleaned = -0.000275539 Jy
! Total flux subtracted in 200 components = -0.000275539 Jy
! Clean residual min=-0.002378 max=0.002162 Jy/beam
! Clean residual mean=-0.000215 rms=0.000761 Jy/beam
! Combined flux in latest and established models = 3.13706 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 = -2.28447e-05 Jy
! Component: 100  -  total flux cleaned = -2.99423e-06 Jy
! Component: 150  -  total flux cleaned = 1.46727e-05 Jy
! Component: 200  -  total flux cleaned = 1.47071e-05 Jy
! Total flux subtracted in 200 components = 1.47071e-05 Jy
! Clean residual min=-0.002375 max=0.002148 Jy/beam
! Clean residual mean=-0.000216 rms=0.000760 Jy/beam
! Combined flux in latest and established models = 3.13708 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 63 components and 3.13708 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.786 mas, bmaj=4.417 mas, bpa=-21.79 degrees
! Estimated noise=394.694 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000341422 Jy
! Component: 100  -  total flux cleaned = -0.000643441 Jy
! Component: 150  -  total flux cleaned = -0.00064788 Jy
! Component: 200  -  total flux cleaned = -0.000645712 Jy
! Total flux subtracted in 200 components = -0.000645712 Jy
! Clean residual min=-0.002914 max=0.003417 Jy/beam
! Clean residual mean=-0.000078 rms=0.000744 Jy/beam
! Combined flux in latest and established models = 3.13643 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 72 components and 3.13643 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224963Jy  sigma=0.001165
! Fit after  self-cal, rms=0.224796Jy  sigma=0.001164
wmodel J0555+3948_S_2001_10_29_pus_map.mod
! Writing 72 model components to file: J0555+3948_S_2001_10_29_pus_map.mod
wobs J0555+3948_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0555+3948_S_2001_10_29_pus_uvs.fits
wwins J0555+3948_S_2001_10_29_pus_map.win
! wwins: Wrote 4 windows to J0555+3948_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 = 9.59478e-05 Jy
! Component: 100  -  total flux cleaned = -0.000169378 Jy
! Component: 150  -  total flux cleaned = -0.00027053 Jy
! Component: 200  -  total flux cleaned = -0.000416875 Jy
! Component: 250  -  total flux cleaned = -0.000416915 Jy
! Component: 300  -  total flux cleaned = -0.00046423 Jy
! Component: 350  -  total flux cleaned = -0.000557682 Jy
! Component: 400  -  total flux cleaned = -0.000649903 Jy
! Component: 450  -  total flux cleaned = -0.000649419 Jy
! Component: 500  -  total flux cleaned = -0.000649385 Jy
! Component: 550  -  total flux cleaned = -0.000649401 Jy
! Component: 600  -  total flux cleaned = -0.00069389 Jy
! Component: 650  -  total flux cleaned = -0.000738287 Jy
! Component: 700  -  total flux cleaned = -0.000825064 Jy
! Component: 750  -  total flux cleaned = -0.000824883 Jy
! Component: 800  -  total flux cleaned = -0.000909994 Jy
! Component: 850  -  total flux cleaned = -0.000952281 Jy
! Component: 900  -  total flux cleaned = -0.000994347 Jy
! Component: 950  -  total flux cleaned = -0.00107764 Jy
! Component: 1000  -  total flux cleaned = -0.00120092 Jy
! Component: 1050  -  total flux cleaned = -0.00128204 Jy
! Component: 1100  -  total flux cleaned = -0.00128164 Jy
! Component: 1150  -  total flux cleaned = -0.00140213 Jy
! Component: 1200  -  total flux cleaned = -0.00152196 Jy
! Component: 1250  -  total flux cleaned = -0.00156138 Jy
! Component: 1300  -  total flux cleaned = -0.00160052 Jy
! Component: 1350  -  total flux cleaned = -0.0016006 Jy
! Component: 1400  -  total flux cleaned = -0.00171717 Jy
! Component: 1450  -  total flux cleaned = -0.00175549 Jy
! Component: 1500  -  total flux cleaned = -0.00179359 Jy
! Component: 1550  -  total flux cleaned = -0.0018318 Jy
! Component: 1600  -  total flux cleaned = -0.00190714 Jy
! Component: 1650  -  total flux cleaned = -0.00190699 Jy
! Component: 1700  -  total flux cleaned = -0.0019065 Jy
! Component: 1750  -  total flux cleaned = -0.00201822 Jy
! Component: 1800  -  total flux cleaned = -0.00201821 Jy
! Component: 1850  -  total flux cleaned = -0.00201793 Jy
! Component: 1900  -  total flux cleaned = -0.00209107 Jy
! Component: 1950  -  total flux cleaned = -0.00212712 Jy
! Component: 2000  -  total flux cleaned = -0.00212663 Jy
! Total flux subtracted in 2048 components = -0.00216272 Jy
! Clean residual min=-0.001804 max=0.001803 Jy/beam
! Clean residual mean=-0.000037 rms=0.000612 Jy/beam
! Combined flux in latest and established models = 3.13427 Jy
keep
! Adding 113 model components to the UV plane model.
! The established model now contains 168 components and 3.13427 Jy
![Exited script file: muppet]
wmap "J0555+3948_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.786 x 4.417 at -21.79 degrees (North through East)
! Clean map  min=-0.0025199  max=2.8603 Jy/beam
! Writing clean map to FITS file: J0555+3948_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 2.86028 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000611756 
device "J0555+3948_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0555+3948_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0641639 0.0641639 0.128328 0.256656 0.513311 1.02662 2.05325 4.10649 8.21298 16.426 32.8519 65.7039
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.86 
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.786 x 4.417 at -21.79 degrees (North through East)
! Clean map  min=-0.0025199  max=2.8603 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0555+3948_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0555+3948_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0555+3948_S_2001_10_29_pus_uvs.log closed on Thu Feb 28 12:48:56 2008