! Started logfile: J1613+3412_S_2003_06_18_pus_uvs.log on Wed Jan 24 18:32:00 2007
obs J1613+3412_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J1613+3412_S_2003_06_18_pus_uva.fits
! AN table 1: 101 integrations on 153 of 153 possible baselines.
! AN table 2: 54 integrations on 153 of 153 possible baselines.
! AN table 3: 24 integrations on 153 of 153 possible baselines.
! AN table 4: 77 integrations on 153 of 153 possible baselines.
! AN table 5: 30 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.144156 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1613+3412
! 
! 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 2429 lines of history.
! 
! Reading 25232 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
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 1161 telescope corrections were flagged in sub-array 1.
!  A total of 636 telescope corrections were flagged in sub-array 2.
!  A total of 331 telescope corrections were flagged in sub-array 3.
!  A total of 906 telescope corrections were flagged in sub-array 4.
!  A total of 318 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1161 telescope corrections were flagged in sub-array 1.
!  A total of 636 telescope corrections were flagged in sub-array 2.
!  A total of 331 telescope corrections were flagged in sub-array 3.
!  A total of 906 telescope corrections were flagged in sub-array 4.
!  A total of 318 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1162 telescope corrections were flagged in sub-array 1.
!  A total of 636 telescope corrections were flagged in sub-array 2.
!  A total of 355 telescope corrections were flagged in sub-array 3.
!  A total of 906 telescope corrections were flagged in sub-array 4.
!  A total of 347 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1174 telescope corrections were flagged in sub-array 1.
!  A total of 636 telescope corrections were flagged in sub-array 2.
!  A total of 355 telescope corrections were flagged in sub-array 3.
!  A total of 906 telescope corrections were flagged in sub-array 4.
!  A total of 301 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=3.063175Jy  sigma=0.033559
! Fit after  self-cal, rms=2.736606Jy  sigma=0.030388
! 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.127 mas, bmaj=3.79 mas, bpa=-8.266 degrees
! Estimated noise=802.839 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 = 2.18591 Jy
! Component: 100  -  total flux cleaned = 3.14023 Jy
! Total flux subtracted in 100 components = 3.14023 Jy
! Clean residual min=-0.137650 max=0.484988 Jy/beam
! Clean residual mean=-0.000480 rms=0.046390 Jy/beam
! Combined flux in latest and established models = 3.14023 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 26 components and 3.14023 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.266528Jy  sigma=0.013935
! Fit after  self-cal, rms=1.261857Jy  sigma=0.013894
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.593181 Jy
! Component: 100  -  total flux cleaned = 0.967907 Jy
! Total flux subtracted in 100 components = 0.967907 Jy
! Clean residual min=-0.101023 max=0.254295 Jy/beam
! Clean residual mean=-0.000156 rms=0.027443 Jy/beam
! Combined flux in latest and established models = 4.10814 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 34 components and 4.10814 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.779690Jy  sigma=0.008102
! Fit after  self-cal, rms=0.776345Jy  sigma=0.008072
! Inverting map 
! Added new window around map position (2.5, -2.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.271595 Jy
! Component: 100  -  total flux cleaned = 0.445167 Jy
! Total flux subtracted in 100 components = 0.445167 Jy
! Clean residual min=-0.092994 max=0.146009 Jy/beam
! Clean residual mean=-0.000012 rms=0.020913 Jy/beam
! Combined flux in latest and established models = 4.5533 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 48 components and 4.5533 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.648777Jy  sigma=0.006233
! Fit after  self-cal, rms=0.645376Jy  sigma=0.006204
! Inverting map 
! Added new window around map position (-3, -2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.147326 Jy
! Component: 100  -  total flux cleaned = 0.246504 Jy
! Total flux subtracted in 100 components = 0.246504 Jy
! Clean residual min=-0.087395 max=0.086300 Jy/beam
! Clean residual mean=0.000068 rms=0.018238 Jy/beam
! Combined flux in latest and established models = 4.79981 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 64 components and 4.79981 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.612665Jy  sigma=0.005603
! Fit after  self-cal, rms=0.610990Jy  sigma=0.005587
! 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.026 mas, bmaj=4.773 mas, bpa=-13.69 degrees
! Estimated noise=459.966 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.0763156 Jy
! Component: 100  -  total flux cleaned = 0.118967 Jy
! Component: 150  -  total flux cleaned = 0.133867 Jy
! Component: 200  -  total flux cleaned = 0.140402 Jy
! Total flux subtracted in 200 components = 0.140402 Jy
! Clean residual min=-0.077878 max=0.046958 Jy/beam
! Clean residual mean=-0.006603 rms=0.019895 Jy/beam
! Combined flux in latest and established models = 4.94021 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 74 components and 4.94021 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.604264Jy  sigma=0.005419
! Fit after  self-cal, rms=0.603724Jy  sigma=0.005414
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.95     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        0.88     LA        0.99     MA        1.00*    
!   MK        1.05     NL        1.06     ON        1.00*    OV        0.92     
!   PT        0.97     SC        0.98     TC        1.00*    TS        1.00     
!   WF        1.09     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.09     FD        1.00     GG        1.00*    HN        1.00     
!   KK        1.00*    KP        0.98     LA        1.00     MA        1.00*    
!   MK        1.00*    NL        0.95     ON        1.13     OV        1.00*    
!   PT        1.00*    SC        0.87     TC        1.00*    TS        1.00*    
!   WF        1.03     WZ        1.00*    
! 
!  A total of 3 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.98     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.24     ON        1.12     OV        1.00*    
!   PT        1.00*    SC        1.03     TC        1.00*    TS        1.00*    
!   WF        1.09     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.94     GG        1.00*    HN        0.86     
!   KK        1.00*    KP        0.93     LA        0.95     MA        1.00*    
!   MK        1.00*    NL        0.98     ON        1.00*    OV        0.95     
!   PT        0.95     SC        1.00*    TC        1.05     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.11     FD        1.12     GG        1.00*    HN        1.00*    
!   KK        1.07     KP        1.02     LA        1.11     MA        1.00*    
!   MK        0.98     NL        1.19     ON        1.00*    OV        1.41     
!   PT        1.12     SC        1.00*    TC        1.00*    TS        1.10     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.95     GG        1.00*    HN        1.08     
!   KK        1.00*    KP        0.98     LA        0.99     MA        1.00*    
!   MK        1.01     NL        1.00     ON        1.00*    OV        0.85     
!   PT        0.96     SC        1.01     TC        1.00*    TS        0.97     
!   WF        1.07     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.02     GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.07     LA        1.01     MA        1.00*    
!   MK        1.00*    NL        0.90     ON        1.01     OV        1.00*    
!   PT        1.00*    SC        0.90     TC        1.00*    TS        1.00*    
!   WF        1.01     WZ        1.00*    
! 
!  A total of 3 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.10     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.16     ON        1.04     OV        1.00*    
!   PT        1.00*    SC        1.09     TC        1.00*    TS        1.00*    
!   WF        1.06     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        0.94     GG        1.00*    HN        0.95     
!   KK        1.00*    KP        1.00     LA        0.96     MA        1.00*    
!   MK        1.00*    NL        0.94     ON        1.00*    OV        0.96     
!   PT        0.95     SC        1.00*    TC        1.00     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.07     FD        1.11     GG        1.00*    HN        1.00*    
!   KK        1.07     KP        1.16     LA        1.11     MA        1.00*    
!   MK        1.06     NL        1.13     ON        1.00*    OV        1.23     
!   PT        1.12     SC        1.00*    TC        1.00*    TS        1.07     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.97     GG        1.00*    HN        1.09     
!   KK        1.00*    KP        0.98     LA        0.96     MA        1.00*    
!   MK        0.97     NL        1.00     ON        1.00*    OV        0.82     
!   PT        0.98     SC        1.18     TC        1.00*    TS        0.95     
!   WF        1.12     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.02     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.07     LA        0.98     MA        1.00*    
!   MK        1.00*    NL        0.90     ON        1.04     OV        1.00*    
!   PT        1.00*    SC        1.06     TC        1.00*    TS        1.00*    
!   WF        1.01     WZ        1.00*    
! 
!  A total of 33 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.12     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.20     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.29     TC        1.00*    TS        1.00*    
!   WF        1.02     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.96     GG        1.00*    HN        0.97     
!   KK        1.00*    KP        0.99     LA        0.93     MA        1.00*    
!   MK        1.00*    NL        0.95     ON        1.00*    OV        1.01     
!   PT        0.97     SC        1.00*    TC        1.06     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.08     FD        1.13     GG        1.00*    HN        1.00*    
!   KK        1.06     KP        1.12     LA        1.08     MA        1.00*    
!   MK        1.04     NL        1.12     ON        1.00*    OV        1.51     
!   PT        1.13     SC        1.00*    TC        1.00*    TS        1.09     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.91     FD        0.96     GG        1.00*    HN        1.05     
!   KK        1.00*    KP        0.99     LA        1.00     MA        1.00*    
!   MK        0.92     NL        1.06     ON        1.00*    OV        0.90     
!   PT        1.02     SC        1.19     TC        1.00*    TS        0.97     
!   WF        1.11     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.02     GG        1.00*    HN        1.03     
!   KK        1.00*    KP        1.07     LA        1.01     MA        1.00*    
!   MK        1.00*    NL        0.95     ON        1.08     OV        1.00*    
!   PT        1.00*    SC        1.06     TC        1.00*    TS        1.00*    
!   WF        1.04     WZ        1.00*    
! 
!  A total of 33 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.96     
!   KK        1.00*    KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00*    NL        1.29     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.26     TC        1.00*    TS        1.00*    
!   WF        1.05     WZ        1.00*    
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.96     GG        1.00*    HN        1.11     
!   KK        1.00*    KP        1.01     LA        0.97     MA        1.00*    
!   MK        1.00*    NL        1.00     ON        1.00*    OV        0.93     
!   PT        1.02     SC        1.00*    TC        1.15     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.05     FD        1.12     GG        1.00*    HN        1.00*    
!   KK        1.07     KP        1.14     LA        1.12     MA        1.00*    
!   MK        1.00     NL        1.19     ON        8.46     OV        1.96     
!   PT        1.19     SC        1.00*    TC        1.00*    TS        1.06     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.603724Jy  sigma=0.005414
! Fit after  self-cal, rms=0.627209Jy  sigma=0.003166
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.071 mas, bmaj=4.903 mas, bpa=-13.74 degrees
! Estimated noise=468.202 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.00672909 Jy
! Component: 100  -  total flux cleaned = -0.0094861 Jy
! Component: 150  -  total flux cleaned = -0.0102412 Jy
! Component: 200  -  total flux cleaned = -0.0109643 Jy
! Total flux subtracted in 200 components = -0.0109643 Jy
! Clean residual min=-0.033862 max=0.031250 Jy/beam
! Clean residual mean=-0.000654 rms=0.006439 Jy/beam
! Combined flux in latest and established models = 4.92925 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 80 components and 4.92925 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.623089Jy  sigma=0.003122
! Fit after  self-cal, rms=0.623144Jy  sigma=0.003117
! 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.623144Jy  sigma=0.003117
! Fit after  self-cal, rms=0.606101Jy  sigma=0.002788
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.069 mas, bmaj=4.901 mas, bpa=-13.69 degrees
! Estimated noise=468.881 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0110632 Jy
! Component: 100  -  total flux cleaned = 0.0104082 Jy
! Component: 150  -  total flux cleaned = 0.0104661 Jy
! Component: 200  -  total flux cleaned = 0.0104904 Jy
! Total flux subtracted in 200 components = 0.0104904 Jy
! Clean residual min=-0.030145 max=0.028029 Jy/beam
! Clean residual mean=-0.000461 rms=0.005057 Jy/beam
! Combined flux in latest and established models = 4.93974 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 84 components and 4.93974 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.603879Jy  sigma=0.002760
! Fit after  self-cal, rms=0.603822Jy  sigma=0.002757
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 (0.5, 7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -8.51293e-06 Jy
! Component: 100  -  total flux cleaned = 0.00284497 Jy
! Component: 150  -  total flux cleaned = 0.00441965 Jy
! Component: 200  -  total flux cleaned = 0.00646665 Jy
! Total flux subtracted in 200 components = 0.00646665 Jy
! Clean residual min=-0.020657 max=0.017613 Jy/beam
! Clean residual mean=-0.000523 rms=0.004553 Jy/beam
! Combined flux in latest and established models = 4.9462 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 97 components and 4.9462 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.599347Jy  sigma=0.002710
! Fit after  self-cal, rms=0.599077Jy  sigma=0.002705
! 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.599077Jy  sigma=0.002705
! Fit after  self-cal, rms=0.589662Jy  sigma=0.002491
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.073 mas, bmaj=4.916 mas, bpa=-13.74 degrees
! Estimated noise=469.441 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00324599 Jy
! Component: 100  -  total flux cleaned = 0.00394331 Jy
! Component: 150  -  total flux cleaned = 0.00332542 Jy
! Component: 200  -  total flux cleaned = 0.0038738 Jy
! Total flux subtracted in 200 components = 0.0038738 Jy
! Clean residual min=-0.013749 max=0.014629 Jy/beam
! Clean residual mean=-0.000227 rms=0.003085 Jy/beam
! Combined flux in latest and established models = 4.95008 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 104 components and 4.95008 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.587212Jy  sigma=0.002465
! Fit after  self-cal, rms=0.587109Jy  sigma=0.002464
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.00151884 Jy
! Component: 100  -  total flux cleaned = 0.00252763 Jy
! Component: 150  -  total flux cleaned = 0.00298949 Jy
! Component: 200  -  total flux cleaned = 0.00344972 Jy
! Total flux subtracted in 200 components = 0.00344972 Jy
! Clean residual min=-0.013007 max=0.012826 Jy/beam
! Clean residual mean=-0.000255 rms=0.002920 Jy/beam
! Combined flux in latest and established models = 4.95353 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 110 components and 4.95353 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.585694Jy  sigma=0.002451
! Fit after  self-cal, rms=0.585611Jy  sigma=0.002451
! 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.585611Jy  sigma=0.002451
! Fit after  self-cal, rms=0.583206Jy  sigma=0.002447
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.749 mas, bmaj=9.942 mas, bpa=-60.93 degrees
! Estimated noise=572.224 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00548054 Jy
! Component: 100  -  total flux cleaned = 0.00654439 Jy
! Component: 150  -  total flux cleaned = 0.00724915 Jy
! Component: 200  -  total flux cleaned = 0.00772812 Jy
! Total flux subtracted in 200 components = 0.00772812 Jy
! Clean residual min=-0.007346 max=0.005047 Jy/beam
! Clean residual mean=-0.000785 rms=0.001881 Jy/beam
! Combined flux in latest and established models = 4.96126 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 122 components and 4.96126 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.583122Jy  sigma=0.002446
! Fit after  self-cal, rms=0.583088Jy  sigma=0.002446
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.000433926 Jy
! Component: 100  -  total flux cleaned = 0.000921356 Jy
! Component: 150  -  total flux cleaned = 0.00130972 Jy
! Component: 200  -  total flux cleaned = 0.00147552 Jy
! Total flux subtracted in 200 components = 0.00147552 Jy
! Clean residual min=-0.007145 max=0.005060 Jy/beam
! Clean residual mean=-0.000810 rms=0.001847 Jy/beam
! Combined flux in latest and established models = 4.96273 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 129 components and 4.96273 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.583057Jy  sigma=0.002445
! Fit after  self-cal, rms=0.583041Jy  sigma=0.002445
! 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.075 mas, bmaj=4.926 mas, bpa=-13.85 degrees
! Estimated noise=469.879 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.075 x 4.926 at -13.85 degrees (North through East)
! Clean map  min=-0.012452  max=2.9666 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.583041Jy  sigma=0.002445
! Fit after  self-cal, rms=0.720410Jy  sigma=0.001816
! Inverting map and beam 
! Estimated beam: bmin=3.074 mas, bmaj=4.924 mas, bpa=-13.83 degrees
! Estimated noise=469.355 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00312927 Jy
! Component: 100  -  total flux cleaned = -0.00400593 Jy
! Component: 150  -  total flux cleaned = -0.00442022 Jy
! Component: 200  -  total flux cleaned = -0.00402773 Jy
! Total flux subtracted in 200 components = -0.00402773 Jy
! Clean residual min=-0.011988 max=0.011192 Jy/beam
! Clean residual mean=-0.000440 rms=0.002561 Jy/beam
! Combined flux in latest and established models = 4.9587 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 135 components and 4.9587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.719536Jy  sigma=0.001801
! Fit after  self-cal, rms=0.719823Jy  sigma=0.001801
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -8.79317e-05 Jy
! Component: 100  -  total flux cleaned = 0.000282513 Jy
! Component: 150  -  total flux cleaned = 0.00028503 Jy
! Component: 200  -  total flux cleaned = 0.000652309 Jy
! Total flux subtracted in 200 components = 0.000652309 Jy
! Clean residual min=-0.011286 max=0.010833 Jy/beam
! Clean residual mean=-0.000445 rms=0.002467 Jy/beam
! Combined flux in latest and established models = 4.95936 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 139 components and 4.95936 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.719125Jy  sigma=0.001791
! Fit after  self-cal, rms=0.719121Jy  sigma=0.001791
! 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.719121Jy  sigma=0.001791
! Fit after  self-cal, rms=0.961123Jy  sigma=0.001790
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.156 mas, bmaj=3.932 mas, bpa=-8.365 degrees
! Estimated noise=834.75 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.23829 Jy
! Component: 100  -  total flux cleaned = 3.20182 Jy
! Component: 150  -  total flux cleaned = 3.77472 Jy
! Component: 200  -  total flux cleaned = 4.13454 Jy
! Total flux subtracted in 200 components = 4.13454 Jy
! Clean residual min=-0.052189 max=0.191898 Jy/beam
! Clean residual mean=-0.000244 rms=0.019137 Jy/beam
! Combined flux in latest and established models = 4.13454 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 36 model components to the UV plane model.
! The established model now contains 36 components and 4.13454 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.076 mas, bmaj=4.929 mas, bpa=-13.88 degrees
! Estimated noise=469.438 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.365583 Jy
! Component: 100  -  total flux cleaned = 0.559177 Jy
! Component: 150  -  total flux cleaned = 0.668182 Jy
! Component: 200  -  total flux cleaned = 0.732846 Jy
! Total flux subtracted in 200 components = 0.732846 Jy
! Clean residual min=-0.020540 max=0.038430 Jy/beam
! Clean residual mean=0.000366 rms=0.005434 Jy/beam
! Combined flux in latest and established models = 4.86739 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 76 components and 4.86739 Jy
! Inverting map 
! Added new window around map position (-0.5, -4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0426382 Jy
! Component: 100  -  total flux cleaned = 0.0648699 Jy
! Component: 150  -  total flux cleaned = 0.0667554 Jy
! Component: 200  -  total flux cleaned = 0.0694271 Jy
! Total flux subtracted in 200 components = 0.0694271 Jy
! Clean residual min=-0.016889 max=0.016789 Jy/beam
! Clean residual mean=-0.000230 rms=0.003588 Jy/beam
! Combined flux in latest and established models = 4.93681 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 95 components and 4.93681 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=8.753 mas, bmaj=9.942 mas, bpa=-60.92 degrees
! Estimated noise=571.647 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.013504 Jy
! Component: 100  -  total flux cleaned = 0.0158451 Jy
! Component: 150  -  total flux cleaned = 0.0177809 Jy
! Component: 200  -  total flux cleaned = 0.0187124 Jy
! Total flux subtracted in 200 components = 0.0187124 Jy
! Clean residual min=-0.005344 max=0.003665 Jy/beam
! Clean residual mean=-0.000828 rms=0.001616 Jy/beam
! Combined flux in latest and established models = 4.95553 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.000446798 Jy
! Component: 100  -  total flux cleaned = 0.000699038 Jy
! Component: 150  -  total flux cleaned = 0.000930586 Jy
! Component: 200  -  total flux cleaned = 0.00122734 Jy
! Total flux subtracted in 200 components = 0.00122734 Jy
! Clean residual min=-0.005234 max=0.003530 Jy/beam
! Clean residual mean=-0.000848 rms=0.001538 Jy/beam
! Combined flux in latest and established models = 4.95675 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 134 components and 4.95675 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.076 mas, bmaj=4.929 mas, bpa=-13.88 degrees
! Estimated noise=469.438 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00585734 Jy
! Component: 100  -  total flux cleaned = -0.00439737 Jy
! Component: 150  -  total flux cleaned = -0.00372412 Jy
! Component: 200  -  total flux cleaned = -0.00372709 Jy
! Total flux subtracted in 200 components = -0.00372709 Jy
! Clean residual min=-0.014605 max=0.013477 Jy/beam
! Clean residual mean=-0.000368 rms=0.003110 Jy/beam
! Combined flux in latest and established models = 4.95303 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 142 components and 4.95303 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.966405Jy  sigma=0.001882
! Fit after  self-cal, rms=0.965073Jy  sigma=0.001875
wmodel J1613+3412_S_2003_06_18_pus_map.mod
! Writing 142 model components to file: J1613+3412_S_2003_06_18_pus_map.mod
wobs J1613+3412_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J1613+3412_S_2003_06_18_pus_uvs.fits
wwins J1613+3412_S_2003_06_18_pus_map.win
! wwins: Wrote 5 windows to J1613+3412_S_2003_06_18_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.000783016 Jy
! Component: 100  -  total flux cleaned = -0.00178004 Jy
! Component: 150  -  total flux cleaned = -0.00249074 Jy
! Component: 200  -  total flux cleaned = -0.00294715 Jy
! Component: 250  -  total flux cleaned = -0.00361208 Jy
! Component: 300  -  total flux cleaned = -0.00425959 Jy
! Component: 350  -  total flux cleaned = -0.0051043 Jy
! Component: 400  -  total flux cleaned = -0.0059288 Jy
! Component: 450  -  total flux cleaned = -0.00653886 Jy
! Component: 500  -  total flux cleaned = -0.00734012 Jy
! Component: 550  -  total flux cleaned = -0.00773129 Jy
! Component: 600  -  total flux cleaned = -0.00812014 Jy
! Component: 650  -  total flux cleaned = -0.00869603 Jy
! Component: 700  -  total flux cleaned = -0.00907193 Jy
! Component: 750  -  total flux cleaned = -0.00925928 Jy
! Component: 800  -  total flux cleaned = -0.00981532 Jy
! Component: 850  -  total flux cleaned = -0.0105462 Jy
! Component: 900  -  total flux cleaned = -0.0110879 Jy
! Component: 950  -  total flux cleaned = -0.0118036 Jy
! Component: 1000  -  total flux cleaned = -0.0125099 Jy
! Component: 1050  -  total flux cleaned = -0.0132096 Jy
! Component: 1100  -  total flux cleaned = -0.013902 Jy
! Component: 1150  -  total flux cleaned = -0.0142448 Jy
! Component: 1200  -  total flux cleaned = -0.0147545 Jy
! Component: 1250  -  total flux cleaned = -0.015261 Jy
! Component: 1300  -  total flux cleaned = -0.0157619 Jy
! Component: 1350  -  total flux cleaned = -0.0160905 Jy
! Component: 1400  -  total flux cleaned = -0.0167474 Jy
! Component: 1450  -  total flux cleaned = -0.0170718 Jy
! Component: 1500  -  total flux cleaned = -0.017715 Jy
! Component: 1550  -  total flux cleaned = -0.0178742 Jy
! Component: 1600  -  total flux cleaned = -0.0181916 Jy
! Component: 1650  -  total flux cleaned = -0.0188162 Jy
! Component: 1700  -  total flux cleaned = -0.0188161 Jy
! Component: 1750  -  total flux cleaned = -0.0194306 Jy
! Component: 1800  -  total flux cleaned = -0.0200385 Jy
! Component: 1850  -  total flux cleaned = -0.0198869 Jy
! Component: 1900  -  total flux cleaned = -0.0203365 Jy
! Component: 1950  -  total flux cleaned = -0.0204878 Jy
! Component: 2000  -  total flux cleaned = -0.0209309 Jy
! Total flux subtracted in 2048 components = -0.0212241 Jy
! Clean residual min=-0.007312 max=0.007321 Jy/beam
! Clean residual mean=-0.000132 rms=0.002302 Jy/beam
! Combined flux in latest and established models = 4.9318 Jy
keep
! Adding 81 model components to the UV plane model.
! The established model now contains 214 components and 4.9318 Jy
wmap "J1613+3412_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.076 x 4.929 at -13.88 degrees (North through East)
! Clean map  min=-0.01088  max=2.9867 Jy/beam
! Writing clean map to FITS file: J1613+3412_S_2003_06_18_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.98667 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00230171 
device "J1613+3412_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J1613+3412_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.231198 0.231198 0.462396 0.924792 1.84958 3.69917 7.39833 14.7967 29.5933 59.1867
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0069 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.986 
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.076 x 4.929 at -13.88 degrees (North through East)
! Clean map  min=-0.01088  max=2.9867 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1613+3412_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J1613+3412_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1613+3412_S_2003_06_18_pus_uvs.log closed on Wed Jan 24 18:34:46 2007