! Started logfile: J1310+3220_S_2001_07_05_pus_uvs.log on Fri Aug 10 01:19:30 2007
obs J1310+3220_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1310+3220_S_2001_07_05_pus_uva.fits
! AN table 1: 329 integrations on 171 of 171 possible baselines.
! AN table 2: 32 integrations on 171 of 171 possible baselines.
! AN table 3: 102 integrations on 171 of 171 possible baselines.
! AN table 4: 107 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.102319 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1310+3220
! 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1774 lines of history.
! 
! Reading 39892 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 5737 telescope corrections were flagged in sub-array 1.
!  A total of 575 telescope corrections were flagged in sub-array 2.
!  A total of 949 telescope corrections were flagged in sub-array 3.
!  A total of 1503 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 5737 telescope corrections were flagged in sub-array 1.
!  A total of 575 telescope corrections were flagged in sub-array 2.
!  A total of 949 telescope corrections were flagged in sub-array 3.
!  A total of 1503 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 5737 telescope corrections were flagged in sub-array 1.
!  A total of 575 telescope corrections were flagged in sub-array 2.
!  A total of 949 telescope corrections were flagged in sub-array 3.
!  A total of 1503 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 5737 telescope corrections were flagged in sub-array 1.
!  A total of 575 telescope corrections were flagged in sub-array 2.
!  A total of 949 telescope corrections were flagged in sub-array 3.
!  A total of 1503 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.033478Jy  sigma=0.007681
! Fit after  self-cal, rms=0.504698Jy  sigma=0.003782
! 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.91 mas, bmaj=2.915 mas, bpa=-3.574 degrees
! Estimated noise=835.812 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.773863 Jy
! Component: 100  -  total flux cleaned = 1.08949 Jy
! Total flux subtracted in 100 components = 1.08949 Jy
! Clean residual min=-0.027632 max=0.145693 Jy/beam
! Clean residual mean=0.000377 rms=0.009095 Jy/beam
! Combined flux in latest and established models = 1.08949 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.08949 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379074Jy  sigma=0.002894
! Fit after  self-cal, rms=0.372716Jy  sigma=0.002872
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.16745 Jy
! Component: 100  -  total flux cleaned = 0.256477 Jy
! Total flux subtracted in 100 components = 0.256477 Jy
! Clean residual min=-0.014912 max=0.043830 Jy/beam
! Clean residual mean=0.000185 rms=0.004387 Jy/beam
! Combined flux in latest and established models = 1.34597 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 15 components and 1.34597 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.282290Jy  sigma=0.001958
! Fit after  self-cal, rms=0.280348Jy  sigma=0.001951
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0541031 Jy
! Component: 100  -  total flux cleaned = 0.0865074 Jy
! Total flux subtracted in 100 components = 0.0865074 Jy
! Clean residual min=-0.013465 max=0.018023 Jy/beam
! Clean residual mean=0.000120 rms=0.003429 Jy/beam
! Combined flux in latest and established models = 1.43247 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 22 components and 1.43247 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269520Jy  sigma=0.001815
! Fit after  self-cal, rms=0.269355Jy  sigma=0.001814
! 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.234 mas, bmaj=3.276 mas, bpa=-4.953 degrees
! Estimated noise=479.429 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 (-7, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0286627 Jy
! Component: 100  -  total flux cleaned = 0.0472105 Jy
! Component: 150  -  total flux cleaned = 0.0610443 Jy
! Component: 200  -  total flux cleaned = 0.0714535 Jy
! Total flux subtracted in 200 components = 0.0714535 Jy
! Clean residual min=-0.013830 max=0.012837 Jy/beam
! Clean residual mean=0.000409 rms=0.003288 Jy/beam
! Combined flux in latest and established models = 1.50393 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 51 components and 1.50393 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266424Jy  sigma=0.001772
! Fit after  self-cal, rms=0.266079Jy  sigma=0.001770
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.97     GC        0.99     GG        1.00*    
!   HH        1.10     HN        0.94     KK        1.00*    KP        0.97     
!   LA        0.99     MC        0.94     MK        1.00*    NL        0.94     
!   NY        0.97     OV        0.99     PT        0.94     SC        0.97     
!   TS        0.90     WF        0.98     WZ        1.00     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        0.94     KP        0.90     
!   LA        0.98     MC        0.97     MK        1.03     NL        0.98     
!   NY        1.00     OV        0.98     PT        0.95     SC        0.97     
!   TS        1.04     WF        0.98     WZ        1.08     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.09     FD        1.06     GC        1.28     GG        1.00*    
!   HH        0.98     HN        0.97     KK        1.00*    KP        1.00*    
!   LA        1.06     MC        2.01     MK        1.00*    NL        1.01     
!   NY        0.98     OV        1.00*    PT        1.02     SC        0.96     
!   TS        1.00*    WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        0.95     GG        1.00*    
!   HH        1.19     HN        0.94     KK        1.00*    KP        1.08     
!   LA        0.91     MC        0.94     MK        1.00*    NL        0.92     
!   NY        0.98     OV        1.04     PT        0.97     SC        1.00     
!   TS        0.92     WF        0.98     WZ        0.97     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        0.95     KP        1.03     
!   LA        0.95     MC        0.97     MK        0.98     NL        0.95     
!   NY        1.00     OV        1.02     PT        0.99     SC        0.99     
!   TS        0.98     WF        0.98     WZ        1.06     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.08     FD        1.07     GC        1.27     GG        1.00*    
!   HH        1.05     HN        0.97     KK        1.00*    KP        1.00*    
!   LA        1.03     MC        1.31     MK        1.00*    NL        0.99     
!   NY        0.99     OV        1.00*    PT        1.05     SC        1.00     
!   TS        1.00*    WF        0.98     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.93     GC        1.00     GG        1.00*    
!   HH        1.13     HN        1.04     KK        1.00*    KP        1.02     
!   LA        0.99     MC        0.98     MK        1.00*    NL        0.97     
!   NY        1.01     OV        1.06     PT        0.99     SC        0.99     
!   TS        0.88     WF        0.99     WZ        0.99     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        0.94     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.01     KP        1.02     
!   LA        0.99     MC        1.02     MK        1.04     NL        0.99     
!   NY        1.02     OV        1.04     PT        0.98     SC        1.00     
!   TS        1.03     WF        0.98     WZ        1.07     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.13     FD        1.01     GC        1.27     GG        1.00*    
!   HH        1.02     HN        1.05     KK        1.00*    KP        1.00*    
!   LA        1.04     MC        1.32     MK        1.00*    NL        1.02     
!   NY        1.01     OV        1.00*    PT        1.03     SC        1.00     
!   TS        1.00*    WF        1.10     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        0.98     GG        1.00*    
!   HH        0.71     HN        0.92     KK        1.00*    KP        1.01     
!   LA        0.99     MC        1.49     MK        1.00*    NL        0.96     
!   NY        1.01     OV        0.97     PT        1.00     SC        1.01     
!   TS        0.88     WF        1.01     WZ        1.00     
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        0.96     KP        1.01     
!   LA        0.99     MC        1.30     MK        1.01     NL        0.98     
!   NY        1.05     OV        0.98     PT        1.04     SC        1.01     
!   TS        1.06     WF        1.01     WZ        1.07     
! 
!  A total of 15 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.09     FD        1.06     GC        1.23     GG        1.00*    
!   HH        1.02     HN        0.95     KK        1.00*    KP        1.00*    
!   LA        1.05     MC        0.77     MK        1.00*    NL        1.03     
!   NY        1.02     OV        1.00*    PT        1.06     SC        1.00     
!   TS        1.00*    WF        1.07     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.266079Jy  sigma=0.001770
! Fit after  self-cal, rms=0.264574Jy  sigma=0.001625
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.26 mas, bmaj=3.316 mas, bpa=-5.024 degrees
! Estimated noise=484.487 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.0121258 Jy
! Component: 100  -  total flux cleaned = 0.0157096 Jy
! Component: 150  -  total flux cleaned = 0.0168805 Jy
! Component: 200  -  total flux cleaned = 0.0176727 Jy
! Total flux subtracted in 200 components = 0.0176727 Jy
! Clean residual min=-0.005052 max=0.005894 Jy/beam
! Clean residual mean=0.000260 rms=0.001291 Jy/beam
! Combined flux in latest and established models = 1.5216 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 74 components and 1.5216 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264056Jy  sigma=0.001617
! Fit after  self-cal, rms=0.264294Jy  sigma=0.001616
! Inverting map 
! Added new window around map position (-11.5, 1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00630515 Jy
! Component: 100  -  total flux cleaned = 0.00838009 Jy
! Component: 150  -  total flux cleaned = 0.00934287 Jy
! Component: 200  -  total flux cleaned = 0.00970739 Jy
! Total flux subtracted in 200 components = 0.00970739 Jy
! Clean residual min=-0.005129 max=0.004794 Jy/beam
! Clean residual mean=0.000154 rms=0.001195 Jy/beam
! Combined flux in latest and established models = 1.53131 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 89 components and 1.53131 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264095Jy  sigma=0.001614
! Fit after  self-cal, rms=0.264073Jy  sigma=0.001614
! 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.264073Jy  sigma=0.001614
! Fit after  self-cal, rms=0.273142Jy  sigma=0.001572
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.262 mas, bmaj=3.318 mas, bpa=-4.853 degrees
! Estimated noise=484.71 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00348932 Jy
! Component: 100  -  total flux cleaned = 0.00429376 Jy
! Component: 150  -  total flux cleaned = 0.0048705 Jy
! Component: 200  -  total flux cleaned = 0.00557147 Jy
! Total flux subtracted in 200 components = 0.00557147 Jy
! Clean residual min=-0.004726 max=0.003758 Jy/beam
! Clean residual mean=0.000127 rms=0.000880 Jy/beam
! Combined flux in latest and established models = 1.53688 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 94 components and 1.53688 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273021Jy  sigma=0.001571
! Fit after  self-cal, rms=0.273142Jy  sigma=0.001571
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.00135095 Jy
! Component: 100  -  total flux cleaned = 0.00179626 Jy
! Component: 150  -  total flux cleaned = 0.00204278 Jy
! Component: 200  -  total flux cleaned = 0.00219383 Jy
! Total flux subtracted in 200 components = 0.00219383 Jy
! Clean residual min=-0.004470 max=0.003642 Jy/beam
! Clean residual mean=0.000103 rms=0.000863 Jy/beam
! Combined flux in latest and established models = 1.53907 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 108 components and 1.53907 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273086Jy  sigma=0.001570
! Fit after  self-cal, rms=0.273086Jy  sigma=0.001570
! 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.273086Jy  sigma=0.001570
! Fit after  self-cal, rms=0.274142Jy  sigma=0.001570
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.263 mas, bmaj=3.315 mas, bpa=-4.698 degrees
! Estimated noise=484.769 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00138833 Jy
! Component: 100  -  total flux cleaned = 0.00187876 Jy
! Component: 150  -  total flux cleaned = 0.00209469 Jy
! Component: 200  -  total flux cleaned = 0.00222871 Jy
! Total flux subtracted in 200 components = 0.00222871 Jy
! Clean residual min=-0.004207 max=0.003526 Jy/beam
! Clean residual mean=0.000091 rms=0.000835 Jy/beam
! Combined flux in latest and established models = 1.5413 Jy
selfcal
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 116 components and 1.5413 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274098Jy  sigma=0.001570
! Fit after  self-cal, rms=0.274108Jy  sigma=0.001570
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.000664073 Jy
! Component: 100  -  total flux cleaned = 0.000791748 Jy
! Component: 150  -  total flux cleaned = 0.000792989 Jy
! Component: 200  -  total flux cleaned = 0.000849776 Jy
! Total flux subtracted in 200 components = 0.000849776 Jy
! Clean residual min=-0.004009 max=0.003447 Jy/beam
! Clean residual mean=0.000082 rms=0.000827 Jy/beam
! Combined flux in latest and established models = 1.54215 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 121 components and 1.54215 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274079Jy  sigma=0.001569
! Fit after  self-cal, rms=0.274078Jy  sigma=0.001569
! 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.274078Jy  sigma=0.001569
! Fit after  self-cal, rms=0.274378Jy  sigma=0.001569
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.898 mas, bmaj=8.226 mas, bpa=-16.41 degrees
! Estimated noise=719.568 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00101051 Jy
! Component: 100  -  total flux cleaned = 0.00117139 Jy
! Component: 150  -  total flux cleaned = 0.00121293 Jy
! Component: 200  -  total flux cleaned = 0.00121315 Jy
! Total flux subtracted in 200 components = 0.00121315 Jy
! Clean residual min=-0.003276 max=0.003815 Jy/beam
! Clean residual mean=0.000269 rms=0.001171 Jy/beam
! Combined flux in latest and established models = 1.54336 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 134 components and 1.54336 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274379Jy  sigma=0.001569
! Fit after  self-cal, rms=0.274375Jy  sigma=0.001569
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.000341313 Jy
! Component: 100  -  total flux cleaned = 0.000376592 Jy
! Component: 150  -  total flux cleaned = 0.000373785 Jy
! Component: 200  -  total flux cleaned = 0.000349208 Jy
! Total flux subtracted in 200 components = 0.000349208 Jy
! Clean residual min=-0.003344 max=0.003775 Jy/beam
! Clean residual mean=0.000254 rms=0.001171 Jy/beam
! Combined flux in latest and established models = 1.54371 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 139 components and 1.54371 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274374Jy  sigma=0.001569
! Fit after  self-cal, rms=0.274374Jy  sigma=0.001569
! 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.264 mas, bmaj=3.314 mas, bpa=-4.63 degrees
! Estimated noise=484.84 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.264 x 3.314 at -4.63 degrees (North through East)
! Clean map  min=-0.0031067  max=1.0331 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.274374Jy  sigma=0.001569
! Fit after  self-cal, rms=0.331415Jy  sigma=0.001460
! Inverting map and beam 
! Estimated beam: bmin=2.26 mas, bmaj=3.301 mas, bpa=-4.191 degrees
! Estimated noise=484.124 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000428715 Jy
! Component: 100  -  total flux cleaned = -0.000486463 Jy
! Component: 150  -  total flux cleaned = -0.000540988 Jy
! Component: 200  -  total flux cleaned = -0.000592133 Jy
! Total flux subtracted in 200 components = -0.000592133 Jy
! Clean residual min=-0.003974 max=0.003116 Jy/beam
! Clean residual mean=0.000064 rms=0.000787 Jy/beam
! Combined flux in latest and established models = 1.54312 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 150 components and 1.54312 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331396Jy  sigma=0.001460
! Fit after  self-cal, rms=0.331391Jy  sigma=0.001460
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.80475e-06 Jy
! Component: 100  -  total flux cleaned = 9.08434e-07 Jy
! Component: 150  -  total flux cleaned = -6.29734e-08 Jy
! Component: 200  -  total flux cleaned = -4.44991e-05 Jy
! Total flux subtracted in 200 components = -4.44991e-05 Jy
! Clean residual min=-0.003784 max=0.003083 Jy/beam
! Clean residual mean=0.000065 rms=0.000783 Jy/beam
! Combined flux in latest and established models = 1.54308 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 152 components and 1.54308 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331378Jy  sigma=0.001460
! Fit after  self-cal, rms=0.331375Jy  sigma=0.001460
! 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.331375Jy  sigma=0.001460
! Fit after  self-cal, rms=0.335029Jy  sigma=0.001460
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.935 mas, bmaj=2.947 mas, bpa=-2.449 degrees
! Estimated noise=843.854 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.780372 Jy
! Component: 100  -  total flux cleaned = 1.09839 Jy
! Component: 150  -  total flux cleaned = 1.25972 Jy
! Component: 200  -  total flux cleaned = 1.34481 Jy
! Total flux subtracted in 200 components = 1.34481 Jy
! Clean residual min=-0.010200 max=0.040699 Jy/beam
! Clean residual mean=0.000162 rms=0.003179 Jy/beam
! Combined flux in latest and established models = 1.34481 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 11 model components to the UV plane model.
! The established model now contains 11 components and 1.34481 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.26 mas, bmaj=3.3 mas, bpa=-4.143 degrees
! Estimated noise=484.062 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.0646283 Jy
! Component: 100  -  total flux cleaned = 0.10153 Jy
! Component: 150  -  total flux cleaned = 0.126267 Jy
! Component: 200  -  total flux cleaned = 0.144165 Jy
! Total flux subtracted in 200 components = 0.144165 Jy
! Clean residual min=-0.004325 max=0.013079 Jy/beam
! Clean residual mean=0.000654 rms=0.001550 Jy/beam
! Combined flux in latest and established models = 1.48898 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 48 components and 1.48898 Jy
! Inverting map 
! Added new window around map position (-2.5, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0138569 Jy
! Component: 100  -  total flux cleaned = 0.0238292 Jy
! Component: 150  -  total flux cleaned = 0.0313718 Jy
! Component: 200  -  total flux cleaned = 0.0372108 Jy
! Total flux subtracted in 200 components = 0.0372108 Jy
! Clean residual min=-0.003491 max=0.004356 Jy/beam
! Clean residual mean=0.000244 rms=0.000922 Jy/beam
! Combined flux in latest and established models = 1.52619 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 77 components and 1.52619 Jy
! Inverting map 
! Added new window around map position (7, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00418457 Jy
! Component: 100  -  total flux cleaned = 0.00617925 Jy
! Component: 150  -  total flux cleaned = 0.00751368 Jy
! Component: 200  -  total flux cleaned = 0.00845371 Jy
! Total flux subtracted in 200 components = 0.00845371 Jy
! Clean residual min=-0.003326 max=0.003768 Jy/beam
! Clean residual mean=0.000150 rms=0.000835 Jy/beam
! Combined flux in latest and established models = 1.53464 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 84 components and 1.53464 Jy
! Inverting map 
! Added new window around map position (-19.5, 8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00274781 Jy
! Component: 100  -  total flux cleaned = 0.00378538 Jy
! Component: 150  -  total flux cleaned = 0.00442232 Jy
! Component: 200  -  total flux cleaned = 0.00482132 Jy
! Total flux subtracted in 200 components = 0.00482132 Jy
! Clean residual min=-0.003174 max=0.003052 Jy/beam
! Clean residual mean=0.000098 rms=0.000785 Jy/beam
! Combined flux in latest and established models = 1.53946 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 99 components and 1.53946 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.898 mas, bmaj=8.227 mas, bpa=-16.09 degrees
! Estimated noise=718.954 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00335802 Jy
! Component: 100  -  total flux cleaned = 0.00450961 Jy
! Component: 150  -  total flux cleaned = 0.00484369 Jy
! Component: 200  -  total flux cleaned = 0.00501874 Jy
! Total flux subtracted in 200 components = 0.00501874 Jy
! Clean residual min=-0.002818 max=0.003251 Jy/beam
! Clean residual mean=0.000154 rms=0.001082 Jy/beam
! Combined flux in latest and established models = 1.54448 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 = 5.82247e-05 Jy
! Component: 100  -  total flux cleaned = 8.34408e-05 Jy
! Component: 150  -  total flux cleaned = 0.000150133 Jy
! Component: 200  -  total flux cleaned = 0.000170442 Jy
! Total flux subtracted in 200 components = 0.000170442 Jy
! Clean residual min=-0.002824 max=0.003245 Jy/beam
! Clean residual mean=0.000147 rms=0.001070 Jy/beam
! Combined flux in latest and established models = 1.54465 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 132 components and 1.54465 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.26 mas, bmaj=3.3 mas, bpa=-4.143 degrees
! Estimated noise=484.062 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000791072 Jy
! Component: 100  -  total flux cleaned = -0.00095119 Jy
! Component: 150  -  total flux cleaned = -0.000876293 Jy
! Component: 200  -  total flux cleaned = -0.000950408 Jy
! Total flux subtracted in 200 components = -0.000950408 Jy
! Clean residual min=-0.003103 max=0.003085 Jy/beam
! Clean residual mean=0.000051 rms=0.000754 Jy/beam
! Combined flux in latest and established models = 1.5437 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 143 components and 1.5437 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334998Jy  sigma=0.001459
! Fit after  self-cal, rms=0.335019Jy  sigma=0.001459
wmodel J1310+3220_S_2001_07_05_pus_map.mod
! Writing 143 model components to file: J1310+3220_S_2001_07_05_pus_map.mod
wobs J1310+3220_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1310+3220_S_2001_07_05_pus_uvs.fits
wwins J1310+3220_S_2001_07_05_pus_map.win
! wwins: Wrote 6 windows to J1310+3220_S_2001_07_05_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 4.31365e-05 Jy
! Component: 100  -  total flux cleaned = 0.000149116 Jy
! Component: 150  -  total flux cleaned = -3.16537e-06 Jy
! Component: 200  -  total flux cleaned = -0.000199017 Jy
! Component: 250  -  total flux cleaned = -0.000294248 Jy
! Component: 300  -  total flux cleaned = -0.00034067 Jy
! Component: 350  -  total flux cleaned = -0.00047853 Jy
! Component: 400  -  total flux cleaned = -0.000703698 Jy
! Component: 450  -  total flux cleaned = -0.000836695 Jy
! Component: 500  -  total flux cleaned = -0.00105529 Jy
! Component: 550  -  total flux cleaned = -0.00127061 Jy
! Component: 600  -  total flux cleaned = -0.00135626 Jy
! Component: 650  -  total flux cleaned = -0.00156588 Jy
! Component: 700  -  total flux cleaned = -0.00160693 Jy
! Component: 750  -  total flux cleaned = -0.00172947 Jy
! Component: 800  -  total flux cleaned = -0.00176945 Jy
! Component: 850  -  total flux cleaned = -0.0017691 Jy
! Component: 900  -  total flux cleaned = -0.00172958 Jy
! Component: 950  -  total flux cleaned = -0.0017296 Jy
! Component: 1000  -  total flux cleaned = -0.00169104 Jy
! Component: 1050  -  total flux cleaned = -0.00169098 Jy
! Component: 1100  -  total flux cleaned = -0.00157686 Jy
! Component: 1150  -  total flux cleaned = -0.00157711 Jy
! Component: 1200  -  total flux cleaned = -0.00161434 Jy
! Component: 1250  -  total flux cleaned = -0.00153983 Jy
! Component: 1300  -  total flux cleaned = -0.00153965 Jy
! Component: 1350  -  total flux cleaned = -0.00146615 Jy
! Component: 1400  -  total flux cleaned = -0.00142976 Jy
! Component: 1450  -  total flux cleaned = -0.00128574 Jy
! Component: 1500  -  total flux cleaned = -0.00128581 Jy
! Component: 1550  -  total flux cleaned = -0.00125051 Jy
! Component: 1600  -  total flux cleaned = -0.00121508 Jy
! Component: 1650  -  total flux cleaned = -0.00110995 Jy
! Component: 1700  -  total flux cleaned = -0.0010057 Jy
! Component: 1750  -  total flux cleaned = -0.000936961 Jy
! Component: 1800  -  total flux cleaned = -0.000971293 Jy
! Component: 1850  -  total flux cleaned = -0.000835009 Jy
! Component: 1900  -  total flux cleaned = -0.000868844 Jy
! Component: 1950  -  total flux cleaned = -0.000801409 Jy
! Component: 2000  -  total flux cleaned = -0.000701382 Jy
! Total flux subtracted in 2048 components = -0.000668182 Jy
! Clean residual min=-0.002153 max=0.001990 Jy/beam
! Clean residual mean=0.000055 rms=0.000603 Jy/beam
! Combined flux in latest and established models = 1.54303 Jy
keep
! Adding 150 model components to the UV plane model.
! The established model now contains 293 components and 1.54303 Jy
wmap "J1310+3220_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.26 x 3.3 at -4.143 degrees (North through East)
! Clean map  min=-0.0025259  max=1.0308 Jy/beam
! Writing clean map to FITS file: J1310+3220_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.03075 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00060174 
device "J1310+3220_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1310+3220_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.175136 0.175136 0.350272 0.700545 1.40109 2.80218 5.60436 11.2087 22.4174 44.8349 89.6697
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.03 
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.26 x 3.3 at -4.143 degrees (North through East)
! Clean map  min=-0.0025259  max=1.0308 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1310+3220_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1310+3220_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1310+3220_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 01:22:31 2007