! Started logfile: J1104+3812_S_1999_05_10_pus_uvs.log on Tue Jan 22 12:26:52 2008
obs J1104+3812_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1104+3812_S_1999_05_10_pus_uva.fits
! AN table 1: 43 integrations on 153 of 153 possible baselines.
! AN table 2: 201 integrations on 153 of 153 possible baselines.
! AN table 3: 56 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.24573 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1104+3812
! 
! 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 45116 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 J1104+3812_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 582 telescope corrections were flagged in sub-array 1.
!  A total of 1676 telescope corrections were flagged in sub-array 2.
!  A total of 742 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 582 telescope corrections were flagged in sub-array 1.
!  A total of 1673 telescope corrections were flagged in sub-array 2.
!  A total of 741 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 582 telescope corrections were flagged in sub-array 1.
!  A total of 1768 telescope corrections were flagged in sub-array 2.
!  A total of 742 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 582 telescope corrections were flagged in sub-array 1.
!  A total of 1874 telescope corrections were flagged in sub-array 2.
!  A total of 742 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.974571Jy  sigma=0.005782
! Fit after  self-cal, rms=0.759548Jy  sigma=0.004703
! 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.817 mas, bmaj=2.571 mas, bpa=22.4 degrees
! Estimated noise=1303.74 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.219138 Jy
! Component: 100  -  total flux cleaned = 0.275011 Jy
! Total flux subtracted in 100 components = 0.275011 Jy
! Clean residual min=-0.010325 max=0.022257 Jy/beam
! Clean residual mean=0.000196 rms=0.002955 Jy/beam
! Combined flux in latest and established models = 0.275011 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.275011 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273289Jy  sigma=0.001305
! Fit after  self-cal, rms=0.273240Jy  sigma=0.001305
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0226419 Jy
! Component: 100  -  total flux cleaned = 0.0331205 Jy
! Total flux subtracted in 100 components = 0.0331205 Jy
! Clean residual min=-0.010335 max=0.012174 Jy/beam
! Clean residual mean=0.000187 rms=0.002517 Jy/beam
! Combined flux in latest and established models = 0.308131 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 11 components and 0.308131 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.271042Jy  sigma=0.001285
! Fit after  self-cal, rms=0.271063Jy  sigma=0.001285
! 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.215 mas, bmaj=3.081 mas, bpa=15.07 degrees
! Estimated noise=570.629 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 (-2.5, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0159114 Jy
! Component: 100  -  total flux cleaned = 0.0250002 Jy
! Component: 150  -  total flux cleaned = 0.0311097 Jy
! Component: 200  -  total flux cleaned = 0.0353459 Jy
! Total flux subtracted in 200 components = 0.0353459 Jy
! Clean residual min=-0.004728 max=0.008254 Jy/beam
! Clean residual mean=0.001116 rms=0.001532 Jy/beam
! Combined flux in latest and established models = 0.343477 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 34 components and 0.343477 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270038Jy  sigma=0.001276
! Fit after  self-cal, rms=0.269933Jy  sigma=0.001275
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.00*    GC        0.95     HH        1.00*    
!   HN        1.00*    KK        0.95     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        0.99     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.05     HH        1.01     
!   HN        1.00     KK        1.00*    KP        1.04     LA        1.00     
!   MC        1.02     MK        1.00*    NL        1.00     NY        0.98     
!   ON        1.03     OV        1.02     PT        1.00*    SC        1.06     
!   WF        0.98     WZ        0.96     
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GC        0.98     HH        1.00*    
!   HN        1.00*    KK        1.02     KP        0.97     LA        1.00*    
!   MC        1.00*    MK        0.97     NL        1.00*    NY        0.93     
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.00*    GC        0.98     HH        1.00*    
!   HN        1.00*    KK        1.04     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.06     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.03     GC        1.04     HH        1.05     
!   HN        0.98     KK        1.00*    KP        1.03     LA        0.97     
!   MC        1.01     MK        1.00*    NL        1.00     NY        0.94     
!   ON        1.05     OV        1.01     PT        1.00*    SC        1.09     
!   WF        0.93     WZ        0.96     
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        1.00*    GC        0.91     HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.00     LA        1.00*    
!   MC        1.00*    MK        1.13     NL        1.00*    NY        0.89     
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.00*    GC        0.94     HH        1.00*    
!   HN        1.00*    KK        0.99     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        0.96     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.04     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.01     GC        1.03     HH        1.01     
!   HN        0.97     KK        1.00*    KP        1.03     LA        0.99     
!   MC        0.99     MK        1.00*    NL        1.01     NY        0.98     
!   ON        1.03     OV        0.98     PT        1.00*    SC        1.06     
!   WF        0.94     WZ        0.95     
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GC        0.98     HH        1.00*    
!   HN        1.00*    KK        1.02     KP        0.99     LA        1.00*    
!   MC        1.00*    MK        1.06     NL        1.00*    NY        1.01     
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.86     FD        1.00*    GC        0.93     HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        0.96     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.95     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        1.00     HH        1.02     
!   HN        0.98     KK        1.00*    KP        1.02     LA        1.00     
!   MC        0.86     MK        1.00*    NL        1.03     NY        1.05     
!   ON        1.00     OV        0.94     PT        1.00*    SC        1.05     
!   WF        0.91     WZ        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.00*    GC        0.94     HH        1.00*    
!   HN        1.00*    KK        1.02     KP        1.08     LA        1.00*    
!   MC        1.00*    MK        1.03     NL        1.00*    NY        0.90     
!   ON        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.269933Jy  sigma=0.001275
! Fit after  self-cal, rms=0.268385Jy  sigma=0.001272
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.206 mas, bmaj=3.117 mas, bpa=14.68 degrees
! Estimated noise=568.429 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 (-9.5, 13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00836392 Jy
! Component: 100  -  total flux cleaned = 0.0138094 Jy
! Component: 150  -  total flux cleaned = 0.0180298 Jy
! Component: 200  -  total flux cleaned = 0.0213797 Jy
! Total flux subtracted in 200 components = 0.0213798 Jy
! Clean residual min=-0.003929 max=0.005299 Jy/beam
! Clean residual mean=0.000845 rms=0.001205 Jy/beam
! Combined flux in latest and established models = 0.364857 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 56 components and 0.364857 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268037Jy  sigma=0.001269
! Fit after  self-cal, rms=0.268097Jy  sigma=0.001269
! 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.268097Jy  sigma=0.001269
! Fit after  self-cal, rms=0.274965Jy  sigma=0.001265
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.225 mas, bmaj=3.116 mas, bpa=14.47 degrees
! Estimated noise=571.873 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00122824 Jy
! Component: 100  -  total flux cleaned = 0.00255263 Jy
! Component: 150  -  total flux cleaned = 0.00372708 Jy
! Component: 200  -  total flux cleaned = 0.00444906 Jy
! Total flux subtracted in 200 components = 0.00444906 Jy
! Clean residual min=-0.002744 max=0.004587 Jy/beam
! Clean residual mean=0.000799 rms=0.000984 Jy/beam
! Combined flux in latest and established models = 0.369306 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 72 components and 0.369306 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274891Jy  sigma=0.001265
! Fit after  self-cal, rms=0.275452Jy  sigma=0.001264
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 (-29.5, 19).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00477971 Jy
! Component: 100  -  total flux cleaned = 0.00793179 Jy
! Component: 150  -  total flux cleaned = 0.00996566 Jy
! Component: 200  -  total flux cleaned = 0.0114755 Jy
! Total flux subtracted in 200 components = 0.0114755 Jy
! Clean residual min=-0.002903 max=0.003976 Jy/beam
! Clean residual mean=0.000719 rms=0.000903 Jy/beam
! Combined flux in latest and established models = 0.380782 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 98 components and 0.380782 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275329Jy  sigma=0.001263
! Fit after  self-cal, rms=0.275326Jy  sigma=0.001263
! Inverting map 
! Added new window around map position (-43, 14).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00412814 Jy
! Component: 100  -  total flux cleaned = 0.00676726 Jy
! Component: 150  -  total flux cleaned = 0.00889523 Jy
! Component: 200  -  total flux cleaned = 0.0107264 Jy
! Total flux subtracted in 200 components = 0.0107264 Jy
! Clean residual min=-0.002711 max=0.003827 Jy/beam
! Clean residual mean=0.000631 rms=0.000833 Jy/beam
! Combined flux in latest and established models = 0.391508 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 116 components and 0.391508 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275241Jy  sigma=0.001263
! Fit after  self-cal, rms=0.275251Jy  sigma=0.001263
! Inverting map 
! Added new window around map position (-51.5, 43).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00375734 Jy
! Component: 100  -  total flux cleaned = 0.00607355 Jy
! Component: 150  -  total flux cleaned = 0.00804497 Jy
! Component: 200  -  total flux cleaned = 0.00983995 Jy
! Total flux subtracted in 200 components = 0.00983995 Jy
! Clean residual min=-0.002662 max=0.003356 Jy/beam
! Clean residual mean=0.000547 rms=0.000788 Jy/beam
! Combined flux in latest and established models = 0.401348 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 131 components and 0.401348 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275175Jy  sigma=0.001262
! Fit after  self-cal, rms=0.275191Jy  sigma=0.001262
! 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.275191Jy  sigma=0.001262
! Fit after  self-cal, rms=0.276560Jy  sigma=0.001262
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.23 mas, bmaj=3.125 mas, bpa=14.36 degrees
! Estimated noise=570.441 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000968808 Jy
! Component: 100  -  total flux cleaned = 0.00235596 Jy
! Component: 150  -  total flux cleaned = 0.0035484 Jy
! Component: 200  -  total flux cleaned = 0.00471446 Jy
! Total flux subtracted in 200 components = 0.00471446 Jy
! Clean residual min=-0.002596 max=0.003378 Jy/beam
! Clean residual mean=0.000476 rms=0.000769 Jy/beam
! Combined flux in latest and established models = 0.406063 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 139 components and 0.406063 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276515Jy  sigma=0.001262
! Fit after  self-cal, rms=0.276728Jy  sigma=0.001262
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 (-56.5, -17).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00169703 Jy
! Component: 100  -  total flux cleaned = 0.00241897 Jy
! Component: 150  -  total flux cleaned = 0.00345439 Jy
! Component: 200  -  total flux cleaned = 0.00452969 Jy
! Total flux subtracted in 200 components = 0.00452969 Jy
! Clean residual min=-0.002523 max=0.003220 Jy/beam
! Clean residual mean=0.000438 rms=0.000744 Jy/beam
! Combined flux in latest and established models = 0.410592 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 152 components and 0.410592 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276656Jy  sigma=0.001261
! Fit after  self-cal, rms=0.276646Jy  sigma=0.001261
! Inverting map 
! Added new window around map position (27.5, 49.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00278604 Jy
! Component: 100  -  total flux cleaned = 0.00386472 Jy
! Component: 150  -  total flux cleaned = 0.00459672 Jy
! Component: 200  -  total flux cleaned = 0.00540356 Jy
! Total flux subtracted in 200 components = 0.00540356 Jy
! Clean residual min=-0.002723 max=0.003109 Jy/beam
! Clean residual mean=0.000391 rms=0.000737 Jy/beam
! Combined flux in latest and established models = 0.415996 Jy
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 166 components and 0.415996 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276594Jy  sigma=0.001261
! Fit after  self-cal, rms=0.276605Jy  sigma=0.001261
! 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.276605Jy  sigma=0.001261
! Fit after  self-cal, rms=0.277279Jy  sigma=0.001261
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.508 mas, bmaj=8.741 mas, bpa=81.31 degrees
! Estimated noise=832.16 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00376787 Jy
! Component: 100  -  total flux cleaned = 0.00660666 Jy
! Component: 150  -  total flux cleaned = 0.00895317 Jy
! Component: 200  -  total flux cleaned = 0.011001 Jy
! Total flux subtracted in 200 components = 0.011001 Jy
! Clean residual min=-0.002915 max=0.004815 Jy/beam
! Clean residual mean=0.001109 rms=0.001262 Jy/beam
! Combined flux in latest and established models = 0.426997 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 182 components and 0.426997 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277265Jy  sigma=0.001261
! Fit after  self-cal, rms=0.277373Jy  sigma=0.001261
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.00197334 Jy
! Component: 100  -  total flux cleaned = 0.00367142 Jy
! Component: 150  -  total flux cleaned = 0.00518865 Jy
! Component: 200  -  total flux cleaned = 0.00654719 Jy
! Total flux subtracted in 200 components = 0.00654719 Jy
! Clean residual min=-0.003057 max=0.004638 Jy/beam
! Clean residual mean=0.000939 rms=0.001258 Jy/beam
! Combined flux in latest and established models = 0.433544 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 191 components and 0.433544 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277374Jy  sigma=0.001261
! Fit after  self-cal, rms=0.277384Jy  sigma=0.001261
! 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.234 mas, bmaj=3.128 mas, bpa=14.28 degrees
! Estimated noise=569.905 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.234 x 3.128 at 14.28 degrees (North through East)
! Clean map  min=-0.0033031  max=0.2833 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
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.838 mas, bmaj=2.604 mas, bpa=21.26 degrees
! Estimated noise=1310.49 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.218527 Jy
! Component: 100  -  total flux cleaned = 0.272991 Jy
! Component: 150  -  total flux cleaned = 0.295539 Jy
! Component: 200  -  total flux cleaned = 0.308579 Jy
! Total flux subtracted in 200 components = 0.308579 Jy
! Clean residual min=-0.007791 max=0.009085 Jy/beam
! Clean residual mean=0.000166 rms=0.002034 Jy/beam
! Combined flux in latest and established models = 0.308579 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 0.308579 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.234 mas, bmaj=3.128 mas, bpa=14.28 degrees
! Estimated noise=569.905 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.0145931 Jy
! Component: 100  -  total flux cleaned = 0.0248038 Jy
! Component: 150  -  total flux cleaned = 0.0328905 Jy
! Component: 200  -  total flux cleaned = 0.0395937 Jy
! Total flux subtracted in 200 components = 0.0395937 Jy
! Clean residual min=-0.002772 max=0.005906 Jy/beam
! Clean residual mean=0.000884 rms=0.001119 Jy/beam
! Combined flux in latest and established models = 0.348172 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 48 components and 0.348172 Jy
! Inverting map 
! Added new window around map position (-14, 11).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00640683 Jy
! Component: 100  -  total flux cleaned = 0.0117558 Jy
! Component: 150  -  total flux cleaned = 0.0165987 Jy
! Component: 200  -  total flux cleaned = 0.0210415 Jy
! Total flux subtracted in 200 components = 0.0210415 Jy
! Clean residual min=-0.002440 max=0.003953 Jy/beam
! Clean residual mean=0.000745 rms=0.000913 Jy/beam
! Combined flux in latest and established models = 0.369214 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 78 components and 0.369214 Jy
! Inverting map 
! Added new window around map position (48, 35).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00442705 Jy
! Component: 100  -  total flux cleaned = 0.0082522 Jy
! Component: 150  -  total flux cleaned = 0.0117908 Jy
! Component: 200  -  total flux cleaned = 0.0150852 Jy
! Total flux subtracted in 200 components = 0.0150852 Jy
! Clean residual min=-0.002311 max=0.003542 Jy/beam
! Clean residual mean=0.000636 rms=0.000818 Jy/beam
! Combined flux in latest and established models = 0.384299 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 101 components and 0.384299 Jy
! Inverting map 
! Added new window around map position (-7, 50.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00352907 Jy
! Component: 100  -  total flux cleaned = 0.00638558 Jy
! Component: 150  -  total flux cleaned = 0.0087417 Jy
! Component: 200  -  total flux cleaned = 0.0110825 Jy
! Total flux subtracted in 200 components = 0.0110825 Jy
! Clean residual min=-0.002259 max=0.003200 Jy/beam
! Clean residual mean=0.000559 rms=0.000760 Jy/beam
! Combined flux in latest and established models = 0.395382 Jy
! Adding 59 model components to the UV plane model.
! The established model now contains 114 components and 0.395381 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.508 mas, bmaj=8.741 mas, bpa=81.31 degrees
! Estimated noise=832.16 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00647797 Jy
! Component: 100  -  total flux cleaned = 0.0112957 Jy
! Component: 150  -  total flux cleaned = 0.0154138 Jy
! Component: 200  -  total flux cleaned = 0.0190181 Jy
! Total flux subtracted in 200 components = 0.0190181 Jy
! Clean residual min=-0.002842 max=0.004965 Jy/beam
! Clean residual mean=0.001488 rms=0.001173 Jy/beam
! Combined flux in latest and established models = 0.414399 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.00320772 Jy
! Component: 100  -  total flux cleaned = 0.00608805 Jy
! Component: 150  -  total flux cleaned = 0.00868685 Jy
! Component: 200  -  total flux cleaned = 0.0110384 Jy
! Total flux subtracted in 200 components = 0.0110384 Jy
! Clean residual min=-0.002864 max=0.004770 Jy/beam
! Clean residual mean=0.001187 rms=0.001122 Jy/beam
! Combined flux in latest and established models = 0.425438 Jy
! Adding 69 model components to the UV plane model.
! The established model now contains 170 components and 0.425438 Jy
! Inverting map 
! Added new window around map position (8.5, 59.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00460443 Jy
! Component: 100  -  total flux cleaned = 0.00739747 Jy
! Component: 150  -  total flux cleaned = 0.00978991 Jy
! Component: 200  -  total flux cleaned = 0.0119299 Jy
! Total flux subtracted in 200 components = 0.0119299 Jy
! Clean residual min=-0.002568 max=0.003987 Jy/beam
! Clean residual mean=0.000956 rms=0.001054 Jy/beam
! Combined flux in latest and established models = 0.437368 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 197 components and 0.437368 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.234 mas, bmaj=3.128 mas, bpa=14.28 degrees
! Estimated noise=569.905 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.12048e-05 Jy
! Component: 100  -  total flux cleaned = 0.00030306 Jy
! Component: 150  -  total flux cleaned = 0.000551593 Jy
! Component: 200  -  total flux cleaned = 0.000784287 Jy
! Total flux subtracted in 200 components = 0.000784287 Jy
! Clean residual min=-0.002372 max=0.002738 Jy/beam
! Clean residual mean=0.000270 rms=0.000673 Jy/beam
! Combined flux in latest and established models = 0.438152 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 218 components and 0.438152 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.277291Jy  sigma=0.001261
! Fit after  self-cal, rms=0.277258Jy  sigma=0.001260
wmodel J1104+3812_S_1999_05_10_pus_map.mod
! Writing 218 model components to file: J1104+3812_S_1999_05_10_pus_map.mod
wobs J1104+3812_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1104+3812_S_1999_05_10_pus_uvs.fits
wwins J1104+3812_S_1999_05_10_pus_map.win
! wwins: Wrote 12 windows to J1104+3812_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.00121267 Jy
! Component: 100  -  total flux cleaned = 0.00189508 Jy
! Component: 150  -  total flux cleaned = 0.00259341 Jy
! Component: 200  -  total flux cleaned = 0.00318618 Jy
! Component: 250  -  total flux cleaned = 0.00372422 Jy
! Component: 300  -  total flux cleaned = 0.00437122 Jy
! Component: 350  -  total flux cleaned = 0.00492473 Jy
! Component: 400  -  total flux cleaned = 0.00558364 Jy
! Component: 450  -  total flux cleaned = 0.00607797 Jy
! Component: 500  -  total flux cleaned = 0.00667725 Jy
! Component: 550  -  total flux cleaned = 0.00730408 Jy
! Component: 600  -  total flux cleaned = 0.00784889 Jy
! Component: 650  -  total flux cleaned = 0.00842146 Jy
! Component: 700  -  total flux cleaned = 0.00895131 Jy
! Component: 750  -  total flux cleaned = 0.00954323 Jy
! Component: 800  -  total flux cleaned = 0.010059 Jy
! Component: 850  -  total flux cleaned = 0.0105692 Jy
! Component: 900  -  total flux cleaned = 0.0111065 Jy
! Component: 950  -  total flux cleaned = 0.0115385 Jy
! Component: 1000  -  total flux cleaned = 0.0120645 Jy
! Component: 1050  -  total flux cleaned = 0.0125195 Jy
! Component: 1100  -  total flux cleaned = 0.0129696 Jy
! Component: 1150  -  total flux cleaned = 0.0133519 Jy
! Component: 1200  -  total flux cleaned = 0.0138253 Jy
! Component: 1250  -  total flux cleaned = 0.0142006 Jy
! Component: 1300  -  total flux cleaned = 0.0146034 Jy
! Component: 1350  -  total flux cleaned = 0.0149417 Jy
! Component: 1400  -  total flux cleaned = 0.0153076 Jy
! Component: 1450  -  total flux cleaned = 0.0156404 Jy
! Component: 1500  -  total flux cleaned = 0.0160005 Jy
! Component: 1550  -  total flux cleaned = 0.016358 Jy
! Component: 1600  -  total flux cleaned = 0.0166535 Jy
! Component: 1650  -  total flux cleaned = 0.0169469 Jy
! Component: 1700  -  total flux cleaned = 0.0172093 Jy
! Component: 1750  -  total flux cleaned = 0.0174699 Jy
! Component: 1800  -  total flux cleaned = 0.0177573 Jy
! Component: 1850  -  total flux cleaned = 0.0180141 Jy
! Component: 1900  -  total flux cleaned = 0.0183258 Jy
! Component: 1950  -  total flux cleaned = 0.0185512 Jy
! Component: 2000  -  total flux cleaned = 0.0187471 Jy
! Total flux subtracted in 2048 components = 0.01897 Jy
! Clean residual min=-0.001578 max=0.001808 Jy/beam
! Clean residual mean=0.000127 rms=0.000501 Jy/beam
! Combined flux in latest and established models = 0.457122 Jy
keep
! Adding 162 model components to the UV plane model.
! The established model now contains 379 components and 0.457122 Jy
![Exited script file: muppet]
wmap "J1104+3812_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.234 x 3.128 at 14.28 degrees (North through East)
! Clean map  min=-0.0029359  max=0.28336 Jy/beam
! Writing clean map to FITS file: J1104+3812_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 0.283361 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000501586 
device "J1104+3812_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1104+3812_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.53104 0.53104 1.06208 2.12416 4.24832 8.49664 16.9933 33.9865 67.9731
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.283 
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.234 x 3.128 at 14.28 degrees (North through East)
! Clean map  min=-0.0029359  max=0.28336 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1104+3812_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1104+3812_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1104+3812_S_1999_05_10_pus_uvs.log closed on Tue Jan 22 12:27:11 2008