! Started logfile: J0136+4751_S_1999_03_08_pus_uvs.log on Wed Jan  9 13:39:18 2008
obs J0136+4751_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J0136+4751_S_1999_03_08_pus_uva.fits
! AN table 1: 150 integrations on 190 of 190 possible baselines.
! AN table 2: 259 integrations on 190 of 190 possible baselines.
! AN table 3: 197 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.162645 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0136+4751
! 
! 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 2336 lines of history.
! 
! Reading 74908 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 J0136+4751_S_1999_03_08_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 1465 telescope corrections were flagged in sub-array 1.
!  A total of 3258 telescope corrections were flagged in sub-array 2.
!  A total of 3237 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1464 telescope corrections were flagged in sub-array 1.
!  A total of 3258 telescope corrections were flagged in sub-array 2.
!  A total of 3240 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1464 telescope corrections were flagged in sub-array 1.
!  A total of 3268 telescope corrections were flagged in sub-array 2.
!  A total of 3648 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1464 telescope corrections were flagged in sub-array 1.
!  A total of 3260 telescope corrections were flagged in sub-array 2.
!  A total of 3560 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.021233Jy  sigma=0.006460
! Fit after  self-cal, rms=0.460356Jy  sigma=0.003282
! 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.192 mas, bmaj=2.459 mas, bpa=-16.56 degrees
! Estimated noise=735.026 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 = 0.904387 Jy
! Component: 100  -  total flux cleaned = 1.16471 Jy
! Total flux subtracted in 100 components = 1.16471 Jy
! Clean residual min=-0.020483 max=0.118111 Jy/beam
! Clean residual mean=0.000197 rms=0.006308 Jy/beam
! Combined flux in latest and established models = 1.16471 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.16471 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.376669Jy  sigma=0.002576
! Fit after  self-cal, rms=0.376442Jy  sigma=0.002575
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.129749 Jy
! Component: 100  -  total flux cleaned = 0.207065 Jy
! Total flux subtracted in 100 components = 0.207065 Jy
! Clean residual min=-0.016367 max=0.041778 Jy/beam
! Clean residual mean=0.000097 rms=0.004375 Jy/beam
! Combined flux in latest and established models = 1.37178 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 15 components and 1.37178 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.309296Jy  sigma=0.001933
! Fit after  self-cal, rms=0.308812Jy  sigma=0.001931
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0532432 Jy
! Component: 100  -  total flux cleaned = 0.0904707 Jy
! Total flux subtracted in 100 components = 0.0904707 Jy
! Clean residual min=-0.015433 max=0.022823 Jy/beam
! Clean residual mean=0.000054 rms=0.003890 Jy/beam
! Combined flux in latest and established models = 1.46225 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 21 components and 1.46225 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295236Jy  sigma=0.001776
! Fit after  self-cal, rms=0.295068Jy  sigma=0.001775
! Inverting map 
! Added new window around map position (-1.5, 3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.029141 Jy
! Component: 100  -  total flux cleaned = 0.050634 Jy
! Total flux subtracted in 100 components = 0.050634 Jy
! Clean residual min=-0.014631 max=0.019311 Jy/beam
! Clean residual mean=0.000030 rms=0.003716 Jy/beam
! Combined flux in latest and established models = 1.51288 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 32 components and 1.51288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291028Jy  sigma=0.001721
! Fit after  self-cal, rms=0.290841Jy  sigma=0.001721
! 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.744 mas, bmaj=3.125 mas, bpa=3.395 degrees
! Estimated noise=396.715 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.0334779 Jy
! Component: 100  -  total flux cleaned = 0.0528673 Jy
! Component: 150  -  total flux cleaned = 0.0650638 Jy
! Component: 200  -  total flux cleaned = 0.0729904 Jy
! Total flux subtracted in 200 components = 0.0729904 Jy
! Clean residual min=-0.016770 max=0.018714 Jy/beam
! Clean residual mean=-0.000051 rms=0.003408 Jy/beam
! Combined flux in latest and established models = 1.58587 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 44 components and 1.58587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288045Jy  sigma=0.001676
! Fit after  self-cal, rms=0.287643Jy  sigma=0.001673
! Inverting map 
! Added new window around map position (-1, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0193198 Jy
! Component: 100  -  total flux cleaned = 0.0309779 Jy
! Component: 150  -  total flux cleaned = 0.0383324 Jy
! Component: 200  -  total flux cleaned = 0.0411365 Jy
! Total flux subtracted in 200 components = 0.0411365 Jy
! Clean residual min=-0.016767 max=0.011350 Jy/beam
! Clean residual mean=-0.000540 rms=0.003237 Jy/beam
! Combined flux in latest and established models = 1.62701 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 64 components and 1.62701 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.286473Jy  sigma=0.001659
! Fit after  self-cal, rms=0.286311Jy  sigma=0.001658
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.98     GC        0.99     GG        1.00*    
!   HN        1.02     KP        0.98     LA        0.98     NL        0.98     
!   OV        0.98     PT        1.01     SC        1.03     WF        1.00     
!   GN        0.99     HH        1.00*    KK        0.99     MC        1.17     
!   MK        0.95     NY        0.96     ON        0.97     WZ        1.13     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.97     GC        1.00     GG        1.00*    
!   HN        1.02     KP        0.99     LA        1.00     NL        0.99     
!   OV        0.99     PT        1.01     SC        1.01     WF        0.97     
!   GN        1.01     HH        1.00*    KK        0.96     MC        1.08     
!   MK        0.96     NY        0.97     ON        0.98     WZ        0.97     
! 
!  A total of 438 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.00*    GC        1.00     GG        1.00*    
!   HN        0.98     KP        1.00*    LA        1.00*    NL        0.61     
!   OV        1.00*    PT        1.00*    SC        1.05     WF        0.96     
!   GN        0.97     HH        1.00*    KK        1.00*    MC        0.91     
!   MK        1.00*    NY        0.98     ON        0.97     WZ        0.90     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     GC        1.02     GG        1.00*    
!   HN        0.97     KP        0.99     LA        0.98     NL        1.01     
!   OV        0.95     PT        0.99     SC        1.05     WF        1.05     
!   GN        1.09     HH        1.00*    KK        0.94     MC        1.09     
!   MK        0.98     NY        0.95     ON        0.98     WZ        1.16     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        1.03     GG        1.00*    
!   HN        0.97     KP        0.97     LA        0.97     NL        0.93     
!   OV        0.95     PT        0.98     SC        1.06     WF        0.98     
!   GN        0.99     HH        1.00*    KK        0.93     MC        1.17     
!   MK        0.99     NY        0.98     ON        0.99     WZ        0.97     
! 
!  A total of 438 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GC        1.01     GG        1.00*    
!   HN        0.86     KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.09     WF        1.00     
!   GN        0.98     HH        1.00*    KK        1.00*    MC        0.96     
!   MK        1.00*    NY        0.98     ON        0.99     WZ        0.93     
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.00     GG        1.00*    
!   HN        1.23     KP        0.99     LA        0.99     NL        0.97     
!   OV        0.98     PT        0.95     SC        1.03     WF        1.00     
!   GN        1.00     HH        1.00*    KK        0.96     MC        1.61     
!   MK        0.97     NY        0.95     ON        0.98     WZ        1.11     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.97     GC        1.01     GG        1.00*    
!   HN        1.22     KP        0.97     LA        1.01     NL        0.97     
!   OV        1.00     PT        0.95     SC        1.04     WF        1.00     
!   GN        1.02     HH        1.00*    KK        0.95     MC        1.31     
!   MK        0.98     NY        0.95     ON        1.00     WZ        0.96     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00*    GC        1.01     GG        1.00*    
!   HN        1.10     KP        1.00*    LA        1.00*    NL        0.66     
!   OV        1.00*    PT        1.00*    SC        1.12     WF        0.99     
!   GN        0.96     HH        1.00*    KK        1.00*    MC        1.21     
!   MK        1.00*    NY        0.98     ON        0.99     WZ        0.89     
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00     GC        1.03     GG        1.00*    
!   HN        1.15     KP        1.00     LA        0.99     NL        1.02     
!   OV        1.00     PT        0.94     SC        1.02     WF        0.99     
!   GN        0.99     HH        1.00*    KK        1.01     MC        1.20     
!   MK        0.99     NY        0.94     ON        0.95     WZ        1.10     
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.96     GC        1.02     GG        1.00*    
!   HN        1.16     KP        0.98     LA        0.91     NL        0.94     
!   OV        1.01     PT        0.98     SC        1.04     WF        0.99     
!   GN        1.03     HH        1.00*    KK        1.00     MC        1.25     
!   MK        1.01     NY        0.96     ON        0.99     WZ        0.96     
! 
!  A total of 114 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00*    GC        1.02     GG        1.00*    
!   HN        1.06     KP        1.00*    LA        1.00*    NL        0.59     
!   OV        1.00*    PT        1.00*    SC        1.05     WF        0.97     
!   GN        0.97     HH        1.00*    KK        1.00*    MC        1.12     
!   MK        1.00*    NY        0.99     ON        1.00     WZ        0.92     
! 
! 
! Fit before self-cal, rms=0.286311Jy  sigma=0.001658
! Fit after  self-cal, rms=0.278272Jy  sigma=0.001498
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.755 mas, bmaj=3.134 mas, bpa=0.9094 degrees
! Estimated noise=401.04 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.00747232 Jy
! Component: 100  -  total flux cleaned = -0.00718212 Jy
! Component: 150  -  total flux cleaned = -0.00718309 Jy
! Component: 200  -  total flux cleaned = -0.00760135 Jy
! Total flux subtracted in 200 components = -0.00760135 Jy
! Clean residual min=-0.010553 max=0.008632 Jy/beam
! Clean residual mean=0.000571 rms=0.002160 Jy/beam
! Combined flux in latest and established models = 1.61941 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 74 components and 1.61941 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277557Jy  sigma=0.001493
! Fit after  self-cal, rms=0.277553Jy  sigma=0.001493
! 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.277553Jy  sigma=0.001493
! Fit after  self-cal, rms=0.270401Jy  sigma=0.001379
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.756 mas, bmaj=3.145 mas, bpa=1.585 degrees
! Estimated noise=401.822 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0001339 Jy
! Component: 100  -  total flux cleaned = -0.00149202 Jy
! Component: 150  -  total flux cleaned = -0.00149147 Jy
! Component: 200  -  total flux cleaned = -0.00164415 Jy
! Total flux subtracted in 200 components = -0.00164415 Jy
! Clean residual min=-0.004325 max=0.006605 Jy/beam
! Clean residual mean=0.000377 rms=0.001196 Jy/beam
! Combined flux in latest and established models = 1.61776 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 86 components and 1.61776 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270172Jy  sigma=0.001377
! Fit after  self-cal, rms=0.270303Jy  sigma=0.001377
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-4, 15).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00550875 Jy
! Component: 100  -  total flux cleaned = 0.00570625 Jy
! Component: 150  -  total flux cleaned = 0.00599022 Jy
! Component: 200  -  total flux cleaned = 0.0062411 Jy
! Total flux subtracted in 200 components = 0.0062411 Jy
! Clean residual min=-0.004020 max=0.005639 Jy/beam
! Clean residual mean=0.000313 rms=0.001132 Jy/beam
! Combined flux in latest and established models = 1.624 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 103 components and 1.624 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270108Jy  sigma=0.001375
! Fit after  self-cal, rms=0.270079Jy  sigma=0.001375
! Inverting map 
! Added new window around map position (-6.5, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00459087 Jy
! Component: 100  -  total flux cleaned = 0.0045893 Jy
! Component: 150  -  total flux cleaned = 0.00471233 Jy
! Component: 200  -  total flux cleaned = 0.00482814 Jy
! Total flux subtracted in 200 components = 0.00482814 Jy
! Clean residual min=-0.004014 max=0.004901 Jy/beam
! Clean residual mean=0.000259 rms=0.001109 Jy/beam
! Combined flux in latest and established models = 1.62883 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 124 components and 1.62883 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269915Jy  sigma=0.001373
! Fit after  self-cal, rms=0.269898Jy  sigma=0.001373
! Inverting map 
! Added new window around map position (-11, 17.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.004878 Jy
! Component: 100  -  total flux cleaned = 0.00654944 Jy
! Component: 150  -  total flux cleaned = 0.00688529 Jy
! Component: 200  -  total flux cleaned = 0.00719924 Jy
! Total flux subtracted in 200 components = 0.00719924 Jy
! Clean residual min=-0.004075 max=0.004917 Jy/beam
! Clean residual mean=0.000186 rms=0.001073 Jy/beam
! Combined flux in latest and established models = 1.63603 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 139 components and 1.63603 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269752Jy  sigma=0.001372
! Fit after  self-cal, rms=0.269738Jy  sigma=0.001372
! Inverting map 
! Added new window around map position (-7, 44.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00351006 Jy
! Component: 100  -  total flux cleaned = 0.00464148 Jy
! Component: 150  -  total flux cleaned = 0.00567215 Jy
! Component: 200  -  total flux cleaned = 0.00615295 Jy
! Total flux subtracted in 200 components = 0.00615295 Jy
! Clean residual min=-0.004112 max=0.004055 Jy/beam
! Clean residual mean=0.000125 rms=0.001042 Jy/beam
! Combined flux in latest and established models = 1.64218 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 152 components and 1.64218 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269620Jy  sigma=0.001372
! Fit after  self-cal, rms=0.269613Jy  sigma=0.001372
! 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.269613Jy  sigma=0.001372
! Fit after  self-cal, rms=0.269053Jy  sigma=0.001354
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.757 mas, bmaj=3.145 mas, bpa=1.086 degrees
! Estimated noise=401.633 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000270972 Jy
! Component: 100  -  total flux cleaned = 0.000237814 Jy
! Component: 150  -  total flux cleaned = 0.00114493 Jy
! Component: 200  -  total flux cleaned = 0.0019673 Jy
! Total flux subtracted in 200 components = 0.0019673 Jy
! Clean residual min=-0.003916 max=0.004105 Jy/beam
! Clean residual mean=0.000190 rms=0.000950 Jy/beam
! Combined flux in latest and established models = 1.64415 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 166 components and 1.64415 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268950Jy  sigma=0.001353
! Fit after  self-cal, rms=0.268979Jy  sigma=0.001353
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (30.5, -9).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00231308 Jy
! Component: 100  -  total flux cleaned = 0.00321906 Jy
! Component: 150  -  total flux cleaned = 0.00396683 Jy
! Component: 200  -  total flux cleaned = 0.00458453 Jy
! Total flux subtracted in 200 components = 0.00458453 Jy
! Clean residual min=-0.003576 max=0.003722 Jy/beam
! Clean residual mean=0.000140 rms=0.000915 Jy/beam
! Combined flux in latest and established models = 1.64874 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 178 components and 1.64874 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268901Jy  sigma=0.001353
! Fit after  self-cal, rms=0.268896Jy  sigma=0.001353
! 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.268896Jy  sigma=0.001353
! Fit after  self-cal, rms=0.268910Jy  sigma=0.001353
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.775 mas, bmaj=8.441 mas, bpa=-36.88 degrees
! Estimated noise=604.731 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00224691 Jy
! Component: 100  -  total flux cleaned = 0.00364153 Jy
! Component: 150  -  total flux cleaned = 0.00460771 Jy
! Component: 200  -  total flux cleaned = 0.00553685 Jy
! Total flux subtracted in 200 components = 0.00553685 Jy
! Clean residual min=-0.003679 max=0.005650 Jy/beam
! Clean residual mean=0.000400 rms=0.001609 Jy/beam
! Combined flux in latest and established models = 1.65427 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 194 components and 1.65427 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268875Jy  sigma=0.001352
! Fit after  self-cal, rms=0.268871Jy  sigma=0.001352
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.00126261 Jy
! Component: 100  -  total flux cleaned = 0.00198164 Jy
! Component: 150  -  total flux cleaned = 0.00268172 Jy
! Component: 200  -  total flux cleaned = 0.00329521 Jy
! Total flux subtracted in 200 components = 0.00329521 Jy
! Clean residual min=-0.003762 max=0.005319 Jy/beam
! Clean residual mean=0.000282 rms=0.001569 Jy/beam
! Combined flux in latest and established models = 1.65757 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 210 components and 1.65757 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268871Jy  sigma=0.001352
! Fit after  self-cal, rms=0.268869Jy  sigma=0.001352
! 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.758 mas, bmaj=3.145 mas, bpa=0.9256 degrees
! Estimated noise=401.431 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.758 x 3.145 at 0.9256 degrees (North through East)
! Clean map  min=-0.0028421  max=1.2412 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.268869Jy  sigma=0.001352
! Fit after  self-cal, rms=0.261676Jy  sigma=0.001240
! Inverting map and beam 
! Estimated beam: bmin=2.757 mas, bmaj=3.147 mas, bpa=0.8733 degrees
! Estimated noise=401.17 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00124303 Jy
! Component: 100  -  total flux cleaned = -0.00149239 Jy
! Component: 150  -  total flux cleaned = -0.00156743 Jy
! Component: 200  -  total flux cleaned = -0.00171056 Jy
! Total flux subtracted in 200 components = -0.00171056 Jy
! Clean residual min=-0.003180 max=0.003669 Jy/beam
! Clean residual mean=0.000083 rms=0.000809 Jy/beam
! Combined flux in latest and established models = 1.65586 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 224 components and 1.65586 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261627Jy  sigma=0.001239
! Fit after  self-cal, rms=0.261625Jy  sigma=0.001239
! Inverting map 
! Added new window around map position (12, 43).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00259016 Jy
! Component: 100  -  total flux cleaned = 0.00304446 Jy
! Component: 150  -  total flux cleaned = 0.00311492 Jy
! Component: 200  -  total flux cleaned = 0.00318292 Jy
! Total flux subtracted in 200 components = 0.00318292 Jy
! Clean residual min=-0.003096 max=0.003273 Jy/beam
! Clean residual mean=0.000055 rms=0.000785 Jy/beam
! Combined flux in latest and established models = 1.65904 Jy
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 240 components and 1.65904 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261562Jy  sigma=0.001239
! Fit after  self-cal, rms=0.261560Jy  sigma=0.001239
! 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.261560Jy  sigma=0.001239
! Fit after  self-cal, rms=0.261577Jy  sigma=0.001239
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.218 mas, bmaj=2.477 mas, bpa=-18.26 degrees
! Estimated noise=740.559 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.907958 Jy
! Component: 100  -  total flux cleaned = 1.1643 Jy
! Component: 150  -  total flux cleaned = 1.29027 Jy
! Component: 200  -  total flux cleaned = 1.36236 Jy
! Total flux subtracted in 200 components = 1.36236 Jy
! Clean residual min=-0.007045 max=0.037541 Jy/beam
! Clean residual mean=0.000127 rms=0.002400 Jy/beam
! Combined flux in latest and established models = 1.36236 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 16 model components to the UV plane model.
! The established model now contains 16 components and 1.36236 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.758 mas, bmaj=3.148 mas, bpa=0.8202 degrees
! Estimated noise=400.952 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.0828791 Jy
! Component: 100  -  total flux cleaned = 0.130494 Jy
! Component: 150  -  total flux cleaned = 0.162006 Jy
! Component: 200  -  total flux cleaned = 0.184406 Jy
! Total flux subtracted in 200 components = 0.184406 Jy
! Clean residual min=-0.003091 max=0.013545 Jy/beam
! Clean residual mean=0.001274 rms=0.001805 Jy/beam
! Combined flux in latest and established models = 1.54677 Jy
! Adding 63 model components to the UV plane model.
! The established model now contains 70 components and 1.54677 Jy
! Inverting map 
! Added new window around map position (-2.5, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0170325 Jy
! Component: 100  -  total flux cleaned = 0.0302473 Jy
! Component: 150  -  total flux cleaned = 0.0408495 Jy
! Component: 200  -  total flux cleaned = 0.0495212 Jy
! Total flux subtracted in 200 components = 0.0495212 Jy
! Clean residual min=-0.002635 max=0.006583 Jy/beam
! Clean residual mean=0.000723 rms=0.001109 Jy/beam
! Combined flux in latest and established models = 1.59629 Jy
! Adding 59 model components to the UV plane model.
! The established model now contains 112 components and 1.59629 Jy
! Inverting map 
! Added new window around map position (3.5, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00770164 Jy
! Component: 100  -  total flux cleaned = 0.0141694 Jy
! Component: 150  -  total flux cleaned = 0.0198509 Jy
! Component: 200  -  total flux cleaned = 0.0248756 Jy
! Total flux subtracted in 200 components = 0.0248756 Jy
! Clean residual min=-0.002605 max=0.004432 Jy/beam
! Clean residual mean=0.000457 rms=0.000917 Jy/beam
! Combined flux in latest and established models = 1.62117 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 144 components and 1.62117 Jy
! Inverting map 
! Added new window around map position (-30.5, 9).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00477024 Jy
! Component: 100  -  total flux cleaned = 0.0088763 Jy
! Component: 150  -  total flux cleaned = 0.0126042 Jy
! Component: 200  -  total flux cleaned = 0.0159919 Jy
! Total flux subtracted in 200 components = 0.0159919 Jy
! Clean residual min=-0.002554 max=0.003481 Jy/beam
! Clean residual mean=0.000287 rms=0.000828 Jy/beam
! Combined flux in latest and established models = 1.63716 Jy
! Adding 65 model components to the UV plane model.
! The established model now contains 171 components and 1.63716 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.775 mas, bmaj=8.442 mas, bpa=-36.64 degrees
! Estimated noise=603.575 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00704269 Jy
! Component: 100  -  total flux cleaned = 0.0117407 Jy
! Component: 150  -  total flux cleaned = 0.0153527 Jy
! Component: 200  -  total flux cleaned = 0.0182281 Jy
! Total flux subtracted in 200 components = 0.0182281 Jy
! Clean residual min=-0.003070 max=0.004257 Jy/beam
! Clean residual mean=0.000336 rms=0.001210 Jy/beam
! Combined flux in latest and established models = 1.65539 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.00231968 Jy
! Component: 100  -  total flux cleaned = 0.0041331 Jy
! Component: 150  -  total flux cleaned = 0.00514495 Jy
! Component: 200  -  total flux cleaned = 0.00596719 Jy
! Total flux subtracted in 200 components = 0.0059672 Jy
! Clean residual min=-0.003202 max=0.003909 Jy/beam
! Clean residual mean=0.000118 rms=0.001141 Jy/beam
! Combined flux in latest and established models = 1.66135 Jy
! Adding 99 model components to the UV plane model.
! The established model now contains 261 components and 1.66135 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.758 mas, bmaj=3.148 mas, bpa=0.8202 degrees
! Estimated noise=400.952 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00149342 Jy
! Component: 100  -  total flux cleaned = -0.00149227 Jy
! Component: 150  -  total flux cleaned = -0.00130904 Jy
! Component: 200  -  total flux cleaned = -0.00122496 Jy
! Total flux subtracted in 200 components = -0.00122496 Jy
! Clean residual min=-0.002629 max=0.002975 Jy/beam
! Clean residual mean=0.000047 rms=0.000755 Jy/beam
! Combined flux in latest and established models = 1.66013 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 282 components and 1.66013 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261592Jy  sigma=0.001238
! Fit after  self-cal, rms=0.261563Jy  sigma=0.001238
wmodel J0136+4751_S_1999_03_08_pus_map.mod
! Writing 282 model components to file: J0136+4751_S_1999_03_08_pus_map.mod
wobs J0136+4751_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J0136+4751_S_1999_03_08_pus_uvs.fits
wwins J0136+4751_S_1999_03_08_pus_map.win
! wwins: Wrote 12 windows to J0136+4751_S_1999_03_08_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.00135594 Jy
! Component: 100  -  total flux cleaned = 0.00218039 Jy
! Component: 150  -  total flux cleaned = 0.00267319 Jy
! Component: 200  -  total flux cleaned = 0.00300754 Jy
! Component: 250  -  total flux cleaned = 0.00333415 Jy
! Component: 300  -  total flux cleaned = 0.00356242 Jy
! Component: 350  -  total flux cleaned = 0.00383083 Jy
! Component: 400  -  total flux cleaned = 0.004094 Jy
! Component: 450  -  total flux cleaned = 0.00426695 Jy
! Component: 500  -  total flux cleaned = 0.00447934 Jy
! Component: 550  -  total flux cleaned = 0.00456309 Jy
! Component: 600  -  total flux cleaned = 0.00468696 Jy
! Component: 650  -  total flux cleaned = 0.00476838 Jy
! Component: 700  -  total flux cleaned = 0.00480872 Jy
! Component: 750  -  total flux cleaned = 0.00480916 Jy
! Component: 800  -  total flux cleaned = 0.00484891 Jy
! Component: 850  -  total flux cleaned = 0.00492674 Jy
! Component: 900  -  total flux cleaned = 0.0048884 Jy
! Component: 950  -  total flux cleaned = 0.00496478 Jy
! Component: 1000  -  total flux cleaned = 0.00496467 Jy
! Component: 1050  -  total flux cleaned = 0.00492695 Jy
! Component: 1100  -  total flux cleaned = 0.00492695 Jy
! Component: 1150  -  total flux cleaned = 0.00503775 Jy
! Component: 1200  -  total flux cleaned = 0.00492741 Jy
! Component: 1250  -  total flux cleaned = 0.00503695 Jy
! Component: 1300  -  total flux cleaned = 0.00500057 Jy
! Component: 1350  -  total flux cleaned = 0.00507264 Jy
! Component: 1400  -  total flux cleaned = 0.00503695 Jy
! Component: 1450  -  total flux cleaned = 0.0050726 Jy
! Component: 1500  -  total flux cleaned = 0.00507256 Jy
! Component: 1550  -  total flux cleaned = 0.00507252 Jy
! Component: 1600  -  total flux cleaned = 0.00503764 Jy
! Component: 1650  -  total flux cleaned = 0.00507251 Jy
! Component: 1700  -  total flux cleaned = 0.00510698 Jy
! Component: 1750  -  total flux cleaned = 0.00507255 Jy
! Component: 1800  -  total flux cleaned = 0.00517509 Jy
! Component: 1850  -  total flux cleaned = 0.00510678 Jy
! Component: 1900  -  total flux cleaned = 0.00514078 Jy
! Component: 1950  -  total flux cleaned = 0.00514079 Jy
! Component: 2000  -  total flux cleaned = 0.00514088 Jy
! Total flux subtracted in 2048 components = 0.00514099 Jy
! Clean residual min=-0.001823 max=0.002028 Jy/beam
! Clean residual mean=-0.000008 rms=0.000644 Jy/beam
! Combined flux in latest and established models = 1.66527 Jy
keep
! Adding 177 model components to the UV plane model.
! The established model now contains 458 components and 1.66527 Jy
![Exited script file: muppet]
wmap "J0136+4751_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.758 x 3.148 at 0.8202 degrees (North through East)
! Clean map  min=-0.0024558  max=1.2412 Jy/beam
! Writing clean map to FITS file: J0136+4751_S_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.24124 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000644311 
device "J0136+4751_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J0136+4751_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.155726 0.155726 0.311452 0.622904 1.24581 2.49161 4.98323 9.96646 19.9329 39.8658 79.7317
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.241 
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.758 x 3.148 at 0.8202 degrees (North through East)
! Clean map  min=-0.0024558  max=1.2412 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0136+4751_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J0136+4751_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0136+4751_S_1999_03_08_pus_uvs.log closed on Wed Jan  9 13:40:13 2008