! Started logfile: J1445+0958_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:41:35 2008
obs J1445+0958_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1445+0958_S_1999_05_10_pus_uva.fits
! AN table 1: 183 integrations on 153 of 153 possible baselines.
! AN table 2: 157 integrations on 153 of 153 possible baselines.
! AN table 3: 67 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.184725 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1445+0958
! 
! 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 46012 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 J1445+0958_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 1987 telescope corrections were flagged in sub-array 1.
!  A total of 2040 telescope corrections were flagged in sub-array 2.
!  A total of 376 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1987 telescope corrections were flagged in sub-array 1.
!  A total of 2040 telescope corrections were flagged in sub-array 2.
!  A total of 376 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1987 telescope corrections were flagged in sub-array 1.
!  A total of 2040 telescope corrections were flagged in sub-array 2.
!  A total of 376 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2117 telescope corrections were flagged in sub-array 1.
!  A total of 2040 telescope corrections were flagged in sub-array 2.
!  A total of 376 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.852808Jy  sigma=0.006466
! Fit after  self-cal, rms=0.637630Jy  sigma=0.004670
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.711 mas, bmaj=3.622 mas, bpa=-9.701 degrees
! Estimated noise=714.287 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.561108 Jy
! Component: 100  -  total flux cleaned = 0.820942 Jy
! Total flux subtracted in 100 components = 0.820942 Jy
! Clean residual min=-0.039408 max=0.138927 Jy/beam
! Clean residual mean=0.001439 rms=0.016364 Jy/beam
! Combined flux in latest and established models = 0.820942 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 0.820942 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.467437Jy  sigma=0.003831
! Fit after  self-cal, rms=0.459173Jy  sigma=0.003801
! Inverting map 
! Added new window around map position (-0.5, -13).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.170649 Jy
! Component: 100  -  total flux cleaned = 0.286757 Jy
! Total flux subtracted in 100 components = 0.286757 Jy
! Clean residual min=-0.030197 max=0.084881 Jy/beam
! Clean residual mean=0.000948 rms=0.011010 Jy/beam
! Combined flux in latest and established models = 1.1077 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 30 components and 1.1077 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354491Jy  sigma=0.002730
! Fit after  self-cal, rms=0.350624Jy  sigma=0.002708
! Inverting map 
! Added new window around map position (-1.5, -5.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.103324 Jy
! Component: 100  -  total flux cleaned = 0.178435 Jy
! Total flux subtracted in 100 components = 0.178435 Jy
! Clean residual min=-0.023824 max=0.043929 Jy/beam
! Clean residual mean=0.000644 rms=0.007617 Jy/beam
! Combined flux in latest and established models = 1.28613 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 45 components and 1.28613 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.297994Jy  sigma=0.002119
! Fit after  self-cal, rms=0.295242Jy  sigma=0.002098
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0647877 Jy
! Component: 100  -  total flux cleaned = 0.114278 Jy
! Total flux subtracted in 100 components = 0.114278 Jy
! Clean residual min=-0.017730 max=0.029757 Jy/beam
! Clean residual mean=0.000448 rms=0.005509 Jy/beam
! Combined flux in latest and established models = 1.40041 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 63 components and 1.40041 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270286Jy  sigma=0.001784
! Fit after  self-cal, rms=0.269303Jy  sigma=0.001776
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0433253 Jy
! Component: 100  -  total flux cleaned = 0.0777306 Jy
! Total flux subtracted in 100 components = 0.0777306 Jy
! Clean residual min=-0.013589 max=0.020906 Jy/beam
! Clean residual mean=0.000315 rms=0.004243 Jy/beam
! Combined flux in latest and established models = 1.47814 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 75 components and 1.47814 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256876Jy  sigma=0.001607
! Fit after  self-cal, rms=0.256507Jy  sigma=0.001603
! 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=3.169 mas, bmaj=4.389 mas, bpa=-5.762 degrees
! Estimated noise=440.781 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.0532846 Jy
! Component: 100  -  total flux cleaned = 0.0904248 Jy
! Component: 150  -  total flux cleaned = 0.117579 Jy
! Component: 200  -  total flux cleaned = 0.137675 Jy
! Total flux subtracted in 200 components = 0.137675 Jy
! Clean residual min=-0.009181 max=0.020798 Jy/beam
! Clean residual mean=0.000949 rms=0.003710 Jy/beam
! Combined flux in latest and established models = 1.61582 Jy
! Performing phase self-cal
! Adding 62 model components to the UV plane model.
! The established model now contains 114 components and 1.61582 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244858Jy  sigma=0.001426
! Fit after  self-cal, rms=0.244317Jy  sigma=0.001420
! Inverting map 
! Added new window around map position (14.5, -19.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0222499 Jy
! Component: 100  -  total flux cleaned = 0.0384847 Jy
! Component: 150  -  total flux cleaned = 0.0514627 Jy
! Component: 200  -  total flux cleaned = 0.0622029 Jy
! Total flux subtracted in 200 components = 0.0622029 Jy
! Clean residual min=-0.007415 max=0.012492 Jy/beam
! Clean residual mean=0.000373 rms=0.002690 Jy/beam
! Combined flux in latest and established models = 1.67802 Jy
! Performing phase self-cal
! Adding 55 model components to the UV plane model.
! The established model now contains 145 components and 1.67802 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241998Jy  sigma=0.001383
! Fit after  self-cal, rms=0.241739Jy  sigma=0.001381
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     GC        0.99     HH        0.99     
!   HN        1.01     KK        0.97     KP        0.97     LA        0.97     
!   MC        0.96     MK        1.07     NL        0.98     NY        0.97     
!   ON        0.98     OV        1.01     PT        0.98     SC        1.00     
!   WF        0.98     WZ        0.94     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.01     GC        1.02     HH        0.91     
!   HN        1.00*    KK        0.97     KP        1.35     LA        0.99     
!   MC        1.04     MK        0.93     NL        1.00*    NY        0.95     
!   ON        1.03     OV        1.02     PT        1.01     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.98     GC        1.04     HH        1.00*    
!   HN        0.98     KK        1.05     KP        0.98     LA        0.96     
!   MC        1.00*    MK        0.95     NL        0.95     NY        0.99     
!   ON        1.00*    OV        1.03     PT        0.98     SC        1.01     
!   WF        0.93     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.02     GC        0.97     HH        0.98     
!   HN        1.02     KK        0.98     KP        0.99     LA        0.95     
!   MC        0.95     MK        1.14     NL        0.99     NY        0.96     
!   ON        1.02     OV        0.98     PT        0.98     SC        1.04     
!   WF        0.99     WZ        0.96     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.06     GC        1.02     HH        0.98     
!   HN        1.00*    KK        0.96     KP        1.01     LA        0.97     
!   MC        1.38     MK        0.99     NL        1.00*    NY        0.97     
!   ON        1.06     OV        0.99     PT        0.99     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.03     GC        1.03     HH        1.00*    
!   HN        0.98     KK        1.05     KP        0.98     LA        0.93     
!   MC        1.00*    MK        1.03     NL        0.97     NY        0.99     
!   ON        1.00*    OV        1.00     PT        0.95     SC        1.03     
!   WF        0.94     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GC        1.00     HH        0.90     
!   HN        1.01     KK        0.97     KP        0.98     LA        1.00     
!   MC        1.86     MK        1.10     NL        1.03     NY        1.01     
!   ON        1.00     OV        0.99     PT        0.96     SC        1.03     
!   WF        1.03     WZ        1.06     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.05     GC        1.02     HH        1.13     
!   HN        1.00*    KK        0.97     KP        1.00     LA        1.02     
!   MC        0.82     MK        0.98     NL        1.00*    NY        1.08     
!   ON        1.22     OV        0.98     PT        0.98     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        1.03     HH        1.00*    
!   HN        1.01     KK        1.06     KP        0.99     LA        0.97     
!   MC        1.00*    MK        0.99     NL        1.00     NY        1.04     
!   ON        1.00*    OV        1.01     PT        0.93     SC        1.05     
!   WF        0.98     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 123 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00     GC        1.01     HH        0.98     
!   HN        1.02     KK        0.99     KP        1.00     LA        1.00     
!   MC        1.21     MK        1.10     NL        1.04     NY        1.17     
!   ON        0.94     OV        0.95     PT        1.00     SC        1.02     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.05     GC        1.03     HH        1.03     
!   HN        1.00*    KK        0.98     KP        1.01     LA        1.02     
!   MC        0.90     MK        0.99     NL        1.00*    NY        1.05     
!   ON        0.99     OV        0.96     PT        1.01     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.00     GC        1.03     HH        1.00*    
!   HN        1.01     KK        1.08     KP        1.00     LA        0.99     
!   MC        1.00*    MK        1.01     NL        1.02     NY        1.07     
!   ON        1.00*    OV        0.97     PT        0.98     SC        1.01     
!   WF        0.99     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.241739Jy  sigma=0.001381
! Fit after  self-cal, rms=0.250294Jy  sigma=0.001285
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.209 mas, bmaj=4.402 mas, bpa=-5.039 degrees
! Estimated noise=441.792 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 (7, -20).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0112417 Jy
! Component: 100  -  total flux cleaned = 0.0178571 Jy
! Component: 150  -  total flux cleaned = 0.0224213 Jy
! Component: 200  -  total flux cleaned = 0.0250663 Jy
! Total flux subtracted in 200 components = 0.0250663 Jy
! Clean residual min=-0.004144 max=0.003866 Jy/beam
! Clean residual mean=0.000124 rms=0.001008 Jy/beam
! Combined flux in latest and established models = 1.70309 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 179 components and 1.70309 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249745Jy  sigma=0.001277
! Fit after  self-cal, rms=0.250341Jy  sigma=0.001276
! 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.250341Jy  sigma=0.001276
! Fit after  self-cal, rms=0.253979Jy  sigma=0.001275
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.209 mas, bmaj=4.401 mas, bpa=-4.941 degrees
! Estimated noise=441.802 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00518477 Jy
! Component: 100  -  total flux cleaned = 0.00771402 Jy
! Component: 150  -  total flux cleaned = 0.00989502 Jy
! Component: 200  -  total flux cleaned = 0.0115873 Jy
! Total flux subtracted in 200 components = 0.0115873 Jy
! Clean residual min=-0.003368 max=0.003360 Jy/beam
! Clean residual mean=0.000090 rms=0.000853 Jy/beam
! Combined flux in latest and established models = 1.71467 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 197 components and 1.71467 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253807Jy  sigma=0.001273
! Fit after  self-cal, rms=0.253979Jy  sigma=0.001273
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.00156849 Jy
! Component: 100  -  total flux cleaned = 0.0026706 Jy
! Component: 150  -  total flux cleaned = 0.00369479 Jy
! Component: 200  -  total flux cleaned = 0.00450717 Jy
! Total flux subtracted in 200 components = 0.00450717 Jy
! Clean residual min=-0.002999 max=0.003149 Jy/beam
! Clean residual mean=0.000049 rms=0.000798 Jy/beam
! Combined flux in latest and established models = 1.71918 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 204 components and 1.71918 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.253899Jy  sigma=0.001272
! Fit after  self-cal, rms=0.253898Jy  sigma=0.001272
! 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.253898Jy  sigma=0.001272
! Fit after  self-cal, rms=0.257193Jy  sigma=0.001272
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.21 mas, bmaj=4.407 mas, bpa=-4.909 degrees
! Estimated noise=441.752 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00271704 Jy
! Component: 100  -  total flux cleaned = 0.00366162 Jy
! Component: 150  -  total flux cleaned = 0.00469229 Jy
! Component: 200  -  total flux cleaned = 0.00530745 Jy
! Total flux subtracted in 200 components = 0.00530745 Jy
! Clean residual min=-0.002679 max=0.002872 Jy/beam
! Clean residual mean=0.000080 rms=0.000730 Jy/beam
! Combined flux in latest and established models = 1.72449 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 210 components and 1.72449 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257124Jy  sigma=0.001271
! Fit after  self-cal, rms=0.257248Jy  sigma=0.001271
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.000883132 Jy
! Component: 100  -  total flux cleaned = 0.00143383 Jy
! Component: 150  -  total flux cleaned = 0.0019254 Jy
! Component: 200  -  total flux cleaned = 0.00236876 Jy
! Total flux subtracted in 200 components = 0.00236876 Jy
! Clean residual min=-0.002477 max=0.002715 Jy/beam
! Clean residual mean=0.000058 rms=0.000704 Jy/beam
! Combined flux in latest and established models = 1.72686 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 214 components and 1.72686 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257204Jy  sigma=0.001270
! Fit after  self-cal, rms=0.257207Jy  sigma=0.001270
! 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.257207Jy  sigma=0.001270
! Fit after  self-cal, rms=0.257415Jy  sigma=0.001270
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.993 mas, bmaj=9.353 mas, bpa=-7.407 degrees
! Estimated noise=559.208 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00361742 Jy
! Component: 100  -  total flux cleaned = 0.00465404 Jy
! Component: 150  -  total flux cleaned = 0.00506008 Jy
! Component: 200  -  total flux cleaned = 0.00519613 Jy
! Total flux subtracted in 200 components = 0.00519613 Jy
! Clean residual min=-0.002609 max=0.002805 Jy/beam
! Clean residual mean=0.000117 rms=0.000719 Jy/beam
! Combined flux in latest and established models = 1.73205 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 242 components and 1.73205 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257409Jy  sigma=0.001270
! Fit after  self-cal, rms=0.257420Jy  sigma=0.001270
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.000697476 Jy
! Component: 100  -  total flux cleaned = 0.00099479 Jy
! Component: 150  -  total flux cleaned = 0.00114554 Jy
! Component: 200  -  total flux cleaned = 0.00117081 Jy
! Total flux subtracted in 200 components = 0.00117081 Jy
! Clean residual min=-0.002278 max=0.002552 Jy/beam
! Clean residual mean=0.000090 rms=0.000693 Jy/beam
! Combined flux in latest and established models = 1.73322 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 249 components and 1.73322 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257421Jy  sigma=0.001270
! Fit after  self-cal, rms=0.257425Jy  sigma=0.001270
! 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=3.211 mas, bmaj=4.411 mas, bpa=-4.9 degrees
! Estimated noise=441.857 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.211 x 4.411 at -4.9 degrees (North through East)
! Clean map  min=-0.0024733  max=0.71119 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.257425Jy  sigma=0.001270
! Fit after  self-cal, rms=0.843594Jy  sigma=0.001137
! Inverting map and beam 
! Estimated beam: bmin=3.205 mas, bmaj=4.413 mas, bpa=-5.084 degrees
! Estimated noise=441.39 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000595214 Jy
! Component: 100  -  total flux cleaned = 0.000719565 Jy
! Component: 150  -  total flux cleaned = 0.000826827 Jy
! Component: 200  -  total flux cleaned = 0.0010246 Jy
! Total flux subtracted in 200 components = 0.0010246 Jy
! Clean residual min=-0.002572 max=0.002616 Jy/beam
! Clean residual mean=0.000063 rms=0.000619 Jy/beam
! Combined flux in latest and established models = 1.73425 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 257 components and 1.73425 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.843587Jy  sigma=0.001137
! Fit after  self-cal, rms=0.843621Jy  sigma=0.001137
! Inverting map 
! Added new window around map position (2.5, -8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00156822 Jy
! Component: 100  -  total flux cleaned = 0.00144769 Jy
! Component: 150  -  total flux cleaned = 0.00133946 Jy
! Component: 200  -  total flux cleaned = 0.00133751 Jy
! Total flux subtracted in 200 components = 0.00133751 Jy
! Clean residual min=-0.002629 max=0.002492 Jy/beam
! Clean residual mean=0.000050 rms=0.000601 Jy/beam
! Combined flux in latest and established models = 1.73559 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 270 components and 1.73559 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.843616Jy  sigma=0.001137
! Fit after  self-cal, rms=0.843626Jy  sigma=0.001137
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.843626Jy  sigma=0.001137
! Fit after  self-cal, rms=1.472068Jy  sigma=0.001136
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.734 mas, bmaj=3.634 mas, bpa=-9.17 degrees
! Estimated noise=718.569 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.559442 Jy
! Component: 100  -  total flux cleaned = 0.833637 Jy
! Component: 150  -  total flux cleaned = 1.01455 Jy
! Component: 200  -  total flux cleaned = 1.14431 Jy
! Total flux subtracted in 200 components = 1.14431 Jy
! Clean residual min=-0.025279 max=0.074038 Jy/beam
! Clean residual mean=0.000932 rms=0.009612 Jy/beam
! Combined flux in latest and established models = 1.14431 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 32 model components to the UV plane model.
! The established model now contains 32 components and 1.14431 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.205 mas, bmaj=4.415 mas, bpa=-5.058 degrees
! Estimated noise=441.314 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.161792 Jy
! Component: 100  -  total flux cleaned = 0.265688 Jy
! Component: 150  -  total flux cleaned = 0.336301 Jy
! Component: 200  -  total flux cleaned = 0.386329 Jy
! Total flux subtracted in 200 components = 0.386329 Jy
! Clean residual min=-0.008028 max=0.028603 Jy/beam
! Clean residual mean=0.001913 rms=0.005107 Jy/beam
! Combined flux in latest and established models = 1.53064 Jy
! Adding 75 model components to the UV plane model.
! The established model now contains 93 components and 1.53064 Jy
! Inverting map 
! Added new window around map position (-3, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0368251 Jy
! Component: 100  -  total flux cleaned = 0.0655721 Jy
! Component: 150  -  total flux cleaned = 0.0887647 Jy
! Component: 200  -  total flux cleaned = 0.107813 Jy
! Total flux subtracted in 200 components = 0.107813 Jy
! Clean residual min=-0.004371 max=0.012489 Jy/beam
! Clean residual mean=0.000932 rms=0.002380 Jy/beam
! Combined flux in latest and established models = 1.63845 Jy
! Adding 59 model components to the UV plane model.
! The established model now contains 141 components and 1.63846 Jy
! Inverting map 
! Added new window around map position (1, -17.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.015919 Jy
! Component: 100  -  total flux cleaned = 0.0290936 Jy
! Component: 150  -  total flux cleaned = 0.040095 Jy
! Component: 200  -  total flux cleaned = 0.0493057 Jy
! Total flux subtracted in 200 components = 0.0493057 Jy
! Clean residual min=-0.002658 max=0.006436 Jy/beam
! Clean residual mean=0.000483 rms=0.001273 Jy/beam
! Combined flux in latest and established models = 1.68776 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 184 components and 1.68776 Jy
! Inverting map 
! Added new window around map position (3.5, 1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00788562 Jy
! Component: 100  -  total flux cleaned = 0.0144452 Jy
! Component: 150  -  total flux cleaned = 0.0199775 Jy
! Component: 200  -  total flux cleaned = 0.0246795 Jy
! Total flux subtracted in 200 components = 0.0246795 Jy
! Clean residual min=-0.002172 max=0.003688 Jy/beam
! Clean residual mean=0.000258 rms=0.000811 Jy/beam
! Combined flux in latest and established models = 1.71244 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 220 components and 1.71244 Jy
! Inverting map 
! Added new window around map position (39.5, -56).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00420639 Jy
! Component: 100  -  total flux cleaned = 0.00774477 Jy
! Component: 150  -  total flux cleaned = 0.0108117 Jy
! Component: 200  -  total flux cleaned = 0.0134779 Jy
! Total flux subtracted in 200 components = 0.0134779 Jy
! Clean residual min=-0.002047 max=0.002749 Jy/beam
! Clean residual mean=0.000139 rms=0.000640 Jy/beam
! Combined flux in latest and established models = 1.72592 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 248 components and 1.72592 Jy
! Inverting map 
! Added new window around map position (51.5, -31).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00270458 Jy
! Component: 100  -  total flux cleaned = 0.00486415 Jy
! Component: 150  -  total flux cleaned = 0.00678239 Jy
! Component: 200  -  total flux cleaned = 0.00849192 Jy
! Total flux subtracted in 200 components = 0.00849192 Jy
! Clean residual min=-0.002022 max=0.002235 Jy/beam
! Clean residual mean=0.000062 rms=0.000575 Jy/beam
! Combined flux in latest and established models = 1.73441 Jy
! Adding 51 model components to the UV plane model.
! The established model now contains 264 components and 1.73441 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.992 mas, bmaj=9.352 mas, bpa=-7.36 degrees
! Estimated noise=559.076 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00233134 Jy
! Component: 100  -  total flux cleaned = 0.00386365 Jy
! Component: 150  -  total flux cleaned = 0.00476926 Jy
! Component: 200  -  total flux cleaned = 0.00509792 Jy
! Total flux subtracted in 200 components = 0.00509792 Jy
! Clean residual min=-0.001815 max=0.001661 Jy/beam
! Clean residual mean=0.000045 rms=0.000535 Jy/beam
! Combined flux in latest and established models = 1.73951 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 = 9.54668e-05 Jy
! Component: 100  -  total flux cleaned = 0.000156284 Jy
! Component: 150  -  total flux cleaned = 0.000211488 Jy
! Component: 200  -  total flux cleaned = 0.000262749 Jy
! Total flux subtracted in 200 components = 0.000262749 Jy
! Clean residual min=-0.001783 max=0.001638 Jy/beam
! Clean residual mean=0.000039 rms=0.000528 Jy/beam
! Combined flux in latest and established models = 1.73977 Jy
! Adding 88 model components to the UV plane model.
! The established model now contains 338 components and 1.73977 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.205 mas, bmaj=4.415 mas, bpa=-5.058 degrees
! Estimated noise=441.314 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000437916 Jy
! Component: 100  -  total flux cleaned = -0.000438146 Jy
! Component: 150  -  total flux cleaned = -0.000438366 Jy
! Component: 200  -  total flux cleaned = -0.000346714 Jy
! Total flux subtracted in 200 components = -0.000346714 Jy
! Clean residual min=-0.002043 max=0.002137 Jy/beam
! Clean residual mean=0.000018 rms=0.000541 Jy/beam
! Combined flux in latest and established models = 1.73942 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 353 components and 1.73942 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.471997Jy  sigma=0.001136
! Fit after  self-cal, rms=1.473186Jy  sigma=0.001135
wmodel J1445+0958_S_1999_05_10_pus_map.mod
! Writing 353 model components to file: J1445+0958_S_1999_05_10_pus_map.mod
wobs J1445+0958_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1445+0958_S_1999_05_10_pus_uvs.fits
wwins J1445+0958_S_1999_05_10_pus_map.win
! wwins: Wrote 11 windows to J1445+0958_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.000238318 Jy
! Component: 100  -  total flux cleaned = 0.000526683 Jy
! Component: 150  -  total flux cleaned = 0.000805121 Jy
! Component: 200  -  total flux cleaned = 0.0010078 Jy
! Component: 250  -  total flux cleaned = 0.00123842 Jy
! Component: 300  -  total flux cleaned = 0.00136752 Jy
! Component: 350  -  total flux cleaned = 0.00152551 Jy
! Component: 400  -  total flux cleaned = 0.00161887 Jy
! Component: 450  -  total flux cleaned = 0.00180169 Jy
! Component: 500  -  total flux cleaned = 0.00189159 Jy
! Component: 550  -  total flux cleaned = 0.00209742 Jy
! Component: 600  -  total flux cleaned = 0.00215526 Jy
! Component: 650  -  total flux cleaned = 0.00226974 Jy
! Component: 700  -  total flux cleaned = 0.00238273 Jy
! Component: 750  -  total flux cleaned = 0.00252186 Jy
! Component: 800  -  total flux cleaned = 0.00263147 Jy
! Component: 850  -  total flux cleaned = 0.00265859 Jy
! Component: 900  -  total flux cleaned = 0.00271247 Jy
! Component: 950  -  total flux cleaned = 0.00273949 Jy
! Component: 1000  -  total flux cleaned = 0.00273981 Jy
! Component: 1050  -  total flux cleaned = 0.00276629 Jy
! Component: 1100  -  total flux cleaned = 0.00279208 Jy
! Component: 1150  -  total flux cleaned = 0.00279224 Jy
! Component: 1200  -  total flux cleaned = 0.00284311 Jy
! Component: 1250  -  total flux cleaned = 0.00284298 Jy
! Component: 1300  -  total flux cleaned = 0.00284318 Jy
! Component: 1350  -  total flux cleaned = 0.00289281 Jy
! Component: 1400  -  total flux cleaned = 0.00286836 Jy
! Component: 1450  -  total flux cleaned = 0.0029415 Jy
! Component: 1500  -  total flux cleaned = 0.00294147 Jy
! Component: 1550  -  total flux cleaned = 0.0029655 Jy
! Component: 1600  -  total flux cleaned = 0.00298952 Jy
! Component: 1650  -  total flux cleaned = 0.00298938 Jy
! Component: 1700  -  total flux cleaned = 0.00301281 Jy
! Component: 1750  -  total flux cleaned = 0.00296617 Jy
! Component: 1800  -  total flux cleaned = 0.00303562 Jy
! Component: 1850  -  total flux cleaned = 0.00305858 Jy
! Component: 1900  -  total flux cleaned = 0.00308123 Jy
! Component: 1950  -  total flux cleaned = 0.00305874 Jy
! Component: 2000  -  total flux cleaned = 0.00310381 Jy
! Total flux subtracted in 2048 components = 0.00305929 Jy
! Clean residual min=-0.001461 max=0.001333 Jy/beam
! Clean residual mean=-0.000012 rms=0.000421 Jy/beam
! Combined flux in latest and established models = 1.74248 Jy
keep
! Adding 123 model components to the UV plane model.
! The established model now contains 476 components and 1.74248 Jy
![Exited script file: muppet]
wmap "J1445+0958_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.205 x 4.415 at -5.058 degrees (North through East)
! Clean map  min=-0.0019653  max=0.70968 Jy/beam
! Writing clean map to FITS file: J1445+0958_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.709681 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000421242 
device "J1445+0958_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1445+0958_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.17807 0.17807 0.356139 0.712278 1.42456 2.84911 5.69823 11.3965 22.7929 45.5858 91.1716
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.709 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.205 x 4.415 at -5.058 degrees (North through East)
! Clean map  min=-0.0019653  max=0.70968 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1445+0958_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1445+0958_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1445+0958_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:42:02 2008