! Started logfile: J1745+1720_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:45:51 2008
obs J1745+1720_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1745+1720_S_1999_05_10_pus_uva.fits
! AN table 1: 293 integrations on 153 of 153 possible baselines.
! AN table 2: 77 integrations on 153 of 153 possible baselines.
! AN table 3: 70 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.144578 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1745+1720
! 
! 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 1998 lines of history.
! 
! Reading 38932 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 J1745+1720_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 3371 telescope corrections were flagged in sub-array 1.
!  A total of 1243 telescope corrections were flagged in sub-array 2.
!  A total of 732 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 3371 telescope corrections were flagged in sub-array 1.
!  A total of 1243 telescope corrections were flagged in sub-array 2.
!  A total of 732 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 3371 telescope corrections were flagged in sub-array 1.
!  A total of 1243 telescope corrections were flagged in sub-array 2.
!  A total of 732 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 3479 telescope corrections were flagged in sub-array 1.
!  A total of 1243 telescope corrections were flagged in sub-array 2.
!  A total of 732 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.782272Jy  sigma=0.005226
! Fit after  self-cal, rms=0.582049Jy  sigma=0.003735
! 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.864 mas, bmaj=3.173 mas, bpa=19.87 degrees
! Estimated noise=942.828 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.386503 Jy
! Component: 100  -  total flux cleaned = 0.505092 Jy
! Total flux subtracted in 100 components = 0.505092 Jy
! Clean residual min=-0.013570 max=0.046173 Jy/beam
! Clean residual mean=0.000577 rms=0.005140 Jy/beam
! Combined flux in latest and established models = 0.505092 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.505092 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290676Jy  sigma=0.001645
! Fit after  self-cal, rms=0.290494Jy  sigma=0.001644
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0498216 Jy
! Component: 100  -  total flux cleaned = 0.0793333 Jy
! Total flux subtracted in 100 components = 0.0793333 Jy
! Clean residual min=-0.010714 max=0.031294 Jy/beam
! Clean residual mean=0.000401 rms=0.003763 Jy/beam
! Combined flux in latest and established models = 0.584425 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 17 components and 0.584425 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.278877Jy  sigma=0.001475
! Fit after  self-cal, rms=0.278856Jy  sigma=0.001474
! Inverting map 
! Added new window around map position (1.5, -5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0305468 Jy
! Component: 100  -  total flux cleaned = 0.0494223 Jy
! Total flux subtracted in 100 components = 0.0494223 Jy
! Clean residual min=-0.009806 max=0.025208 Jy/beam
! Clean residual mean=0.000299 rms=0.003083 Jy/beam
! Combined flux in latest and established models = 0.633848 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 37 components and 0.633848 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273297Jy  sigma=0.001398
! Fit after  self-cal, rms=0.272884Jy  sigma=0.001394
! Inverting map 
! Added new window around map position (5, -8.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0245048 Jy
! Component: 100  -  total flux cleaned = 0.0398838 Jy
! Total flux subtracted in 100 components = 0.0398838 Jy
! Clean residual min=-0.008535 max=0.011716 Jy/beam
! Clean residual mean=0.000222 rms=0.002510 Jy/beam
! Combined flux in latest and established models = 0.673732 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 53 components and 0.673732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269619Jy  sigma=0.001348
! Fit after  self-cal, rms=0.269384Jy  sigma=0.001345
! 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.25 mas, bmaj=3.546 mas, bpa=18.08 degrees
! Estimated noise=522.703 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.0263725 Jy
! Component: 100  -  total flux cleaned = 0.0422213 Jy
! Component: 150  -  total flux cleaned = 0.0530768 Jy
! Component: 200  -  total flux cleaned = 0.0606894 Jy
! Total flux subtracted in 200 components = 0.0606894 Jy
! Clean residual min=-0.006264 max=0.010355 Jy/beam
! Clean residual mean=0.000285 rms=0.001993 Jy/beam
! Combined flux in latest and established models = 0.734421 Jy
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 82 components and 0.734421 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266868Jy  sigma=0.001311
! Fit after  self-cal, rms=0.266719Jy  sigma=0.001309
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 153 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.98     GC        1.12     HH        1.00     
!   HN        1.01     KK        0.99     KP        0.98     LA        0.98     
!   MC        0.95     MK        0.94     NL        0.94     NY        0.98     
!   ON        1.01     OV        1.04     PT        0.99     SC        1.11     
!   WF        1.02     WZ        0.98     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.98     HH        1.00*    
!   HN        1.00*    KK        1.00     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        0.90     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.07     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00     GC        1.02     HH        1.00*    
!   HN        0.99     KK        1.00     KP        1.32     LA        0.98     
!   MC        1.00*    MK        0.92     NL        0.96     NY        0.96     
!   ON        1.00*    OV        1.04     PT        0.99     SC        0.97     
!   WF        0.97     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 153 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.01     GC        1.12     HH        1.07     
!   HN        1.01     KK        0.98     KP        1.00     LA        0.95     
!   MC        0.90     MK        0.99     NL        0.98     NY        0.97     
!   ON        1.07     OV        1.03     PT        0.98     SC        1.06     
!   WF        1.02     WZ        0.97     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.92     HH        1.00*    
!   HN        1.00*    KK        0.96     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        0.99     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.08     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.04     GC        0.98     HH        1.00*    
!   HN        1.01     KK        1.00     KP        1.03     LA        0.96     
!   MC        1.00*    MK        1.02     NL        0.99     NY        0.97     
!   ON        1.00*    OV        0.98     PT        0.98     SC        1.02     
!   WF        0.96     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 153 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00     GC        1.14     HH        0.96     
!   HN        1.03     KK        0.98     KP        0.99     LA        0.97     
!   MC        1.06     MK        0.93     NL        0.99     NY        1.01     
!   ON        1.00     OV        1.01     PT        0.94     SC        1.05     
!   WF        0.99     WZ        0.88     
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.02     HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        0.91     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.09     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.02     GC        0.98     HH        1.00*    
!   HN        1.02     KK        1.00     KP        1.01     LA        0.98     
!   MC        1.00*    MK        0.96     NL        1.01     NY        1.01     
!   ON        1.00*    OV        1.00     PT        0.94     SC        1.01     
!   WF        0.94     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 159 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.00     GC        1.10     HH        1.04     
!   HN        1.01     KK        1.00     KP        0.98     LA        0.98     
!   MC        1.25     MK        0.95     NL        1.00     NY        1.05     
!   ON        0.99     OV        0.97     PT        0.99     SC        1.14     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        0.96     HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        0.98     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 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.01     GC        1.01     HH        1.00*    
!   HN        1.01     KK        1.00     KP        1.01     LA        0.99     
!   MC        1.00*    MK        0.98     NL        1.01     NY        1.01     
!   ON        1.00*    OV        0.97     PT        1.03     SC        0.99     
!   WF        0.98     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.266719Jy  sigma=0.001309
! Fit after  self-cal, rms=0.256342Jy  sigma=0.001287
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.242 mas, bmaj=3.573 mas, bpa=18.05 degrees
! Estimated noise=532.653 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.00332998 Jy
! Component: 100  -  total flux cleaned = 0.00395042 Jy
! Component: 150  -  total flux cleaned = 0.00443443 Jy
! Component: 200  -  total flux cleaned = 0.004625 Jy
! Total flux subtracted in 200 components = 0.004625 Jy
! Clean residual min=-0.003965 max=0.005771 Jy/beam
! Clean residual mean=0.000137 rms=0.001119 Jy/beam
! Combined flux in latest and established models = 0.739046 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 89 components and 0.739046 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256272Jy  sigma=0.001286
! Fit after  self-cal, rms=0.256256Jy  sigma=0.001286
! Inverting map 
! Added new window around map position (-18, -22).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00493073 Jy
! Component: 100  -  total flux cleaned = 0.00634663 Jy
! Component: 150  -  total flux cleaned = 0.0067764 Jy
! Component: 200  -  total flux cleaned = 0.00721643 Jy
! Total flux subtracted in 200 components = 0.00721643 Jy
! Clean residual min=-0.003686 max=0.005098 Jy/beam
! Clean residual mean=0.000076 rms=0.001031 Jy/beam
! Combined flux in latest and established models = 0.746262 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 104 components and 0.746263 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256134Jy  sigma=0.001285
! Fit after  self-cal, rms=0.256126Jy  sigma=0.001285
! Inverting map 
! Added new window around map position (1.5, -14.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00469592 Jy
! Component: 100  -  total flux cleaned = 0.00579443 Jy
! Component: 150  -  total flux cleaned = 0.00604175 Jy
! Component: 200  -  total flux cleaned = 0.00625439 Jy
! Total flux subtracted in 200 components = 0.00625439 Jy
! Clean residual min=-0.003518 max=0.004187 Jy/beam
! Clean residual mean=0.000005 rms=0.000942 Jy/beam
! Combined flux in latest and established models = 0.752517 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 122 components and 0.752517 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256029Jy  sigma=0.001284
! Fit after  self-cal, rms=0.256013Jy  sigma=0.001283
! 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.256013Jy  sigma=0.001283
! Fit after  self-cal, rms=0.256320Jy  sigma=0.001278
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.255 mas, bmaj=3.565 mas, bpa=18.14 degrees
! Estimated noise=533.844 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00201697 Jy
! Component: 100  -  total flux cleaned = 0.00272377 Jy
! Component: 150  -  total flux cleaned = 0.00338228 Jy
! Component: 200  -  total flux cleaned = 0.00369227 Jy
! Total flux subtracted in 200 components = 0.00369227 Jy
! Clean residual min=-0.003025 max=0.003343 Jy/beam
! Clean residual mean=-0.000023 rms=0.000787 Jy/beam
! Combined flux in latest and established models = 0.756209 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 133 components and 0.756209 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256267Jy  sigma=0.001277
! Fit after  self-cal, rms=0.256490Jy  sigma=0.001277
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.000570875 Jy
! Component: 100  -  total flux cleaned = 0.00104364 Jy
! Component: 150  -  total flux cleaned = 0.00125397 Jy
! Component: 200  -  total flux cleaned = 0.00134988 Jy
! Total flux subtracted in 200 components = 0.00134988 Jy
! Clean residual min=-0.002977 max=0.003275 Jy/beam
! Clean residual mean=-0.000036 rms=0.000772 Jy/beam
! Combined flux in latest and established models = 0.757559 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 137 components and 0.757559 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256462Jy  sigma=0.001277
! Fit after  self-cal, rms=0.256465Jy  sigma=0.001277
! Inverting map 
! Added new window around map position (-19.5, 39).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00316895 Jy
! Component: 100  -  total flux cleaned = 0.0040465 Jy
! Component: 150  -  total flux cleaned = 0.00447791 Jy
! Component: 200  -  total flux cleaned = 0.00463899 Jy
! Total flux subtracted in 200 components = 0.00463899 Jy
! Clean residual min=-0.003146 max=0.002773 Jy/beam
! Clean residual mean=-0.000089 rms=0.000740 Jy/beam
! Combined flux in latest and established models = 0.762198 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 153 components and 0.762198 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256409Jy  sigma=0.001276
! Fit after  self-cal, rms=0.256409Jy  sigma=0.001276
! 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.256409Jy  sigma=0.001276
! Fit after  self-cal, rms=0.256799Jy  sigma=0.001276
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.26 mas, bmaj=3.567 mas, bpa=18.07 degrees
! Estimated noise=534.013 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000543503 Jy
! Component: 100  -  total flux cleaned = 0.00101044 Jy
! Component: 150  -  total flux cleaned = 0.00127069 Jy
! Component: 200  -  total flux cleaned = 0.00151203 Jy
! Total flux subtracted in 200 components = 0.00151203 Jy
! Clean residual min=-0.003038 max=0.002625 Jy/beam
! Clean residual mean=-0.000072 rms=0.000711 Jy/beam
! Combined flux in latest and established models = 0.76371 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 158 components and 0.76371 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256771Jy  sigma=0.001276
! Fit after  self-cal, rms=0.256802Jy  sigma=0.001276
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.00028639 Jy
! Component: 100  -  total flux cleaned = 0.000425284 Jy
! Component: 150  -  total flux cleaned = 0.000512092 Jy
! Component: 200  -  total flux cleaned = 0.000511501 Jy
! Total flux subtracted in 200 components = 0.000511501 Jy
! Clean residual min=-0.002990 max=0.002566 Jy/beam
! Clean residual mean=-0.000077 rms=0.000704 Jy/beam
! Combined flux in latest and established models = 0.764222 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 163 components and 0.764222 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256784Jy  sigma=0.001276
! Fit after  self-cal, rms=0.256787Jy  sigma=0.001276
! 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.256787Jy  sigma=0.001276
! Fit after  self-cal, rms=0.256901Jy  sigma=0.001276
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.653 mas, bmaj=9.824 mas, bpa=-28.84 degrees
! Estimated noise=712.165 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000394033 Jy
! Component: 100  -  total flux cleaned = -0.0003239 Jy
! Component: 150  -  total flux cleaned = -0.000464978 Jy
! Component: 200  -  total flux cleaned = -0.000714874 Jy
! Total flux subtracted in 200 components = -0.000714874 Jy
! Clean residual min=-0.003509 max=0.002654 Jy/beam
! Clean residual mean=-0.000181 rms=0.000880 Jy/beam
! Combined flux in latest and established models = 0.763507 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 174 components and 0.763507 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256904Jy  sigma=0.001276
! Fit after  self-cal, rms=0.256898Jy  sigma=0.001276
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.000114029 Jy
! Component: 100  -  total flux cleaned = 0.000331981 Jy
! Component: 150  -  total flux cleaned = 9.35061e-05 Jy
! Component: 200  -  total flux cleaned = -0.000122626 Jy
! Total flux subtracted in 200 components = -0.000122626 Jy
! Clean residual min=-0.003484 max=0.002672 Jy/beam
! Clean residual mean=-0.000179 rms=0.000880 Jy/beam
! Combined flux in latest and established models = 0.763384 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 175 components and 0.763384 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256906Jy  sigma=0.001276
! Fit after  self-cal, rms=0.256898Jy  sigma=0.001276
! 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.264 mas, bmaj=3.568 mas, bpa=18.04 degrees
! Estimated noise=534.051 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.264 x 3.568 at 18.04 degrees (North through East)
! Clean map  min=-0.0025741  max=0.47989 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.889 mas, bmaj=3.182 mas, bpa=19.29 degrees
! Estimated noise=900.975 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.386022 Jy
! Component: 100  -  total flux cleaned = 0.504009 Jy
! Component: 150  -  total flux cleaned = 0.560289 Jy
! Component: 200  -  total flux cleaned = 0.597681 Jy
! Total flux subtracted in 200 components = 0.597681 Jy
! Clean residual min=-0.008294 max=0.021434 Jy/beam
! Clean residual mean=0.000330 rms=0.002881 Jy/beam
! Combined flux in latest and established models = 0.597681 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 31 model components to the UV plane model.
! The established model now contains 31 components and 0.597681 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.264 mas, bmaj=3.568 mas, bpa=18.04 degrees
! Estimated noise=534.051 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.046391 Jy
! Component: 100  -  total flux cleaned = 0.076221 Jy
! Component: 150  -  total flux cleaned = 0.0964819 Jy
! Component: 200  -  total flux cleaned = 0.110758 Jy
! Total flux subtracted in 200 components = 0.110758 Jy
! Clean residual min=-0.003555 max=0.010036 Jy/beam
! Clean residual mean=0.000591 rms=0.001639 Jy/beam
! Combined flux in latest and established models = 0.708438 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 81 components and 0.708438 Jy
! Inverting map 
! Added new window around map position (4.5, -4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0109835 Jy
! Component: 100  -  total flux cleaned = 0.0190397 Jy
! Component: 150  -  total flux cleaned = 0.0253526 Jy
! Component: 200  -  total flux cleaned = 0.030429 Jy
! Total flux subtracted in 200 components = 0.030429 Jy
! Clean residual min=-0.002808 max=0.004974 Jy/beam
! Clean residual mean=0.000220 rms=0.000913 Jy/beam
! Combined flux in latest and established models = 0.738867 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 127 components and 0.738867 Jy
! Inverting map 
! Added new window around map position (6.5, -16).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00490082 Jy
! Component: 100  -  total flux cleaned = 0.00846221 Jy
! Component: 150  -  total flux cleaned = 0.0114641 Jy
! Component: 200  -  total flux cleaned = 0.0140443 Jy
! Total flux subtracted in 200 components = 0.0140443 Jy
! Clean residual min=-0.002755 max=0.002931 Jy/beam
! Clean residual mean=0.000057 rms=0.000715 Jy/beam
! Combined flux in latest and established models = 0.752912 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 154 components and 0.752912 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.653 mas, bmaj=9.824 mas, bpa=-28.84 degrees
! Estimated noise=712.165 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00356396 Jy
! Component: 100  -  total flux cleaned = 0.00562846 Jy
! Component: 150  -  total flux cleaned = 0.00700071 Jy
! Component: 200  -  total flux cleaned = 0.00793644 Jy
! Total flux subtracted in 200 components = 0.00793644 Jy
! Clean residual min=-0.003415 max=0.002871 Jy/beam
! Clean residual mean=-0.000103 rms=0.000853 Jy/beam
! Combined flux in latest and established models = 0.760848 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.00031125 Jy
! Component: 100  -  total flux cleaned = 0.000502683 Jy
! Component: 150  -  total flux cleaned = 0.000607092 Jy
! Component: 200  -  total flux cleaned = 0.00062682 Jy
! Total flux subtracted in 200 components = 0.00062682 Jy
! Clean residual min=-0.003339 max=0.002756 Jy/beam
! Clean residual mean=-0.000122 rms=0.000845 Jy/beam
! Combined flux in latest and established models = 0.761475 Jy
! Adding 67 model components to the UV plane model.
! The established model now contains 207 components and 0.761475 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.264 mas, bmaj=3.568 mas, bpa=18.04 degrees
! Estimated noise=534.051 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 8.91583e-05 Jy
! Component: 100  -  total flux cleaned = 0.000205993 Jy
! Component: 150  -  total flux cleaned = 0.000316594 Jy
! Component: 200  -  total flux cleaned = 0.000575831 Jy
! Total flux subtracted in 200 components = 0.000575832 Jy
! Clean residual min=-0.002794 max=0.002549 Jy/beam
! Clean residual mean=-0.000046 rms=0.000659 Jy/beam
! Combined flux in latest and established models = 0.762051 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 220 components and 0.762051 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256832Jy  sigma=0.001276
! Fit after  self-cal, rms=0.256847Jy  sigma=0.001275
wmodel J1745+1720_S_1999_05_10_pus_map.mod
! Writing 220 model components to file: J1745+1720_S_1999_05_10_pus_map.mod
wobs J1745+1720_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1745+1720_S_1999_05_10_pus_uvs.fits
wwins J1745+1720_S_1999_05_10_pus_map.win
! wwins: Wrote 8 windows to J1745+1720_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.000396733 Jy
! Component: 100  -  total flux cleaned = -0.000760235 Jy
! Component: 150  -  total flux cleaned = -0.00110647 Jy
! Component: 200  -  total flux cleaned = -0.00139911 Jy
! Component: 250  -  total flux cleaned = -0.00176362 Jy
! Component: 300  -  total flux cleaned = -0.00196154 Jy
! Component: 350  -  total flux cleaned = -0.00211667 Jy
! Component: 400  -  total flux cleaned = -0.00223039 Jy
! Component: 450  -  total flux cleaned = -0.0023049 Jy
! Component: 500  -  total flux cleaned = -0.00234184 Jy
! Component: 550  -  total flux cleaned = -0.00248506 Jy
! Component: 600  -  total flux cleaned = -0.00245034 Jy
! Component: 650  -  total flux cleaned = -0.00255476 Jy
! Component: 700  -  total flux cleaned = -0.00262328 Jy
! Component: 750  -  total flux cleaned = -0.00269043 Jy
! Component: 800  -  total flux cleaned = -0.00272384 Jy
! Component: 850  -  total flux cleaned = -0.00275735 Jy
! Component: 900  -  total flux cleaned = -0.00285469 Jy
! Component: 950  -  total flux cleaned = -0.00288701 Jy
! Component: 1000  -  total flux cleaned = -0.00291883 Jy
! Component: 1050  -  total flux cleaned = -0.00291862 Jy
! Component: 1100  -  total flux cleaned = -0.00288779 Jy
! Component: 1150  -  total flux cleaned = -0.0028881 Jy
! Component: 1200  -  total flux cleaned = -0.00294921 Jy
! Component: 1250  -  total flux cleaned = -0.00288893 Jy
! Component: 1300  -  total flux cleaned = -0.00288904 Jy
! Component: 1350  -  total flux cleaned = -0.00288903 Jy
! Component: 1400  -  total flux cleaned = -0.00288933 Jy
! Component: 1450  -  total flux cleaned = -0.00288934 Jy
! Component: 1500  -  total flux cleaned = -0.00288907 Jy
! Component: 1550  -  total flux cleaned = -0.00286002 Jy
! Component: 1600  -  total flux cleaned = -0.00280319 Jy
! Component: 1650  -  total flux cleaned = -0.00286002 Jy
! Component: 1700  -  total flux cleaned = -0.00283212 Jy
! Component: 1750  -  total flux cleaned = -0.00283222 Jy
! Component: 1800  -  total flux cleaned = -0.00280478 Jy
! Component: 1850  -  total flux cleaned = -0.00288721 Jy
! Component: 1900  -  total flux cleaned = -0.00288719 Jy
! Component: 1950  -  total flux cleaned = -0.00288718 Jy
! Component: 2000  -  total flux cleaned = -0.00286015 Jy
! Total flux subtracted in 2048 components = -0.00291348 Jy
! Clean residual min=-0.001765 max=0.001670 Jy/beam
! Clean residual mean=-0.000018 rms=0.000492 Jy/beam
! Combined flux in latest and established models = 0.759137 Jy
keep
! Adding 155 model components to the UV plane model.
! The established model now contains 375 components and 0.759138 Jy
![Exited script file: muppet]
wmap "J1745+1720_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.264 x 3.568 at 18.04 degrees (North through East)
! Clean map  min=-0.0022133  max=0.48409 Jy/beam
! Writing clean map to FITS file: J1745+1720_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.484093 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000490984 
device "J1745+1720_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1745+1720_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.30427 0.30427 0.60854 1.21708 2.43416 4.86832 9.73664 19.4733 38.9466 77.8932
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.484 
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.264 x 3.568 at 18.04 degrees (North through East)
! Clean map  min=-0.0022133  max=0.48409 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1745+1720_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1745+1720_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1745+1720_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:46:11 2008