! Started logfile: J0102+5824_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:22:19 2008
obs J0102+5824_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0102+5824_S_1999_05_10_pus_uva.fits
! AN table 1: 228 integrations on 153 of 153 possible baselines.
! AN table 2: 85 integrations on 153 of 153 possible baselines.
! AN table 3: 153 integrations on 153 of 153 possible baselines.
! AN table 4: 116 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.272286 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0102+5824
! 
! 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 96984 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 J0102+5824_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 2167 telescope corrections were flagged in sub-array 1.
!  A total of 1233 telescope corrections were flagged in sub-array 2.
!  A total of 1673 telescope corrections were flagged in sub-array 3.
!  A total of 934 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2167 telescope corrections were flagged in sub-array 1.
!  A total of 1233 telescope corrections were flagged in sub-array 2.
!  A total of 1673 telescope corrections were flagged in sub-array 3.
!  A total of 934 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2167 telescope corrections were flagged in sub-array 1.
!  A total of 1233 telescope corrections were flagged in sub-array 2.
!  A total of 1673 telescope corrections were flagged in sub-array 3.
!  A total of 934 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2269 telescope corrections were flagged in sub-array 1.
!  A total of 1233 telescope corrections were flagged in sub-array 2.
!  A total of 1712 telescope corrections were flagged in sub-array 3.
!  A total of 995 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.656760Jy  sigma=0.004096
! Fit after  self-cal, rms=0.388070Jy  sigma=0.002368
! 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.059 mas, bmaj=2.527 mas, bpa=0.602 degrees
! Estimated noise=754.31 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.56169 Jy
! Component: 100  -  total flux cleaned = 0.709586 Jy
! Total flux subtracted in 100 components = 0.709586 Jy
! Clean residual min=-0.014338 max=0.066564 Jy/beam
! Clean residual mean=0.000146 rms=0.004208 Jy/beam
! Combined flux in latest and established models = 0.709586 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.709586 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335704Jy  sigma=0.002165
! Fit after  self-cal, rms=0.335635Jy  sigma=0.002164
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0808509 Jy
! Component: 100  -  total flux cleaned = 0.134338 Jy
! Total flux subtracted in 100 components = 0.134338 Jy
! Clean residual min=-0.009737 max=0.029296 Jy/beam
! Clean residual mean=0.000086 rms=0.002869 Jy/beam
! Combined flux in latest and established models = 0.843924 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 22 components and 0.843924 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.303617Jy  sigma=0.001789
! Fit after  self-cal, rms=0.303430Jy  sigma=0.001789
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0374092 Jy
! Component: 100  -  total flux cleaned = 0.0635634 Jy
! Total flux subtracted in 100 components = 0.0635634 Jy
! Clean residual min=-0.009161 max=0.018244 Jy/beam
! Clean residual mean=0.000057 rms=0.002472 Jy/beam
! Combined flux in latest and established models = 0.907488 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 27 components and 0.907488 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295995Jy  sigma=0.001689
! Fit after  self-cal, rms=0.295918Jy  sigma=0.001689
! Inverting map 
! Added new window around map position (-3, -1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0205722 Jy
! Component: 100  -  total flux cleaned = 0.0355078 Jy
! Total flux subtracted in 100 components = 0.0355078 Jy
! Clean residual min=-0.008837 max=0.011685 Jy/beam
! Clean residual mean=0.000041 rms=0.002341 Jy/beam
! Combined flux in latest and established models = 0.942996 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 36 components and 0.942996 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.293782Jy  sigma=0.001659
! Fit after  self-cal, rms=0.293671Jy  sigma=0.001658
! 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.73 mas, bmaj=3.206 mas, bpa=13.18 degrees
! Estimated noise=324.309 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.0194133 Jy
! Component: 100  -  total flux cleaned = 0.0309969 Jy
! Component: 150  -  total flux cleaned = 0.0384001 Jy
! Component: 200  -  total flux cleaned = 0.0432125 Jy
! Total flux subtracted in 200 components = 0.0432125 Jy
! Clean residual min=-0.006281 max=0.007347 Jy/beam
! Clean residual mean=0.000383 rms=0.001575 Jy/beam
! Combined flux in latest and established models = 0.986208 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 50 components and 0.986208 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292658Jy  sigma=0.001641
! Fit after  self-cal, rms=0.292571Jy  sigma=0.001640
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 144 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        1.04     HH        1.00*    
!   HN        1.02     KK        1.08     KP        1.34     LA        0.99     
!   MC        1.13     MK        0.95     NL        0.99     NY        0.96     
!   ON        0.99     OV        1.02     PT        1.02     SC        1.04     
!   WF        0.97     WZ        1.01     
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        1.03     HH        1.00*    
!   HN        1.00     KK        0.96     KP        0.95     LA        0.98     
!   MC        1.26     MK        0.93     NL        0.99     NY        0.96     
!   ON        0.97     OV        1.02     PT        1.01     SC        1.05     
!   WF        0.96     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.97     GC        1.02     HH        1.00*    
!   HN        1.01     KK        1.03     KP        0.96     LA        0.99     
!   MC        0.94     MK        0.94     NL        0.98     NY        0.93     
!   ON        0.93     OV        1.02     PT        0.99     SC        1.04     
!   WF        1.00     WZ        0.92     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.03     GC        1.05     HH        1.00*    
!   HN        1.00     KK        1.00*    KP        0.86     LA        1.01     
!   MC        0.88     MK        1.00*    NL        1.00     NY        0.96     
!   ON        0.98     OV        1.05     PT        1.04     SC        1.10     
!   WF        0.96     WZ        0.90     
! 
! 
! Correcting IF 2.
!  A total of 144 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.03     GC        1.00     HH        1.00*    
!   HN        1.02     KK        1.08     KP        1.00     LA        0.97     
!   MC        1.04     MK        1.01     NL        0.99     NY        0.95     
!   ON        1.01     OV        0.99     PT        0.99     SC        1.05     
!   WF        0.99     WZ        1.01     
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        1.01     GC        1.01     HH        1.00*    
!   HN        0.99     KK        0.94     KP        1.00     LA        0.95     
!   MC        1.14     MK        1.00     NL        1.00     NY        0.94     
!   ON        0.97     OV        0.97     PT        0.97     SC        1.15     
!   WF        0.96     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00     GC        1.00     HH        1.00*    
!   HN        1.00     KK        1.00     KP        0.95     LA        0.94     
!   MC        0.95     MK        0.97     NL        1.00     NY        0.94     
!   ON        0.95     OV        0.98     PT        0.98     SC        1.05     
!   WF        0.99     WZ        0.91     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.04     GC        1.01     HH        1.00*    
!   HN        0.99     KK        1.00*    KP        1.23     LA        1.00     
!   MC        1.11     MK        1.00*    NL        1.00     NY        0.95     
!   ON        0.98     OV        1.03     PT        1.01     SC        1.07     
!   WF        1.00     WZ        0.98     
! 
! 
! Correcting IF 3.
!  A total of 144 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     GC        1.01     HH        1.00*    
!   HN        1.01     KK        1.05     KP        0.97     LA        0.99     
!   MC        1.28     MK        0.95     NL        1.02     NY        1.00     
!   ON        0.99     OV        0.98     PT        0.97     SC        1.03     
!   WF        0.98     WZ        0.89     
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        1.01     GC        1.01     HH        1.00*    
!   HN        0.98     KK        0.96     KP        0.98     LA        0.98     
!   MC        1.37     MK        0.95     NL        1.00     NY        0.99     
!   ON        1.02     OV        0.95     PT        0.96     SC        1.12     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.98     GC        1.00     HH        1.00*    
!   HN        1.00     KK        0.99     KP        0.94     LA        0.97     
!   MC        1.25     MK        0.90     NL        1.02     NY        0.97     
!   ON        1.08     OV        0.98     PT        0.95     SC        1.01     
!   WF        0.99     WZ        7.26     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.05     GC        1.02     HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.17     LA        1.01     
!   MC        0.81     MK        1.00*    NL        1.01     NY        0.99     
!   ON        1.03     OV        1.01     PT        0.98     SC        1.08     
!   WF        0.99     WZ        1.46     
! 
! 
! Correcting IF 4.
!  A total of 141 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.00     GC        1.01     HH        1.00*    
!   HN        1.01     KK        1.05     KP        0.96     LA        1.00     
!   MC        0.86     MK        0.97     NL        1.02     NY        1.02     
!   ON        1.03     OV        0.95     PT        0.92     SC        1.03     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.98     GC        0.99     HH        1.00*    
!   HN        0.99     KK        0.94     KP        0.99     LA        0.97     
!   MC        0.82     MK        0.98     NL        1.01     NY        0.93     
!   ON        1.06     OV        0.92     PT        1.16     SC        1.13     
!   WF        0.97     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        0.97     GC        1.02     HH        1.00*    
!   HN        1.00     KK        0.99     KP        0.94     LA        0.97     
!   MC        0.95     MK        0.92     NL        1.02     NY        0.99     
!   ON        0.97     OV        0.94     PT        0.99     SC        1.03     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.15     GC        1.01     HH        1.00*    
!   HN        1.00     KK        1.00*    KP        1.19     LA        1.07     
!   MC        1.08     MK        1.00*    NL        1.02     NY        1.01     
!   ON        0.99     OV        0.97     PT        0.99     SC        1.09     
!   WF        0.96     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.292571Jy  sigma=0.001640
! Fit after  self-cal, rms=0.330288Jy  sigma=0.001552
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.732 mas, bmaj=3.241 mas, bpa=14.96 degrees
! Estimated noise=326.807 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 (-6, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00243388 Jy
! Component: 100  -  total flux cleaned = 0.00446797 Jy
! Component: 150  -  total flux cleaned = 0.00557311 Jy
! Component: 200  -  total flux cleaned = 0.00631827 Jy
! Total flux subtracted in 200 components = 0.00631827 Jy
! Clean residual min=-0.003462 max=0.003881 Jy/beam
! Clean residual mean=0.000246 rms=0.000923 Jy/beam
! Combined flux in latest and established models = 0.992526 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 65 components and 0.992526 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.330102Jy  sigma=0.001550
! Fit after  self-cal, rms=0.330572Jy  sigma=0.001550
! 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.330572Jy  sigma=0.001550
! Fit after  self-cal, rms=0.340468Jy  sigma=0.001519
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.742 mas, bmaj=3.236 mas, bpa=14.28 degrees
! Estimated noise=327.249 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00413554 Jy
! Component: 100  -  total flux cleaned = 0.00464972 Jy
! Component: 150  -  total flux cleaned = 0.00464772 Jy
! Component: 200  -  total flux cleaned = 0.00471229 Jy
! Total flux subtracted in 200 components = 0.00471229 Jy
! Clean residual min=-0.003913 max=0.003156 Jy/beam
! Clean residual mean=0.000171 rms=0.000661 Jy/beam
! Combined flux in latest and established models = 0.997239 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 76 components and 0.997239 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340391Jy  sigma=0.001518
! Fit after  self-cal, rms=0.341018Jy  sigma=0.001518
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.000392243 Jy
! Component: 100  -  total flux cleaned = 0.000397807 Jy
! Component: 150  -  total flux cleaned = 0.000448587 Jy
! Component: 200  -  total flux cleaned = 0.000495377 Jy
! Total flux subtracted in 200 components = 0.000495377 Jy
! Clean residual min=-0.003615 max=0.003024 Jy/beam
! Clean residual mean=0.000163 rms=0.000654 Jy/beam
! Combined flux in latest and established models = 0.997734 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 81 components and 0.997734 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340994Jy  sigma=0.001517
! Fit after  self-cal, rms=0.341001Jy  sigma=0.001517
! 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.341001Jy  sigma=0.001517
! Fit after  self-cal, rms=0.340235Jy  sigma=0.001516
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.744 mas, bmaj=3.234 mas, bpa=14.29 degrees
! Estimated noise=327.449 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00178566 Jy
! Component: 100  -  total flux cleaned = 0.00189813 Jy
! Component: 150  -  total flux cleaned = 0.0020498 Jy
! Component: 200  -  total flux cleaned = 0.00214194 Jy
! Total flux subtracted in 200 components = 0.00214194 Jy
! Clean residual min=-0.003817 max=0.003094 Jy/beam
! Clean residual mean=0.000149 rms=0.000635 Jy/beam
! Combined flux in latest and established models = 0.999876 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 85 components and 0.999876 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340209Jy  sigma=0.001515
! Fit after  self-cal, rms=0.340563Jy  sigma=0.001515
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 = 7.88725e-05 Jy
! Component: 100  -  total flux cleaned = 0.000128577 Jy
! Component: 150  -  total flux cleaned = 0.000216013 Jy
! Component: 200  -  total flux cleaned = 0.00021467 Jy
! Total flux subtracted in 200 components = 0.00021467 Jy
! Clean residual min=-0.003578 max=0.003015 Jy/beam
! Clean residual mean=0.000145 rms=0.000631 Jy/beam
! Combined flux in latest and established models = 1.00009 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 88 components and 1.00009 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.340551Jy  sigma=0.001515
! Fit after  self-cal, rms=0.340559Jy  sigma=0.001515
! 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.340559Jy  sigma=0.001515
! Fit after  self-cal, rms=0.341031Jy  sigma=0.001515
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.799 mas, bmaj=8.397 mas, bpa=51.9 degrees
! Estimated noise=463.989 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00112685 Jy
! Component: 100  -  total flux cleaned = 0.00139383 Jy
! Component: 150  -  total flux cleaned = 0.00156136 Jy
! Component: 200  -  total flux cleaned = 0.00158626 Jy
! Total flux subtracted in 200 components = 0.00158626 Jy
! Clean residual min=-0.002824 max=0.005161 Jy/beam
! Clean residual mean=0.000450 rms=0.001159 Jy/beam
! Combined flux in latest and established models = 1.00168 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 95 components and 1.00168 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.341039Jy  sigma=0.001515
! Fit after  self-cal, rms=0.341107Jy  sigma=0.001515
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 (-60.5, 33.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00517459 Jy
! Component: 100  -  total flux cleaned = 0.00822197 Jy
! Component: 150  -  total flux cleaned = 0.0102731 Jy
! Component: 200  -  total flux cleaned = 0.0117346 Jy
! Total flux subtracted in 200 components = 0.0117346 Jy
! Clean residual min=-0.002513 max=0.003643 Jy/beam
! Clean residual mean=0.000182 rms=0.000867 Jy/beam
! Combined flux in latest and established models = 1.01341 Jy
! Performing phase self-cal
! Adding 97 model components to the UV plane model.
! The established model now contains 190 components and 1.01341 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.341072Jy  sigma=0.001514
! Fit after  self-cal, rms=0.341076Jy  sigma=0.001514
! Inverting map 
! Added new window around map position (-18.5, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00344641 Jy
! Component: 100  -  total flux cleaned = 0.00486486 Jy
! Component: 150  -  total flux cleaned = 0.00577903 Jy
! Component: 200  -  total flux cleaned = 0.00633795 Jy
! Total flux subtracted in 200 components = 0.00633795 Jy
! Clean residual min=-0.002566 max=0.002455 Jy/beam
! Clean residual mean=0.000008 rms=0.000757 Jy/beam
! Combined flux in latest and established models = 1.01975 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 226 components and 1.01975 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.341056Jy  sigma=0.001514
! Fit after  self-cal, rms=0.341060Jy  sigma=0.001514
! 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.745 mas, bmaj=3.233 mas, bpa=14.32 degrees
! Estimated noise=327.689 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.745 x 3.233 at 14.32 degrees (North through East)
! Clean map  min=-0.0019496  max=0.78626 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.341060Jy  sigma=0.001514
! Fit after  self-cal, rms=0.788198Jy  sigma=0.001343
! Inverting map and beam 
! Estimated beam: bmin=2.746 mas, bmaj=3.232 mas, bpa=14.52 degrees
! Estimated noise=327.867 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00110009 Jy
! Component: 100  -  total flux cleaned = 0.00185036 Jy
! Component: 150  -  total flux cleaned = 0.00239819 Jy
! Component: 200  -  total flux cleaned = 0.00291096 Jy
! Total flux subtracted in 200 components = 0.00291096 Jy
! Clean residual min=-0.003334 max=0.002097 Jy/beam
! Clean residual mean=0.000024 rms=0.000507 Jy/beam
! Combined flux in latest and established models = 1.02266 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 254 components and 1.02266 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.788176Jy  sigma=0.001342
! Fit after  self-cal, rms=0.788248Jy  sigma=0.001342
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000649591 Jy
! Component: 100  -  total flux cleaned = 0.0010674 Jy
! Component: 150  -  total flux cleaned = 0.00135386 Jy
! Component: 200  -  total flux cleaned = 0.00146342 Jy
! Total flux subtracted in 200 components = 0.00146342 Jy
! Clean residual min=-0.003327 max=0.002084 Jy/beam
! Clean residual mean=0.000011 rms=0.000501 Jy/beam
! Combined flux in latest and established models = 1.02412 Jy
! Performing phase self-cal
! Adding 54 model components to the UV plane model.
! The established model now contains 278 components and 1.02412 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.788233Jy  sigma=0.001342
! Fit after  self-cal, rms=0.788229Jy  sigma=0.001342
! 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.788229Jy  sigma=0.001342
! Fit after  self-cal, rms=1.051756Jy  sigma=0.001342
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.083 mas, bmaj=2.54 mas, bpa=1.524 degrees
! Estimated noise=767.545 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.569282 Jy
! Component: 100  -  total flux cleaned = 0.715878 Jy
! Component: 150  -  total flux cleaned = 0.794438 Jy
! Component: 200  -  total flux cleaned = 0.845388 Jy
! Total flux subtracted in 200 components = 0.845388 Jy
! Clean residual min=-0.007697 max=0.027790 Jy/beam
! Clean residual mean=0.000071 rms=0.002059 Jy/beam
! Combined flux in latest and established models = 0.845388 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 22 model components to the UV plane model.
! The established model now contains 22 components and 0.845388 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.746 mas, bmaj=3.231 mas, bpa=14.52 degrees
! Estimated noise=327.887 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.0596782 Jy
! Component: 100  -  total flux cleaned = 0.0920417 Jy
! Component: 150  -  total flux cleaned = 0.111572 Jy
! Component: 200  -  total flux cleaned = 0.124433 Jy
! Total flux subtracted in 200 components = 0.124433 Jy
! Clean residual min=-0.002198 max=0.007325 Jy/beam
! Clean residual mean=0.000500 rms=0.000951 Jy/beam
! Combined flux in latest and established models = 0.969822 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 63 components and 0.969821 Jy
! Inverting map 
! Added new window around map position (-0.5, -2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00888603 Jy
! Component: 100  -  total flux cleaned = 0.0153375 Jy
! Component: 150  -  total flux cleaned = 0.020311 Jy
! Component: 200  -  total flux cleaned = 0.0239321 Jy
! Total flux subtracted in 200 components = 0.0239321 Jy
! Clean residual min=-0.002536 max=0.002577 Jy/beam
! Clean residual mean=0.000264 rms=0.000642 Jy/beam
! Combined flux in latest and established models = 0.993753 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 97 components and 0.993753 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.795 mas, bmaj=8.409 mas, bpa=52.22 degrees
! Estimated noise=464.119 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00699311 Jy
! Component: 100  -  total flux cleaned = 0.0120221 Jy
! Component: 150  -  total flux cleaned = 0.0159274 Jy
! Component: 200  -  total flux cleaned = 0.0190233 Jy
! Total flux subtracted in 200 components = 0.0190233 Jy
! Clean residual min=-0.002076 max=0.002252 Jy/beam
! Clean residual mean=0.000345 rms=0.000799 Jy/beam
! Combined flux in latest and established models = 1.01278 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.00247455 Jy
! Component: 100  -  total flux cleaned = 0.00447281 Jy
! Component: 150  -  total flux cleaned = 0.00611313 Jy
! Component: 200  -  total flux cleaned = 0.00747753 Jy
! Total flux subtracted in 200 components = 0.00747753 Jy
! Clean residual min=-0.002122 max=0.002035 Jy/beam
! Clean residual mean=0.000144 rms=0.000685 Jy/beam
! Combined flux in latest and established models = 1.02025 Jy
! Adding 157 model components to the UV plane model.
! The established model now contains 251 components and 1.02025 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.746 mas, bmaj=3.231 mas, bpa=14.52 degrees
! Estimated noise=327.887 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000774445 Jy
! Component: 100  -  total flux cleaned = -0.00023608 Jy
! Component: 150  -  total flux cleaned = 0.000524855 Jy
! Component: 200  -  total flux cleaned = 0.00103923 Jy
! Total flux subtracted in 200 components = 0.00103923 Jy
! Clean residual min=-0.002484 max=0.002164 Jy/beam
! Clean residual mean=0.000040 rms=0.000505 Jy/beam
! Combined flux in latest and established models = 1.02129 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 261 components and 1.02129 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.051781Jy  sigma=0.001342
! Fit after  self-cal, rms=1.051752Jy  sigma=0.001342
wmodel J0102+5824_S_1999_05_10_pus_map.mod
! Writing 261 model components to file: J0102+5824_S_1999_05_10_pus_map.mod
wobs J0102+5824_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0102+5824_S_1999_05_10_pus_uvs.fits
wwins J0102+5824_S_1999_05_10_pus_map.win
! wwins: Wrote 6 windows to J0102+5824_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.000179687 Jy
! Component: 100  -  total flux cleaned = 0.000807283 Jy
! Component: 150  -  total flux cleaned = 0.00115654 Jy
! Component: 200  -  total flux cleaned = 0.00149284 Jy
! Component: 250  -  total flux cleaned = 0.0017549 Jy
! Component: 300  -  total flux cleaned = 0.00197974 Jy
! Component: 350  -  total flux cleaned = 0.00207467 Jy
! Component: 400  -  total flux cleaned = 0.00223048 Jy
! Component: 450  -  total flux cleaned = 0.00235326 Jy
! Component: 500  -  total flux cleaned = 0.00247411 Jy
! Component: 550  -  total flux cleaned = 0.00253385 Jy
! Component: 600  -  total flux cleaned = 0.00265234 Jy
! Component: 650  -  total flux cleaned = 0.00268172 Jy
! Component: 700  -  total flux cleaned = 0.00282673 Jy
! Component: 750  -  total flux cleaned = 0.00279763 Jy
! Component: 800  -  total flux cleaned = 0.00282639 Jy
! Component: 850  -  total flux cleaned = 0.00288314 Jy
! Component: 900  -  total flux cleaned = 0.00288359 Jy
! Component: 950  -  total flux cleaned = 0.00299503 Jy
! Component: 1000  -  total flux cleaned = 0.00299475 Jy
! Component: 1050  -  total flux cleaned = 0.0029948 Jy
! Component: 1100  -  total flux cleaned = 0.00296777 Jy
! Component: 1150  -  total flux cleaned = 0.00302171 Jy
! Component: 1200  -  total flux cleaned = 0.00304865 Jy
! Component: 1250  -  total flux cleaned = 0.00312829 Jy
! Component: 1300  -  total flux cleaned = 0.0031283 Jy
! Component: 1350  -  total flux cleaned = 0.00315461 Jy
! Component: 1400  -  total flux cleaned = 0.00318075 Jy
! Component: 1450  -  total flux cleaned = 0.0032068 Jy
! Component: 1500  -  total flux cleaned = 0.00320693 Jy
! Component: 1550  -  total flux cleaned = 0.00328353 Jy
! Component: 1600  -  total flux cleaned = 0.00328371 Jy
! Component: 1650  -  total flux cleaned = 0.0033593 Jy
! Component: 1700  -  total flux cleaned = 0.00333423 Jy
! Component: 1750  -  total flux cleaned = 0.00340891 Jy
! Component: 1800  -  total flux cleaned = 0.00343362 Jy
! Component: 1850  -  total flux cleaned = 0.00343369 Jy
! Component: 1900  -  total flux cleaned = 0.0034827 Jy
! Component: 1950  -  total flux cleaned = 0.00350708 Jy
! Component: 2000  -  total flux cleaned = 0.00353125 Jy
! Total flux subtracted in 2048 components = 0.00355527 Jy
! Clean residual min=-0.001342 max=0.001525 Jy/beam
! Clean residual mean=0.000009 rms=0.000439 Jy/beam
! Combined flux in latest and established models = 1.02485 Jy
keep
! Adding 149 model components to the UV plane model.
! The established model now contains 399 components and 1.02485 Jy
![Exited script file: muppet]
wmap "J0102+5824_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.746 x 3.231 at 14.52 degrees (North through East)
! Clean map  min=-0.0018998  max=0.78753 Jy/beam
! Writing clean map to FITS file: J0102+5824_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.787528 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000438532 
device "J0102+5824_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0102+5824_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.167054 0.167054 0.334107 0.668215 1.33643 2.67286 5.34572 10.6914 21.3829 42.7657 85.5315
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.787 
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.746 x 3.231 at 14.52 degrees (North through East)
! Clean map  min=-0.0018998  max=0.78753 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0102+5824_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0102+5824_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0102+5824_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:22:54 2008