! Started logfile: J0555+3948_S_1999_05_10_pus_uvs.log on Tue Jan 22 14:28:51 2008
obs J0555+3948_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0555+3948_S_1999_05_10_pus_uva.fits
! AN table 1: 34 integrations on 153 of 153 possible baselines.
! AN table 2: 421 integrations on 153 of 153 possible baselines.
! AN table 3: 33 integrations on 153 of 153 possible baselines.
! AN table 4: 116 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.253798 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 2002 lines of history.
! 
! Reading 93816 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_05_10_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 454 telescope corrections were flagged in sub-array 1.
!  A total of 4066 telescope corrections were flagged in sub-array 2.
!  A total of 504 telescope corrections were flagged in sub-array 3.
!  A total of 910 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 454 telescope corrections were flagged in sub-array 1.
!  A total of 4059 telescope corrections were flagged in sub-array 2.
!  A total of 504 telescope corrections were flagged in sub-array 3.
!  A total of 910 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 462 telescope corrections were flagged in sub-array 1.
!  A total of 4059 telescope corrections were flagged in sub-array 2.
!  A total of 505 telescope corrections were flagged in sub-array 3.
!  A total of 910 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 503 telescope corrections were flagged in sub-array 1.
!  A total of 4161 telescope corrections were flagged in sub-array 2.
!  A total of 558 telescope corrections were flagged in sub-array 3.
!  A total of 912 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.232668Jy  sigma=0.017772
! Fit after  self-cal, rms=1.809030Jy  sigma=0.015466
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.18 mas, bmaj=2.679 mas, bpa=-26.53 degrees
! Estimated noise=775.299 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.04112 Jy
! Component: 100  -  total flux cleaned = 2.52612 Jy
! Total flux subtracted in 100 components = 2.52612 Jy
! Clean residual min=-0.047255 max=0.197686 Jy/beam
! Clean residual mean=0.000044 rms=0.011487 Jy/beam
! Combined flux in latest and established models = 2.52612 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 2.52612 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.486309Jy  sigma=0.004196
! Fit after  self-cal, rms=0.486303Jy  sigma=0.004196
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.229464 Jy
! Component: 100  -  total flux cleaned = 0.373056 Jy
! Total flux subtracted in 100 components = 0.373056 Jy
! Clean residual min=-0.036934 max=0.075769 Jy/beam
! Clean residual mean=-0.000052 rms=0.007095 Jy/beam
! Combined flux in latest and established models = 2.89918 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 17 components and 2.89918 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.330560Jy  sigma=0.002578
! Fit after  self-cal, rms=0.330506Jy  sigma=0.002578
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0910902 Jy
! Component: 100  -  total flux cleaned = 0.149724 Jy
! Total flux subtracted in 100 components = 0.149724 Jy
! Clean residual min=-0.033023 max=0.031903 Jy/beam
! Clean residual mean=-0.000091 rms=0.006079 Jy/beam
! Combined flux in latest and established models = 3.0489 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 22 components and 3.0489 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308864Jy  sigma=0.002273
! Fit after  self-cal, rms=0.308845Jy  sigma=0.002273
! 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.853 mas, bmaj=3.949 mas, bpa=-30.98 degrees
! Estimated noise=301.425 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 (-1, 2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0415851 Jy
! Component: 100  -  total flux cleaned = 0.0490603 Jy
! Component: 150  -  total flux cleaned = 0.0512329 Jy
! Component: 200  -  total flux cleaned = 0.0518587 Jy
! Total flux subtracted in 200 components = 0.0518587 Jy
! Clean residual min=-0.021087 max=0.016966 Jy/beam
! Clean residual mean=-0.001771 rms=0.004446 Jy/beam
! Combined flux in latest and established models = 3.10076 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 40 components and 3.10076 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303539Jy  sigma=0.002205
! Fit after  self-cal, rms=0.303507Jy  sigma=0.002205
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.10     HH        1.32     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.97     MK        1.00*    NL        1.00*    NY        0.95     
!   ON        1.02     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        0.97     
! 
!  A total of 156 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.04     HH        1.34     
!   HN        1.02     KK        1.00     KP        1.03     LA        1.01     
!   MC        1.13     MK        0.96     NL        1.00     NY        0.95     
!   ON        1.08     OV        1.03     PT        1.02     SC        1.07     
!   WF        1.04     WZ        1.12     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.12     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.09     MK        1.00*    NL        1.00*    NY        0.98     
!   ON        0.98     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        0.97     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.02     GC        1.05     HH        1.00*    
!   HN        1.03     KK        1.00*    KP        1.03     LA        1.03     
!   MC        1.03     MK        1.00*    NL        1.00     NY        0.96     
!   ON        1.00     OV        1.05     PT        1.05     SC        1.02     
!   WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.07     HH        1.18     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.01     MK        1.00*    NL        1.00*    NY        0.93     
!   ON        1.06     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        0.97     
! 
!  A total of 156 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.03     GC        1.02     HH        1.37     
!   HN        1.01     KK        0.99     KP        1.03     LA        0.98     
!   MC        1.09     MK        1.02     NL        1.00     NY        0.94     
!   ON        1.10     OV        0.99     PT        1.00     SC        1.07     
!   WF        1.04     WZ        1.12     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.03     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.14     MK        1.00*    NL        1.00*    NY        0.92     
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.02     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.06     GC        1.03     HH        1.00*    
!   HN        0.98     KK        1.00*    KP        1.03     LA        0.99     
!   MC        1.17     MK        1.00*    NL        1.01     NY        0.95     
!   ON        1.02     OV        1.01     PT        1.01     SC        1.03     
!   WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.02     HH        1.10     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.82     MK        1.00*    NL        1.00*    NY        1.00     
!   ON        1.01     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        0.88     
! 
!  A total of 156 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        1.00     HH        1.25     
!   HN        1.00     KK        0.97     KP        0.99     LA        0.98     
!   MC        1.13     MK        0.94     NL        0.99     NY        0.97     
!   ON        1.07     OV        0.96     PT        0.95     SC        1.05     
!   WF        1.02     WZ        1.03     
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.05     HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        0.94     
!   ON        1.01     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        0.92     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.02     GC        1.01     HH        1.00*    
!   HN        0.96     KK        1.00*    KP        1.00     LA        1.00     
!   MC        0.79     MK        1.00*    NL        1.00     NY        0.99     
!   ON        1.00     OV        0.98     PT        0.97     SC        1.01     
!   WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.02     HH        1.18     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.74     MK        1.00*    NL        1.00*    NY        1.03     
!   ON        1.07     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 183 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.92     FD        0.96     GC        1.00     HH        1.32     
!   HN        0.99     KK        0.97     KP        1.00     LA        0.97     
!   MC        1.11     MK        0.96     NL        0.99     NY        0.97     
!   ON        1.07     OV        0.93     PT        0.97     SC        1.05     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.93     FD        0.99     GC        1.01     HH        1.00*    
!   HN        0.96     KK        1.00*    KP        1.00     LA        0.98     
!   MC        0.82     MK        1.00*    NL        1.00     NY        0.99     
!   ON        1.02     OV        0.94     PT        0.99     SC        1.00     
!   WF        1.00     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.303507Jy  sigma=0.002205
! Fit after  self-cal, rms=0.258886Jy  sigma=0.001728
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.873 mas, bmaj=3.982 mas, bpa=-30.37 degrees
! Estimated noise=303.365 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.0157198 Jy
! Component: 100  -  total flux cleaned = -0.0179434 Jy
! Component: 150  -  total flux cleaned = -0.0198262 Jy
! Component: 200  -  total flux cleaned = -0.0204982 Jy
! Total flux subtracted in 200 components = -0.0204982 Jy
! Clean residual min=-0.009919 max=0.008400 Jy/beam
! Clean residual mean=-0.000522 rms=0.002200 Jy/beam
! Combined flux in latest and established models = 3.08026 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 48 components and 3.08026 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257307Jy  sigma=0.001716
! Fit after  self-cal, rms=0.257387Jy  sigma=0.001716
! 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.257387Jy  sigma=0.001716
! Fit after  self-cal, rms=0.242119Jy  sigma=0.001575
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.874 mas, bmaj=3.993 mas, bpa=-30.43 degrees
! Estimated noise=303.605 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00251749 Jy
! Component: 100  -  total flux cleaned = -0.00277951 Jy
! Component: 150  -  total flux cleaned = -0.00346111 Jy
! Component: 200  -  total flux cleaned = -0.00366532 Jy
! Total flux subtracted in 200 components = -0.00366532 Jy
! Clean residual min=-0.004318 max=0.003558 Jy/beam
! Clean residual mean=-0.000295 rms=0.000959 Jy/beam
! Combined flux in latest and established models = 3.0766 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 57 components and 3.0766 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241601Jy  sigma=0.001570
! Fit after  self-cal, rms=0.241608Jy  sigma=0.001570
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.000185705 Jy
! Component: 100  -  total flux cleaned = -0.000537822 Jy
! Component: 150  -  total flux cleaned = -0.000856272 Jy
! Component: 200  -  total flux cleaned = -0.00100319 Jy
! Total flux subtracted in 200 components = -0.00100319 Jy
! Clean residual min=-0.004055 max=0.003448 Jy/beam
! Clean residual mean=-0.000283 rms=0.000932 Jy/beam
! Combined flux in latest and established models = 3.07559 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 62 components and 3.07559 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241388Jy  sigma=0.001569
! Fit after  self-cal, rms=0.241381Jy  sigma=0.001568
! 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.241381Jy  sigma=0.001568
! Fit after  self-cal, rms=0.241498Jy  sigma=0.001561
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.873 mas, bmaj=3.997 mas, bpa=-30.32 degrees
! Estimated noise=303.919 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000664269 Jy
! Component: 100  -  total flux cleaned = 0.000281552 Jy
! Component: 150  -  total flux cleaned = -0.000403495 Jy
! Component: 200  -  total flux cleaned = -0.000867797 Jy
! Total flux subtracted in 200 components = -0.000867797 Jy
! Clean residual min=-0.003777 max=0.003432 Jy/beam
! Clean residual mean=-0.000217 rms=0.000844 Jy/beam
! Combined flux in latest and established models = 3.07473 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 66 components and 3.07473 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241176Jy  sigma=0.001559
! Fit after  self-cal, rms=0.241174Jy  sigma=0.001559
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.000119175 Jy
! Component: 100  -  total flux cleaned = -0.000254985 Jy
! Component: 150  -  total flux cleaned = -0.000256217 Jy
! Component: 200  -  total flux cleaned = -0.000370748 Jy
! Total flux subtracted in 200 components = -0.000370748 Jy
! Clean residual min=-0.003698 max=0.003382 Jy/beam
! Clean residual mean=-0.000212 rms=0.000829 Jy/beam
! Combined flux in latest and established models = 3.07435 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 72 components and 3.07435 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241043Jy  sigma=0.001558
! Fit after  self-cal, rms=0.241039Jy  sigma=0.001558
! 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.241039Jy  sigma=0.001558
! Fit after  self-cal, rms=0.241167Jy  sigma=0.001557
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.988 mas, bmaj=8.797 mas, bpa=-48.04 degrees
! Estimated noise=408.845 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000279036 Jy
! Component: 100  -  total flux cleaned = -0.000196318 Jy
! Component: 150  -  total flux cleaned = -0.000162323 Jy
! Component: 200  -  total flux cleaned = -0.000135404 Jy
! Total flux subtracted in 200 components = -0.000135404 Jy
! Clean residual min=-0.003732 max=0.002526 Jy/beam
! Clean residual mean=-0.000552 rms=0.001023 Jy/beam
! Combined flux in latest and established models = 3.07422 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 77 components and 3.07422 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241135Jy  sigma=0.001556
! Fit after  self-cal, rms=0.241134Jy  sigma=0.001556
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.000146572 Jy
! Component: 100  -  total flux cleaned = 0.00020185 Jy
! Component: 150  -  total flux cleaned = 0.000224409 Jy
! Component: 200  -  total flux cleaned = 0.000224603 Jy
! Total flux subtracted in 200 components = 0.000224603 Jy
! Clean residual min=-0.003749 max=0.002471 Jy/beam
! Clean residual mean=-0.000560 rms=0.001020 Jy/beam
! Combined flux in latest and established models = 3.07444 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 85 components and 3.07444 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241120Jy  sigma=0.001556
! Fit after  self-cal, rms=0.241120Jy  sigma=0.001556
! 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.872 mas, bmaj=4 mas, bpa=-30.22 degrees
! Estimated noise=304.243 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.872 x 4 at -30.22 degrees (North through East)
! Clean map  min=-0.0034208  max=2.7892 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.241120Jy  sigma=0.001556
! Fit after  self-cal, rms=0.209427Jy  sigma=0.001202
! Inverting map and beam 
! Estimated beam: bmin=2.873 mas, bmaj=4.001 mas, bpa=-30.17 degrees
! Estimated noise=304.041 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00129855 Jy
! Component: 100  -  total flux cleaned = -0.00160208 Jy
! Component: 150  -  total flux cleaned = -0.0021373 Jy
! Component: 200  -  total flux cleaned = -0.0023789 Jy
! Total flux subtracted in 200 components = -0.0023789 Jy
! Clean residual min=-0.002631 max=0.003138 Jy/beam
! Clean residual mean=-0.000108 rms=0.000620 Jy/beam
! Combined flux in latest and established models = 3.07206 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 90 components and 3.07206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209199Jy  sigma=0.001200
! Fit after  self-cal, rms=0.209194Jy  sigma=0.001200
! Inverting map 
! Added new window around map position (4.5, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000388337 Jy
! Component: 100  -  total flux cleaned = 3.17824e-05 Jy
! Component: 150  -  total flux cleaned = 0.000139208 Jy
! Component: 200  -  total flux cleaned = 3.59098e-05 Jy
! Total flux subtracted in 200 components = 3.59098e-05 Jy
! Clean residual min=-0.002363 max=0.002762 Jy/beam
! Clean residual mean=-0.000109 rms=0.000604 Jy/beam
! Combined flux in latest and established models = 3.0721 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 96 components and 3.0721 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.209076Jy  sigma=0.001198
! Fit after  self-cal, rms=0.209070Jy  sigma=0.001198
! Inverting map 
! Added new window around map position (-9, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0013371 Jy
! Component: 100  -  total flux cleaned = 0.00133288 Jy
! Component: 150  -  total flux cleaned = 0.00132769 Jy
! Component: 200  -  total flux cleaned = 0.00132505 Jy
! Total flux subtracted in 200 components = 0.00132505 Jy
! Clean residual min=-0.002326 max=0.002394 Jy/beam
! Clean residual mean=-0.000125 rms=0.000591 Jy/beam
! Combined flux in latest and established models = 3.07343 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 107 components and 3.07343 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208974Jy  sigma=0.001198
! Fit after  self-cal, rms=0.208970Jy  sigma=0.001198
! 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.208970Jy  sigma=0.001198
! Fit after  self-cal, rms=0.208995Jy  sigma=0.001197
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.199 mas, bmaj=2.736 mas, bpa=-24.85 degrees
! Estimated noise=779.897 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.06208 Jy
! Component: 100  -  total flux cleaned = 2.5433 Jy
! Component: 150  -  total flux cleaned = 2.74743 Jy
! Component: 200  -  total flux cleaned = 2.87108 Jy
! Total flux subtracted in 200 components = 2.87108 Jy
! Clean residual min=-0.015423 max=0.064323 Jy/beam
! Clean residual mean=0.000043 rms=0.004105 Jy/beam
! Combined flux in latest and established models = 2.87108 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 15 model components to the UV plane model.
! The established model now contains 15 components and 2.87108 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.873 mas, bmaj=4.004 mas, bpa=-30.09 degrees
! Estimated noise=304.164 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.105348 Jy
! Component: 100  -  total flux cleaned = 0.155363 Jy
! Component: 150  -  total flux cleaned = 0.181492 Jy
! Component: 200  -  total flux cleaned = 0.19343 Jy
! Total flux subtracted in 200 components = 0.19343 Jy
! Clean residual min=-0.007571 max=0.007751 Jy/beam
! Clean residual mean=-0.000007 rms=0.000924 Jy/beam
! Combined flux in latest and established models = 3.06451 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 50 components and 3.06451 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00261124 Jy
! Component: 100  -  total flux cleaned = 0.00490743 Jy
! Component: 150  -  total flux cleaned = 0.00558495 Jy
! Component: 200  -  total flux cleaned = 0.00653696 Jy
! Total flux subtracted in 200 components = 0.00653696 Jy
! Clean residual min=-0.005026 max=0.004936 Jy/beam
! Clean residual mean=-0.000085 rms=0.000799 Jy/beam
! Combined flux in latest and established models = 3.07105 Jy
! Adding 16 model components to the UV plane model.
! The established model now contains 52 components and 3.07105 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.992 mas, bmaj=8.799 mas, bpa=-47.86 degrees
! Estimated noise=408.392 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000133372 Jy
! Component: 100  -  total flux cleaned = 0.000615413 Jy
! Component: 150  -  total flux cleaned = 0.000738728 Jy
! Component: 200  -  total flux cleaned = 0.000788706 Jy
! Total flux subtracted in 200 components = 0.000788706 Jy
! Clean residual min=-0.002266 max=0.001908 Jy/beam
! Clean residual mean=-0.000275 rms=0.000605 Jy/beam
! Combined flux in latest and established models = 3.07184 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 = 4.35796e-05 Jy
! Component: 100  -  total flux cleaned = 8.09129e-05 Jy
! Component: 150  -  total flux cleaned = 0.000113484 Jy
! Component: 200  -  total flux cleaned = 8.51808e-05 Jy
! Total flux subtracted in 200 components = 8.51808e-05 Jy
! Clean residual min=-0.002353 max=0.001848 Jy/beam
! Clean residual mean=-0.000280 rms=0.000597 Jy/beam
! Combined flux in latest and established models = 3.07192 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 82 components and 3.07192 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.873 mas, bmaj=4.004 mas, bpa=-30.09 degrees
! Estimated noise=304.164 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00189584 Jy
! Component: 100  -  total flux cleaned = -0.00189122 Jy
! Component: 150  -  total flux cleaned = -0.00188939 Jy
! Component: 200  -  total flux cleaned = -0.00189232 Jy
! Total flux subtracted in 200 components = -0.00189232 Jy
! Clean residual min=-0.004070 max=0.004065 Jy/beam
! Clean residual mean=-0.000075 rms=0.000727 Jy/beam
! Combined flux in latest and established models = 3.07003 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 86 components and 3.07003 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211322Jy  sigma=0.001211
! Fit after  self-cal, rms=0.211293Jy  sigma=0.001211
wmodel J0555+3948_S_1999_05_10_pus_map.mod
! Writing 86 model components to file: J0555+3948_S_1999_05_10_pus_map.mod
wobs J0555+3948_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0555+3948_S_1999_05_10_pus_uvs.fits
wwins J0555+3948_S_1999_05_10_pus_map.win
! wwins: Wrote 4 windows to J0555+3948_S_1999_05_10_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.000290345 Jy
! Component: 100  -  total flux cleaned = 0.000209484 Jy
! Component: 150  -  total flux cleaned = 5.29217e-05 Jy
! Component: 200  -  total flux cleaned = -2.31866e-05 Jy
! Component: 250  -  total flux cleaned = -9.75404e-05 Jy
! Component: 300  -  total flux cleaned = -9.71547e-05 Jy
! Component: 350  -  total flux cleaned = -0.000167866 Jy
! Component: 400  -  total flux cleaned = -0.000167818 Jy
! Component: 450  -  total flux cleaned = -0.000168071 Jy
! Component: 500  -  total flux cleaned = -0.000236377 Jy
! Component: 550  -  total flux cleaned = -0.000235245 Jy
! Component: 600  -  total flux cleaned = -0.000235745 Jy
! Component: 650  -  total flux cleaned = -0.000235654 Jy
! Component: 700  -  total flux cleaned = -0.000235137 Jy
! Component: 750  -  total flux cleaned = -0.000171759 Jy
! Component: 800  -  total flux cleaned = -0.000109624 Jy
! Component: 850  -  total flux cleaned = -0.00010982 Jy
! Component: 900  -  total flux cleaned = -4.75912e-05 Jy
! Component: 950  -  total flux cleaned = 1.31042e-05 Jy
! Component: 1000  -  total flux cleaned = 7.29379e-05 Jy
! Component: 1050  -  total flux cleaned = 7.36928e-05 Jy
! Component: 1100  -  total flux cleaned = 0.000132245 Jy
! Component: 1150  -  total flux cleaned = 0.000190018 Jy
! Component: 1200  -  total flux cleaned = 0.000246642 Jy
! Component: 1250  -  total flux cleaned = 0.00030337 Jy
! Component: 1300  -  total flux cleaned = 0.000302732 Jy
! Component: 1350  -  total flux cleaned = 0.000357749 Jy
! Component: 1400  -  total flux cleaned = 0.000357286 Jy
! Component: 1450  -  total flux cleaned = 0.00041133 Jy
! Component: 1500  -  total flux cleaned = 0.000464287 Jy
! Component: 1550  -  total flux cleaned = 0.00051671 Jy
! Component: 1600  -  total flux cleaned = 0.00051715 Jy
! Component: 1650  -  total flux cleaned = 0.000568316 Jy
! Component: 1700  -  total flux cleaned = 0.000568628 Jy
! Component: 1750  -  total flux cleaned = 0.000619221 Jy
! Component: 1800  -  total flux cleaned = 0.000668872 Jy
! Component: 1850  -  total flux cleaned = 0.000668699 Jy
! Component: 1900  -  total flux cleaned = 0.000766277 Jy
! Component: 1950  -  total flux cleaned = 0.000814584 Jy
! Component: 2000  -  total flux cleaned = 0.000862384 Jy
! Total flux subtracted in 2048 components = 0.000909668 Jy
! Clean residual min=-0.002357 max=0.002354 Jy/beam
! Clean residual mean=-0.000087 rms=0.000629 Jy/beam
! Combined flux in latest and established models = 3.07094 Jy
keep
! Adding 42 model components to the UV plane model.
! The established model now contains 111 components and 3.07094 Jy
![Exited script file: muppet]
wmap "J0555+3948_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.873 x 4.004 at -30.09 degrees (North through East)
! Clean map  min=-0.0024328  max=2.7903 Jy/beam
! Writing clean map to FITS file: J0555+3948_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.79029 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000629263 
device "J0555+3948_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0555+3948_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0676557 0.0676557 0.135311 0.270623 0.541246 1.08249 2.16498 4.32997 8.65993 17.3199 34.6397 69.2795
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.79 
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.873 x 4.004 at -30.09 degrees (North through East)
! Clean map  min=-0.0024328  max=2.7903 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0555+3948_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0555+3948_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0555+3948_S_1999_05_10_pus_uvs.log closed on Tue Jan 22 14:29:19 2008