! Started logfile: J1613+3412_S_2003_09_17_pus_uvs.log on Mon May 21 22:15:48 2007
obs J1613+3412_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1613+3412_S_2003_09_17_pus_uva.fits
! AN table 1: 11 integrations on 120 of 120 possible baselines.
! AN table 2: 55 integrations on 120 of 120 possible baselines.
! AN table 3: 26 integrations on 120 of 120 possible baselines.
! AN table 4: 87 integrations on 120 of 120 possible baselines.
! AN table 5: 197 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.148205 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1613+3412
! 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.
! 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.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 1732 lines of history.
! 
! Reading 26748 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 176 telescope corrections were flagged in sub-array 1.
!  A total of 448 telescope corrections were flagged in sub-array 2.
!  A total of 237 telescope corrections were flagged in sub-array 3.
!  A total of 808 telescope corrections were flagged in sub-array 4.
!  A total of 2304 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 176 telescope corrections were flagged in sub-array 1.
!  A total of 448 telescope corrections were flagged in sub-array 2.
!  A total of 237 telescope corrections were flagged in sub-array 3.
!  A total of 808 telescope corrections were flagged in sub-array 4.
!  A total of 2304 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 176 telescope corrections were flagged in sub-array 1.
!  A total of 448 telescope corrections were flagged in sub-array 2.
!  A total of 237 telescope corrections were flagged in sub-array 3.
!  A total of 808 telescope corrections were flagged in sub-array 4.
!  A total of 2304 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 176 telescope corrections were flagged in sub-array 1.
!  A total of 448 telescope corrections were flagged in sub-array 2.
!  A total of 237 telescope corrections were flagged in sub-array 3.
!  A total of 808 telescope corrections were flagged in sub-array 4.
!  A total of 2304 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=2.541782Jy  sigma=0.016280
! Fit after  self-cal, rms=1.985478Jy  sigma=0.012790
! 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.189 mas, bmaj=2.89 mas, bpa=-15.04 degrees
! Estimated noise=1342.97 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 = 1.61677 Jy
! Component: 100  -  total flux cleaned = 2.35558 Jy
! Total flux subtracted in 100 components = 2.35558 Jy
! Clean residual min=-0.108311 max=0.377260 Jy/beam
! Clean residual mean=0.001361 rms=0.042419 Jy/beam
! Combined flux in latest and established models = 2.35558 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 2.35558 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.238395Jy  sigma=0.008036
! Fit after  self-cal, rms=1.209457Jy  sigma=0.007937
! Inverting map 
! Added new window around map position (-0.5, -3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.515626 Jy
! Component: 100  -  total flux cleaned = 0.85984 Jy
! Total flux subtracted in 100 components = 0.85984 Jy
! Clean residual min=-0.071631 max=0.196071 Jy/beam
! Clean residual mean=0.000757 rms=0.027678 Jy/beam
! Combined flux in latest and established models = 3.21542 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 28 components and 3.21542 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.840013Jy  sigma=0.005356
! Fit after  self-cal, rms=0.821279Jy  sigma=0.005294
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.280686 Jy
! Component: 100  -  total flux cleaned = 0.488975 Jy
! Total flux subtracted in 100 components = 0.488975 Jy
! Clean residual min=-0.054070 max=0.138428 Jy/beam
! Clean residual mean=0.000409 rms=0.020714 Jy/beam
! Combined flux in latest and established models = 3.70439 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 45 components and 3.70439 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.652744Jy  sigma=0.003996
! Fit after  self-cal, rms=0.646928Jy  sigma=0.003975
! 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.176672 Jy
! Component: 100  -  total flux cleaned = 0.315255 Jy
! Total flux subtracted in 100 components = 0.315255 Jy
! Clean residual min=-0.044949 max=0.083141 Jy/beam
! Clean residual mean=0.000188 rms=0.017030 Jy/beam
! Combined flux in latest and established models = 4.01964 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 57 components and 4.01964 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.565128Jy  sigma=0.003256
! Fit after  self-cal, rms=0.563218Jy  sigma=0.003249
! 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.475 mas, bmaj=3.283 mas, bpa=-7.488 degrees
! Estimated noise=809.2 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.206807 Jy
! Component: 100  -  total flux cleaned = 0.347809 Jy
! Component: 150  -  total flux cleaned = 0.447961 Jy
! Component: 200  -  total flux cleaned = 0.519583 Jy
! Total flux subtracted in 200 components = 0.519583 Jy
! Clean residual min=-0.041160 max=0.059669 Jy/beam
! Clean residual mean=0.000126 rms=0.014568 Jy/beam
! Combined flux in latest and established models = 4.53923 Jy
! Performing phase self-cal
! Adding 54 model components to the UV plane model.
! The established model now contains 98 components and 4.53923 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.497731Jy  sigma=0.002467
! Fit after  self-cal, rms=0.496752Jy  sigma=0.002463
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.96     GC        1.04     HN        0.98     KP        0.81     
!   LA        0.93     MK        0.93     NL        0.93     NY        1.02     
!   ON        1.09     OV        1.11     PT        1.00*    SC        0.99     
!   TS        1.15     KK        1.05     WZ        1.27     WF        0.99     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.98     GC        1.00*    HN        1.01     KP        0.96     
!   LA        0.98     MK        0.96     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.30     PT        0.97     SC        1.00*    
!   TS        1.00*    KK        0.96     WZ        1.00*    WF        1.03     
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.96     GC        1.01     HN        1.00*    KP        0.92     
!   LA        0.95     MK        1.00*    NL        1.01     NY        1.24     
!   ON        1.01     OV        0.96     PT        0.97     SC        0.96     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 126 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00*    GC        1.35     HN        0.91     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.13     NY        1.02     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.08     
!   TS        0.99     KK        1.00*    WZ        1.01     WF        0.99     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.95     GC        1.00     HN        1.02     KP        0.93     
!   LA        0.97     MK        1.04     NL        0.96     NY        1.02     
!   ON        1.07     OV        0.68     PT        1.00*    SC        1.05     
!   TS        1.14     KK        1.09     WZ        1.24     WF        0.98     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.99     GC        1.00*    HN        1.10     KP        1.03     
!   LA        0.99     MK        1.00     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        1.19     PT        0.95     SC        1.00*    
!   TS        1.00*    KK        0.95     WZ        1.00*    WF        1.00     
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.97     GC        0.97     HN        1.00*    KP        1.01     
!   LA        0.98     MK        1.00*    NL        1.06     NY        1.06     
!   ON        1.01     OV        0.95     PT        0.95     SC        1.00     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 126 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00*    GC        1.30     HN        1.01     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.20     NY        1.03     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.13     
!   TS        0.96     KK        1.00*    WZ        1.00     WF        0.99     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.93     GC        1.08     HN        1.03     KP        0.96     
!   LA        0.92     MK        1.00     NL        0.91     NY        0.97     
!   ON        1.09     OV        0.79     PT        1.00*    SC        1.05     
!   TS        1.16     KK        1.06     WZ        1.22     WF        1.00     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.97     GC        1.00*    HN        1.11     KP        1.02     
!   LA        0.95     MK        0.96     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.34     PT        1.00     SC        1.00*    
!   TS        1.00*    KK        0.97     WZ        1.00*    WF        1.03     
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.95     GC        1.06     HN        1.00*    KP        1.01     
!   LA        0.95     MK        1.00*    NL        1.00     NY        1.00     
!   ON        0.99     OV        0.98     PT        1.00     SC        1.06     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 126 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00*    GC        1.40     HN        1.00     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.13     NY        0.99     
!   ON        1.02     OV        1.00*    PT        1.00*    SC        1.14     
!   TS        1.01     KK        1.00*    WZ        0.98     WF        1.02     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.94     GC        1.11     HN        1.03     KP        0.95     
!   LA        0.97     MK        0.94     NL        0.93     NY        0.96     
!   ON        1.09     OV        0.80     PT        1.00*    SC        1.03     
!   TS        1.15     KK        1.11     WZ        1.24     WF        1.01     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.96     GC        1.00*    HN        1.02     KP        1.03     
!   LA        0.98     MK        0.92     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.50     PT        0.96     SC        1.00*    
!   TS        1.00*    KK        1.03     WZ        1.00*    WF        1.03     
! 
!  A total of 51 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.96     GC        1.06     HN        1.00*    KP        1.02     
!   LA        0.99     MK        1.00*    NL        1.02     NY        1.00     
!   ON        0.99     OV        0.93     PT        0.96     SC        1.02     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 126 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        1.00*    GC        1.40     HN        1.00     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.17     NY        0.98     
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.07     
!   TS        0.99     KK        1.00*    WZ        1.02     WF        1.03     
! 
! 
! Fit before self-cal, rms=0.496752Jy  sigma=0.002463
! Fit after  self-cal, rms=0.383638Jy  sigma=0.001630
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.508 mas, bmaj=3.354 mas, bpa=-8.387 degrees
! Estimated noise=818.576 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.00217296 Jy
! Component: 100  -  total flux cleaned = -0.00274398 Jy
! Component: 150  -  total flux cleaned = -0.00431756 Jy
! Component: 200  -  total flux cleaned = -0.00522941 Jy
! Total flux subtracted in 200 components = -0.00522941 Jy
! Clean residual min=-0.014188 max=0.015278 Jy/beam
! Clean residual mean=0.000254 rms=0.003049 Jy/beam
! Combined flux in latest and established models = 4.534 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 106 components and 4.534 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381954Jy  sigma=0.001617
! Fit after  self-cal, rms=0.382179Jy  sigma=0.001617
! Inverting map 
! Added new window around map position (-30, 24).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00742513 Jy
! Component: 100  -  total flux cleaned = 0.00826716 Jy
! Component: 150  -  total flux cleaned = 0.00932803 Jy
! Component: 200  -  total flux cleaned = 0.00931204 Jy
! Total flux subtracted in 200 components = 0.00931204 Jy
! Clean residual min=-0.012668 max=0.013052 Jy/beam
! Clean residual mean=0.000171 rms=0.002868 Jy/beam
! Combined flux in latest and established models = 4.54331 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 112 components and 4.54331 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381216Jy  sigma=0.001611
! Fit after  self-cal, rms=0.381190Jy  sigma=0.001610
! 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.381190Jy  sigma=0.001610
! Fit after  self-cal, rms=0.377656Jy  sigma=0.001600
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.515 mas, bmaj=3.361 mas, bpa=-8.565 degrees
! Estimated noise=822.158 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00202588 Jy
! Component: 100  -  total flux cleaned = -0.00282419 Jy
! Component: 150  -  total flux cleaned = -0.0031693 Jy
! Component: 200  -  total flux cleaned = -0.00316071 Jy
! Total flux subtracted in 200 components = -0.00316071 Jy
! Clean residual min=-0.011451 max=0.012716 Jy/beam
! Clean residual mean=0.000263 rms=0.002513 Jy/beam
! Combined flux in latest and established models = 4.54015 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 116 components and 4.54015 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.376924Jy  sigma=0.001596
! Fit after  self-cal, rms=0.376898Jy  sigma=0.001596
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.0028406 Jy
! Component: 100  -  total flux cleaned = 0.00586593 Jy
! Component: 150  -  total flux cleaned = 0.00713296 Jy
! Component: 200  -  total flux cleaned = 0.00770757 Jy
! Total flux subtracted in 200 components = 0.00770757 Jy
! Clean residual min=-0.009360 max=0.010370 Jy/beam
! Clean residual mean=0.000187 rms=0.002304 Jy/beam
! Combined flux in latest and established models = 4.54786 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 127 components and 4.54786 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.376119Jy  sigma=0.001591
! Fit after  self-cal, rms=0.376030Jy  sigma=0.001590
! 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.376030Jy  sigma=0.001590
! Fit after  self-cal, rms=0.375582Jy  sigma=0.001586
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.518 mas, bmaj=3.366 mas, bpa=-8.617 degrees
! Estimated noise=824.922 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000755763 Jy
! Component: 100  -  total flux cleaned = 0.00140904 Jy
! Component: 150  -  total flux cleaned = 0.00227037 Jy
! Component: 200  -  total flux cleaned = 0.0035535 Jy
! Total flux subtracted in 200 components = 0.0035535 Jy
! Clean residual min=-0.008570 max=0.008780 Jy/beam
! Clean residual mean=0.000256 rms=0.002093 Jy/beam
! Combined flux in latest and established models = 4.55141 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 132 components and 4.55141 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375086Jy  sigma=0.001583
! Fit after  self-cal, rms=0.375043Jy  sigma=0.001583
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.000759929 Jy
! Component: 100  -  total flux cleaned = 0.00165999 Jy
! Component: 150  -  total flux cleaned = 0.00208453 Jy
! Component: 200  -  total flux cleaned = 0.00228587 Jy
! Total flux subtracted in 200 components = 0.00228587 Jy
! Clean residual min=-0.008371 max=0.008430 Jy/beam
! Clean residual mean=0.000233 rms=0.002033 Jy/beam
! Combined flux in latest and established models = 4.5537 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 136 components and 4.5537 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.374798Jy  sigma=0.001582
! Fit after  self-cal, rms=0.374779Jy  sigma=0.001582
! 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.374779Jy  sigma=0.001582
! Fit after  self-cal, rms=0.375646Jy  sigma=0.001581
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.411 mas, bmaj=9.431 mas, bpa=-74.43 degrees
! Estimated noise=1245.87 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0049755 Jy
! Component: 100  -  total flux cleaned = 0.00549962 Jy
! Component: 150  -  total flux cleaned = 0.00572283 Jy
! Component: 200  -  total flux cleaned = 0.00563648 Jy
! Total flux subtracted in 200 components = 0.00563648 Jy
! Clean residual min=-0.006691 max=0.009574 Jy/beam
! Clean residual mean=0.000754 rms=0.002608 Jy/beam
! Combined flux in latest and established models = 4.55934 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 149 components and 4.55934 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375676Jy  sigma=0.001581
! Fit after  self-cal, rms=0.375645Jy  sigma=0.001581
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.000431083 Jy
! Component: 100  -  total flux cleaned = 0.000103922 Jy
! Component: 150  -  total flux cleaned = -4.89245e-05 Jy
! Component: 200  -  total flux cleaned = -0.000194028 Jy
! Total flux subtracted in 200 components = -0.000194028 Jy
! Clean residual min=-0.007022 max=0.009260 Jy/beam
! Clean residual mean=0.000762 rms=0.002552 Jy/beam
! Combined flux in latest and established models = 4.55914 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 154 components and 4.55914 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375692Jy  sigma=0.001581
! Fit after  self-cal, rms=0.375690Jy  sigma=0.001581
! 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.522 mas, bmaj=3.369 mas, bpa=-8.691 degrees
! Estimated noise=827.13 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.522 x 3.369 at -8.691 degrees (North through East)
! Clean map  min=-0.0075744  max=2.1472 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.375690Jy  sigma=0.001581
! Fit after  self-cal, rms=0.324663Jy  sigma=0.001124
! Inverting map and beam 
! Estimated beam: bmin=2.522 mas, bmaj=3.369 mas, bpa=-8.676 degrees
! Estimated noise=825.092 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00259827 Jy
! Component: 100  -  total flux cleaned = -0.00282296 Jy
! Component: 150  -  total flux cleaned = -0.00343032 Jy
! Component: 200  -  total flux cleaned = -0.00379819 Jy
! Total flux subtracted in 200 components = -0.00379819 Jy
! Clean residual min=-0.006577 max=0.007166 Jy/beam
! Clean residual mean=0.000220 rms=0.001508 Jy/beam
! Combined flux in latest and established models = 4.55534 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 162 components and 4.55534 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324339Jy  sigma=0.001123
! Fit after  self-cal, rms=0.324340Jy  sigma=0.001122
! Inverting map 
! Added new window around map position (-4, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00224364 Jy
! Component: 100  -  total flux cleaned = 0.001461 Jy
! Component: 150  -  total flux cleaned = 0.000932423 Jy
! Component: 200  -  total flux cleaned = 0.000773433 Jy
! Total flux subtracted in 200 components = 0.000773433 Jy
! Clean residual min=-0.006252 max=0.005640 Jy/beam
! Clean residual mean=0.000210 rms=0.001436 Jy/beam
! Combined flux in latest and established models = 4.55612 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 163 components and 4.55612 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324081Jy  sigma=0.001121
! Fit after  self-cal, rms=0.324038Jy  sigma=0.001121
! 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.324038Jy  sigma=0.001121
! Fit after  self-cal, rms=0.324190Jy  sigma=0.001120
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.224 mas, bmaj=2.976 mas, bpa=-14.8 degrees
! Estimated noise=1402.85 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.67798 Jy
! Component: 100  -  total flux cleaned = 2.47438 Jy
! Component: 150  -  total flux cleaned = 2.96881 Jy
! Component: 200  -  total flux cleaned = 3.29747 Jy
! Total flux subtracted in 200 components = 3.29747 Jy
! Clean residual min=-0.050553 max=0.181339 Jy/beam
! Clean residual mean=0.000815 rms=0.019678 Jy/beam
! Combined flux in latest and established models = 3.29747 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 25 model components to the UV plane model.
! The established model now contains 25 components and 3.29747 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.524 mas, bmaj=3.37 mas, bpa=-8.688 degrees
! Estimated noise=825.292 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.408982 Jy
! Component: 100  -  total flux cleaned = 0.667173 Jy
! Component: 150  -  total flux cleaned = 0.839003 Jy
! Component: 200  -  total flux cleaned = 0.955849 Jy
! Total flux subtracted in 200 components = 0.955849 Jy
! Clean residual min=-0.015604 max=0.064036 Jy/beam
! Clean residual mean=0.003287 rms=0.010145 Jy/beam
! Combined flux in latest and established models = 4.25332 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 77 components and 4.25332 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0808138 Jy
! Component: 100  -  total flux cleaned = 0.137277 Jy
! Component: 150  -  total flux cleaned = 0.17752 Jy
! Component: 200  -  total flux cleaned = 0.207016 Jy
! Total flux subtracted in 200 components = 0.207016 Jy
! Clean residual min=-0.006213 max=0.019882 Jy/beam
! Clean residual mean=0.001148 rms=0.003186 Jy/beam
! Combined flux in latest and established models = 4.46034 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 109 components and 4.46034 Jy
! Inverting map 
! Added new window around map position (2.5, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0227558 Jy
! Component: 100  -  total flux cleaned = 0.0396845 Jy
! Component: 150  -  total flux cleaned = 0.0526471 Jy
! Component: 200  -  total flux cleaned = 0.0629004 Jy
! Total flux subtracted in 200 components = 0.0629004 Jy
! Clean residual min=-0.005019 max=0.006898 Jy/beam
! Clean residual mean=0.000507 rms=0.001616 Jy/beam
! Combined flux in latest and established models = 4.52324 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 138 components and 4.52324 Jy
! Inverting map 
! Added new window around map position (26, -58).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00842612 Jy
! Component: 100  -  total flux cleaned = 0.0152327 Jy
! Component: 150  -  total flux cleaned = 0.0202346 Jy
! Component: 200  -  total flux cleaned = 0.0237326 Jy
! Total flux subtracted in 200 components = 0.0237326 Jy
! Clean residual min=-0.004927 max=0.005508 Jy/beam
! Clean residual mean=0.000267 rms=0.001319 Jy/beam
! Combined flux in latest and established models = 4.54697 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 156 components and 4.54697 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.408 mas, bmaj=9.422 mas, bpa=-74.64 degrees
! Estimated noise=1243.7 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00712678 Jy
! Component: 100  -  total flux cleaned = 0.0109041 Jy
! Component: 150  -  total flux cleaned = 0.0126544 Jy
! Component: 200  -  total flux cleaned = 0.0130003 Jy
! Total flux subtracted in 200 components = 0.0130003 Jy
! Clean residual min=-0.004106 max=0.005642 Jy/beam
! Clean residual mean=0.000493 rms=0.001610 Jy/beam
! Combined flux in latest and established models = 4.55997 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.000306754 Jy
! Component: 100  -  total flux cleaned = 0.000509739 Jy
! Component: 150  -  total flux cleaned = 0.000571563 Jy
! Component: 200  -  total flux cleaned = 0.000626833 Jy
! Total flux subtracted in 200 components = 0.000626833 Jy
! Clean residual min=-0.004100 max=0.005703 Jy/beam
! Clean residual mean=0.000482 rms=0.001566 Jy/beam
! Combined flux in latest and established models = 4.5606 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 191 components and 4.5606 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.524 mas, bmaj=3.37 mas, bpa=-8.688 degrees
! Estimated noise=825.292 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000476442 Jy
! Component: 100  -  total flux cleaned = -0.000346206 Jy
! Component: 150  -  total flux cleaned = -0.000108676 Jy
! Component: 200  -  total flux cleaned = -2.09389e-06 Jy
! Total flux subtracted in 200 components = -2.09389e-06 Jy
! Clean residual min=-0.005040 max=0.005103 Jy/beam
! Clean residual mean=0.000139 rms=0.001210 Jy/beam
! Combined flux in latest and established models = 4.56059 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 206 components and 4.5606 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323568Jy  sigma=0.001116
! Fit after  self-cal, rms=0.323453Jy  sigma=0.001115
wmodel J1613+3412_S_2003_09_17_pus_map.mod
! Writing 206 model components to file: J1613+3412_S_2003_09_17_pus_map.mod
wobs J1613+3412_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1613+3412_S_2003_09_17_pus_uvs.fits
wwins J1613+3412_S_2003_09_17_pus_map.win
! wwins: Wrote 8 windows to J1613+3412_S_2003_09_17_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.000374865 Jy
! Component: 100  -  total flux cleaned = -5.32572e-05 Jy
! Component: 150  -  total flux cleaned = 0.000717935 Jy
! Component: 200  -  total flux cleaned = 0.00123989 Jy
! Component: 250  -  total flux cleaned = 0.00181742 Jy
! Component: 300  -  total flux cleaned = 0.00209849 Jy
! Component: 350  -  total flux cleaned = 0.00258012 Jy
! Component: 400  -  total flux cleaned = 0.00291669 Jy
! Component: 450  -  total flux cleaned = 0.00331273 Jy
! Component: 500  -  total flux cleaned = 0.00376517 Jy
! Component: 550  -  total flux cleaned = 0.00414672 Jy
! Component: 600  -  total flux cleaned = 0.00458517 Jy
! Component: 650  -  total flux cleaned = 0.00483183 Jy
! Component: 700  -  total flux cleaned = 0.00525751 Jy
! Component: 750  -  total flux cleaned = 0.00543646 Jy
! Component: 800  -  total flux cleaned = 0.00573232 Jy
! Component: 850  -  total flux cleaned = 0.00590791 Jy
! Component: 900  -  total flux cleaned = 0.00613895 Jy
! Component: 950  -  total flux cleaned = 0.00631057 Jy
! Component: 1000  -  total flux cleaned = 0.00648068 Jy
! Component: 1050  -  total flux cleaned = 0.00659329 Jy
! Component: 1100  -  total flux cleaned = 0.00687124 Jy
! Component: 1150  -  total flux cleaned = 0.00698072 Jy
! Component: 1200  -  total flux cleaned = 0.00692589 Jy
! Component: 1250  -  total flux cleaned = 0.00714297 Jy
! Component: 1300  -  total flux cleaned = 0.00725027 Jy
! Component: 1350  -  total flux cleaned = 0.00730359 Jy
! Component: 1400  -  total flux cleaned = 0.00746293 Jy
! Component: 1450  -  total flux cleaned = 0.00751574 Jy
! Component: 1500  -  total flux cleaned = 0.00777627 Jy
! Component: 1550  -  total flux cleaned = 0.00782803 Jy
! Component: 1600  -  total flux cleaned = 0.00787966 Jy
! Component: 1650  -  total flux cleaned = 0.00813467 Jy
! Component: 1700  -  total flux cleaned = 0.00818499 Jy
! Component: 1750  -  total flux cleaned = 0.00828539 Jy
! Component: 1800  -  total flux cleaned = 0.00838516 Jy
! Component: 1850  -  total flux cleaned = 0.0083854 Jy
! Component: 1900  -  total flux cleaned = 0.008583 Jy
! Component: 1950  -  total flux cleaned = 0.00863218 Jy
! Component: 2000  -  total flux cleaned = 0.00877846 Jy
! Total flux subtracted in 2048 components = 0.00887509 Jy
! Clean residual min=-0.002978 max=0.002813 Jy/beam
! Clean residual mean=0.000055 rms=0.000910 Jy/beam
! Combined flux in latest and established models = 4.56947 Jy
keep
! Adding 159 model components to the UV plane model.
! The established model now contains 365 components and 4.56947 Jy
wmap "J1613+3412_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.524 x 3.37 at -8.688 degrees (North through East)
! Clean map  min=-0.0038075  max=2.142 Jy/beam
! Writing clean map to FITS file: J1613+3412_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.14199 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000911048 
device "J1613+3412_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1613+3412_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.127599 0.127599 0.255197 0.510394 1.02079 2.04158 4.08316 8.16631 16.3326 32.6652 65.3305
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0027 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.141 
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.524 x 3.37 at -8.688 degrees (North through East)
! Clean map  min=-0.0038075  max=2.142 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1613+3412_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1613+3412_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1613+3412_S_2003_09_17_pus_uvs.log closed on Mon May 21 22:17:48 2007