! Started logfile: J1608+1029_S_2001_07_05_pus_uvs.log on Fri Aug 10 01:46:18 2007
obs J1608+1029_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1608+1029_S_2001_07_05_pus_uva.fits
! AN table 1: 142 integrations on 171 of 171 possible baselines.
! AN table 2: 112 integrations on 171 of 171 possible baselines.
! AN table 3: 38 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.147 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1608+1029
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1774 lines of history.
! 
! Reading 29360 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 
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 2151 telescope corrections were flagged in sub-array 1.
!  A total of 1102 telescope corrections were flagged in sub-array 2.
!  A total of 692 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2151 telescope corrections were flagged in sub-array 1.
!  A total of 1102 telescope corrections were flagged in sub-array 2.
!  A total of 692 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2151 telescope corrections were flagged in sub-array 1.
!  A total of 1102 telescope corrections were flagged in sub-array 2.
!  A total of 692 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2151 telescope corrections were flagged in sub-array 1.
!  A total of 1102 telescope corrections were flagged in sub-array 2.
!  A total of 692 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.973514Jy  sigma=0.008019
! Fit after  self-cal, rms=0.519766Jy  sigma=0.004169
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.95 mas, bmaj=3.927 mas, bpa=-2.655 degrees
! Estimated noise=837.077 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.956981 Jy
! Component: 100  -  total flux cleaned = 1.25627 Jy
! Total flux subtracted in 100 components = 1.25627 Jy
! Clean residual min=-0.032868 max=0.135831 Jy/beam
! Clean residual mean=0.000415 rms=0.010119 Jy/beam
! Combined flux in latest and established models = 1.25627 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.25627 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.386861Jy  sigma=0.002927
! Fit after  self-cal, rms=0.385724Jy  sigma=0.002923
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.152156 Jy
! Component: 100  -  total flux cleaned = 0.236843 Jy
! Total flux subtracted in 100 components = 0.236843 Jy
! Clean residual min=-0.024409 max=0.042903 Jy/beam
! Clean residual mean=0.000150 rms=0.006541 Jy/beam
! Combined flux in latest and established models = 1.49312 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 17 components and 1.49312 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.316600Jy  sigma=0.002177
! Fit after  self-cal, rms=0.315618Jy  sigma=0.002173
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0521361 Jy
! Component: 100  -  total flux cleaned = 0.0842235 Jy
! Total flux subtracted in 100 components = 0.0842235 Jy
! Clean residual min=-0.024685 max=0.034278 Jy/beam
! Clean residual mean=0.000054 rms=0.005946 Jy/beam
! Combined flux in latest and established models = 1.57734 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 20 components and 1.57734 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307520Jy  sigma=0.002061
! Fit after  self-cal, rms=0.307430Jy  sigma=0.002061
! 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.219 mas, bmaj=4.854 mas, bpa=-5.455 degrees
! Estimated noise=544.921 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.5, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0313629 Jy
! Component: 100  -  total flux cleaned = 0.0421402 Jy
! Component: 150  -  total flux cleaned = 0.0480083 Jy
! Component: 200  -  total flux cleaned = 0.0514718 Jy
! Total flux subtracted in 200 components = 0.0514718 Jy
! Clean residual min=-0.018799 max=0.018356 Jy/beam
! Clean residual mean=-0.000493 rms=0.004605 Jy/beam
! Combined flux in latest and established models = 1.62881 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 40 components and 1.62881 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.304669Jy  sigma=0.002020
! Fit after  self-cal, rms=0.304323Jy  sigma=0.002017
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.94     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.17     KK        1.00     KP        0.87     
!   LA        1.02     MC        1.00*    MK        0.98     NL        0.97     
!   NY        1.00*    OV        0.93     PT        0.96     SC        1.00*    
!   TS        0.98     WF        1.06     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        0.99     GG        1.00*    
!   HH        1.00     HN        0.99     KK        1.00     KP        1.02     
!   LA        1.00     MC        1.27     MK        0.97     NL        1.00     
!   NY        1.01     OV        0.99     PT        0.98     SC        1.00     
!   TS        1.00*    WF        0.99     WZ        1.02     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        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*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.94     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.14     KK        1.03     KP        0.75     
!   LA        0.98     MC        1.00*    MK        0.96     NL        0.94     
!   NY        1.00*    OV        0.96     PT        0.98     SC        1.00*    
!   TS        0.95     WF        1.04     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.01     GC        0.95     GG        1.00*    
!   HH        1.04     HN        0.96     KK        1.01     KP        0.90     
!   LA        0.97     MC        1.14     MK        0.96     NL        0.96     
!   NY        1.03     OV        1.01     PT        1.01     SC        1.02     
!   TS        1.00*    WF        0.99     WZ        1.02     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        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*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.92     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.21     KK        1.02     KP        0.97     
!   LA        0.99     MC        1.00*    MK        1.00     NL        0.97     
!   NY        1.00*    OV        1.03     PT        0.98     SC        1.00*    
!   TS        0.96     WF        1.29     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.94     GC        0.98     GG        1.00*    
!   HH        0.99     HN        1.06     KK        1.01     KP        1.01     
!   LA        1.00     MC        1.74     MK        0.98     NL        1.06     
!   NY        1.04     OV        1.05     PT        1.07     SC        1.00     
!   TS        1.00*    WF        0.99     WZ        1.04     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        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*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.94     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.10     KK        1.01     KP        0.93     
!   LA        0.98     MC        1.00*    MK        0.99     NL        0.97     
!   NY        1.00*    OV        0.97     PT        1.05     SC        1.00*    
!   TS        0.96     WF        1.05     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.99     GC        0.97     GG        1.00*    
!   HH        0.98     HN        0.92     KK        0.98     KP        1.02     
!   LA        1.00     MC        1.43     MK        0.96     NL        0.99     
!   NY        1.02     OV        0.98     PT        1.07     SC        1.00     
!   TS        1.00*    WF        0.98     WZ        0.98     
! 
!  A total of 30 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        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*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.304323Jy  sigma=0.002017
! Fit after  self-cal, rms=0.316256Jy  sigma=0.001752
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.255 mas, bmaj=4.961 mas, bpa=-5.532 degrees
! Estimated noise=550.088 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.00756299 Jy
! Component: 100  -  total flux cleaned = -0.00710019 Jy
! Component: 150  -  total flux cleaned = -0.00673912 Jy
! Component: 200  -  total flux cleaned = -0.00579043 Jy
! Total flux subtracted in 200 components = -0.00579043 Jy
! Clean residual min=-0.013580 max=0.010752 Jy/beam
! Clean residual mean=-0.000021 rms=0.003157 Jy/beam
! Combined flux in latest and established models = 1.62302 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 53 components and 1.62302 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.314892Jy  sigma=0.001741
! Fit after  self-cal, rms=0.315281Jy  sigma=0.001740
! 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.315281Jy  sigma=0.001740
! Fit after  self-cal, rms=0.326314Jy  sigma=0.001504
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.265 mas, bmaj=4.967 mas, bpa=-5.408 degrees
! Estimated noise=550.19 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00172784 Jy
! Component: 100  -  total flux cleaned = -0.00150312 Jy
! Component: 150  -  total flux cleaned = -0.00050974 Jy
! Component: 200  -  total flux cleaned = 0.00033247 Jy
! Total flux subtracted in 200 components = 0.00033247 Jy
! Clean residual min=-0.005070 max=0.005888 Jy/beam
! Clean residual mean=0.000127 rms=0.001162 Jy/beam
! Combined flux in latest and established models = 1.62335 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 62 components and 1.62335 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325744Jy  sigma=0.001497
! Fit after  self-cal, rms=0.326032Jy  sigma=0.001496
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 (-8, 10).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00385397 Jy
! Component: 100  -  total flux cleaned = 0.00512529 Jy
! Component: 150  -  total flux cleaned = 0.00592103 Jy
! Component: 200  -  total flux cleaned = 0.00649645 Jy
! Total flux subtracted in 200 components = 0.00649645 Jy
! Clean residual min=-0.005056 max=0.003965 Jy/beam
! Clean residual mean=0.000073 rms=0.001080 Jy/beam
! Combined flux in latest and established models = 1.62985 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 73 components and 1.62985 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325798Jy  sigma=0.001494
! Fit after  self-cal, rms=0.325786Jy  sigma=0.001494
! 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.325786Jy  sigma=0.001494
! Fit after  self-cal, rms=0.329909Jy  sigma=0.001492
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.271 mas, bmaj=4.962 mas, bpa=-5.355 degrees
! Estimated noise=550.858 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000763599 Jy
! Component: 100  -  total flux cleaned = 0.000305789 Jy
! Component: 150  -  total flux cleaned = 0.00106882 Jy
! Component: 200  -  total flux cleaned = 0.00174576 Jy
! Total flux subtracted in 200 components = 0.00174576 Jy
! Clean residual min=-0.004650 max=0.003916 Jy/beam
! Clean residual mean=0.000054 rms=0.000990 Jy/beam
! Combined flux in latest and established models = 1.63159 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 80 components and 1.6316 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329712Jy  sigma=0.001490
! Fit after  self-cal, rms=0.329726Jy  sigma=0.001490
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.00105841 Jy
! Component: 100  -  total flux cleaned = 0.00129556 Jy
! Component: 150  -  total flux cleaned = 0.00163781 Jy
! Component: 200  -  total flux cleaned = 0.00195957 Jy
! Total flux subtracted in 200 components = 0.00195957 Jy
! Clean residual min=-0.004641 max=0.003825 Jy/beam
! Clean residual mean=0.000039 rms=0.000968 Jy/beam
! Combined flux in latest and established models = 1.63355 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 84 components and 1.63355 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329633Jy  sigma=0.001489
! Fit after  self-cal, rms=0.329630Jy  sigma=0.001489
! 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.329630Jy  sigma=0.001489
! Fit after  self-cal, rms=0.331748Jy  sigma=0.001489
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.816 mas, bmaj=9.288 mas, bpa=-2.107 degrees
! Estimated noise=772.173 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00201725 Jy
! Component: 100  -  total flux cleaned = 0.00277552 Jy
! Component: 150  -  total flux cleaned = 0.0033049 Jy
! Component: 200  -  total flux cleaned = 0.00368441 Jy
! Total flux subtracted in 200 components = 0.00368441 Jy
! Clean residual min=-0.003528 max=0.004118 Jy/beam
! Clean residual mean=0.000047 rms=0.001067 Jy/beam
! Combined flux in latest and established models = 1.63724 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 102 components and 1.63724 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331740Jy  sigma=0.001489
! Fit after  self-cal, rms=0.331736Jy  sigma=0.001489
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.000180247 Jy
! Component: 100  -  total flux cleaned = 0.000577934 Jy
! Component: 150  -  total flux cleaned = 0.000902284 Jy
! Component: 200  -  total flux cleaned = 0.00113834 Jy
! Total flux subtracted in 200 components = 0.00113834 Jy
! Clean residual min=-0.003474 max=0.004086 Jy/beam
! Clean residual mean=0.000020 rms=0.001067 Jy/beam
! Combined flux in latest and established models = 1.63838 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 110 components and 1.63838 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331742Jy  sigma=0.001489
! Fit after  self-cal, rms=0.331737Jy  sigma=0.001489
! 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.274 mas, bmaj=4.958 mas, bpa=-5.326 degrees
! Estimated noise=551.336 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.274 x 4.958 at -5.326 degrees (North through East)
! Clean map  min=-0.006309  max=1.2874 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.331737Jy  sigma=0.001489
! Fit after  self-cal, rms=0.344068Jy  sigma=0.001341
! Inverting map and beam 
! Estimated beam: bmin=2.274 mas, bmaj=4.964 mas, bpa=-5.369 degrees
! Estimated noise=550.801 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00237612 Jy
! Component: 100  -  total flux cleaned = -0.00261896 Jy
! Component: 150  -  total flux cleaned = -0.00283112 Jy
! Component: 200  -  total flux cleaned = -0.00322411 Jy
! Total flux subtracted in 200 components = -0.00322411 Jy
! Clean residual min=-0.003700 max=0.003339 Jy/beam
! Clean residual mean=0.000050 rms=0.000864 Jy/beam
! Combined flux in latest and established models = 1.63515 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 116 components and 1.63515 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343971Jy  sigma=0.001340
! Fit after  self-cal, rms=0.343977Jy  sigma=0.001340
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -9.55717e-05 Jy
! Component: 100  -  total flux cleaned = -0.000186751 Jy
! Component: 150  -  total flux cleaned = -0.000271757 Jy
! Component: 200  -  total flux cleaned = -0.00027177 Jy
! Total flux subtracted in 200 components = -0.00027177 Jy
! Clean residual min=-0.003449 max=0.003256 Jy/beam
! Clean residual mean=0.000052 rms=0.000852 Jy/beam
! Combined flux in latest and established models = 1.63488 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 120 components and 1.63488 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343926Jy  sigma=0.001340
! Fit after  self-cal, rms=0.343925Jy  sigma=0.001340
! 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.343925Jy  sigma=0.001340
! Fit after  self-cal, rms=0.345673Jy  sigma=0.001339
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.009 mas, bmaj=4.073 mas, bpa=-2.591 degrees
! Estimated noise=851.78 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.976403 Jy
! Component: 100  -  total flux cleaned = 1.26446 Jy
! Component: 150  -  total flux cleaned = 1.4007 Jy
! Component: 200  -  total flux cleaned = 1.46839 Jy
! Total flux subtracted in 200 components = 1.46839 Jy
! Clean residual min=-0.010435 max=0.033904 Jy/beam
! Clean residual mean=0.000222 rms=0.002943 Jy/beam
! Combined flux in latest and established models = 1.46839 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 14 model components to the UV plane model.
! The established model now contains 14 components and 1.46839 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.277 mas, bmaj=4.965 mas, bpa=-5.358 degrees
! Estimated noise=550.804 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.0581887 Jy
! Component: 100  -  total flux cleaned = 0.0930092 Jy
! Component: 150  -  total flux cleaned = 0.114998 Jy
! Component: 200  -  total flux cleaned = 0.129685 Jy
! Total flux subtracted in 200 components = 0.129685 Jy
! Clean residual min=-0.004033 max=0.008119 Jy/beam
! Clean residual mean=0.000333 rms=0.001296 Jy/beam
! Combined flux in latest and established models = 1.59808 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 41 components and 1.59808 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0103329 Jy
! Component: 100  -  total flux cleaned = 0.0178567 Jy
! Component: 150  -  total flux cleaned = 0.0234575 Jy
! Component: 200  -  total flux cleaned = 0.0272749 Jy
! Total flux subtracted in 200 components = 0.0272749 Jy
! Clean residual min=-0.003421 max=0.003682 Jy/beam
! Clean residual mean=0.000119 rms=0.000889 Jy/beam
! Combined flux in latest and established models = 1.62535 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 57 components and 1.62535 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.822 mas, bmaj=9.294 mas, bpa=-2.011 degrees
! Estimated noise=769.946 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00439787 Jy
! Component: 100  -  total flux cleaned = 0.00664317 Jy
! Component: 150  -  total flux cleaned = 0.00745922 Jy
! Component: 200  -  total flux cleaned = 0.00781319 Jy
! Total flux subtracted in 200 components = 0.00781319 Jy
! Clean residual min=-0.002922 max=0.003199 Jy/beam
! Clean residual mean=0.000162 rms=0.000944 Jy/beam
! Combined flux in latest and established models = 1.63317 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.00025652 Jy
! Component: 100  -  total flux cleaned = 0.000473044 Jy
! Component: 150  -  total flux cleaned = 0.000632051 Jy
! Component: 200  -  total flux cleaned = 0.00072578 Jy
! Total flux subtracted in 200 components = 0.00072578 Jy
! Clean residual min=-0.002852 max=0.003097 Jy/beam
! Clean residual mean=0.000144 rms=0.000939 Jy/beam
! Combined flux in latest and established models = 1.63389 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 89 components and 1.63389 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.277 mas, bmaj=4.965 mas, bpa=-5.358 degrees
! Estimated noise=550.804 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00120351 Jy
! Component: 100  -  total flux cleaned = -0.00120208 Jy
! Component: 150  -  total flux cleaned = -0.000990567 Jy
! Component: 200  -  total flux cleaned = -0.000890244 Jy
! Total flux subtracted in 200 components = -0.000890244 Jy
! Clean residual min=-0.003357 max=0.003531 Jy/beam
! Clean residual mean=0.000058 rms=0.000843 Jy/beam
! Combined flux in latest and established models = 1.633 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 98 components and 1.633 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.345681Jy  sigma=0.001339
! Fit after  self-cal, rms=0.345644Jy  sigma=0.001339
wmodel J1608+1029_S_2001_07_05_pus_map.mod
! Writing 98 model components to file: J1608+1029_S_2001_07_05_pus_map.mod
wobs J1608+1029_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1608+1029_S_2001_07_05_pus_uvs.fits
wwins J1608+1029_S_2001_07_05_pus_map.win
! wwins: Wrote 3 windows to J1608+1029_S_2001_07_05_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.00065493 Jy
! Component: 100  -  total flux cleaned = 0.00122548 Jy
! Component: 150  -  total flux cleaned = 0.00133618 Jy
! Component: 200  -  total flux cleaned = 0.00160082 Jy
! Component: 250  -  total flux cleaned = 0.00175511 Jy
! Component: 300  -  total flux cleaned = 0.00190521 Jy
! Component: 350  -  total flux cleaned = 0.00200322 Jy
! Component: 400  -  total flux cleaned = 0.00219701 Jy
! Component: 450  -  total flux cleaned = 0.00229291 Jy
! Component: 500  -  total flux cleaned = 0.00252825 Jy
! Component: 550  -  total flux cleaned = 0.00257482 Jy
! Component: 600  -  total flux cleaned = 0.00275907 Jy
! Component: 650  -  total flux cleaned = 0.00284996 Jy
! Component: 700  -  total flux cleaned = 0.00289527 Jy
! Component: 750  -  total flux cleaned = 0.00302798 Jy
! Component: 800  -  total flux cleaned = 0.00307241 Jy
! Component: 850  -  total flux cleaned = 0.00328982 Jy
! Component: 900  -  total flux cleaned = 0.00337576 Jy
! Component: 950  -  total flux cleaned = 0.0035036 Jy
! Component: 1000  -  total flux cleaned = 0.00354576 Jy
! Component: 1050  -  total flux cleaned = 0.00367218 Jy
! Component: 1100  -  total flux cleaned = 0.00375527 Jy
! Component: 1150  -  total flux cleaned = 0.00383767 Jy
! Component: 1200  -  total flux cleaned = 0.0038377 Jy
! Component: 1250  -  total flux cleaned = 0.00391942 Jy
! Component: 1300  -  total flux cleaned = 0.00396022 Jy
! Component: 1350  -  total flux cleaned = 0.00412095 Jy
! Component: 1400  -  total flux cleaned = 0.00420074 Jy
! Component: 1450  -  total flux cleaned = 0.00424024 Jy
! Component: 1500  -  total flux cleaned = 0.00431889 Jy
! Component: 1550  -  total flux cleaned = 0.00439711 Jy
! Component: 1600  -  total flux cleaned = 0.00451364 Jy
! Component: 1650  -  total flux cleaned = 0.00451357 Jy
! Component: 1700  -  total flux cleaned = 0.00462868 Jy
! Component: 1750  -  total flux cleaned = 0.00466665 Jy
! Component: 1800  -  total flux cleaned = 0.00470462 Jy
! Component: 1850  -  total flux cleaned = 0.00466692 Jy
! Component: 1900  -  total flux cleaned = 0.00474204 Jy
! Component: 1950  -  total flux cleaned = 0.00466772 Jy
! Component: 2000  -  total flux cleaned = 0.00492708 Jy
! Total flux subtracted in 2048 components = 0.00489038 Jy
! Clean residual min=-0.002036 max=0.001933 Jy/beam
! Clean residual mean=0.000020 rms=0.000687 Jy/beam
! Combined flux in latest and established models = 1.63789 Jy
keep
! Adding 161 model components to the UV plane model.
! The established model now contains 257 components and 1.63789 Jy
wmap "J1608+1029_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.277 x 4.965 at -5.358 degrees (North through East)
! Clean map  min=-0.002829  max=1.2898 Jy/beam
! Writing clean map to FITS file: J1608+1029_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.28975 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000686835 
device "J1608+1029_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1608+1029_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.159759 0.159759 0.319519 0.639038 1.27808 2.55615 5.1123 10.2246 20.4492 40.8984 81.7968
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.289 
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.277 x 4.965 at -5.358 degrees (North through East)
! Clean map  min=-0.002829  max=1.2898 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1608+1029_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1608+1029_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1608+1029_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 01:48:08 2007