! Started logfile: J1445+0958_S_2001_07_05_pus_uvs.log on Fri Aug 10 01:34:43 2007
obs J1445+0958_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1445+0958_S_2001_07_05_pus_uva.fits
! AN table 1: 112 integrations on 171 of 171 possible baselines.
! AN table 2: 266 integrations on 171 of 171 possible baselines.
! AN table 3: 237 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.126069 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1445+0958
! 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 53032 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 1885 telescope corrections were flagged in sub-array 1.
!  A total of 4410 telescope corrections were flagged in sub-array 2.
!  A total of 2087 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1885 telescope corrections were flagged in sub-array 1.
!  A total of 4410 telescope corrections were flagged in sub-array 2.
!  A total of 2086 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1885 telescope corrections were flagged in sub-array 1.
!  A total of 4410 telescope corrections were flagged in sub-array 2.
!  A total of 2087 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1885 telescope corrections were flagged in sub-array 1.
!  A total of 4410 telescope corrections were flagged in sub-array 2.
!  A total of 2087 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.770638Jy  sigma=0.006758
! Fit after  self-cal, rms=0.611733Jy  sigma=0.005146
! 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.692 mas, bmaj=4.979 mas, bpa=6.909 degrees
! Estimated noise=810.073 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.580864 Jy
! Component: 100  -  total flux cleaned = 0.837131 Jy
! Total flux subtracted in 100 components = 0.837131 Jy
! Clean residual min=-0.052264 max=0.162144 Jy/beam
! Clean residual mean=-0.000681 rms=0.021007 Jy/beam
! Combined flux in latest and established models = 0.837131 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 14 components and 0.837131 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.436915Jy  sigma=0.003819
! Fit after  self-cal, rms=0.432989Jy  sigma=0.003791
! Inverting map 
! Added new window around map position (0, -12.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.172689 Jy
! Component: 100  -  total flux cleaned = 0.291118 Jy
! Total flux subtracted in 100 components = 0.291118 Jy
! Clean residual min=-0.038061 max=0.070733 Jy/beam
! Clean residual mean=-0.000428 rms=0.013106 Jy/beam
! Combined flux in latest and established models = 1.12825 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 31 components and 1.12825 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332138Jy  sigma=0.002726
! Fit after  self-cal, rms=0.329021Jy  sigma=0.002704
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.266 mas, bmaj=5.949 mas, bpa=0.8201 degrees
! Estimated noise=353.164 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.129228 Jy
! Component: 100  -  total flux cleaned = 0.214583 Jy
! Component: 150  -  total flux cleaned = 0.274459 Jy
! Component: 200  -  total flux cleaned = 0.317393 Jy
! Total flux subtracted in 200 components = 0.317393 Jy
! Clean residual min=-0.027304 max=0.031298 Jy/beam
! Clean residual mean=-0.000010 rms=0.008366 Jy/beam
! Combined flux in latest and established models = 1.44564 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 64 components and 1.44564 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268529Jy  sigma=0.001980
! Fit after  self-cal, rms=0.265313Jy  sigma=0.001951
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 312 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.95     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        0.95     NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.05     WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.99     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        0.95     KP        0.94     
!   LA        0.94     MC        1.00*    MK        1.02     NL        0.94     
!   NY        1.00*    OV        0.99     PT        0.88     SC        1.03     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 312 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.96     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        0.95     NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.04     WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        0.95     KP        1.05     
!   LA        0.92     MC        1.00*    MK        1.01     NL        0.93     
!   NY        1.00*    OV        1.03     PT        0.94     SC        1.05     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 312 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.03     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        1.01     NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.08     WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.10     FD        0.99     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.02     KP        1.04     
!   LA        0.99     MC        1.00*    MK        1.06     NL        0.98     
!   NY        1.00*    OV        1.08     PT        0.89     SC        1.05     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 243 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   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*    
! 
!  A total of 312 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.01     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        1.00     NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.08     WF        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.02     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.01     KP        1.12     
!   LA        0.97     MC        1.00*    MK        1.06     NL        0.98     
!   NY        1.00*    OV        1.00     PT        0.81     SC        1.11     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.265313Jy  sigma=0.001951
! Fit after  self-cal, rms=0.242049Jy  sigma=0.001776
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.306 mas, bmaj=6.171 mas, bpa=-0.5589 degrees
! Estimated noise=349.338 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.0246309 Jy
! Component: 100  -  total flux cleaned = 0.0321508 Jy
! Component: 150  -  total flux cleaned = 0.0336814 Jy
! Component: 200  -  total flux cleaned = 0.0349727 Jy
! Total flux subtracted in 200 components = 0.0349727 Jy
! Clean residual min=-0.010417 max=0.020891 Jy/beam
! Clean residual mean=-0.000278 rms=0.003220 Jy/beam
! Combined flux in latest and established models = 1.48061 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 80 components and 1.48061 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239292Jy  sigma=0.001745
! Fit after  self-cal, rms=0.239095Jy  sigma=0.001742
! Inverting map 
! Added new window around map position (15.5, -19.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0163328 Jy
! Component: 100  -  total flux cleaned = 0.0213536 Jy
! Component: 150  -  total flux cleaned = 0.023625 Jy
! Component: 200  -  total flux cleaned = 0.0253659 Jy
! Total flux subtracted in 200 components = 0.0253659 Jy
! Clean residual min=-0.008572 max=0.010730 Jy/beam
! Clean residual mean=-0.000229 rms=0.002527 Jy/beam
! Combined flux in latest and established models = 1.50598 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 93 components and 1.50598 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237553Jy  sigma=0.001725
! Fit after  self-cal, rms=0.237445Jy  sigma=0.001724
! 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.237445Jy  sigma=0.001724
! Fit after  self-cal, rms=0.237318Jy  sigma=0.001722
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.302 mas, bmaj=6.159 mas, bpa=-0.6203 degrees
! Estimated noise=348.4 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00916437 Jy
! Component: 100  -  total flux cleaned = 0.0131451 Jy
! Component: 150  -  total flux cleaned = 0.0141383 Jy
! Component: 200  -  total flux cleaned = 0.0152648 Jy
! Total flux subtracted in 200 components = 0.0152648 Jy
! Clean residual min=-0.006666 max=0.008966 Jy/beam
! Clean residual mean=-0.000136 rms=0.002102 Jy/beam
! Combined flux in latest and established models = 1.52125 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 104 components and 1.52125 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236654Jy  sigma=0.001716
! Fit after  self-cal, rms=0.236593Jy  sigma=0.001715
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 (-2.5, -6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00597039 Jy
! Component: 100  -  total flux cleaned = 0.00665769 Jy
! Component: 150  -  total flux cleaned = 0.0070699 Jy
! Component: 200  -  total flux cleaned = 0.007079 Jy
! Total flux subtracted in 200 components = 0.007079 Jy
! Clean residual min=-0.005953 max=0.007254 Jy/beam
! Clean residual mean=-0.000129 rms=0.001884 Jy/beam
! Combined flux in latest and established models = 1.52832 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 120 components and 1.52832 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236018Jy  sigma=0.001711
! Fit after  self-cal, rms=0.235967Jy  sigma=0.001710
! 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.235967Jy  sigma=0.001710
! Fit after  self-cal, rms=0.235754Jy  sigma=0.001696
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.294 mas, bmaj=6.137 mas, bpa=-0.554 degrees
! Estimated noise=349.542 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0092109 Jy
! Component: 100  -  total flux cleaned = 0.0148565 Jy
! Component: 150  -  total flux cleaned = 0.018566 Jy
! Component: 200  -  total flux cleaned = 0.0208176 Jy
! Total flux subtracted in 200 components = 0.0208176 Jy
! Clean residual min=-0.007011 max=0.006429 Jy/beam
! Clean residual mean=-0.000061 rms=0.001816 Jy/beam
! Combined flux in latest and established models = 1.54914 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 134 components and 1.54914 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235292Jy  sigma=0.001691
! Fit after  self-cal, rms=0.235243Jy  sigma=0.001691
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.0027595 Jy
! Component: 100  -  total flux cleaned = 0.00407668 Jy
! Component: 150  -  total flux cleaned = 0.00478301 Jy
! Component: 200  -  total flux cleaned = 0.00543685 Jy
! Total flux subtracted in 200 components = 0.00543685 Jy
! Clean residual min=-0.006787 max=0.006058 Jy/beam
! Clean residual mean=-0.000054 rms=0.001721 Jy/beam
! Combined flux in latest and established models = 1.55458 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 137 components and 1.55458 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235093Jy  sigma=0.001689
! Fit after  self-cal, rms=0.235085Jy  sigma=0.001689
! 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.235085Jy  sigma=0.001689
! Fit after  self-cal, rms=0.234088Jy  sigma=0.001669
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.004 mas, bmaj=9.291 mas, bpa=-12.36 degrees
! Estimated noise=442.438 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00973964 Jy
! Component: 100  -  total flux cleaned = 0.0157852 Jy
! Component: 150  -  total flux cleaned = 0.0198705 Jy
! Component: 200  -  total flux cleaned = 0.0227891 Jy
! Total flux subtracted in 200 components = 0.0227891 Jy
! Clean residual min=-0.009764 max=0.006871 Jy/beam
! Clean residual mean=-0.000062 rms=0.002478 Jy/beam
! Combined flux in latest and established models = 1.57737 Jy
selfcal
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 172 components and 1.57737 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234032Jy  sigma=0.001667
! Fit after  self-cal, rms=0.233981Jy  sigma=0.001666
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.00245017 Jy
! Component: 100  -  total flux cleaned = 0.00351988 Jy
! Component: 150  -  total flux cleaned = 0.00424815 Jy
! Component: 200  -  total flux cleaned = 0.00480891 Jy
! Total flux subtracted in 200 components = 0.00480891 Jy
! Clean residual min=-0.008979 max=0.006786 Jy/beam
! Clean residual mean=-0.000048 rms=0.002364 Jy/beam
! Combined flux in latest and established models = 1.58218 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 187 components and 1.58218 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233998Jy  sigma=0.001666
! Fit after  self-cal, rms=0.233985Jy  sigma=0.001666
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=3.291 mas, bmaj=6.122 mas, bpa=-0.4946 degrees
! Estimated noise=350.852 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.291 x 6.122 at -0.4946 degrees (North through East)
! Clean map  min=-0.0059004  max=0.72914 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.233985Jy  sigma=0.001666
! Fit after  self-cal, rms=0.264645Jy  sigma=0.001270
! Inverting map and beam 
! Estimated beam: bmin=3.295 mas, bmaj=6.116 mas, bpa=-0.447 degrees
! Estimated noise=351.939 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00157403 Jy
! Component: 100  -  total flux cleaned = -0.00169051 Jy
! Component: 150  -  total flux cleaned = -0.00130194 Jy
! Component: 200  -  total flux cleaned = -0.001392 Jy
! Total flux subtracted in 200 components = -0.001392 Jy
! Clean residual min=-0.004342 max=0.005520 Jy/beam
! Clean residual mean=-0.000043 rms=0.001116 Jy/beam
! Combined flux in latest and established models = 1.58079 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 204 components and 1.58079 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264512Jy  sigma=0.001269
! Fit after  self-cal, rms=0.264498Jy  sigma=0.001269
! Inverting map 
! Added new window around map position (8, -21).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00449909 Jy
! Component: 100  -  total flux cleaned = 0.00602834 Jy
! Component: 150  -  total flux cleaned = 0.00705818 Jy
! Component: 200  -  total flux cleaned = 0.00723052 Jy
! Total flux subtracted in 200 components = 0.00723052 Jy
! Clean residual min=-0.003748 max=0.003589 Jy/beam
! Clean residual mean=-0.000035 rms=0.000951 Jy/beam
! Combined flux in latest and established models = 1.58802 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 225 components and 1.58802 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264325Jy  sigma=0.001266
! Fit after  self-cal, rms=0.264296Jy  sigma=0.001266
! 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.264296Jy  sigma=0.001266
! Fit after  self-cal, rms=0.263521Jy  sigma=0.001266
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.695 mas, bmaj=5.007 mas, bpa=6.721 degrees
! Estimated noise=819.783 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.575608 Jy
! Component: 100  -  total flux cleaned = 0.838779 Jy
! Component: 150  -  total flux cleaned = 1.0054 Jy
! Component: 200  -  total flux cleaned = 1.1244 Jy
! Total flux subtracted in 200 components = 1.1244 Jy
! Clean residual min=-0.029062 max=0.067526 Jy/beam
! Clean residual mean=-0.000535 rms=0.011614 Jy/beam
! Combined flux in latest and established models = 1.1244 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 31 model components to the UV plane model.
! The established model now contains 31 components and 1.1244 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.292 mas, bmaj=6.114 mas, bpa=-0.4491 degrees
! Estimated noise=351.733 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.124636 Jy
! Component: 100  -  total flux cleaned = 0.206961 Jy
! Component: 150  -  total flux cleaned = 0.264061 Jy
! Component: 200  -  total flux cleaned = 0.304736 Jy
! Total flux subtracted in 200 components = 0.304736 Jy
! Clean residual min=-0.012017 max=0.028377 Jy/beam
! Clean residual mean=-0.000226 rms=0.005222 Jy/beam
! Combined flux in latest and established models = 1.42913 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 74 components and 1.42914 Jy
! Inverting map 
! Added new window around map position (3, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0315563 Jy
! Component: 100  -  total flux cleaned = 0.0552982 Jy
! Component: 150  -  total flux cleaned = 0.0740148 Jy
! Component: 200  -  total flux cleaned = 0.0891025 Jy
! Total flux subtracted in 200 components = 0.0891025 Jy
! Clean residual min=-0.006457 max=0.009584 Jy/beam
! Clean residual mean=-0.000121 rms=0.002453 Jy/beam
! Combined flux in latest and established models = 1.51824 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 110 components and 1.51824 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.015 mas, bmaj=9.274 mas, bpa=-12.45 degrees
! Estimated noise=443.319 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0223857 Jy
! Component: 100  -  total flux cleaned = 0.0372619 Jy
! Component: 150  -  total flux cleaned = 0.0477726 Jy
! Component: 200  -  total flux cleaned = 0.0554107 Jy
! Total flux subtracted in 200 components = 0.0554107 Jy
! Clean residual min=-0.005502 max=0.004951 Jy/beam
! Clean residual mean=-0.000116 rms=0.001718 Jy/beam
! Combined flux in latest and established models = 1.57365 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.005676 Jy
! Component: 100  -  total flux cleaned = 0.00866978 Jy
! Component: 150  -  total flux cleaned = 0.0106495 Jy
! Component: 200  -  total flux cleaned = 0.0122744 Jy
! Total flux subtracted in 200 components = 0.0122744 Jy
! Clean residual min=-0.003930 max=0.003444 Jy/beam
! Clean residual mean=-0.000076 rms=0.001226 Jy/beam
! Combined flux in latest and established models = 1.58592 Jy
! Adding 112 model components to the UV plane model.
! The established model now contains 208 components and 1.58592 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.292 mas, bmaj=6.114 mas, bpa=-0.4491 degrees
! Estimated noise=351.733 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00357154 Jy
! Component: 100  -  total flux cleaned = 0.00402348 Jy
! Component: 150  -  total flux cleaned = 0.00429548 Jy
! Component: 200  -  total flux cleaned = 0.00418405 Jy
! Total flux subtracted in 200 components = 0.00418405 Jy
! Clean residual min=-0.003636 max=0.003766 Jy/beam
! Clean residual mean=-0.000025 rms=0.000961 Jy/beam
! Combined flux in latest and established models = 1.59011 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 239 components and 1.59011 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263598Jy  sigma=0.001268
! Fit after  self-cal, rms=0.263546Jy  sigma=0.001267
wmodel J1445+0958_S_2001_07_05_pus_map.mod
! Writing 239 model components to file: J1445+0958_S_2001_07_05_pus_map.mod
wobs J1445+0958_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1445+0958_S_2001_07_05_pus_uvs.fits
wwins J1445+0958_S_2001_07_05_pus_map.win
! wwins: Wrote 6 windows to J1445+0958_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.000592758 Jy
! Component: 100  -  total flux cleaned = 0.00107909 Jy
! Component: 150  -  total flux cleaned = 0.00153927 Jy
! Component: 200  -  total flux cleaned = 0.00225683 Jy
! Component: 250  -  total flux cleaned = 0.00299973 Jy
! Component: 300  -  total flux cleaned = 0.0035596 Jy
! Component: 350  -  total flux cleaned = 0.00409829 Jy
! Component: 400  -  total flux cleaned = 0.00466756 Jy
! Component: 450  -  total flux cleaned = 0.00512782 Jy
! Component: 500  -  total flux cleaned = 0.00544126 Jy
! Component: 550  -  total flux cleaned = 0.00587675 Jy
! Component: 600  -  total flux cleaned = 0.00617288 Jy
! Component: 650  -  total flux cleaned = 0.00638073 Jy
! Component: 700  -  total flux cleaned = 0.00674522 Jy
! Component: 750  -  total flux cleaned = 0.00698306 Jy
! Component: 800  -  total flux cleaned = 0.00721618 Jy
! Component: 850  -  total flux cleaned = 0.00752035 Jy
! Component: 900  -  total flux cleaned = 0.00763275 Jy
! Component: 950  -  total flux cleaned = 0.00781633 Jy
! Component: 1000  -  total flux cleaned = 0.00799736 Jy
! Component: 1050  -  total flux cleaned = 0.0082099 Jy
! Component: 1100  -  total flux cleaned = 0.00845384 Jy
! Component: 1150  -  total flux cleaned = 0.00848808 Jy
! Component: 1200  -  total flux cleaned = 0.00865726 Jy
! Component: 1250  -  total flux cleaned = 0.0087572 Jy
! Component: 1300  -  total flux cleaned = 0.00888778 Jy
! Component: 1350  -  total flux cleaned = 0.00892038 Jy
! Component: 1400  -  total flux cleaned = 0.00914297 Jy
! Component: 1450  -  total flux cleaned = 0.00923703 Jy
! Component: 1500  -  total flux cleaned = 0.00932995 Jy
! Component: 1550  -  total flux cleaned = 0.00945148 Jy
! Component: 1600  -  total flux cleaned = 0.00951175 Jy
! Component: 1650  -  total flux cleaned = 0.00968883 Jy
! Component: 1700  -  total flux cleaned = 0.00974678 Jy
! Component: 1750  -  total flux cleaned = 0.00980493 Jy
! Component: 1800  -  total flux cleaned = 0.00989041 Jy
! Component: 1850  -  total flux cleaned = 0.00997459 Jy
! Component: 1900  -  total flux cleaned = 0.0101672 Jy
! Component: 1950  -  total flux cleaned = 0.010168 Jy
! Component: 2000  -  total flux cleaned = 0.0104095 Jy
! Total flux subtracted in 2048 components = 0.0104618 Jy
! Clean residual min=-0.001409 max=0.001712 Jy/beam
! Clean residual mean=-0.000013 rms=0.000517 Jy/beam
! Combined flux in latest and established models = 1.60057 Jy
keep
! Adding 127 model components to the UV plane model.
! The established model now contains 363 components and 1.60057 Jy
wmap "J1445+0958_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.292 x 6.114 at -0.4491 degrees (North through East)
! Clean map  min=-0.0024056  max=0.73439 Jy/beam
! Writing clean map to FITS file: J1445+0958_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 0.734392 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00051639 
device "J1445+0958_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1445+0958_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.210946 0.210946 0.421891 0.843783 1.68757 3.37513 6.75026 13.5005 27.0011 54.0021
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.734 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.292 x 6.114 at -0.4491 degrees (North through East)
! Clean map  min=-0.0024056  max=0.73439 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1445+0958_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1445+0958_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1445+0958_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 01:37:53 2007