! Started logfile: J1608+1029_S_1999_05_10_pus_uvs.log on Tue Jan 22 14:39:49 2008
obs J1608+1029_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1608+1029_S_1999_05_10_pus_uva.fits
! AN table 1: 10 integrations on 153 of 153 possible baselines.
! AN table 2: 162 integrations on 153 of 153 possible baselines.
! AN table 3: 129 integrations on 153 of 153 possible baselines.
! AN table 4: 22 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.111799 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1608+1029
! 
! 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 2002 lines of history.
! 
! Reading 22100 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 J1608+1029_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 159 telescope corrections were flagged in sub-array 1.
!  A total of 2032 telescope corrections were flagged in sub-array 2.
!  A total of 1806 telescope corrections were flagged in sub-array 3.
!  A total of 375 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 159 telescope corrections were flagged in sub-array 1.
!  A total of 2038 telescope corrections were flagged in sub-array 2.
!  A total of 1809 telescope corrections were flagged in sub-array 3.
!  A total of 375 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 159 telescope corrections were flagged in sub-array 1.
!  A total of 2035 telescope corrections were flagged in sub-array 2.
!  A total of 1848 telescope corrections were flagged in sub-array 3.
!  A total of 375 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 159 telescope corrections were flagged in sub-array 1.
!  A total of 2045 telescope corrections were flagged in sub-array 2.
!  A total of 2061 telescope corrections were flagged in sub-array 3.
!  A total of 375 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.957494Jy  sigma=0.007323
! Fit after  self-cal, rms=0.362751Jy  sigma=0.002590
! 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.138 mas, bmaj=3.751 mas, bpa=2.31 degrees
! Estimated noise=1017.67 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.78196 Jy
! Component: 100  -  total flux cleaned = 1.02013 Jy
! Total flux subtracted in 100 components = 1.02013 Jy
! Clean residual min=-0.023551 max=0.101044 Jy/beam
! Clean residual mean=0.000320 rms=0.007797 Jy/beam
! Combined flux in latest and established models = 1.02013 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.02013 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321715Jy  sigma=0.002393
! Fit after  self-cal, rms=0.320735Jy  sigma=0.002392
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.111398 Jy
! Component: 100  -  total flux cleaned = 0.173597 Jy
! Total flux subtracted in 100 components = 0.173597 Jy
! Clean residual min=-0.015762 max=0.033707 Jy/beam
! Clean residual mean=0.000164 rms=0.004777 Jy/beam
! Combined flux in latest and established models = 1.19373 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 23 components and 1.19373 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274888Jy  sigma=0.001846
! Fit after  self-cal, rms=0.274249Jy  sigma=0.001844
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0403831 Jy
! Component: 100  -  total flux cleaned = 0.0670355 Jy
! Total flux subtracted in 100 components = 0.0670355 Jy
! Clean residual min=-0.016169 max=0.027407 Jy/beam
! Clean residual mean=0.000101 rms=0.004169 Jy/beam
! Combined flux in latest and established models = 1.26076 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 27 components and 1.26076 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267827Jy  sigma=0.001750
! Fit after  self-cal, rms=0.267727Jy  sigma=0.001749
! Inverting map 
! Added new window around map position (-4.5, 5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0259258 Jy
! Component: 100  -  total flux cleaned = 0.0425935 Jy
! Total flux subtracted in 100 components = 0.0425935 Jy
! Clean residual min=-0.016608 max=0.018746 Jy/beam
! Clean residual mean=0.000055 rms=0.003899 Jy/beam
! Combined flux in latest and established models = 1.30336 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 34 components and 1.30336 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265051Jy  sigma=0.001710
! Fit after  self-cal, rms=0.264815Jy  sigma=0.001709
! 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.592 mas, bmaj=4.752 mas, bpa=-4.702 degrees
! Estimated noise=647.701 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 (-2, 4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0216318 Jy
! Component: 100  -  total flux cleaned = 0.0287797 Jy
! Component: 150  -  total flux cleaned = 0.029479 Jy
! Component: 200  -  total flux cleaned = 0.0294755 Jy
! Total flux subtracted in 200 components = 0.0294755 Jy
! Clean residual min=-0.010399 max=0.017335 Jy/beam
! Clean residual mean=0.000149 rms=0.003285 Jy/beam
! Combined flux in latest and established models = 1.33283 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 49 components and 1.33283 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262971Jy  sigma=0.001689
! Fit after  self-cal, rms=0.262706Jy  sigma=0.001687
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00     GC        1.03     HH        1.00*    
!   HN        1.00     KK        1.03     KP        0.99     LA        1.01     
!   MC        1.00*    MK        0.99     NL        0.98     NY        1.04     
!   ON        1.00*    OV        1.04     PT        1.02     SC        1.04     
!   WF        0.96     WZ        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.00     GC        1.00*    HH        1.12     
!   HN        1.01     KK        1.00*    KP        1.00     LA        1.04     
!   MC        1.01     MK        1.00*    NL        1.01     NY        0.95     
!   ON        1.01     OV        1.00*    PT        1.04     SC        1.02     
!   WF        1.04     WZ        0.97     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.04     GC        1.03     HH        1.00*    
!   HN        0.99     KK        1.02     KP        1.00     LA        0.93     
!   MC        1.00*    MK        1.07     NL        1.00     NY        1.02     
!   ON        1.00*    OV        1.01     PT        1.00     SC        1.03     
!   WF        0.98     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.05     GC        1.00*    HH        1.13     
!   HN        1.04     KK        1.00*    KP        1.07     LA        1.00     
!   MC        0.98     MK        1.00*    NL        1.00     NY        0.95     
!   ON        1.04     OV        1.00*    PT        1.02     SC        1.03     
!   WF        1.03     WZ        0.97     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.91     GC        1.02     HH        1.00*    
!   HN        0.99     KK        1.03     KP        1.01     LA        0.95     
!   MC        1.00*    MK        0.99     NL        1.00     NY        1.08     
!   ON        1.00*    OV        0.98     PT        0.94     SC        1.01     
!   WF        0.98     WZ        1.00*    
! 
!  A total of 114 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.02     GC        1.00*    HH        1.13     
!   HN        1.04     KK        1.00*    KP        1.11     LA        1.03     
!   MC        1.18     MK        1.00*    NL        1.03     NY        0.98     
!   ON        1.03     OV        1.00*    PT        1.01     SC        1.05     
!   WF        1.06     WZ        1.11     
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 150 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.88     GC        1.03     HH        1.00*    
!   HN        0.98     KK        1.03     KP        1.05     LA        0.98     
!   MC        1.00*    MK        1.02     NL        1.00     NY        1.10     
!   ON        1.00*    OV        0.92     PT        0.98     SC        1.01     
!   WF        0.97     WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.05     FD        1.00     GC        1.00*    HH        1.10     
!   HN        1.06     KK        1.00*    KP        1.10     LA        1.03     
!   MC        1.53     MK        1.00*    NL        1.06     NY        0.98     
!   ON        0.96     OV        1.00*    PT        1.03     SC        1.04     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.262706Jy  sigma=0.001687
! Fit after  self-cal, rms=0.267852Jy  sigma=0.001592
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.652 mas, bmaj=4.886 mas, bpa=-5.525 degrees
! Estimated noise=666.603 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.00513377 Jy
! Component: 100  -  total flux cleaned = -0.0066704 Jy
! Component: 150  -  total flux cleaned = -0.00822737 Jy
! Component: 200  -  total flux cleaned = -0.00856013 Jy
! Total flux subtracted in 200 components = -0.00856013 Jy
! Clean residual min=-0.009326 max=0.011479 Jy/beam
! Clean residual mean=-0.000024 rms=0.002449 Jy/beam
! Combined flux in latest and established models = 1.32427 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 62 components and 1.32427 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267321Jy  sigma=0.001587
! Fit after  self-cal, rms=0.267244Jy  sigma=0.001587
! 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.267244Jy  sigma=0.001587
! Fit after  self-cal, rms=0.260588Jy  sigma=0.001464
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.663 mas, bmaj=4.874 mas, bpa=-5.285 degrees
! Estimated noise=667.757 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000595988 Jy
! Component: 100  -  total flux cleaned = 0.00059236 Jy
! Component: 150  -  total flux cleaned = 0.000911226 Jy
! Component: 200  -  total flux cleaned = 0.00133365 Jy
! Total flux subtracted in 200 components = 0.00133365 Jy
! Clean residual min=-0.004633 max=0.005387 Jy/beam
! Clean residual mean=0.000145 rms=0.001132 Jy/beam
! Combined flux in latest and established models = 1.32561 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 70 components and 1.32561 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260349Jy  sigma=0.001462
! Fit after  self-cal, rms=0.260343Jy  sigma=0.001462
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 = 5.22955e-05 Jy
! Component: 100  -  total flux cleaned = 0.000557889 Jy
! Component: 150  -  total flux cleaned = 0.000787159 Jy
! Component: 200  -  total flux cleaned = 0.000892443 Jy
! Total flux subtracted in 200 components = 0.000892443 Jy
! Clean residual min=-0.004086 max=0.005160 Jy/beam
! Clean residual mean=0.000137 rms=0.001099 Jy/beam
! Combined flux in latest and established models = 1.3265 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 77 components and 1.3265 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260225Jy  sigma=0.001461
! Fit after  self-cal, rms=0.260197Jy  sigma=0.001461
! Inverting map 
! Added new window around map position (-8.5, 10).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00332386 Jy
! Component: 100  -  total flux cleaned = 0.0037964 Jy
! Component: 150  -  total flux cleaned = 0.00420809 Jy
! Component: 200  -  total flux cleaned = 0.0044884 Jy
! Total flux subtracted in 200 components = 0.0044884 Jy
! Clean residual min=-0.004441 max=0.004098 Jy/beam
! Clean residual mean=0.000099 rms=0.001055 Jy/beam
! Combined flux in latest and established models = 1.33099 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 87 components and 1.33099 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260058Jy  sigma=0.001460
! Fit after  self-cal, rms=0.260032Jy  sigma=0.001460
! 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.260032Jy  sigma=0.001460
! Fit after  self-cal, rms=0.261678Jy  sigma=0.001458
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.669 mas, bmaj=4.885 mas, bpa=-5.305 degrees
! Estimated noise=668.309 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00139661 Jy
! Component: 100  -  total flux cleaned = -0.00128538 Jy
! Component: 150  -  total flux cleaned = -0.00108464 Jy
! Component: 200  -  total flux cleaned = -0.000803166 Jy
! Total flux subtracted in 200 components = -0.000803166 Jy
! Clean residual min=-0.003883 max=0.003836 Jy/beam
! Clean residual mean=0.000095 rms=0.000968 Jy/beam
! Combined flux in latest and established models = 1.33018 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 91 components and 1.33018 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261577Jy  sigma=0.001457
! Fit after  self-cal, rms=0.261568Jy  sigma=0.001457
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.000243698 Jy
! Component: 100  -  total flux cleaned = 0.000686024 Jy
! Component: 150  -  total flux cleaned = 0.00093528 Jy
! Component: 200  -  total flux cleaned = 0.00108938 Jy
! Total flux subtracted in 200 components = 0.00108938 Jy
! Clean residual min=-0.003833 max=0.003705 Jy/beam
! Clean residual mean=0.000086 rms=0.000953 Jy/beam
! Combined flux in latest and established models = 1.33127 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 93 components and 1.33127 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.261500Jy  sigma=0.001456
! Fit after  self-cal, rms=0.261486Jy  sigma=0.001456
! 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.261486Jy  sigma=0.001456
! Fit after  self-cal, rms=0.262378Jy  sigma=0.001456
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.287 mas, bmaj=9.904 mas, bpa=-5.382 degrees
! Estimated noise=872.454 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00104755 Jy
! Component: 100  -  total flux cleaned = -0.000646167 Jy
! Component: 150  -  total flux cleaned = -0.000354918 Jy
! Component: 200  -  total flux cleaned = -0.000269749 Jy
! Total flux subtracted in 200 components = -0.000269749 Jy
! Clean residual min=-0.004834 max=0.004718 Jy/beam
! Clean residual mean=0.000212 rms=0.001134 Jy/beam
! Combined flux in latest and established models = 1.331 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 99 components and 1.331 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262366Jy  sigma=0.001456
! Fit after  self-cal, rms=0.262369Jy  sigma=0.001456
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.00014369 Jy
! Component: 100  -  total flux cleaned = 4.59493e-05 Jy
! Component: 150  -  total flux cleaned = 0.000227492 Jy
! Component: 200  -  total flux cleaned = 0.000229098 Jy
! Total flux subtracted in 200 components = 0.000229098 Jy
! Clean residual min=-0.004843 max=0.004722 Jy/beam
! Clean residual mean=0.000207 rms=0.001130 Jy/beam
! Combined flux in latest and established models = 1.33123 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 109 components and 1.33123 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262363Jy  sigma=0.001456
! Fit after  self-cal, rms=0.262356Jy  sigma=0.001456
! Inverting map 
! Added new window around map position (16, -42.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00444146 Jy
! Component: 100  -  total flux cleaned = 0.0063727 Jy
! Component: 150  -  total flux cleaned = 0.006447 Jy
! Component: 200  -  total flux cleaned = 0.0063261 Jy
! Total flux subtracted in 200 components = 0.0063261 Jy
! Clean residual min=-0.004697 max=0.003878 Jy/beam
! Clean residual mean=0.000034 rms=0.000994 Jy/beam
! Combined flux in latest and established models = 1.33756 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 140 components and 1.33756 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262293Jy  sigma=0.001455
! Fit after  self-cal, rms=0.262288Jy  sigma=0.001455
! 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.672 mas, bmaj=4.891 mas, bpa=-5.322 degrees
! Estimated noise=668.622 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.672 x 4.891 at -5.322 degrees (North through East)
! Clean map  min=-0.0032504  max=1.0616 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.262288Jy  sigma=0.001455
! Fit after  self-cal, rms=0.285545Jy  sigma=0.001188
! Inverting map and beam 
! Estimated beam: bmin=2.674 mas, bmaj=4.887 mas, bpa=-5.299 degrees
! Estimated noise=667.552 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000983003 Jy
! Component: 100  -  total flux cleaned = -0.00132748 Jy
! Component: 150  -  total flux cleaned = -0.00162267 Jy
! Component: 200  -  total flux cleaned = -0.00153119 Jy
! Total flux subtracted in 200 components = -0.00153119 Jy
! Clean residual min=-0.003457 max=0.003219 Jy/beam
! Clean residual mean=0.000033 rms=0.000810 Jy/beam
! Combined flux in latest and established models = 1.33603 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 158 components and 1.33603 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285415Jy  sigma=0.001188
! Fit after  self-cal, rms=0.285425Jy  sigma=0.001188
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000251072 Jy
! Component: 100  -  total flux cleaned = 0.00025215 Jy
! Component: 150  -  total flux cleaned = 0.000332557 Jy
! Component: 200  -  total flux cleaned = 0.00025737 Jy
! Total flux subtracted in 200 components = 0.00025737 Jy
! Clean residual min=-0.003385 max=0.003252 Jy/beam
! Clean residual mean=0.000030 rms=0.000797 Jy/beam
! Combined flux in latest and established models = 1.33628 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 173 components and 1.33628 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285343Jy  sigma=0.001187
! Fit after  self-cal, rms=0.285339Jy  sigma=0.001187
! 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.285339Jy  sigma=0.001187
! Fit after  self-cal, rms=0.315821Jy  sigma=0.001187
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.202 mas, bmaj=3.875 mas, bpa=1.086 degrees
! Estimated noise=1047.18 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.798313 Jy
! Component: 100  -  total flux cleaned = 1.02954 Jy
! Component: 150  -  total flux cleaned = 1.13079 Jy
! Component: 200  -  total flux cleaned = 1.18504 Jy
! Total flux subtracted in 200 components = 1.18504 Jy
! Clean residual min=-0.008893 max=0.029060 Jy/beam
! Clean residual mean=0.000209 rms=0.002856 Jy/beam
! Combined flux in latest and established models = 1.18504 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 16 model components to the UV plane model.
! The established model now contains 16 components and 1.18504 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.676 mas, bmaj=4.889 mas, bpa=-5.299 degrees
! Estimated noise=667.277 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.0522581 Jy
! Component: 100  -  total flux cleaned = 0.0830865 Jy
! Component: 150  -  total flux cleaned = 0.10222 Jy
! Component: 200  -  total flux cleaned = 0.114914 Jy
! Total flux subtracted in 200 components = 0.114914 Jy
! Clean residual min=-0.004055 max=0.007030 Jy/beam
! Clean residual mean=0.000322 rms=0.001203 Jy/beam
! Combined flux in latest and established models = 1.29996 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 46 components and 1.29996 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00895653 Jy
! Component: 100  -  total flux cleaned = 0.0154873 Jy
! Component: 150  -  total flux cleaned = 0.0202766 Jy
! Component: 200  -  total flux cleaned = 0.0231005 Jy
! Total flux subtracted in 200 components = 0.0231005 Jy
! Clean residual min=-0.003775 max=0.003244 Jy/beam
! Clean residual mean=0.000136 rms=0.000904 Jy/beam
! Combined flux in latest and established models = 1.32306 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 67 components and 1.32306 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.288 mas, bmaj=9.909 mas, bpa=-5.316 degrees
! Estimated noise=869.457 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00470264 Jy
! Component: 100  -  total flux cleaned = 0.00767802 Jy
! Component: 150  -  total flux cleaned = 0.00980403 Jy
! Component: 200  -  total flux cleaned = 0.0110638 Jy
! Total flux subtracted in 200 components = 0.0110638 Jy
! Clean residual min=-0.002784 max=0.003336 Jy/beam
! Clean residual mean=0.000105 rms=0.000890 Jy/beam
! Combined flux in latest and established models = 1.33412 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.00044514 Jy
! Component: 100  -  total flux cleaned = 0.000744581 Jy
! Component: 150  -  total flux cleaned = 0.000974495 Jy
! Component: 200  -  total flux cleaned = 0.00118373 Jy
! Total flux subtracted in 200 components = 0.00118373 Jy
! Clean residual min=-0.002746 max=0.003407 Jy/beam
! Clean residual mean=0.000076 rms=0.000882 Jy/beam
! Combined flux in latest and established models = 1.3353 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 127 components and 1.3353 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.676 mas, bmaj=4.889 mas, bpa=-5.299 degrees
! Estimated noise=667.277 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00153044 Jy
! Component: 100  -  total flux cleaned = -0.00153084 Jy
! Component: 150  -  total flux cleaned = -0.00140404 Jy
! Component: 200  -  total flux cleaned = -0.00117555 Jy
! Total flux subtracted in 200 components = -0.00117555 Jy
! Clean residual min=-0.003331 max=0.003081 Jy/beam
! Clean residual mean=0.000040 rms=0.000825 Jy/beam
! Combined flux in latest and established models = 1.33413 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 141 components and 1.33413 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.316347Jy  sigma=0.001189
! Fit after  self-cal, rms=0.316091Jy  sigma=0.001188
wmodel J1608+1029_S_1999_05_10_pus_map.mod
! Writing 141 model components to file: J1608+1029_S_1999_05_10_pus_map.mod
wobs J1608+1029_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1608+1029_S_1999_05_10_pus_uvs.fits
wwins J1608+1029_S_1999_05_10_pus_map.win
! wwins: Wrote 5 windows to J1608+1029_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.00105099 Jy
! Component: 100  -  total flux cleaned = -0.00162525 Jy
! Component: 150  -  total flux cleaned = -0.0019516 Jy
! Component: 200  -  total flux cleaned = -0.00210871 Jy
! Component: 250  -  total flux cleaned = -0.00231154 Jy
! Component: 300  -  total flux cleaned = -0.00241093 Jy
! Component: 350  -  total flux cleaned = -0.00250753 Jy
! Component: 400  -  total flux cleaned = -0.00241302 Jy
! Component: 450  -  total flux cleaned = -0.00232005 Jy
! Component: 500  -  total flux cleaned = -0.00222839 Jy
! Component: 550  -  total flux cleaned = -0.00213785 Jy
! Component: 600  -  total flux cleaned = -0.00200396 Jy
! Component: 650  -  total flux cleaned = -0.00196038 Jy
! Component: 700  -  total flux cleaned = -0.0018737 Jy
! Component: 750  -  total flux cleaned = -0.00183087 Jy
! Component: 800  -  total flux cleaned = -0.00178804 Jy
! Component: 850  -  total flux cleaned = -0.00178797 Jy
! Component: 900  -  total flux cleaned = -0.00170422 Jy
! Component: 950  -  total flux cleaned = -0.00162112 Jy
! Component: 1000  -  total flux cleaned = -0.00170377 Jy
! Component: 1050  -  total flux cleaned = -0.00162188 Jy
! Component: 1100  -  total flux cleaned = -0.00162188 Jy
! Component: 1150  -  total flux cleaned = -0.00154166 Jy
! Component: 1200  -  total flux cleaned = -0.00158191 Jy
! Component: 1250  -  total flux cleaned = -0.00154203 Jy
! Component: 1300  -  total flux cleaned = -0.00150291 Jy
! Component: 1350  -  total flux cleaned = -0.00142486 Jy
! Component: 1400  -  total flux cleaned = -0.00134729 Jy
! Component: 1450  -  total flux cleaned = -0.00138629 Jy
! Component: 1500  -  total flux cleaned = -0.00138637 Jy
! Component: 1550  -  total flux cleaned = -0.00134824 Jy
! Component: 1600  -  total flux cleaned = -0.00138596 Jy
! Component: 1650  -  total flux cleaned = -0.00134836 Jy
! Component: 1700  -  total flux cleaned = -0.00134822 Jy
! Component: 1750  -  total flux cleaned = -0.00131093 Jy
! Component: 1800  -  total flux cleaned = -0.00127395 Jy
! Component: 1850  -  total flux cleaned = -0.0012373 Jy
! Component: 1900  -  total flux cleaned = -0.00120064 Jy
! Component: 1950  -  total flux cleaned = -0.00123691 Jy
! Component: 2000  -  total flux cleaned = -0.00123679 Jy
! Total flux subtracted in 2048 components = -0.00116482 Jy
! Clean residual min=-0.002195 max=0.002440 Jy/beam
! Clean residual mean=0.000043 rms=0.000655 Jy/beam
! Combined flux in latest and established models = 1.33296 Jy
keep
! Adding 156 model components to the UV plane model.
! The established model now contains 296 components and 1.33296 Jy
![Exited script file: muppet]
wmap "J1608+1029_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.676 x 4.889 at -5.299 degrees (North through East)
! Clean map  min=-0.0033789  max=1.0632 Jy/beam
! Writing clean map to FITS file: J1608+1029_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 1.06321 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000655898 
device "J1608+1029_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1608+1029_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.18507 0.18507 0.370141 0.740282 1.48056 2.96113 5.92225 11.8445 23.689 47.378 94.7561
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.063 
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.676 x 4.889 at -5.299 degrees (North through East)
! Clean map  min=-0.0033789  max=1.0632 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1608+1029_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1608+1029_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1608+1029_S_1999_05_10_pus_uvs.log closed on Tue Jan 22 14:40:02 2008