! Started logfile: J1740+5211_S_2000_05_22_pus_uvs.log on Mon Nov 19 18:55:13 2007
obs J1740+5211_S_2000_05_22_pus_uva.fits
! Reading UV FITS file: J1740+5211_S_2000_05_22_pus_uva.fits
! AN table 1: 243 integrations on 190 of 190 possible baselines.
! AN table 2: 52 integrations on 190 of 190 possible baselines.
! AN table 3: 540 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.189329 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 2003 lines of history.
! 
! Reading 120148 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_05_22_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 2866 telescope corrections were flagged in sub-array 1.
!  A total of 473 telescope corrections were flagged in sub-array 2.
!  A total of 7631 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2867 telescope corrections were flagged in sub-array 1.
!  A total of 473 telescope corrections were flagged in sub-array 2.
!  A total of 7632 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2869 telescope corrections were flagged in sub-array 1.
!  A total of 473 telescope corrections were flagged in sub-array 2.
!  A total of 7641 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2899 telescope corrections were flagged in sub-array 1.
!  A total of 473 telescope corrections were flagged in sub-array 2.
!  A total of 7632 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.841381Jy  sigma=0.006857
! Fit after  self-cal, rms=0.652016Jy  sigma=0.005138
! 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.934 mas, bmaj=2.41 mas, bpa=-4.905 degrees
! Estimated noise=518.185 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.316457 Jy
! Component: 100  -  total flux cleaned = 0.39311 Jy
! Total flux subtracted in 100 components = 0.39311 Jy
! Clean residual min=-0.007924 max=0.032996 Jy/beam
! Clean residual mean=0.000011 rms=0.002186 Jy/beam
! Combined flux in latest and established models = 0.39311 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.39311 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332051Jy  sigma=0.001818
! Fit after  self-cal, rms=0.331978Jy  sigma=0.001818
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0404799 Jy
! Component: 100  -  total flux cleaned = 0.0690803 Jy
! Total flux subtracted in 100 components = 0.0690803 Jy
! Clean residual min=-0.007175 max=0.016199 Jy/beam
! Clean residual mean=0.000002 rms=0.001659 Jy/beam
! Combined flux in latest and established models = 0.462191 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 25 components and 0.462191 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323520Jy  sigma=0.001644
! Fit after  self-cal, rms=0.323376Jy  sigma=0.001644
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0210648 Jy
! Component: 100  -  total flux cleaned = 0.0363927 Jy
! Total flux subtracted in 100 components = 0.0363927 Jy
! Clean residual min=-0.006752 max=0.010066 Jy/beam
! Clean residual mean=-0.000002 rms=0.001474 Jy/beam
! Combined flux in latest and established models = 0.498583 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 27 components and 0.498583 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.320969Jy  sigma=0.001585
! Fit after  self-cal, rms=0.320886Jy  sigma=0.001585
! Inverting map 
! Added new window around map position (0, 3.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0121625 Jy
! Component: 100  -  total flux cleaned = 0.0213934 Jy
! Total flux subtracted in 100 components = 0.0213934 Jy
! Clean residual min=-0.006451 max=0.006379 Jy/beam
! Clean residual mean=-0.000005 rms=0.001399 Jy/beam
! Combined flux in latest and established models = 0.519977 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 32 components and 0.519977 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.320034Jy  sigma=0.001562
! Fit after  self-cal, rms=0.319968Jy  sigma=0.001561
! 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.426 mas, bmaj=2.97 mas, bpa=12.7 degrees
! Estimated noise=247.883 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.0179333 Jy
! Component: 100  -  total flux cleaned = 0.028779 Jy
! Component: 150  -  total flux cleaned = 0.0360127 Jy
! Component: 200  -  total flux cleaned = 0.0409263 Jy
! Total flux subtracted in 200 components = 0.0409263 Jy
! Clean residual min=-0.005219 max=0.006826 Jy/beam
! Clean residual mean=-0.000138 rms=0.001271 Jy/beam
! Combined flux in latest and established models = 0.560903 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 57 components and 0.560903 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319299Jy  sigma=0.001538
! Fit after  self-cal, rms=0.319181Jy  sigma=0.001537
! Inverting map 
! Added new window around map position (3.5, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00759654 Jy
! Component: 100  -  total flux cleaned = 0.012092 Jy
! Component: 150  -  total flux cleaned = 0.0151987 Jy
! Component: 200  -  total flux cleaned = 0.016674 Jy
! Total flux subtracted in 200 components = 0.016674 Jy
! Clean residual min=-0.005134 max=0.004220 Jy/beam
! Clean residual mean=-0.000226 rms=0.001176 Jy/beam
! Combined flux in latest and established models = 0.577577 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 73 components and 0.577577 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319056Jy  sigma=0.001533
! Fit after  self-cal, rms=0.319024Jy  sigma=0.001532
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.97     KP        1.01     
!   MA        1.36     MC        1.56     MK        1.00     NL        0.95     
!   NY        1.03     OV        0.96     PT        0.94     SC        1.05     
!   TS        0.95     WF        1.11     WZ        1.01     LA        0.96     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.00*    KP        0.99     
!   MA        1.43     MC        0.95     MK        1.00*    NL        0.99     
!   NY        1.00     OV        1.07     PT        0.99     SC        0.98     
!   TS        1.00*    WF        0.91     WZ        0.98     LA        0.98     
! 
!  A total of 423 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        0.97     KP        0.98     
!   MA        0.50     MC        1.07     MK        0.98     NL        0.97     
!   NY        0.98     OV        0.98     PT        0.96     SC        1.06     
!   TS        0.97     WF        1.01     WZ        1.17     LA        0.95     
! 
! 
! Correcting IF 2.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.06     KP        0.97     
!   MA        1.33     MC        1.18     MK        0.95     NL        1.00     
!   NY        1.02     OV        0.95     PT        0.96     SC        1.04     
!   TS        1.02     WF        1.01     WZ        1.00     LA        0.93     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.01     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        0.98     
!   MA        1.16     MC        0.95     MK        1.00*    NL        1.02     
!   NY        0.99     OV        1.05     PT        1.00     SC        1.01     
!   TS        1.00*    WF        0.98     WZ        0.97     LA        0.94     
! 
!  A total of 423 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.99     KP        0.97     
!   MA        0.88     MC        1.38     MK        0.94     NL        1.01     
!   NY        1.08     OV        0.97     PT        0.98     SC        1.08     
!   TS        0.98     WF        1.02     WZ        1.44     LA        0.93     
! 
! 
! Correcting IF 3.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.05     KP        0.95     
!   MA        1.04     MC        1.04     MK        0.96     NL        0.97     
!   NY        1.03     OV        1.00     PT        0.94     SC        1.04     
!   TS        1.03     WF        1.02     WZ        1.07     LA        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.03     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        1.01     
!   MA        0.77     MC        1.01     MK        1.00*    NL        1.00     
!   NY        0.97     OV        1.08     PT        0.99     SC        0.99     
!   TS        1.00*    WF        1.01     WZ        1.03     LA        0.97     
! 
!  A total of 423 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.98     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.98     KP        0.99     
!   MA        0.71     MC        0.96     MK        0.95     NL        0.97     
!   NY        0.98     OV        1.01     PT        0.96     SC        1.09     
!   TS        1.01     WF        1.05     WZ        1.17     LA        0.97     
! 
! 
! Correcting IF 4.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.03     KP        0.96     
!   MA        0.98     MC        1.06     MK        1.04     NL        0.98     
!   NY        0.99     OV        0.98     PT        1.02     SC        1.05     
!   TS        1.05     WF        1.02     WZ        1.02     LA        0.99     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.03     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        1.01     
!   MA        1.10     MC        0.84     MK        1.00*    NL        1.01     
!   NY        0.98     OV        1.06     PT        1.02     SC        1.03     
!   TS        1.00*    WF        0.99     WZ        1.00     LA        1.00     
! 
!  A total of 423 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.01     KP        0.99     
!   MA        0.80     MC        0.87     MK        1.01     NL        0.99     
!   NY        0.95     OV        0.99     PT        1.03     SC        1.09     
!   TS        1.04     WF        1.04     WZ        1.19     LA        0.99     
! 
! 
! Fit before self-cal, rms=0.319024Jy  sigma=0.001532
! Fit after  self-cal, rms=0.350245Jy  sigma=0.001504
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.458 mas, bmaj=2.998 mas, bpa=13.98 degrees
! Estimated noise=253.304 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.00588125 Jy
! Component: 100  -  total flux cleaned = -0.00673162 Jy
! Component: 150  -  total flux cleaned = -0.00718167 Jy
! Component: 200  -  total flux cleaned = -0.00737518 Jy
! Total flux subtracted in 200 components = -0.00737518 Jy
! Clean residual min=-0.003071 max=0.004135 Jy/beam
! Clean residual mean=0.000082 rms=0.000821 Jy/beam
! Combined flux in latest and established models = 0.570202 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 81 components and 0.570202 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.350095Jy  sigma=0.001503
! Fit after  self-cal, rms=0.350398Jy  sigma=0.001502
! Inverting map 
! Added new window around map position (16, 8.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00398473 Jy
! Component: 100  -  total flux cleaned = 0.00498424 Jy
! Component: 150  -  total flux cleaned = 0.00552857 Jy
! Component: 200  -  total flux cleaned = 0.00584759 Jy
! Total flux subtracted in 200 components = 0.00584759 Jy
! Clean residual min=-0.003005 max=0.003938 Jy/beam
! Clean residual mean=0.000048 rms=0.000789 Jy/beam
! Combined flux in latest and established models = 0.576049 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 92 components and 0.576049 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.350328Jy  sigma=0.001501
! Fit after  self-cal, rms=0.350331Jy  sigma=0.001501
! 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.350331Jy  sigma=0.001501
! Fit after  self-cal, rms=0.357246Jy  sigma=0.001476
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.458 mas, bmaj=3.02 mas, bpa=14.19 degrees
! Estimated noise=253.629 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00215557 Jy
! Component: 100  -  total flux cleaned = -0.00216299 Jy
! Component: 150  -  total flux cleaned = -0.00216254 Jy
! Component: 200  -  total flux cleaned = -0.00216121 Jy
! Total flux subtracted in 200 components = -0.00216121 Jy
! Clean residual min=-0.001879 max=0.002171 Jy/beam
! Clean residual mean=0.000013 rms=0.000483 Jy/beam
! Combined flux in latest and established models = 0.573888 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 97 components and 0.573888 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357184Jy  sigma=0.001475
! Fit after  self-cal, rms=0.357233Jy  sigma=0.001475
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 (-3, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00118469 Jy
! Component: 100  -  total flux cleaned = 0.00138439 Jy
! Component: 150  -  total flux cleaned = 0.001383 Jy
! Component: 200  -  total flux cleaned = 0.00143737 Jy
! Total flux subtracted in 200 components = 0.00143737 Jy
! Clean residual min=-0.001818 max=0.001921 Jy/beam
! Clean residual mean=0.000006 rms=0.000476 Jy/beam
! Combined flux in latest and established models = 0.575326 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 110 components and 0.575325 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357207Jy  sigma=0.001474
! Fit after  self-cal, rms=0.357204Jy  sigma=0.001474
! 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.357204Jy  sigma=0.001474
! Fit after  self-cal, rms=0.358757Jy  sigma=0.001474
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.461 mas, bmaj=3.028 mas, bpa=13.89 degrees
! Estimated noise=253.994 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000891327 Jy
! Component: 100  -  total flux cleaned = -0.000826035 Jy
! Component: 150  -  total flux cleaned = -0.0005852 Jy
! Component: 200  -  total flux cleaned = -0.000531698 Jy
! Total flux subtracted in 200 components = -0.000531698 Jy
! Clean residual min=-0.001767 max=0.002066 Jy/beam
! Clean residual mean=0.000021 rms=0.000464 Jy/beam
! Combined flux in latest and established models = 0.574794 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 114 components and 0.574794 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358728Jy  sigma=0.001474
! Fit after  self-cal, rms=0.358739Jy  sigma=0.001474
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 (5.5, 13.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00199233 Jy
! Component: 100  -  total flux cleaned = 0.00223087 Jy
! Component: 150  -  total flux cleaned = 0.0022835 Jy
! Component: 200  -  total flux cleaned = 0.00237666 Jy
! Total flux subtracted in 200 components = 0.00237666 Jy
! Clean residual min=-0.001850 max=0.001856 Jy/beam
! Clean residual mean=0.000010 rms=0.000451 Jy/beam
! Combined flux in latest and established models = 0.57717 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 126 components and 0.57717 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.358726Jy  sigma=0.001473
! Fit after  self-cal, rms=0.358719Jy  sigma=0.001473
! 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.358719Jy  sigma=0.001473
! Fit after  self-cal, rms=0.359614Jy  sigma=0.001473
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.771 mas, bmaj=8.387 mas, bpa=57.08 degrees
! Estimated noise=375.776 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00190974 Jy
! Component: 100  -  total flux cleaned = 0.00223808 Jy
! Component: 150  -  total flux cleaned = 0.00231328 Jy
! Component: 200  -  total flux cleaned = 0.00231438 Jy
! Total flux subtracted in 200 components = 0.00231438 Jy
! Clean residual min=-0.002145 max=0.001969 Jy/beam
! Clean residual mean=0.000036 rms=0.000623 Jy/beam
! Combined flux in latest and established models = 0.579485 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 149 components and 0.579485 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.359615Jy  sigma=0.001473
! Fit after  self-cal, rms=0.359614Jy  sigma=0.001473
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.000620815 Jy
! Component: 100  -  total flux cleaned = 0.000647284 Jy
! Component: 150  -  total flux cleaned = 0.000626202 Jy
! Component: 200  -  total flux cleaned = 0.000626376 Jy
! Total flux subtracted in 200 components = 0.000626376 Jy
! Clean residual min=-0.002122 max=0.001952 Jy/beam
! Clean residual mean=0.000027 rms=0.000619 Jy/beam
! Combined flux in latest and established models = 0.580111 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 161 components and 0.580111 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.359615Jy  sigma=0.001473
! Fit after  self-cal, rms=0.359613Jy  sigma=0.001473
! 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.463 mas, bmaj=3.033 mas, bpa=13.75 degrees
! Estimated noise=254.298 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.463 x 3.033 at 13.75 degrees (North through East)
! Clean map  min=-0.001631  max=0.43767 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.943 mas, bmaj=2.453 mas, bpa=-3.23 degrees
! Estimated noise=531.917 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.323055 Jy
! Component: 100  -  total flux cleaned = 0.398838 Jy
! Component: 150  -  total flux cleaned = 0.435872 Jy
! Component: 200  -  total flux cleaned = 0.461434 Jy
! Total flux subtracted in 200 components = 0.461434 Jy
! Clean residual min=-0.004300 max=0.014354 Jy/beam
! Clean residual mean=0.000016 rms=0.001259 Jy/beam
! Combined flux in latest and established models = 0.461434 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 25 model components to the UV plane model.
! The established model now contains 25 components and 0.461434 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.463 mas, bmaj=3.033 mas, bpa=13.75 degrees
! Estimated noise=254.298 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.0361754 Jy
! Component: 100  -  total flux cleaned = 0.0574062 Jy
! Component: 150  -  total flux cleaned = 0.0711968 Jy
! Component: 200  -  total flux cleaned = 0.0807092 Jy
! Total flux subtracted in 200 components = 0.0807092 Jy
! Clean residual min=-0.001835 max=0.005688 Jy/beam
! Clean residual mean=0.000204 rms=0.000774 Jy/beam
! Combined flux in latest and established models = 0.542143 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 70 components and 0.542143 Jy
! Inverting map 
! Added new window around map position (1.5, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00690094 Jy
! Component: 100  -  total flux cleaned = 0.0121408 Jy
! Component: 150  -  total flux cleaned = 0.0163692 Jy
! Component: 200  -  total flux cleaned = 0.0198664 Jy
! Total flux subtracted in 200 components = 0.0198664 Jy
! Clean residual min=-0.001808 max=0.002806 Jy/beam
! Clean residual mean=0.000100 rms=0.000526 Jy/beam
! Combined flux in latest and established models = 0.562009 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 104 components and 0.562009 Jy
! Inverting map 
! Added new window around map position (10, 13.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00308558 Jy
! Component: 100  -  total flux cleaned = 0.00562027 Jy
! Component: 150  -  total flux cleaned = 0.00778827 Jy
! Component: 200  -  total flux cleaned = 0.00964971 Jy
! Total flux subtracted in 200 components = 0.00964971 Jy
! Clean residual min=-0.001840 max=0.001975 Jy/beam
! Clean residual mean=0.000051 rms=0.000460 Jy/beam
! Combined flux in latest and established models = 0.571659 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 119 components and 0.571659 Jy
! Inverting map 
! Added new window around map position (28, -25).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00188325 Jy
! Component: 100  -  total flux cleaned = 0.00312531 Jy
! Component: 150  -  total flux cleaned = 0.00408896 Jy
! Component: 200  -  total flux cleaned = 0.00472101 Jy
! Total flux subtracted in 200 components = 0.00472101 Jy
! Clean residual min=-0.001884 max=0.001862 Jy/beam
! Clean residual mean=0.000025 rms=0.000444 Jy/beam
! Combined flux in latest and established models = 0.57638 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 136 components and 0.57638 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.771 mas, bmaj=8.387 mas, bpa=57.08 degrees
! Estimated noise=375.776 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0023733 Jy
! Component: 100  -  total flux cleaned = 0.00372436 Jy
! Component: 150  -  total flux cleaned = 0.00464749 Jy
! Component: 200  -  total flux cleaned = 0.00487979 Jy
! Total flux subtracted in 200 components = 0.00487979 Jy
! Clean residual min=-0.002066 max=0.001957 Jy/beam
! Clean residual mean=0.000002 rms=0.000597 Jy/beam
! Combined flux in latest and established models = 0.58126 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.000175742 Jy
! Component: 100  -  total flux cleaned = 0.000328638 Jy
! Component: 150  -  total flux cleaned = 0.000424104 Jy
! Component: 200  -  total flux cleaned = 0.000509587 Jy
! Total flux subtracted in 200 components = 0.000509587 Jy
! Clean residual min=-0.002061 max=0.001911 Jy/beam
! Clean residual mean=-0.000007 rms=0.000590 Jy/beam
! Combined flux in latest and established models = 0.581769 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 180 components and 0.581769 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.463 mas, bmaj=3.033 mas, bpa=13.75 degrees
! Estimated noise=254.298 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00101329 Jy
! Component: 100  -  total flux cleaned = -0.00110461 Jy
! Component: 150  -  total flux cleaned = -0.00110422 Jy
! Component: 200  -  total flux cleaned = -0.0010635 Jy
! Total flux subtracted in 200 components = -0.0010635 Jy
! Clean residual min=-0.001911 max=0.001896 Jy/beam
! Clean residual mean=0.000003 rms=0.000432 Jy/beam
! Combined flux in latest and established models = 0.580705 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 196 components and 0.580705 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.359577Jy  sigma=0.001472
! Fit after  self-cal, rms=0.359602Jy  sigma=0.001472
wmodel J1740+5211_S_2000_05_22_pus_map.mod
! Writing 196 model components to file: J1740+5211_S_2000_05_22_pus_map.mod
wobs J1740+5211_S_2000_05_22_pus_uvs.fits
! Writing UV FITS file: J1740+5211_S_2000_05_22_pus_uvs.fits
wwins J1740+5211_S_2000_05_22_pus_map.win
! wwins: Wrote 9 windows to J1740+5211_S_2000_05_22_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.000385012 Jy
! Component: 100  -  total flux cleaned = -0.000756247 Jy
! Component: 150  -  total flux cleaned = -0.00114072 Jy
! Component: 200  -  total flux cleaned = -0.00154123 Jy
! Component: 250  -  total flux cleaned = -0.00170827 Jy
! Component: 300  -  total flux cleaned = -0.00181665 Jy
! Component: 350  -  total flux cleaned = -0.00184316 Jy
! Component: 400  -  total flux cleaned = -0.00192164 Jy
! Component: 450  -  total flux cleaned = -0.00197308 Jy
! Component: 500  -  total flux cleaned = -0.00197306 Jy
! Component: 550  -  total flux cleaned = -0.0019228 Jy
! Component: 600  -  total flux cleaned = -0.00189826 Jy
! Component: 650  -  total flux cleaned = -0.00187375 Jy
! Component: 700  -  total flux cleaned = -0.00182493 Jy
! Component: 750  -  total flux cleaned = -0.0017525 Jy
! Component: 800  -  total flux cleaned = -0.00172876 Jy
! Component: 850  -  total flux cleaned = -0.00172891 Jy
! Component: 900  -  total flux cleaned = -0.00168142 Jy
! Component: 950  -  total flux cleaned = -0.00163459 Jy
! Component: 1000  -  total flux cleaned = -0.00161132 Jy
! Component: 1050  -  total flux cleaned = -0.0015191 Jy
! Component: 1100  -  total flux cleaned = -0.00154224 Jy
! Component: 1150  -  total flux cleaned = -0.00149678 Jy
! Component: 1200  -  total flux cleaned = -0.00142895 Jy
! Component: 1250  -  total flux cleaned = -0.00138414 Jy
! Component: 1300  -  total flux cleaned = -0.00136181 Jy
! Component: 1350  -  total flux cleaned = -0.00136178 Jy
! Component: 1400  -  total flux cleaned = -0.00127334 Jy
! Component: 1450  -  total flux cleaned = -0.00127325 Jy
! Component: 1500  -  total flux cleaned = -0.00120753 Jy
! Component: 1550  -  total flux cleaned = -0.00120756 Jy
! Component: 1600  -  total flux cleaned = -0.00114261 Jy
! Component: 1650  -  total flux cleaned = -0.00112121 Jy
! Component: 1700  -  total flux cleaned = -0.00112125 Jy
! Component: 1750  -  total flux cleaned = -0.0010573 Jy
! Component: 1800  -  total flux cleaned = -0.00109987 Jy
! Component: 1850  -  total flux cleaned = -0.00105756 Jy
! Component: 1900  -  total flux cleaned = -0.00103646 Jy
! Component: 1950  -  total flux cleaned = -0.000994365 Jy
! Component: 2000  -  total flux cleaned = -0.000973401 Jy
! Total flux subtracted in 2048 components = -0.000931676 Jy
! Clean residual min=-0.001160 max=0.001476 Jy/beam
! Clean residual mean=0.000009 rms=0.000385 Jy/beam
! Combined flux in latest and established models = 0.579774 Jy
keep
! Adding 167 model components to the UV plane model.
! The established model now contains 363 components and 0.579774 Jy
![Exited script file: muppet]
wmap "J1740+5211_S_2000_05_22_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.463 x 3.033 at 13.75 degrees (North through East)
! Clean map  min=-0.0016252  max=0.43872 Jy/beam
! Writing clean map to FITS file: J1740+5211_S_2000_05_22_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.438719 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00038498 
device "J1740+5211_S_2000_05_22_pus\_map.eps/VPS"
! Attempting to open device: 'J1740+5211_S_2000_05_22_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.263253 0.263253 0.526506 1.05301 2.10602 4.21205 8.4241 16.8482 33.6964 67.3928
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.438 
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.463 x 3.033 at 13.75 degrees (North through East)
! Clean map  min=-0.0016252  max=0.43872 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1740+5211_S_2000_05_22_pus\_map.gif/vgif"
! Attempting to open device: 'J1740+5211_S_2000_05_22_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1740+5211_S_2000_05_22_pus_uvs.log closed on Mon Nov 19 18:56:01 2007