! Started logfile: J1740+5211_S_2000_12_04_pus_uvs.log on Wed Oct 17 17:16:35 2007
obs J1740+5211_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1740+5211_S_2000_12_04_pus_uva.fits
! AN table 1: 292 integrations on 190 of 190 possible baselines.
! AN table 2: 41 integrations on 190 of 190 possible baselines.
! AN table 3: 98 integrations on 190 of 190 possible baselines.
! AN table 4: 76 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.142448 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1740+5211
! 
! 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 2169 lines of history.
! 
! Reading 54888 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 J1740+5211_S_2000_12_04_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 4171 telescope corrections were flagged in sub-array 1.
!  A total of 713 telescope corrections were flagged in sub-array 2.
!  A total of 1038 telescope corrections were flagged in sub-array 3.
!  A total of 1082 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 4171 telescope corrections were flagged in sub-array 1.
!  A total of 713 telescope corrections were flagged in sub-array 2.
!  A total of 1038 telescope corrections were flagged in sub-array 3.
!  A total of 1082 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 4171 telescope corrections were flagged in sub-array 1.
!  A total of 713 telescope corrections were flagged in sub-array 2.
!  A total of 1039 telescope corrections were flagged in sub-array 3.
!  A total of 1082 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 4221 telescope corrections were flagged in sub-array 1.
!  A total of 713 telescope corrections were flagged in sub-array 2.
!  A total of 1038 telescope corrections were flagged in sub-array 3.
!  A total of 1082 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.914208Jy  sigma=0.006108
! Fit after  self-cal, rms=0.660200Jy  sigma=0.004206
! 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.838 mas, bmaj=2.564 mas, bpa=3.094 degrees
! Estimated noise=851.258 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.377969 Jy
! Component: 100  -  total flux cleaned = 0.46564 Jy
! Total flux subtracted in 100 components = 0.46564 Jy
! Clean residual min=-0.024494 max=0.035944 Jy/beam
! Clean residual mean=0.000105 rms=0.006914 Jy/beam
! Combined flux in latest and established models = 0.46564 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.46564 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.450051Jy  sigma=0.002344
! Fit after  self-cal, rms=0.449941Jy  sigma=0.002344
! 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.183 mas, bmaj=3.106 mas, bpa=-7.111 degrees
! Estimated noise=444.541 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.0707313 Jy
! Component: 100  -  total flux cleaned = 0.107275 Jy
! Component: 150  -  total flux cleaned = 0.127902 Jy
! Component: 200  -  total flux cleaned = 0.139902 Jy
! Total flux subtracted in 200 components = 0.139902 Jy
! Clean residual min=-0.008900 max=0.013674 Jy/beam
! Clean residual mean=-0.000008 rms=0.002606 Jy/beam
! Combined flux in latest and established models = 0.605542 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 34 components and 0.605542 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.440618Jy  sigma=0.002218
! Fit after  self-cal, rms=0.439977Jy  sigma=0.002217
! Inverting map 
! Added new window around map position (0, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0139484 Jy
! Component: 100  -  total flux cleaned = 0.0217289 Jy
! Component: 150  -  total flux cleaned = 0.0270405 Jy
! Component: 200  -  total flux cleaned = 0.0307764 Jy
! Total flux subtracted in 200 components = 0.0307764 Jy
! Clean residual min=-0.009629 max=0.008208 Jy/beam
! Clean residual mean=-0.000269 rms=0.002452 Jy/beam
! Combined flux in latest and established models = 0.636318 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 59 components and 0.636318 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.439479Jy  sigma=0.002212
! Fit after  self-cal, rms=0.439397Jy  sigma=0.002211
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.99     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00     KP        0.99     
!   LA        1.02     MA        1.08     MC        0.97     MK        1.01     
!   NL        1.01     NY        1.03     OV        0.95     PT        0.98     
!   SC        1.06     TS        1.12     WF        0.99     WZ        0.99     
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.05     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.43     MC        1.03     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.05     TS        1.00*    WF        1.09     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.03     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.03     KP        1.10     
!   LA        1.05     MA        0.55     MC        1.08     MK        1.04     
!   NL        1.05     NY        1.02     OV        1.02     PT        1.04     
!   SC        1.00*    TS        0.98     WF        0.98     WZ        1.06     
! 
!  A total of 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.99     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        0.99     
!   LA        1.02     MA        0.63     MC        1.00*    MK        1.00*    
!   NL        0.95     NY        0.98     OV        1.04     PT        0.99     
!   SC        1.02     TS        1.00*    WF        1.86     WZ        1.02     
! 
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.02     KP        0.99     
!   LA        0.99     MA        1.05     MC        1.36     MK        1.04     
!   NL        0.96     NY        0.99     OV        0.91     PT        1.01     
!   SC        1.02     TS        1.12     WF        1.01     WZ        0.95     
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.76     MC        1.74     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        0.93     TS        1.00*    WF        1.08     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.05     GC        1.14     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.99     KP        0.95     
!   LA        1.04     MA        1.31     MC        1.29     MK        1.05     
!   NL        0.98     NY        1.01     OV        1.00     PT        1.05     
!   SC        1.00*    TS        1.00     WF        1.06     WZ        1.09     
! 
!  A total of 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        1.00     
!   LA        1.00     MA        1.21     MC        1.00*    MK        1.00*    
!   NL        0.91     NY        1.00     OV        0.99     PT        1.02     
!   SC        1.00     TS        1.00*    WF        1.97     WZ        1.00     
! 
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.13     GC        1.20     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.99     KP        1.05     
!   LA        1.04     MA        0.90     MC        0.99     MK        1.00     
!   NL        1.01     NY        0.87     OV        1.04     PT        1.02     
!   SC        1.08     TS        1.12     WF        1.01     WZ        0.86     
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.73     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.38     MC        0.95     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.27     TS        1.00*    WF        0.99     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.72     FD        0.93     GC        1.11     GG        1.00*    
!   HH        1.00*    HN        0.83     KK        0.96     KP        0.97     
!   LA        0.99     MA        1.02     MC        0.83     MK        1.02     
!   NL        0.89     NY        1.08     OV        0.74     PT        0.87     
!   SC        1.00*    TS        1.02     WF        1.00     WZ        0.93     
! 
!  A total of 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.05     GC        1.09     GG        1.00*    
!   HH        1.00*    HN        1.07     KK        1.00*    KP        1.09     
!   LA        1.07     MA        0.75     MC        1.00*    MK        1.00*    
!   NL        1.06     NY        0.99     OV        1.06     PT        1.05     
!   SC        0.98     TS        1.00*    WF        1.00     WZ        0.84     
! 
! 
! Correcting IF 4.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.03     GC        1.19     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        0.98     KP        0.97     
!   LA        0.98     MA        0.73     MC        1.08     MK        1.03     
!   NL        1.02     NY        0.70     OV        0.96     PT        0.98     
!   SC        1.08     TS        1.18     WF        0.94     WZ        1.07     
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.90     MC        0.84     MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.00     TS        1.00*    WF        0.96     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.06     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.01     KP        0.95     
!   LA        1.05     MA        0.98     MC        0.86     MK        1.03     
!   NL        1.06     NY        1.01     OV        1.02     PT        1.05     
!   SC        1.00*    TS        0.98     WF        1.12     WZ        1.12     
! 
!  A total of 57 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        1.02     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.00*    KP        1.02     
!   LA        0.99     MA        1.31     MC        1.00*    MK        1.00*    
!   NL        0.98     NY        1.01     OV        1.04     PT        1.02     
!   SC        1.05     TS        1.00*    WF        1.18     WZ        1.03     
! 
! 
! Fit before self-cal, rms=0.439397Jy  sigma=0.002211
! Fit after  self-cal, rms=0.366576Jy  sigma=0.002150
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.189 mas, bmaj=3.123 mas, bpa=-7.123 degrees
! Estimated noise=447.627 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.00308778 Jy
! Component: 100  -  total flux cleaned = 0.00296127 Jy
! Component: 150  -  total flux cleaned = 0.00295658 Jy
! Component: 200  -  total flux cleaned = 0.00295556 Jy
! Total flux subtracted in 200 components = 0.00295556 Jy
! Clean residual min=-0.007517 max=0.007559 Jy/beam
! Clean residual mean=0.000327 rms=0.002240 Jy/beam
! Combined flux in latest and established models = 0.639274 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 69 components and 0.639274 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.366493Jy  sigma=0.002150
! Fit after  self-cal, rms=0.366685Jy  sigma=0.002148
! 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.366685Jy  sigma=0.002148
! Fit after  self-cal, rms=0.355029Jy  sigma=0.002022
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.187 mas, bmaj=3.115 mas, bpa=-7.715 degrees
! Estimated noise=448.144 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00256136 Jy
! Component: 100  -  total flux cleaned = 0.00240799 Jy
! Component: 150  -  total flux cleaned = 0.00251627 Jy
! Component: 200  -  total flux cleaned = 0.00260469 Jy
! Total flux subtracted in 200 components = 0.00260469 Jy
! Clean residual min=-0.005882 max=0.007016 Jy/beam
! Clean residual mean=0.000289 rms=0.001595 Jy/beam
! Combined flux in latest and established models = 0.641878 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 77 components and 0.641878 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354972Jy  sigma=0.002019
! Fit after  self-cal, rms=0.357894Jy  sigma=0.001953
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.00183813 Jy
! Component: 100  -  total flux cleaned = -0.00223847 Jy
! Component: 150  -  total flux cleaned = -0.00240585 Jy
! Component: 200  -  total flux cleaned = -0.00240643 Jy
! Total flux subtracted in 200 components = -0.00240643 Jy
! Clean residual min=-0.005971 max=0.006500 Jy/beam
! Clean residual mean=0.000302 rms=0.001556 Jy/beam
! Combined flux in latest and established models = 0.639472 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 87 components and 0.639472 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357867Jy  sigma=0.001953
! Fit after  self-cal, rms=0.357871Jy  sigma=0.001953
! 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.357871Jy  sigma=0.001953
! Fit after  self-cal, rms=0.365008Jy  sigma=0.001927
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.19 mas, bmaj=3.109 mas, bpa=-7.705 degrees
! Estimated noise=447.964 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00277489 Jy
! Component: 100  -  total flux cleaned = 0.00276981 Jy
! Component: 150  -  total flux cleaned = 0.00283053 Jy
! Component: 200  -  total flux cleaned = 0.002882 Jy
! Total flux subtracted in 200 components = 0.002882 Jy
! Clean residual min=-0.004942 max=0.006206 Jy/beam
! Clean residual mean=0.000273 rms=0.001416 Jy/beam
! Combined flux in latest and established models = 0.642354 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 95 components and 0.642354 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.364994Jy  sigma=0.001927
! Fit after  self-cal, rms=0.365194Jy  sigma=0.001926
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 (11.5, 47).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00516842 Jy
! Component: 100  -  total flux cleaned = 0.00569465 Jy
! Component: 150  -  total flux cleaned = 0.00569588 Jy
! Component: 200  -  total flux cleaned = 0.00548607 Jy
! Total flux subtracted in 200 components = 0.00548607 Jy
! Clean residual min=-0.004921 max=0.006192 Jy/beam
! Clean residual mean=0.000232 rms=0.001397 Jy/beam
! Combined flux in latest and established models = 0.64784 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 113 components and 0.64784 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.365090Jy  sigma=0.001925
! Fit after  self-cal, rms=0.365071Jy  sigma=0.001925
! Inverting map 
! Added new window around map position (-59, 52).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00497556 Jy
! Component: 100  -  total flux cleaned = 0.00555111 Jy
! Component: 150  -  total flux cleaned = 0.00600852 Jy
! Component: 200  -  total flux cleaned = 0.00668011 Jy
! Total flux subtracted in 200 components = 0.00668011 Jy
! Clean residual min=-0.004829 max=0.005427 Jy/beam
! Clean residual mean=0.000202 rms=0.001375 Jy/beam
! Combined flux in latest and established models = 0.65452 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 126 components and 0.65452 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.364925Jy  sigma=0.001924
! Fit after  self-cal, rms=0.364916Jy  sigma=0.001924
! 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.364916Jy  sigma=0.001924
! Fit after  self-cal, rms=0.363695Jy  sigma=0.001923
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.91 mas, bmaj=9.682 mas, bpa=47.06 degrees
! Estimated noise=698.594 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00377263 Jy
! Component: 100  -  total flux cleaned = 0.00613679 Jy
! Component: 150  -  total flux cleaned = 0.00778689 Jy
! Component: 200  -  total flux cleaned = 0.00857951 Jy
! Total flux subtracted in 200 components = 0.00857951 Jy
! Clean residual min=-0.005470 max=0.008952 Jy/beam
! Clean residual mean=0.000586 rms=0.002400 Jy/beam
! Combined flux in latest and established models = 0.6631 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 140 components and 0.6631 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.363690Jy  sigma=0.001924
! Fit after  self-cal, rms=0.363698Jy  sigma=0.001924
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.00108656 Jy
! Component: 100  -  total flux cleaned = 0.00167127 Jy
! Component: 150  -  total flux cleaned = 0.00193534 Jy
! Component: 200  -  total flux cleaned = 0.0021346 Jy
! Total flux subtracted in 200 components = 0.0021346 Jy
! Clean residual min=-0.005363 max=0.009019 Jy/beam
! Clean residual mean=0.000568 rms=0.002387 Jy/beam
! Combined flux in latest and established models = 0.665234 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 144 components and 0.665234 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.363699Jy  sigma=0.001924
! Fit after  self-cal, rms=0.363702Jy  sigma=0.001924
! 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.189 mas, bmaj=3.106 mas, bpa=-7.717 degrees
! Estimated noise=448.247 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.189 x 3.106 at -7.717 degrees (North through East)
! Clean map  min=-0.0047061  max=0.49864 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.855 mas, bmaj=2.499 mas, bpa=-3.02 degrees
! Estimated noise=829.847 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.368863 Jy
! Component: 100  -  total flux cleaned = 0.458788 Jy
! Component: 150  -  total flux cleaned = 0.502268 Jy
! Component: 200  -  total flux cleaned = 0.530801 Jy
! Total flux subtracted in 200 components = 0.530801 Jy
! Clean residual min=-0.009131 max=0.015775 Jy/beam
! Clean residual mean=0.000082 rms=0.002511 Jy/beam
! Combined flux in latest and established models = 0.530801 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 20 model components to the UV plane model.
! The established model now contains 20 components and 0.530801 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.189 mas, bmaj=3.106 mas, bpa=-7.717 degrees
! Estimated noise=448.247 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.0401342 Jy
! Component: 100  -  total flux cleaned = 0.0635298 Jy
! Component: 150  -  total flux cleaned = 0.0785849 Jy
! Component: 200  -  total flux cleaned = 0.0892656 Jy
! Total flux subtracted in 200 components = 0.0892656 Jy
! Clean residual min=-0.005202 max=0.006446 Jy/beam
! Clean residual mean=0.000484 rms=0.001604 Jy/beam
! Combined flux in latest and established models = 0.620067 Jy
! Adding 59 model components to the UV plane model.
! The established model now contains 69 components and 0.620067 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.91 mas, bmaj=9.682 mas, bpa=47.06 degrees
! Estimated noise=698.594 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0173495 Jy
! Component: 100  -  total flux cleaned = 0.0263729 Jy
! Component: 150  -  total flux cleaned = 0.0324946 Jy
! Component: 200  -  total flux cleaned = 0.0367593 Jy
! Total flux subtracted in 200 components = 0.0367593 Jy
! Clean residual min=-0.004976 max=0.009285 Jy/beam
! Clean residual mean=0.000747 rms=0.002411 Jy/beam
! Combined flux in latest and established models = 0.656826 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.00301424 Jy
! Component: 100  -  total flux cleaned = 0.00518816 Jy
! Component: 150  -  total flux cleaned = 0.00671913 Jy
! Component: 200  -  total flux cleaned = 0.00722681 Jy
! Total flux subtracted in 200 components = 0.00722681 Jy
! Clean residual min=-0.005412 max=0.009162 Jy/beam
! Clean residual mean=0.000576 rms=0.002377 Jy/beam
! Combined flux in latest and established models = 0.664053 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 122 components and 0.664053 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.189 mas, bmaj=3.106 mas, bpa=-7.717 degrees
! Estimated noise=448.247 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00031249 Jy
! Component: 100  -  total flux cleaned = 0.000623866 Jy
! Component: 150  -  total flux cleaned = 0.00062424 Jy
! Component: 200  -  total flux cleaned = 0.000386294 Jy
! Total flux subtracted in 200 components = 0.000386294 Jy
! Clean residual min=-0.004702 max=0.005825 Jy/beam
! Clean residual mean=0.000167 rms=0.001389 Jy/beam
! Combined flux in latest and established models = 0.664439 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 138 components and 0.664439 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.363739Jy  sigma=0.001924
! Fit after  self-cal, rms=0.363728Jy  sigma=0.001924
wmodel J1740+5211_S_2000_12_04_pus_map.mod
! Writing 138 model components to file: J1740+5211_S_2000_12_04_pus_map.mod
wobs J1740+5211_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1740+5211_S_2000_12_04_pus_uvs.fits
wwins J1740+5211_S_2000_12_04_pus_map.win
! wwins: Wrote 4 windows to J1740+5211_S_2000_12_04_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.00264815 Jy
! Component: 100  -  total flux cleaned = 0.00509804 Jy
! Component: 150  -  total flux cleaned = 0.00743117 Jy
! Component: 200  -  total flux cleaned = 0.00930849 Jy
! Component: 250  -  total flux cleaned = 0.0112044 Jy
! Component: 300  -  total flux cleaned = 0.0127104 Jy
! Component: 350  -  total flux cleaned = 0.0142611 Jy
! Component: 400  -  total flux cleaned = 0.0157763 Jy
! Component: 450  -  total flux cleaned = 0.0170249 Jy
! Component: 500  -  total flux cleaned = 0.0180209 Jy
! Component: 550  -  total flux cleaned = 0.0189999 Jy
! Component: 600  -  total flux cleaned = 0.0195944 Jy
! Component: 650  -  total flux cleaned = 0.0202555 Jy
! Component: 700  -  total flux cleaned = 0.0209811 Jy
! Component: 750  -  total flux cleaned = 0.0216257 Jy
! Component: 800  -  total flux cleaned = 0.0223341 Jy
! Component: 850  -  total flux cleaned = 0.0229637 Jy
! Component: 900  -  total flux cleaned = 0.0236559 Jy
! Component: 950  -  total flux cleaned = 0.0242042 Jy
! Component: 1000  -  total flux cleaned = 0.0248153 Jy
! Component: 1050  -  total flux cleaned = 0.0255554 Jy
! Component: 1100  -  total flux cleaned = 0.0261552 Jy
! Component: 1150  -  total flux cleaned = 0.0268817 Jy
! Component: 1200  -  total flux cleaned = 0.0274053 Jy
! Component: 1250  -  total flux cleaned = 0.0280541 Jy
! Component: 1300  -  total flux cleaned = 0.0286973 Jy
! Component: 1350  -  total flux cleaned = 0.0291443 Jy
! Component: 1400  -  total flux cleaned = 0.0296508 Jy
! Component: 1450  -  total flux cleaned = 0.0300909 Jy
! Component: 1500  -  total flux cleaned = 0.0305899 Jy
! Component: 1550  -  total flux cleaned = 0.0309616 Jy
! Component: 1600  -  total flux cleaned = 0.031392 Jy
! Component: 1650  -  total flux cleaned = 0.0317587 Jy
! Component: 1700  -  total flux cleaned = 0.0320019 Jy
! Component: 1750  -  total flux cleaned = 0.0323639 Jy
! Component: 1800  -  total flux cleaned = 0.0326638 Jy
! Component: 1850  -  total flux cleaned = 0.0330211 Jy
! Component: 1900  -  total flux cleaned = 0.0332581 Jy
! Component: 1950  -  total flux cleaned = 0.0334934 Jy
! Component: 2000  -  total flux cleaned = 0.0337857 Jy
! Total flux subtracted in 2048 components = 0.03396 Jy
! Clean residual min=-0.004245 max=0.003409 Jy/beam
! Clean residual mean=-0.000047 rms=0.001145 Jy/beam
! Combined flux in latest and established models = 0.698399 Jy
keep
! Adding 177 model components to the UV plane model.
! The established model now contains 315 components and 0.698399 Jy
![Exited script file: muppet]
wmap "J1740+5211_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.189 x 3.106 at -7.717 degrees (North through East)
! Clean map  min=-0.0042947  max=0.49876 Jy/beam
! Writing clean map to FITS file: J1740+5211_S_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.498756 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00114729 
device "J1740+5211_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1740+5211_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.690093 0.690093 1.38019 2.76037 5.52074 11.0415 22.083 44.1659 88.3319
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0034 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.498 
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.189 x 3.106 at -7.717 degrees (North through East)
! Clean map  min=-0.0042947  max=0.49876 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1740+5211_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1740+5211_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1740+5211_S_2000_12_04_pus_uvs.log closed on Wed Oct 17 17:16:56 2007