! Started logfile: J1310+3220_S_2000_12_04_pus_uvs.log on Wed Oct 17 17:08:44 2007
obs J1310+3220_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1310+3220_S_2000_12_04_pus_uva.fits
! AN table 1: 49 integrations on 190 of 190 possible baselines.
! AN table 2: 61 integrations on 190 of 190 possible baselines.
! AN table 3: 32 integrations on 190 of 190 possible baselines.
! AN table 4: 51 integrations on 190 of 190 possible baselines.
! AN table 5: 60 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.239006 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1310+3220
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2169 lines of history.
! 
! Reading 45956 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 
![@muppet J1310+3220_S_2000_12_04_pus]
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 415 telescope corrections were flagged in sub-array 1.
!  A total of 708 telescope corrections were flagged in sub-array 2.
!  A total of 533 telescope corrections were flagged in sub-array 3.
!  A total of 539 telescope corrections were flagged in sub-array 4.
!  A total of 669 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 415 telescope corrections were flagged in sub-array 1.
!  A total of 708 telescope corrections were flagged in sub-array 2.
!  A total of 533 telescope corrections were flagged in sub-array 3.
!  A total of 539 telescope corrections were flagged in sub-array 4.
!  A total of 669 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 415 telescope corrections were flagged in sub-array 1.
!  A total of 708 telescope corrections were flagged in sub-array 2.
!  A total of 533 telescope corrections were flagged in sub-array 3.
!  A total of 539 telescope corrections were flagged in sub-array 4.
!  A total of 669 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 415 telescope corrections were flagged in sub-array 1.
!  A total of 708 telescope corrections were flagged in sub-array 2.
!  A total of 533 telescope corrections were flagged in sub-array 3.
!  A total of 539 telescope corrections were flagged in sub-array 4.
!  A total of 669 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.182466Jy  sigma=0.009735
! Fit after  self-cal, rms=0.620445Jy  sigma=0.005140
! 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.824 mas, bmaj=3.382 mas, bpa=-7.766 degrees
! Estimated noise=715.103 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.832753 Jy
! Component: 100  -  total flux cleaned = 1.1784 Jy
! Total flux subtracted in 100 components = 1.1784 Jy
! Clean residual min=-0.029779 max=0.159729 Jy/beam
! Clean residual mean=0.000304 rms=0.009683 Jy/beam
! Combined flux in latest and established models = 1.1784 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.1784 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.487472Jy  sigma=0.003842
! Fit after  self-cal, rms=0.485547Jy  sigma=0.003836
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.178372 Jy
! Component: 100  -  total flux cleaned = 0.271419 Jy
! Total flux subtracted in 100 components = 0.271419 Jy
! Clean residual min=-0.018940 max=0.045772 Jy/beam
! Clean residual mean=0.000146 rms=0.004975 Jy/beam
! Combined flux in latest and established models = 1.44982 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 12 components and 1.44982 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.405574Jy  sigma=0.002905
! Fit after  self-cal, rms=0.404801Jy  sigma=0.002900
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0561229 Jy
! Component: 100  -  total flux cleaned = 0.0930484 Jy
! Total flux subtracted in 100 components = 0.0930484 Jy
! Clean residual min=-0.016976 max=0.025928 Jy/beam
! Clean residual mean=0.000096 rms=0.004129 Jy/beam
! Combined flux in latest and established models = 1.54286 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 24 components and 1.54286 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.394616Jy  sigma=0.002758
! Fit after  self-cal, rms=0.394523Jy  sigma=0.002757
! Inverting map 
! Added new window around map position (-8, 0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0295863 Jy
! Component: 100  -  total flux cleaned = 0.0516133 Jy
! Total flux subtracted in 100 components = 0.0516133 Jy
! Clean residual min=-0.016088 max=0.016893 Jy/beam
! Clean residual mean=0.000064 rms=0.003869 Jy/beam
! Combined flux in latest and established models = 1.59448 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 32 components and 1.59448 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391779Jy  sigma=0.002715
! Fit after  self-cal, rms=0.391637Jy  sigma=0.002714
! 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.096 mas, bmaj=4.05 mas, bpa=-11.94 degrees
! Estimated noise=403.607 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.0279787 Jy
! Component: 100  -  total flux cleaned = 0.0462606 Jy
! Component: 150  -  total flux cleaned = 0.0588519 Jy
! Component: 200  -  total flux cleaned = 0.067999 Jy
! Total flux subtracted in 200 components = 0.067999 Jy
! Clean residual min=-0.020191 max=0.020024 Jy/beam
! Clean residual mean=-0.000102 rms=0.005085 Jy/beam
! Combined flux in latest and established models = 1.66248 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 50 components and 1.66248 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.390302Jy  sigma=0.002688
! Fit after  self-cal, rms=0.390174Jy  sigma=0.002687
! 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        1.00     FD        0.95     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00     KP        0.78     
!   LA        1.02     MA        2.43     MC        1.04     MK        0.94     
!   NL        0.97     NY        1.01     OV        1.00*    PT        0.97     
!   SC        1.02     TS        1.00*    WF        1.09     WZ        1.04     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.97     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        0.90     
!   LA        1.04     MA        0.86     MC        1.03     MK        1.04     
!   NL        1.02     NY        0.99     OV        1.00*    PT        1.02     
!   SC        1.01     TS        1.00*    WF        1.11     WZ        0.88     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.99     MC        0.98     MK        1.00*    
!   NL        1.00*    NY        1.08     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.97     WF        1.00*    WZ        1.05     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.01     KP        0.94     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        1.00     NY        0.98     OV        1.01     PT        1.01     
!   SC        1.05     TS        1.05     WF        1.02     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        0.95     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        0.84     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        0.99     NY        1.05     OV        0.91     PT        0.94     
!   SC        1.00*    TS        0.98     WF        1.04     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.99     FD        0.96     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.01     KP        0.88     
!   LA        0.98     MA        1.50     MC        1.00     MK        0.95     
!   NL        0.94     NY        0.99     OV        1.00*    PT        0.98     
!   SC        0.98     TS        1.00*    WF        1.08     WZ        1.05     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        0.96     
!   LA        1.00     MA        2.17     MC        0.94     MK        1.05     
!   NL        0.99     NY        1.00     OV        1.00*    PT        1.01     
!   SC        0.97     TS        1.00*    WF        1.09     WZ        0.86     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.80     MC        1.10     MK        1.00*    
!   NL        1.00*    NY        1.00     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.99     WF        1.00*    WZ        1.03     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.97     KP        0.95     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        0.96     NY        1.01     OV        0.97     PT        1.02     
!   SC        1.01     TS        1.04     WF        1.00     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.02     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        0.88     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        0.95     NY        1.06     OV        0.90     PT        0.96     
!   SC        1.00*    TS        0.99     WF        1.03     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.99     FD        1.00     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.05     KK        1.13     KP        0.99     
!   LA        1.03     MA        1.00     MC        2.54     MK        0.93     
!   NL        1.04     NY        0.98     OV        1.00*    PT        0.99     
!   SC        1.00     TS        1.00*    WF        0.96     WZ        0.90     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        1.01     GC        0.93     GG        1.00*    
!   HH        1.00*    HN        0.74     KK        1.00*    KP        1.67     
!   LA        0.93     MA        1.73     MC        0.94     MK        1.05     
!   NL        1.21     NY        1.01     OV        1.00*    PT        1.22     
!   SC        1.03     TS        1.00*    WF        1.02     WZ        0.82     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.86     MC        0.90     MK        1.00*    
!   NL        1.00*    NY        0.99     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        1.01     WF        1.00*    WZ        0.89     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.06     KK        0.93     KP        1.06     
!   LA        1.07     MA        1.00*    MC        1.00*    MK        0.99     
!   NL        1.08     NY        1.01     OV        1.06     PT        1.07     
!   SC        1.05     TS        1.05     WF        0.96     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.91     FD        0.92     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.00*    KP        0.82     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        0.99     NY        1.06     OV        0.79     PT        0.90     
!   SC        1.00*    TS        0.96     WF        1.09     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.98     FD        0.97     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        0.98     KP        0.92     
!   LA        0.98     MA        1.33     MC        2.09     MK        0.97     
!   NL        0.98     NY        1.04     OV        1.00*    PT        1.04     
!   SC        1.05     TS        1.00*    WF        1.03     WZ        1.07     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        1.00*    KP        1.01     
!   LA        1.01     MA        1.42     MC        1.18     MK        1.06     
!   NL        1.01     NY        1.00     OV        1.00*    PT        1.61     
!   SC        1.04     TS        1.00*    WF        1.04     WZ        0.91     
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        0.92     MC        0.91     MK        1.00*    
!   NL        1.00*    NY        1.10     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.93     WF        1.00*    WZ        1.10     
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.02     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.02     KK        0.99     KP        0.99     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.02     
!   NL        1.00     NY        1.06     OV        1.01     PT        1.23     
!   SC        1.09     TS        1.09     WF        1.00     WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        0.92     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        0.98     
!   NL        1.00     NY        1.06     OV        0.96     PT        0.99     
!   SC        1.00*    TS        1.03     WF        1.05     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.390174Jy  sigma=0.002687
! Fit after  self-cal, rms=0.468840Jy  sigma=0.002224
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.125 mas, bmaj=4.085 mas, bpa=-11.54 degrees
! Estimated noise=408.314 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-4.5, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00332729 Jy
! Component: 100  -  total flux cleaned = 0.00392058 Jy
! Component: 150  -  total flux cleaned = 0.00417288 Jy
! Component: 200  -  total flux cleaned = 0.00439285 Jy
! Total flux subtracted in 200 components = 0.00439285 Jy
! Clean residual min=-0.005577 max=0.006200 Jy/beam
! Clean residual mean=0.000112 rms=0.001278 Jy/beam
! Combined flux in latest and established models = 1.66687 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 63 components and 1.66687 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.468468Jy  sigma=0.002218
! Fit after  self-cal, rms=0.469876Jy  sigma=0.002215
! Inverting map 
! Added new window around map position (-10.5, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00463934 Jy
! Component: 100  -  total flux cleaned = 0.0054278 Jy
! Component: 150  -  total flux cleaned = 0.00612583 Jy
! Component: 200  -  total flux cleaned = 0.00658903 Jy
! Total flux subtracted in 200 components = 0.00658903 Jy
! Clean residual min=-0.005171 max=0.004586 Jy/beam
! Clean residual mean=0.000099 rms=0.001177 Jy/beam
! Combined flux in latest and established models = 1.67346 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 78 components and 1.67346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.469730Jy  sigma=0.002213
! Fit after  self-cal, rms=0.469727Jy  sigma=0.002213
! 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.469727Jy  sigma=0.002213
! Fit after  self-cal, rms=0.474900Jy  sigma=0.002212
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.129 mas, bmaj=4.086 mas, bpa=-11.47 degrees
! Estimated noise=408.691 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00070484 Jy
! Component: 100  -  total flux cleaned = 0.00144113 Jy
! Component: 150  -  total flux cleaned = 0.00206165 Jy
! Component: 200  -  total flux cleaned = 0.00247502 Jy
! Total flux subtracted in 200 components = 0.00247502 Jy
! Clean residual min=-0.004471 max=0.003966 Jy/beam
! Clean residual mean=0.000060 rms=0.001067 Jy/beam
! Combined flux in latest and established models = 1.67593 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 83 components and 1.67593 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.474778Jy  sigma=0.002210
! Fit after  self-cal, rms=0.474834Jy  sigma=0.002210
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.00113222 Jy
! Component: 100  -  total flux cleaned = 0.00174157 Jy
! Component: 150  -  total flux cleaned = 0.00207815 Jy
! Component: 200  -  total flux cleaned = 0.00248789 Jy
! Total flux subtracted in 200 components = 0.00248789 Jy
! Clean residual min=-0.004105 max=0.003969 Jy/beam
! Clean residual mean=0.000051 rms=0.001038 Jy/beam
! Combined flux in latest and established models = 1.67842 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 91 components and 1.67842 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.474784Jy  sigma=0.002209
! Fit after  self-cal, rms=0.474785Jy  sigma=0.002209
! 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.474785Jy  sigma=0.002209
! Fit after  self-cal, rms=0.477052Jy  sigma=0.002209
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.131 mas, bmaj=4.09 mas, bpa=-11.43 degrees
! Estimated noise=409.034 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000422273 Jy
! Component: 100  -  total flux cleaned = 5.909e-05 Jy
! Component: 150  -  total flux cleaned = 0.000584579 Jy
! Component: 200  -  total flux cleaned = 0.000772212 Jy
! Total flux subtracted in 200 components = 0.000772212 Jy
! Clean residual min=-0.004013 max=0.003872 Jy/beam
! Clean residual mean=0.000035 rms=0.000992 Jy/beam
! Combined flux in latest and established models = 1.67919 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 97 components and 1.67919 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.476996Jy  sigma=0.002208
! Fit after  self-cal, rms=0.477020Jy  sigma=0.002208
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.000570892 Jy
! Component: 100  -  total flux cleaned = 0.00108857 Jy
! Component: 150  -  total flux cleaned = 0.00140175 Jy
! Component: 200  -  total flux cleaned = 0.00162262 Jy
! Total flux subtracted in 200 components = 0.00162262 Jy
! Clean residual min=-0.003911 max=0.003867 Jy/beam
! Clean residual mean=0.000029 rms=0.000977 Jy/beam
! Combined flux in latest and established models = 1.68082 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 108 components and 1.68082 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.476998Jy  sigma=0.002207
! Fit after  self-cal, rms=0.476999Jy  sigma=0.002207
! 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.476999Jy  sigma=0.002207
! Fit after  self-cal, rms=0.478519Jy  sigma=0.002207
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.702 mas, bmaj=8.744 mas, bpa=-15.54 degrees
! Estimated noise=613.237 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00337184 Jy
! Component: 100  -  total flux cleaned = 0.00373221 Jy
! Component: 150  -  total flux cleaned = 0.00387658 Jy
! Component: 200  -  total flux cleaned = 0.00387659 Jy
! Total flux subtracted in 200 components = 0.00387659 Jy
! Clean residual min=-0.006360 max=0.005045 Jy/beam
! Clean residual mean=0.000052 rms=0.001896 Jy/beam
! Combined flux in latest and established models = 1.68469 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 120 components and 1.68469 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.478528Jy  sigma=0.002207
! Fit after  self-cal, rms=0.478525Jy  sigma=0.002207
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.000684389 Jy
! Component: 100  -  total flux cleaned = 0.000842434 Jy
! Component: 150  -  total flux cleaned = 0.000865454 Jy
! Component: 200  -  total flux cleaned = 0.000865031 Jy
! Total flux subtracted in 200 components = 0.000865031 Jy
! Clean residual min=-0.006329 max=0.004954 Jy/beam
! Clean residual mean=0.000041 rms=0.001882 Jy/beam
! Combined flux in latest and established models = 1.68556 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 127 components and 1.68556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.478527Jy  sigma=0.002207
! Fit after  self-cal, rms=0.478526Jy  sigma=0.002207
! 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.133 mas, bmaj=4.092 mas, bpa=-11.42 degrees
! Estimated noise=409.34 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.133 x 4.092 at -11.42 degrees (North through East)
! Clean map  min=-0.0035753  max=1.1403 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.478526Jy  sigma=0.002207
! Fit after  self-cal, rms=0.745871Jy  sigma=0.001931
! Inverting map and beam 
! Estimated beam: bmin=2.134 mas, bmaj=4.092 mas, bpa=-11.43 degrees
! Estimated noise=409.023 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00205978 Jy
! Component: 100  -  total flux cleaned = -0.00281736 Jy
! Component: 150  -  total flux cleaned = -0.00340358 Jy
! Component: 200  -  total flux cleaned = -0.00385741 Jy
! Total flux subtracted in 200 components = -0.00385741 Jy
! Clean residual min=-0.003906 max=0.003452 Jy/beam
! Clean residual mean=0.000062 rms=0.000884 Jy/beam
! Combined flux in latest and established models = 1.6817 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 137 components and 1.6817 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.745837Jy  sigma=0.001931
! Fit after  self-cal, rms=0.745891Jy  sigma=0.001931
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000497317 Jy
! Component: 100  -  total flux cleaned = -0.00063315 Jy
! Component: 150  -  total flux cleaned = -0.000817125 Jy
! Component: 200  -  total flux cleaned = -0.000874468 Jy
! Total flux subtracted in 200 components = -0.000874468 Jy
! Clean residual min=-0.003759 max=0.003424 Jy/beam
! Clean residual mean=0.000063 rms=0.000875 Jy/beam
! Combined flux in latest and established models = 1.68083 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 142 components and 1.68083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.745874Jy  sigma=0.001931
! Fit after  self-cal, rms=0.745902Jy  sigma=0.001931
! 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.745902Jy  sigma=0.001931
! Fit after  self-cal, rms=0.750141Jy  sigma=0.001931
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.855 mas, bmaj=3.413 mas, bpa=-7.106 degrees
! Estimated noise=726.427 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.84671 Jy
! Component: 100  -  total flux cleaned = 1.19192 Jy
! Component: 150  -  total flux cleaned = 1.36597 Jy
! Component: 200  -  total flux cleaned = 1.45535 Jy
! Total flux subtracted in 200 components = 1.45535 Jy
! Clean residual min=-0.010572 max=0.041744 Jy/beam
! Clean residual mean=0.000139 rms=0.003167 Jy/beam
! Combined flux in latest and established models = 1.45535 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 10 model components to the UV plane model.
! The established model now contains 10 components and 1.45535 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.136 mas, bmaj=4.096 mas, bpa=-11.45 degrees
! Estimated noise=409.391 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.0719905 Jy
! Component: 100  -  total flux cleaned = 0.114025 Jy
! Component: 150  -  total flux cleaned = 0.142549 Jy
! Component: 200  -  total flux cleaned = 0.162902 Jy
! Total flux subtracted in 200 components = 0.162902 Jy
! Clean residual min=-0.004782 max=0.011473 Jy/beam
! Clean residual mean=0.000261 rms=0.001678 Jy/beam
! Combined flux in latest and established models = 1.61825 Jy
! Adding 49 model components to the UV plane model.
! The established model now contains 55 components and 1.61825 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0148088 Jy
! Component: 100  -  total flux cleaned = 0.0258508 Jy
! Component: 150  -  total flux cleaned = 0.0341516 Jy
! Component: 200  -  total flux cleaned = 0.0404472 Jy
! Total flux subtracted in 200 components = 0.0404472 Jy
! Clean residual min=-0.003985 max=0.004246 Jy/beam
! Clean residual mean=0.000138 rms=0.000991 Jy/beam
! Combined flux in latest and established models = 1.6587 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 80 components and 1.6587 Jy
! Inverting map 
! Added new window around map position (-15, 6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.005097 Jy
! Component: 100  -  total flux cleaned = 0.00916833 Jy
! Component: 150  -  total flux cleaned = 0.0124901 Jy
! Component: 200  -  total flux cleaned = 0.0143973 Jy
! Total flux subtracted in 200 components = 0.0143973 Jy
! Clean residual min=-0.003770 max=0.003784 Jy/beam
! Clean residual mean=0.000095 rms=0.000895 Jy/beam
! Combined flux in latest and established models = 1.67309 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 92 components and 1.67309 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.708 mas, bmaj=8.757 mas, bpa=-15.63 degrees
! Estimated noise=611.274 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00395851 Jy
! Component: 100  -  total flux cleaned = 0.00553486 Jy
! Component: 150  -  total flux cleaned = 0.0060038 Jy
! Component: 200  -  total flux cleaned = 0.00636858 Jy
! Total flux subtracted in 200 components = 0.00636858 Jy
! Clean residual min=-0.006007 max=0.005373 Jy/beam
! Clean residual mean=0.000267 rms=0.001591 Jy/beam
! Combined flux in latest and established models = 1.67946 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.000293044 Jy
! Component: 100  -  total flux cleaned = 0.000564445 Jy
! Component: 150  -  total flux cleaned = 0.000741209 Jy
! Component: 200  -  total flux cleaned = 0.000829048 Jy
! Total flux subtracted in 200 components = 0.000829048 Jy
! Clean residual min=-0.006066 max=0.005301 Jy/beam
! Clean residual mean=0.000257 rms=0.001588 Jy/beam
! Combined flux in latest and established models = 1.68029 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 141 components and 1.68029 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.136 mas, bmaj=4.096 mas, bpa=-11.45 degrees
! Estimated noise=409.391 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000725931 Jy
! Component: 100  -  total flux cleaned = -0.000482377 Jy
! Component: 150  -  total flux cleaned = -0.000266312 Jy
! Component: 200  -  total flux cleaned = -6.84141e-05 Jy
! Total flux subtracted in 200 components = -6.84141e-05 Jy
! Clean residual min=-0.003886 max=0.003564 Jy/beam
! Clean residual mean=0.000071 rms=0.000873 Jy/beam
! Combined flux in latest and established models = 1.68022 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 149 components and 1.68022 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.750123Jy  sigma=0.001932
! Fit after  self-cal, rms=0.750230Jy  sigma=0.001931
wmodel J1310+3220_S_2000_12_04_pus_map.mod
! Writing 149 model components to file: J1310+3220_S_2000_12_04_pus_map.mod
wobs J1310+3220_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1310+3220_S_2000_12_04_pus_uvs.fits
wwins J1310+3220_S_2000_12_04_pus_map.win
! wwins: Wrote 5 windows to J1310+3220_S_2000_12_04_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.000962081 Jy
! Component: 100  -  total flux cleaned = -0.000964172 Jy
! Component: 150  -  total flux cleaned = -0.000730118 Jy
! Component: 200  -  total flux cleaned = -0.000675865 Jy
! Component: 250  -  total flux cleaned = -0.000458024 Jy
! Component: 300  -  total flux cleaned = 2.01125e-05 Jy
! Component: 350  -  total flux cleaned = 0.000382186 Jy
! Component: 400  -  total flux cleaned = 0.000584542 Jy
! Component: 450  -  total flux cleaned = 0.000883407 Jy
! Component: 500  -  total flux cleaned = 0.00117691 Jy
! Component: 550  -  total flux cleaned = 0.00146668 Jy
! Component: 600  -  total flux cleaned = 0.00189456 Jy
! Component: 650  -  total flux cleaned = 0.00217487 Jy
! Component: 700  -  total flux cleaned = 0.00240634 Jy
! Component: 750  -  total flux cleaned = 0.00268074 Jy
! Component: 800  -  total flux cleaned = 0.00277177 Jy
! Component: 850  -  total flux cleaned = 0.00304072 Jy
! Component: 900  -  total flux cleaned = 0.00330657 Jy
! Component: 950  -  total flux cleaned = 0.00356948 Jy
! Component: 1000  -  total flux cleaned = 0.00378654 Jy
! Component: 1050  -  total flux cleaned = 0.00391587 Jy
! Component: 1100  -  total flux cleaned = 0.00412963 Jy
! Component: 1150  -  total flux cleaned = 0.00446829 Jy
! Component: 1200  -  total flux cleaned = 0.00459376 Jy
! Component: 1250  -  total flux cleaned = 0.0048024 Jy
! Component: 1300  -  total flux cleaned = 0.00509188 Jy
! Component: 1350  -  total flux cleaned = 0.0052968 Jy
! Component: 1400  -  total flux cleaned = 0.00558167 Jy
! Component: 1450  -  total flux cleaned = 0.00562194 Jy
! Component: 1500  -  total flux cleaned = 0.00586246 Jy
! Component: 1550  -  total flux cleaned = 0.00602168 Jy
! Component: 1600  -  total flux cleaned = 0.00606106 Jy
! Component: 1650  -  total flux cleaned = 0.00625756 Jy
! Component: 1700  -  total flux cleaned = 0.00637486 Jy
! Component: 1750  -  total flux cleaned = 0.00652982 Jy
! Component: 1800  -  total flux cleaned = 0.00672277 Jy
! Component: 1850  -  total flux cleaned = 0.00672272 Jy
! Component: 1900  -  total flux cleaned = 0.00683732 Jy
! Component: 1950  -  total flux cleaned = 0.00698862 Jy
! Component: 2000  -  total flux cleaned = 0.0070265 Jy
! Total flux subtracted in 2048 components = 0.00717656 Jy
! Clean residual min=-0.002139 max=0.002387 Jy/beam
! Clean residual mean=0.000048 rms=0.000705 Jy/beam
! Combined flux in latest and established models = 1.6874 Jy
keep
! Adding 154 model components to the UV plane model.
! The established model now contains 303 components and 1.6874 Jy
![Exited script file: muppet]
wmap "J1310+3220_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.136 x 4.096 at -11.45 degrees (North through East)
! Clean map  min=-0.0035051  max=1.143 Jy/beam
! Writing clean map to FITS file: J1310+3220_S_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.14301 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000704619 
device "J1310+3220_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1310+3220_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.184937 0.184937 0.369875 0.739749 1.4795 2.959 5.91799 11.836 23.672 47.3439 94.6879
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.143 
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.136 x 4.096 at -11.45 degrees (North through East)
! Clean map  min=-0.0035051  max=1.143 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1310+3220_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1310+3220_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1310+3220_S_2000_12_04_pus_uvs.log closed on Wed Oct 17 17:09:03 2007