! Started logfile: J1719+1745_S_2003_05_07_pus_uvs.log on Sun Dec 24 11:36:33 2006
obs J1719+1745_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J1719+1745_S_2003_05_07_pus_uva.fits
! AN table 1: 179 integrations on 171 of 171 possible baselines.
! AN table 2: 398 integrations on 171 of 171 possible baselines.
! AN table 3: 344 integrations on 171 of 171 possible baselines.
! AN table 4: 81 integrations on 171 of 171 possible baselines.
! AN table 5: 294 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.107619 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1719+1745
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1680 lines of history.
! 
! Reading 95400 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
float field_size
field_size = 512
float field_cell
field_cell = 0.5
float 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 2793 telescope corrections were flagged in sub-array 1.
!  A total of 7119 telescope corrections were flagged in sub-array 2.
!  A total of 5950 telescope corrections were flagged in sub-array 3.
!  A total of 1146 telescope corrections were flagged in sub-array 4.
!  A total of 2416 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 2796 telescope corrections were flagged in sub-array 1.
!  A total of 7200 telescope corrections were flagged in sub-array 2.
!  A total of 6063 telescope corrections were flagged in sub-array 3.
!  A total of 1146 telescope corrections were flagged in sub-array 4.
!  A total of 2416 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 2797 telescope corrections were flagged in sub-array 1.
!  A total of 7200 telescope corrections were flagged in sub-array 2.
!  A total of 6063 telescope corrections were flagged in sub-array 3.
!  A total of 1146 telescope corrections were flagged in sub-array 4.
!  A total of 2416 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 2797 telescope corrections were flagged in sub-array 1.
!  A total of 7137 telescope corrections were flagged in sub-array 2.
!  A total of 5950 telescope corrections were flagged in sub-array 3.
!  A total of 1146 telescope corrections were flagged in sub-array 4.
!  A total of 2416 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.843794Jy  sigma=0.004586
! Fit after  self-cal, rms=0.735186Jy  sigma=0.003671
! 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.813 mas, bmaj=4.16 mas, bpa=-10.71 degrees
! Estimated noise=998.752 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.402877 Jy
! Component: 100  -  total flux cleaned = 0.502477 Jy
! Total flux subtracted in 100 components = 0.502477 Jy
! Clean residual min=-0.014484 max=0.041700 Jy/beam
! Clean residual mean=0.000090 rms=0.003838 Jy/beam
! Combined flux in latest and established models = 0.502477 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 0.502477 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.532305Jy  sigma=0.001478
! Fit after  self-cal, rms=0.532386Jy  sigma=0.001478
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0450911 Jy
! Component: 100  -  total flux cleaned = 0.0683979 Jy
! Total flux subtracted in 100 components = 0.0683979 Jy
! Clean residual min=-0.010467 max=0.014440 Jy/beam
! Clean residual mean=-0.000058 rms=0.002749 Jy/beam
! Combined flux in latest and established models = 0.570875 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 13 components and 0.570875 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.530545Jy  sigma=0.001418
! Fit after  self-cal, rms=0.530527Jy  sigma=0.001418
! 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.139 mas, bmaj=4.87 mas, bpa=-13.17 degrees
! Estimated noise=372.432 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.00514115 Jy
! Component: 100  -  total flux cleaned = 0.00661654 Jy
! Component: 150  -  total flux cleaned = 0.00763837 Jy
! Component: 200  -  total flux cleaned = 0.00834731 Jy
! Total flux subtracted in 200 components = 0.00834731 Jy
! Clean residual min=-0.007569 max=0.008681 Jy/beam
! Clean residual mean=-0.000088 rms=0.002107 Jy/beam
! Combined flux in latest and established models = 0.579222 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 19 components and 0.579222 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.530353Jy  sigma=0.001414
! Fit after  self-cal, rms=0.530363Jy  sigma=0.001414
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.02     GG        1.00*    HN        0.82     
!   KK        0.96     KP        0.98     LA        1.01     MA        1.00*    
!   MC        1.00*    MK        1.00     NL        0.98     ON        1.00*    
!   OV        0.84     PT        0.99     SC        1.00*    TC        1.00*    
!   TS        0.97     WF        1.00*    WZ        1.00*    
! 
!  A total of 297 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.76     
!   MC        0.95     MK        1.00*    NL        1.00*    ON        0.96     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.01     WF        1.00*    WZ        1.00     
! 
!  A total of 273 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        0.83     
!   KK        1.00*    KP        1.00*    LA        1.15     MA        0.80     
!   MC        1.03     MK        1.00*    NL        0.98     ON        0.97     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.11     WF        0.98     WZ        0.98     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.11     FD        1.09     GG        1.00*    HN        0.85     
!   KK        1.00*    KP        1.00*    LA        1.14     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        0.93     ON        1.00*    
!   OV        1.00*    PT        1.14     SC        0.91     TC        1.00*    
!   TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  A total of 123 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.98     FD        0.98     GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.00*    LA        1.03     MA        0.95     
!   MC        1.03     MK        0.95     NL        0.94     ON        0.99     
!   OV        1.04     PT        1.01     SC        0.94     TC        0.99     
!   TS        1.00*    WF        0.97     WZ        1.14     
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.07     GG        1.00*    HN        0.91     
!   KK        1.01     KP        0.97     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        0.87     NL        1.01     ON        1.00*    
!   OV        0.79     PT        0.98     SC        1.00*    TC        1.00*    
!   TS        0.96     WF        1.00*    WZ        1.00*    
! 
!  A total of 306 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.95     
!   MC        1.08     MK        1.00*    NL        1.00*    ON        1.05     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        0.91     
! 
!  A total of 309 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        0.89     
!   KK        1.00*    KP        1.00*    LA        1.18     MA        0.82     
!   MC        1.06     MK        1.00*    NL        1.00     ON        1.01     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.05     WZ        1.01     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.17     FD        1.14     GG        1.00*    HN        0.89     
!   KK        1.00*    KP        1.00*    LA        1.08     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        0.95     ON        1.00*    
!   OV        1.00*    PT        1.08     SC        0.93     TC        1.00*    
!   TS        1.00*    WF        1.05     WZ        1.00*    
! 
!  A total of 123 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.04     FD        1.02     GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.00*    LA        0.98     MA        1.07     
!   MC        1.05     MK        0.99     NL        0.97     ON        1.04     
!   OV        1.00     PT        1.00     SC        0.95     TC        1.01     
!   TS        1.00*    WF        0.99     WZ        1.35     
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.01     GG        1.00*    HN        0.95     
!   KK        0.95     KP        1.01     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        0.86     NL        1.02     ON        1.00*    
!   OV        0.79     PT        1.00     SC        1.00*    TC        1.00*    
!   TS        1.00     WF        1.00*    WZ        1.00*    
! 
!  A total of 306 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.92     
!   MC        0.92     MK        1.00*    NL        1.00*    ON        1.11     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.15     
! 
!  A total of 309 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.00*    LA        1.12     MA        0.90     
!   MC        1.23     MK        1.00*    NL        0.95     ON        0.96     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.04     WZ        1.14     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.16     FD        1.08     GG        1.00*    HN        0.91     
!   KK        1.00*    KP        1.00*    LA        1.05     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        0.97     ON        1.00*    
!   OV        1.00*    PT        1.13     SC        1.04     TC        1.00*    
!   TS        1.00*    WF        1.10     WZ        1.00*    
! 
!  A total of 123 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        0.97     GG        1.00*    HN        1.08     
!   KK        1.00*    KP        1.00*    LA        0.98     MA        1.07     
!   MC        1.04     MK        0.96     NL        0.98     ON        1.09     
!   OV        1.02     PT        1.03     SC        1.08     TC        0.96     
!   TS        1.00*    WF        1.00     WZ        1.14     
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.02     GG        1.00*    HN        0.85     
!   KK        0.98     KP        0.99     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        0.86     NL        0.95     ON        1.00*    
!   OV        0.79     PT        0.94     SC        1.00*    TC        1.00*    
!   TS        1.00     WF        1.00*    WZ        1.00*    
! 
!  A total of 279 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        0.98     
!   MC        1.24     MK        1.00*    NL        1.00*    ON        0.93     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        0.99     WF        1.00*    WZ        0.96     
! 
!  A total of 273 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        0.84     
!   KK        1.00*    KP        1.00*    LA        1.10     MA        1.13     
!   MC        1.33     MK        1.00*    NL        0.98     ON        0.94     
!   OV        1.00*    PT        1.00*    SC        1.00*    TC        1.00*    
!   TS        1.11     WF        0.99     WZ        1.03     
! 
!  A total of 18 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.17     FD        1.06     GG        1.00*    HN        0.90     
!   KK        1.00*    KP        1.00*    LA        1.06     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        0.94     ON        1.00*    
!   OV        1.00*    PT        1.05     SC        1.03     TC        1.00*    
!   TS        1.00*    WF        1.19     WZ        1.00*    
! 
!  A total of 123 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        0.98     GG        1.00*    HN        1.08     
!   KK        1.00*    KP        1.00*    LA        0.99     MA        1.04     
!   MC        0.92     MK        1.02     NL        0.91     ON        0.97     
!   OV        0.97     PT        0.97     SC        1.09     TC        1.00     
!   TS        1.00*    WF        1.03     WZ        1.11     
! 
! 
! Fit before self-cal, rms=0.530363Jy  sigma=0.001414
! Fit after  self-cal, rms=0.547932Jy  sigma=0.001381
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.143 mas, bmaj=4.835 mas, bpa=-12.96 degrees
! Estimated noise=379.314 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.00596938 Jy
! Component: 100  -  total flux cleaned = -0.00684223 Jy
! Component: 150  -  total flux cleaned = -0.00717961 Jy
! Component: 200  -  total flux cleaned = -0.00743031 Jy
! Total flux subtracted in 200 components = -0.00743031 Jy
! Clean residual min=-0.003940 max=0.003756 Jy/beam
! Clean residual mean=-0.000060 rms=0.000909 Jy/beam
! Combined flux in latest and established models = 0.571792 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 26 components and 0.571792 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.547845Jy  sigma=0.001380
! Fit after  self-cal, rms=0.548192Jy  sigma=0.001380
! 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.548192Jy  sigma=0.001380
! Fit after  self-cal, rms=0.555809Jy  sigma=0.001375
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.153 mas, bmaj=4.846 mas, bpa=-12.86 degrees
! Estimated noise=379.344 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00387652 Jy
! Component: 100  -  total flux cleaned = -0.004443 Jy
! Component: 150  -  total flux cleaned = -0.00466527 Jy
! Component: 200  -  total flux cleaned = -0.00487816 Jy
! Total flux subtracted in 200 components = -0.00487816 Jy
! Clean residual min=-0.003469 max=0.003337 Jy/beam
! Clean residual mean=-0.000080 rms=0.000758 Jy/beam
! Combined flux in latest and established models = 0.566914 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 28 components and 0.566914 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.555766Jy  sigma=0.001374
! Fit after  self-cal, rms=0.555852Jy  sigma=0.001374
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.00040334 Jy
! Component: 100  -  total flux cleaned = -0.000533942 Jy
! Component: 150  -  total flux cleaned = -0.000563143 Jy
! Component: 200  -  total flux cleaned = -0.000591329 Jy
! Total flux subtracted in 200 components = -0.000591329 Jy
! Clean residual min=-0.003492 max=0.003482 Jy/beam
! Clean residual mean=-0.000077 rms=0.000760 Jy/beam
! Combined flux in latest and established models = 0.566322 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 33 components and 0.566322 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.555844Jy  sigma=0.001374
! Fit after  self-cal, rms=0.555845Jy  sigma=0.001374
! Inverting map 
! Added new window around map position (0, -6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00291777 Jy
! Component: 100  -  total flux cleaned = 0.00301036 Jy
! Component: 150  -  total flux cleaned = 0.00301114 Jy
! Component: 200  -  total flux cleaned = 0.00289682 Jy
! Total flux subtracted in 200 components = 0.00289682 Jy
! Clean residual min=-0.003382 max=0.002376 Jy/beam
! Clean residual mean=-0.000094 rms=0.000709 Jy/beam
! Combined flux in latest and established models = 0.569219 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 43 components and 0.569219 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.555816Jy  sigma=0.001374
! Fit after  self-cal, rms=0.555805Jy  sigma=0.001374
! 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.555805Jy  sigma=0.001374
! Fit after  self-cal, rms=0.558997Jy  sigma=0.001373
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.161 mas, bmaj=4.844 mas, bpa=-12.79 degrees
! Estimated noise=379.314 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00201026 Jy
! Component: 100  -  total flux cleaned = -0.0017253 Jy
! Component: 150  -  total flux cleaned = -0.00161045 Jy
! Component: 200  -  total flux cleaned = -0.00156198 Jy
! Total flux subtracted in 200 components = -0.00156198 Jy
! Clean residual min=-0.003025 max=0.002326 Jy/beam
! Clean residual mean=-0.000098 rms=0.000625 Jy/beam
! Combined flux in latest and established models = 0.567657 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 50 components and 0.567657 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.558969Jy  sigma=0.001373
! Fit after  self-cal, rms=0.559017Jy  sigma=0.001373
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.000112474 Jy
! Component: 100  -  total flux cleaned = 7.14061e-05 Jy
! Component: 150  -  total flux cleaned = -4.94287e-06 Jy
! Component: 200  -  total flux cleaned = -4.11206e-05 Jy
! Total flux subtracted in 200 components = -4.11206e-05 Jy
! Clean residual min=-0.003082 max=0.002293 Jy/beam
! Clean residual mean=-0.000098 rms=0.000622 Jy/beam
! Combined flux in latest and established models = 0.567616 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 57 components and 0.567616 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.559008Jy  sigma=0.001373
! Fit after  self-cal, rms=0.559004Jy  sigma=0.001373
! 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.559004Jy  sigma=0.001373
! Fit after  self-cal, rms=0.559943Jy  sigma=0.001372
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.503 mas, bmaj=9.958 mas, bpa=-4.323 degrees
! Estimated noise=507.741 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00147005 Jy
! Component: 100  -  total flux cleaned = -0.0017054 Jy
! Component: 150  -  total flux cleaned = -0.00188042 Jy
! Component: 200  -  total flux cleaned = -0.00198644 Jy
! Total flux subtracted in 200 components = -0.00198644 Jy
! Clean residual min=-0.003105 max=0.002589 Jy/beam
! Clean residual mean=-0.000289 rms=0.000869 Jy/beam
! Combined flux in latest and established models = 0.56563 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 72 components and 0.56563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.559939Jy  sigma=0.001372
! Fit after  self-cal, rms=0.559961Jy  sigma=0.001372
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 = 1.16904e-05 Jy
! Component: 100  -  total flux cleaned = -6.06011e-05 Jy
! Component: 150  -  total flux cleaned = -9.78693e-05 Jy
! Component: 200  -  total flux cleaned = -0.000112645 Jy
! Total flux subtracted in 200 components = -0.000112645 Jy
! Clean residual min=-0.003077 max=0.002576 Jy/beam
! Clean residual mean=-0.000286 rms=0.000862 Jy/beam
! Combined flux in latest and established models = 0.565517 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 77 components and 0.565517 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.559961Jy  sigma=0.001372
! Fit after  self-cal, rms=0.559960Jy  sigma=0.001372
! 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.166 mas, bmaj=4.84 mas, bpa=-12.75 degrees
! Estimated noise=379.089 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.166 x 4.84 at -12.75 degrees (North through East)
! Clean map  min=-0.0026469  max=0.50973 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.559960Jy  sigma=0.001372
! Fit after  self-cal, rms=0.948643Jy  sigma=0.001285
! Inverting map and beam 
! Estimated beam: bmin=2.168 mas, bmaj=4.834 mas, bpa=-12.73 degrees
! Estimated noise=378.702 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000740757 Jy
! Component: 100  -  total flux cleaned = -0.000851488 Jy
! Component: 150  -  total flux cleaned = -0.00077082 Jy
! Component: 200  -  total flux cleaned = -0.000771254 Jy
! Total flux subtracted in 200 components = -0.000771254 Jy
! Clean residual min=-0.002751 max=0.001926 Jy/beam
! Clean residual mean=-0.000108 rms=0.000512 Jy/beam
! Combined flux in latest and established models = 0.564746 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 86 components and 0.564746 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.948627Jy  sigma=0.001285
! Fit after  self-cal, rms=0.948620Jy  sigma=0.001285
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -3.17399e-06 Jy
! Component: 100  -  total flux cleaned = 2.91076e-05 Jy
! Component: 150  -  total flux cleaned = 2.86468e-05 Jy
! Component: 200  -  total flux cleaned = 2.94551e-05 Jy
! Total flux subtracted in 200 components = 2.94551e-05 Jy
! Clean residual min=-0.002762 max=0.001928 Jy/beam
! Clean residual mean=-0.000108 rms=0.000509 Jy/beam
! Combined flux in latest and established models = 0.564775 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 91 components and 0.564775 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.948615Jy  sigma=0.001285
! Fit after  self-cal, rms=0.948609Jy  sigma=0.001285
! 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.948609Jy  sigma=0.001285
! Fit after  self-cal, rms=0.964845Jy  sigma=0.001285
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=1.85 mas, bmaj=4.168 mas, bpa=-10.73 degrees
! Estimated noise=979.81 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.39446 Jy
! Component: 100  -  total flux cleaned = 0.486133 Jy
! Component: 150  -  total flux cleaned = 0.523745 Jy
! Component: 200  -  total flux cleaned = 0.54238 Jy
! Total flux subtracted in 200 components = 0.54238 Jy
! Clean residual min=-0.005603 max=0.009105 Jy/beam
! Clean residual mean=0.000034 rms=0.001476 Jy/beam
! Combined flux in latest and established models = 0.54238 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 12 model components to the UV plane model.
! The established model now contains 12 components and 0.54238 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.171 mas, bmaj=4.83 mas, bpa=-12.71 degrees
! Estimated noise=378.429 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.0107514 Jy
! Component: 100  -  total flux cleaned = 0.0161368 Jy
! Component: 150  -  total flux cleaned = 0.0192052 Jy
! Component: 200  -  total flux cleaned = 0.0208724 Jy
! Total flux subtracted in 200 components = 0.0208724 Jy
! Clean residual min=-0.002550 max=0.002011 Jy/beam
! Clean residual mean=-0.000108 rms=0.000523 Jy/beam
! Combined flux in latest and established models = 0.563252 Jy
! Adding 16 model components to the UV plane model.
! The established model now contains 23 components and 0.563252 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.507 mas, bmaj=9.952 mas, bpa=-4.236 degrees
! Estimated noise=505.727 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00041187 Jy
! Component: 100  -  total flux cleaned = 0.000483259 Jy
! Component: 150  -  total flux cleaned = 0.000426118 Jy
! Component: 200  -  total flux cleaned = 0.000424498 Jy
! Total flux subtracted in 200 components = 0.000424498 Jy
! Clean residual min=-0.002592 max=0.002444 Jy/beam
! Clean residual mean=-0.000331 rms=0.000752 Jy/beam
! Combined flux in latest and established models = 0.563677 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 = -1.79852e-06 Jy
! Component: 100  -  total flux cleaned = -1.8128e-05 Jy
! Component: 150  -  total flux cleaned = -3.21975e-05 Jy
! Component: 200  -  total flux cleaned = -4.55546e-05 Jy
! Total flux subtracted in 200 components = -4.55546e-05 Jy
! Clean residual min=-0.002606 max=0.002414 Jy/beam
! Clean residual mean=-0.000330 rms=0.000744 Jy/beam
! Combined flux in latest and established models = 0.563631 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 45 components and 0.563631 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.171 mas, bmaj=4.83 mas, bpa=-12.71 degrees
! Estimated noise=378.429 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00015953 Jy
! Component: 100  -  total flux cleaned = 0.000138906 Jy
! Component: 150  -  total flux cleaned = 0.000175869 Jy
! Component: 200  -  total flux cleaned = 0.000210471 Jy
! Total flux subtracted in 200 components = 0.000210471 Jy
! Clean residual min=-0.002603 max=0.001963 Jy/beam
! Clean residual mean=-0.000111 rms=0.000500 Jy/beam
! Combined flux in latest and established models = 0.563842 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 58 components and 0.563842 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.964845Jy  sigma=0.001285
! Fit after  self-cal, rms=0.964792Jy  sigma=0.001285
wmodel J1719+1745_S_2003_05_07_pus_map.mod
! Writing 58 model components to file: J1719+1745_S_2003_05_07_pus_map.mod
wobs J1719+1745_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J1719+1745_S_2003_05_07_pus_uvs.fits
wwins J1719+1745_S_2003_05_07_pus_map.win
! wwins: Wrote 2 windows to J1719+1745_S_2003_05_07_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.00108152 Jy
! Component: 100  -  total flux cleaned = -0.0015202 Jy
! Component: 150  -  total flux cleaned = -0.00188262 Jy
! Component: 200  -  total flux cleaned = -0.00229391 Jy
! Component: 250  -  total flux cleaned = -0.00275339 Jy
! Component: 300  -  total flux cleaned = -0.00323064 Jy
! Component: 350  -  total flux cleaned = -0.00369746 Jy
! Component: 400  -  total flux cleaned = -0.0041266 Jy
! Component: 450  -  total flux cleaned = -0.00460433 Jy
! Component: 500  -  total flux cleaned = -0.00507366 Jy
! Component: 550  -  total flux cleaned = -0.00553484 Jy
! Component: 600  -  total flux cleaned = -0.00596193 Jy
! Component: 650  -  total flux cleaned = -0.00643486 Jy
! Component: 700  -  total flux cleaned = -0.00682338 Jy
! Component: 750  -  total flux cleaned = -0.00720675 Jy
! Component: 800  -  total flux cleaned = -0.00755956 Jy
! Component: 850  -  total flux cleaned = -0.00788328 Jy
! Component: 900  -  total flux cleaned = -0.00817874 Jy
! Component: 950  -  total flux cleaned = -0.00844683 Jy
! Component: 1000  -  total flux cleaned = -0.00873603 Jy
! Component: 1050  -  total flux cleaned = -0.00899833 Jy
! Component: 1100  -  total flux cleaned = -0.00925792 Jy
! Component: 1150  -  total flux cleaned = -0.00956137 Jy
! Component: 1200  -  total flux cleaned = -0.00983852 Jy
! Component: 1250  -  total flux cleaned = -0.0100672 Jy
! Component: 1300  -  total flux cleaned = -0.0103618 Jy
! Component: 1350  -  total flux cleaned = -0.0105864 Jy
! Component: 1400  -  total flux cleaned = -0.0107868 Jy
! Component: 1450  -  total flux cleaned = -0.0109856 Jy
! Component: 1500  -  total flux cleaned = -0.0112486 Jy
! Component: 1550  -  total flux cleaned = -0.0114226 Jy
! Component: 1600  -  total flux cleaned = -0.0116599 Jy
! Component: 1650  -  total flux cleaned = -0.0118736 Jy
! Component: 1700  -  total flux cleaned = -0.0120434 Jy
! Component: 1750  -  total flux cleaned = -0.0122332 Jy
! Component: 1800  -  total flux cleaned = -0.0123799 Jy
! Component: 1850  -  total flux cleaned = -0.0125671 Jy
! Component: 1900  -  total flux cleaned = -0.0127734 Jy
! Component: 1950  -  total flux cleaned = -0.0129784 Jy
! Component: 2000  -  total flux cleaned = -0.0130599 Jy
! Total flux subtracted in 2048 components = -0.0132421 Jy
! Clean residual min=-0.001220 max=0.001367 Jy/beam
! Clean residual mean=-0.000052 rms=0.000373 Jy/beam
! Combined flux in latest and established models = 0.550599 Jy
keep
! Adding 145 model components to the UV plane model.
! The established model now contains 203 components and 0.550599 Jy
wmap "J1719+1745_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.171 x 4.83 at -12.71 degrees (North through East)
! Clean map  min=-0.0019508  max=0.50951 Jy/beam
! Writing clean map to FITS file: J1719+1745_S_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.509512 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000371049 
device "J1719+1745_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J1719+1745_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.218473 0.218473 0.436946 0.873893 1.74779 3.49557 6.99114 13.9823 27.9646 55.9291
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.509 
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.171 x 4.83 at -12.71 degrees (North through East)
! Clean map  min=-0.0019508  max=0.50951 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1719+1745_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J1719+1745_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1719+1745_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 11:45:09 2006