! Started logfile: J1613+3412_S_2000_12_04_pus_uvs.log on Wed Oct 17 17:13:32 2007
obs J1613+3412_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1613+3412_S_2000_12_04_pus_uva.fits
! AN table 1: 86 integrations on 190 of 190 possible baselines.
! AN table 2: 232 integrations on 190 of 190 possible baselines.
! AN table 3: 81 integrations on 190 of 190 possible baselines.
! AN table 4: 33 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.257298 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1613+3412
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.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 84476 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 J1613+3412_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 945 telescope corrections were flagged in sub-array 1.
!  A total of 2386 telescope corrections were flagged in sub-array 2.
!  A total of 827 telescope corrections were flagged in sub-array 3.
!  A total of 493 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 945 telescope corrections were flagged in sub-array 1.
!  A total of 2386 telescope corrections were flagged in sub-array 2.
!  A total of 827 telescope corrections were flagged in sub-array 3.
!  A total of 493 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 945 telescope corrections were flagged in sub-array 1.
!  A total of 2386 telescope corrections were flagged in sub-array 2.
!  A total of 827 telescope corrections were flagged in sub-array 3.
!  A total of 493 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 945 telescope corrections were flagged in sub-array 1.
!  A total of 2386 telescope corrections were flagged in sub-array 2.
!  A total of 827 telescope corrections were flagged in sub-array 3.
!  A total of 493 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.134277Jy  sigma=0.017793
! Fit after  self-cal, rms=1.805281Jy  sigma=0.015502
! 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.804 mas, bmaj=2.817 mas, bpa=5.008 degrees
! Estimated noise=709.394 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.42015 Jy
! Component: 100  -  total flux cleaned = 2.09095 Jy
! Total flux subtracted in 100 components = 2.09095 Jy
! Clean residual min=-0.109525 max=0.356724 Jy/beam
! Clean residual mean=0.000829 rms=0.029725 Jy/beam
! Combined flux in latest and established models = 2.09095 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 23 components and 2.09095 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.250254Jy  sigma=0.010313
! Fit after  self-cal, rms=1.238574Jy  sigma=0.010268
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.503687 Jy
! Component: 100  -  total flux cleaned = 0.833207 Jy
! Total flux subtracted in 100 components = 0.833207 Jy
! Clean residual min=-0.057115 max=0.184118 Jy/beam
! Clean residual mean=0.000490 rms=0.017905 Jy/beam
! Combined flux in latest and established models = 2.92415 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 30 components and 2.92415 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.923736Jy  sigma=0.006942
! Fit after  self-cal, rms=0.892484Jy  sigma=0.006854
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.281683 Jy
! Component: 100  -  total flux cleaned = 0.465397 Jy
! Total flux subtracted in 100 components = 0.465397 Jy
! Clean residual min=-0.043384 max=0.141841 Jy/beam
! Clean residual mean=0.000296 rms=0.012033 Jy/beam
! Combined flux in latest and established models = 3.38955 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 35 components and 3.38955 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.766334Jy  sigma=0.005402
! Fit after  self-cal, rms=0.756558Jy  sigma=0.005375
! Inverting map 
! Added new window around map position (2.5, -1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.160911 Jy
! Component: 100  -  total flux cleaned = 0.270059 Jy
! Total flux subtracted in 100 components = 0.270059 Jy
! Clean residual min=-0.035625 max=0.107629 Jy/beam
! Clean residual mean=0.000190 rms=0.009450 Jy/beam
! Combined flux in latest and established models = 3.65961 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 42 components and 3.65961 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.710057Jy  sigma=0.004794
! Fit after  self-cal, rms=0.705908Jy  sigma=0.004781
! Inverting map 
! Added new window around map position (-2.5, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.104258 Jy
! Component: 100  -  total flux cleaned = 0.174285 Jy
! Total flux subtracted in 100 components = 0.174285 Jy
! Clean residual min=-0.033350 max=0.041789 Jy/beam
! Clean residual mean=0.000121 rms=0.008155 Jy/beam
! Combined flux in latest and established models = 3.83389 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 47 components and 3.83389 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.685727Jy  sigma=0.004530
! Fit after  self-cal, rms=0.684599Jy  sigma=0.004527
! 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.205 mas, bmaj=3.387 mas, bpa=11.86 degrees
! Estimated noise=349.71 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.0942802 Jy
! Component: 100  -  total flux cleaned = 0.145454 Jy
! Component: 150  -  total flux cleaned = 0.163051 Jy
! Component: 200  -  total flux cleaned = 0.177833 Jy
! Total flux subtracted in 200 components = 0.177833 Jy
! Clean residual min=-0.036789 max=0.037517 Jy/beam
! Clean residual mean=0.001714 rms=0.009054 Jy/beam
! Combined flux in latest and established models = 4.01173 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 59 components and 4.01173 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.670936Jy  sigma=0.004394
! Fit after  self-cal, rms=0.670307Jy  sigma=0.004393
! 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:
!   BR        0.86     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        1.00     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.91     
!   NL        0.99     NY        0.90     OV        0.83     PT        0.99     
!   SC        1.05     TS        1.11     WF        1.00     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.01     GC        1.10     GG        1.00*    
!   HH        1.00     HN        1.00     KK        0.94     KP        1.06     
!   LA        1.04     MA        2.87     MC        1.02     MK        0.88     
!   NL        0.96     NY        1.23     OV        0.91     PT        1.01     
!   SC        1.02     TS        1.04     WF        0.93     WZ        0.83     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00     KP        1.04     
!   LA        1.01     MA        1.36     MC        1.06     MK        1.02     
!   NL        0.94     NY        0.99     OV        0.96     PT        0.98     
!   SC        1.04     TS        1.00*    WF        1.11     WZ        0.99     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.98     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.04     
!   NL        1.00*    NY        0.99     OV        0.99     PT        1.00*    
!   SC        1.00*    TS        1.04     WF        1.00*    WZ        1.16     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.87     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        0.97     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.91     
!   NL        0.95     NY        0.90     OV        0.82     PT        1.00     
!   SC        1.02     TS        1.12     WF        1.00     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.02     GC        1.11     GG        1.00*    
!   HH        0.99     HN        1.00     KK        0.95     KP        1.02     
!   LA        1.01     MA        1.20     MC        1.84     MK        0.90     
!   NL        0.93     NY        1.24     OV        0.91     PT        1.02     
!   SC        1.00     TS        1.04     WF        1.02     WZ        0.83     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.98     GC        1.11     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.00     KP        0.99     
!   LA        0.98     MA        1.42     MC        1.08     MK        1.03     
!   NL        0.91     NY        1.00     OV        0.94     PT        0.99     
!   SC        1.01     TS        1.00*    WF        1.12     WZ        0.98     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GC        1.05     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.98     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.04     
!   NL        1.00*    NY        1.03     OV        0.96     PT        1.00*    
!   SC        1.00*    TS        1.05     WF        1.00*    WZ        1.14     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.81     FD        1.04     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.05     KK        1.00*    KP        1.05     
!   LA        0.86     MA        1.00*    MC        1.00*    MK        0.81     
!   NL        0.99     NY        0.86     OV        2.30     PT        1.14     
!   SC        1.02     TS        1.03     WF        0.92     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.06     GC        0.97     GG        1.00*    
!   HH        1.01     HN        0.96     KK        0.93     KP        0.96     
!   LA        0.99     MA        1.86     MC        0.97     MK        0.88     
!   NL        0.99     NY        1.18     OV        0.87     PT        0.86     
!   SC        1.01     TS        1.06     WF        0.99     WZ        0.73     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.03     GC        1.12     GG        1.00*    
!   HH        1.00*    HN        1.00     KK        0.95     KP        1.03     
!   LA        1.04     MA        1.11     MC        1.10     MK        1.00     
!   NL        1.02     NY        0.98     OV        1.04     PT        1.02     
!   SC        1.03     TS        1.00*    WF        0.94     WZ        0.85     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.00*    GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.94     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.03     
!   NL        1.00*    NY        0.99     OV        1.02     PT        1.00*    
!   SC        1.00*    TS        1.03     WF        1.00*    WZ        0.99     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.86     FD        0.99     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00*    KP        0.99     
!   LA        1.00     MA        1.00*    MC        1.00*    MK        0.90     
!   NL        1.00     NY        0.94     OV        0.84     PT        0.98     
!   SC        1.08     TS        1.10     WF        1.02     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.02     GC        1.09     GG        1.00*    
!   HH        0.98     HN        1.02     KK        0.96     KP        1.03     
!   LA        1.01     MA        1.07     MC        0.78     MK        0.92     
!   NL        0.98     NY        1.26     OV        0.94     PT        1.02     
!   SC        1.07     TS        1.04     WF        1.05     WZ        0.87     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GC        1.14     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.01     KP        1.00     
!   LA        0.98     MA        1.27     MC        0.92     MK        1.03     
!   NL        0.95     NY        1.04     OV        0.98     PT        1.01     
!   SC        1.07     TS        1.00*    WF        1.02     WZ        1.01     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.00*    GC        1.09     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.08     
!   NL        1.00*    NY        1.07     OV        1.01     PT        1.00*    
!   SC        1.00*    TS        1.05     WF        1.00*    WZ        1.15     
! 
! 
! Fit before self-cal, rms=0.670307Jy  sigma=0.004393
! Fit after  self-cal, rms=0.693770Jy  sigma=0.003813
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.223 mas, bmaj=3.41 mas, bpa=11.95 degrees
! Estimated noise=353.852 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 (3, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0126602 Jy
! Component: 100  -  total flux cleaned = 0.0164553 Jy
! Component: 150  -  total flux cleaned = 0.019939 Jy
! Component: 200  -  total flux cleaned = 0.0238468 Jy
! Total flux subtracted in 200 components = 0.0238468 Jy
! Clean residual min=-0.022392 max=0.017889 Jy/beam
! Clean residual mean=0.000097 rms=0.004152 Jy/beam
! Combined flux in latest and established models = 4.03557 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 70 components and 4.03557 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.690784Jy  sigma=0.003796
! Fit after  self-cal, rms=0.691697Jy  sigma=0.003793
! 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.691697Jy  sigma=0.003793
! Fit after  self-cal, rms=0.702915Jy  sigma=0.003624
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.223 mas, bmaj=3.417 mas, bpa=12.35 degrees
! Estimated noise=354.68 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0130375 Jy
! Component: 100  -  total flux cleaned = 0.0152551 Jy
! Component: 150  -  total flux cleaned = 0.0172185 Jy
! Component: 200  -  total flux cleaned = 0.018406 Jy
! Total flux subtracted in 200 components = 0.018406 Jy
! Clean residual min=-0.012805 max=0.014123 Jy/beam
! Clean residual mean=0.001279 rms=0.002843 Jy/beam
! Combined flux in latest and established models = 4.05398 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 73 components and 4.05398 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.701016Jy  sigma=0.003615
! Fit after  self-cal, rms=0.701181Jy  sigma=0.003614
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 (-4, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00634273 Jy
! Component: 100  -  total flux cleaned = 0.00747684 Jy
! Component: 150  -  total flux cleaned = 0.00906581 Jy
! Component: 200  -  total flux cleaned = 0.0105653 Jy
! Total flux subtracted in 200 components = 0.0105653 Jy
! Clean residual min=-0.012458 max=0.012427 Jy/beam
! Clean residual mean=0.001125 rms=0.002617 Jy/beam
! Combined flux in latest and established models = 4.06455 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 83 components and 4.06454 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.700001Jy  sigma=0.003609
! Fit after  self-cal, rms=0.699951Jy  sigma=0.003609
! 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.699951Jy  sigma=0.003609
! Fit after  self-cal, rms=0.699684Jy  sigma=0.003590
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.222 mas, bmaj=3.426 mas, bpa=12.09 degrees
! Estimated noise=355.669 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0131104 Jy
! Component: 100  -  total flux cleaned = 0.0156379 Jy
! Component: 150  -  total flux cleaned = 0.0175167 Jy
! Component: 200  -  total flux cleaned = 0.0188338 Jy
! Total flux subtracted in 200 components = 0.0188338 Jy
! Clean residual min=-0.012215 max=0.011571 Jy/beam
! Clean residual mean=0.001193 rms=0.002412 Jy/beam
! Combined flux in latest and established models = 4.08338 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 96 components and 4.08338 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.698644Jy  sigma=0.003586
! Fit after  self-cal, rms=0.698603Jy  sigma=0.003585
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.00180559 Jy
! Component: 100  -  total flux cleaned = 0.00304767 Jy
! Component: 150  -  total flux cleaned = 0.00423256 Jy
! Component: 200  -  total flux cleaned = 0.00538015 Jy
! Total flux subtracted in 200 components = 0.00538015 Jy
! Clean residual min=-0.011969 max=0.010708 Jy/beam
! Clean residual mean=0.001115 rms=0.002312 Jy/beam
! Combined flux in latest and established models = 4.08876 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 101 components and 4.08876 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.697900Jy  sigma=0.003583
! Fit after  self-cal, rms=0.697874Jy  sigma=0.003583
! 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.697874Jy  sigma=0.003583
! Fit after  self-cal, rms=0.699128Jy  sigma=0.003574
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.106 mas, bmaj=9.217 mas, bpa=-37.94 degrees
! Estimated noise=497.277 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0154912 Jy
! Component: 100  -  total flux cleaned = 0.0227593 Jy
! Component: 150  -  total flux cleaned = 0.0264797 Jy
! Component: 200  -  total flux cleaned = 0.0273969 Jy
! Total flux subtracted in 200 components = 0.0273969 Jy
! Clean residual min=-0.008467 max=0.013881 Jy/beam
! Clean residual mean=0.002940 rms=0.003100 Jy/beam
! Combined flux in latest and established models = 4.11615 Jy
selfcal
! Performing phase self-cal
! Adding 52 model components to the UV plane model.
! The established model now contains 148 components and 4.11615 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.699082Jy  sigma=0.003573
! Fit after  self-cal, rms=0.699040Jy  sigma=0.003573
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 (-48, -50.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0150437 Jy
! Component: 100  -  total flux cleaned = 0.0233856 Jy
! Component: 150  -  total flux cleaned = 0.0289508 Jy
! Component: 200  -  total flux cleaned = 0.0317416 Jy
! Total flux subtracted in 200 components = 0.0317416 Jy
! Clean residual min=-0.007348 max=0.010706 Jy/beam
! Clean residual mean=0.001852 rms=0.002781 Jy/beam
! Combined flux in latest and established models = 4.1479 Jy
! Performing phase self-cal
! Adding 49 model components to the UV plane model.
! The established model now contains 194 components and 4.1479 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.698979Jy  sigma=0.003572
! Fit after  self-cal, rms=0.698975Jy  sigma=0.003572
! 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.224 mas, bmaj=3.435 mas, bpa=11.85 degrees
! Estimated noise=356.814 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.224 x 3.435 at 11.85 degrees (North through East)
! Clean map  min=-0.0088205  max=1.7602 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.698975Jy  sigma=0.003572
! Fit after  self-cal, rms=2.709155Jy  sigma=0.002486
! Inverting map and beam 
! Estimated beam: bmin=2.224 mas, bmaj=3.434 mas, bpa=11.86 degrees
! Estimated noise=356.2 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000456128 Jy
! Component: 100  -  total flux cleaned = 0.000463309 Jy
! Component: 150  -  total flux cleaned = 0.000125513 Jy
! Component: 200  -  total flux cleaned = 0.000140499 Jy
! Total flux subtracted in 200 components = 0.000140499 Jy
! Clean residual min=-0.010191 max=0.006565 Jy/beam
! Clean residual mean=0.000073 rms=0.001703 Jy/beam
! Combined flux in latest and established models = 4.14804 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 201 components and 4.14803 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.709046Jy  sigma=0.002483
! Fit after  self-cal, rms=2.709063Jy  sigma=0.002483
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000381165 Jy
! Component: 100  -  total flux cleaned = -0.000376558 Jy
! Component: 150  -  total flux cleaned = -7.25433e-05 Jy
! Component: 200  -  total flux cleaned = -0.000668543 Jy
! Total flux subtracted in 200 components = -0.000668543 Jy
! Clean residual min=-0.009643 max=0.006375 Jy/beam
! Clean residual mean=0.000082 rms=0.001635 Jy/beam
! Combined flux in latest and established models = 4.14737 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 207 components and 4.14737 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.708966Jy  sigma=0.002481
! Fit after  self-cal, rms=2.708984Jy  sigma=0.002480
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.708984Jy  sigma=0.002480
! Fit after  self-cal, rms=2.728103Jy  sigma=0.002480
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.82 mas, bmaj=2.851 mas, bpa=4.884 degrees
! Estimated noise=709.316 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.47015 Jy
! Component: 100  -  total flux cleaned = 2.22318 Jy
! Component: 150  -  total flux cleaned = 2.70028 Jy
! Component: 200  -  total flux cleaned = 3.01839 Jy
! Total flux subtracted in 200 components = 3.01839 Jy
! Clean residual min=-0.030808 max=0.175272 Jy/beam
! Clean residual mean=0.000463 rms=0.012992 Jy/beam
! Combined flux in latest and established models = 3.01839 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 24 model components to the UV plane model.
! The established model now contains 24 components and 3.01839 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.226 mas, bmaj=3.44 mas, bpa=11.72 degrees
! Estimated noise=356.452 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.400642 Jy
! Component: 100  -  total flux cleaned = 0.625915 Jy
! Component: 150  -  total flux cleaned = 0.764337 Jy
! Component: 200  -  total flux cleaned = 0.855051 Jy
! Total flux subtracted in 200 components = 0.855051 Jy
! Clean residual min=-0.011485 max=0.049652 Jy/beam
! Clean residual mean=0.003951 rms=0.007155 Jy/beam
! Combined flux in latest and established models = 3.87344 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 65 components and 3.87344 Jy
! Inverting map 
! Added new window around map position (0, -3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0616796 Jy
! Component: 100  -  total flux cleaned = 0.104583 Jy
! Component: 150  -  total flux cleaned = 0.136148 Jy
! Component: 200  -  total flux cleaned = 0.160149 Jy
! Total flux subtracted in 200 components = 0.160149 Jy
! Clean residual min=-0.006149 max=0.014194 Jy/beam
! Clean residual mean=0.001602 rms=0.002567 Jy/beam
! Combined flux in latest and established models = 4.03359 Jy
! Adding 60 model components to the UV plane model.
! The established model now contains 110 components and 4.03359 Jy
! Inverting map 
! Added new window around map position (-2.5, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0185387 Jy
! Component: 100  -  total flux cleaned = 0.0331137 Jy
! Component: 150  -  total flux cleaned = 0.044657 Jy
! Component: 200  -  total flux cleaned = 0.0539631 Jy
! Total flux subtracted in 200 components = 0.0539631 Jy
! Clean residual min=-0.004656 max=0.007621 Jy/beam
! Clean residual mean=0.000819 rms=0.001541 Jy/beam
! Combined flux in latest and established models = 4.08756 Jy
! Adding 49 model components to the UV plane model.
! The established model now contains 138 components and 4.08756 Jy
! Inverting map 
! Added new window around map position (4.5, 13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00835639 Jy
! Component: 100  -  total flux cleaned = 0.0151994 Jy
! Component: 150  -  total flux cleaned = 0.0212468 Jy
! Component: 200  -  total flux cleaned = 0.0266389 Jy
! Total flux subtracted in 200 components = 0.0266389 Jy
! Clean residual min=-0.004818 max=0.005604 Jy/beam
! Clean residual mean=0.000470 rms=0.001297 Jy/beam
! Combined flux in latest and established models = 4.11419 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 168 components and 4.11419 Jy
! Inverting map 
! Added new window around map position (19, 9.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00479555 Jy
! Component: 100  -  total flux cleaned = 0.00800261 Jy
! Component: 150  -  total flux cleaned = 0.0104749 Jy
! Component: 200  -  total flux cleaned = 0.0126498 Jy
! Total flux subtracted in 200 components = 0.0126498 Jy
! Clean residual min=-0.004857 max=0.004883 Jy/beam
! Clean residual mean=0.000309 rms=0.001219 Jy/beam
! Combined flux in latest and established models = 4.12684 Jy
! Adding 60 model components to the UV plane model.
! The established model now contains 192 components and 4.12684 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.106 mas, bmaj=9.21 mas, bpa=-38.19 degrees
! Estimated noise=497.066 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00673399 Jy
! Component: 100  -  total flux cleaned = 0.0116114 Jy
! Component: 150  -  total flux cleaned = 0.0153843 Jy
! Component: 200  -  total flux cleaned = 0.0184128 Jy
! Total flux subtracted in 200 components = 0.0184128 Jy
! Clean residual min=-0.005467 max=0.005743 Jy/beam
! Clean residual mean=0.000301 rms=0.001701 Jy/beam
! Combined flux in latest and established models = 4.14526 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.00172676 Jy
! Component: 100  -  total flux cleaned = 0.00243776 Jy
! Component: 150  -  total flux cleaned = 0.00276128 Jy
! Component: 200  -  total flux cleaned = 0.0030602 Jy
! Total flux subtracted in 200 components = 0.0030602 Jy
! Clean residual min=-0.005584 max=0.005501 Jy/beam
! Clean residual mean=0.000193 rms=0.001648 Jy/beam
! Combined flux in latest and established models = 4.14832 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 246 components and 4.14832 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.226 mas, bmaj=3.44 mas, bpa=11.72 degrees
! Estimated noise=356.452 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00130731 Jy
! Component: 100  -  total flux cleaned = -0.00143593 Jy
! Component: 150  -  total flux cleaned = -0.00143223 Jy
! Component: 200  -  total flux cleaned = -0.0014342 Jy
! Total flux subtracted in 200 components = -0.0014342 Jy
! Clean residual min=-0.005202 max=0.004329 Jy/beam
! Clean residual mean=0.000077 rms=0.001124 Jy/beam
! Combined flux in latest and established models = 4.14688 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 260 components and 4.14689 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.727774Jy  sigma=0.002467
! Fit after  self-cal, rms=2.727974Jy  sigma=0.002465
wmodel J1613+3412_S_2000_12_04_pus_map.mod
! Writing 260 model components to file: J1613+3412_S_2000_12_04_pus_map.mod
wobs J1613+3412_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1613+3412_S_2000_12_04_pus_uvs.fits
wwins J1613+3412_S_2000_12_04_pus_map.win
! wwins: Wrote 10 windows to J1613+3412_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.00078301 Jy
! Component: 100  -  total flux cleaned = 0.000708798 Jy
! Component: 150  -  total flux cleaned = 0.000564539 Jy
! Component: 200  -  total flux cleaned = 0.000769408 Jy
! Component: 250  -  total flux cleaned = 0.000900022 Jy
! Component: 300  -  total flux cleaned = 0.00102822 Jy
! Component: 350  -  total flux cleaned = 0.00127813 Jy
! Component: 400  -  total flux cleaned = 0.00146107 Jy
! Component: 450  -  total flux cleaned = 0.00170168 Jy
! Component: 500  -  total flux cleaned = 0.00187916 Jy
! Component: 550  -  total flux cleaned = 0.00211098 Jy
! Component: 600  -  total flux cleaned = 0.00222506 Jy
! Component: 650  -  total flux cleaned = 0.0023382 Jy
! Component: 700  -  total flux cleaned = 0.00250502 Jy
! Component: 750  -  total flux cleaned = 0.00272319 Jy
! Component: 800  -  total flux cleaned = 0.00277671 Jy
! Component: 850  -  total flux cleaned = 0.00293575 Jy
! Component: 900  -  total flux cleaned = 0.00304047 Jy
! Component: 950  -  total flux cleaned = 0.00304087 Jy
! Component: 1000  -  total flux cleaned = 0.00329772 Jy
! Component: 1050  -  total flux cleaned = 0.00334862 Jy
! Component: 1100  -  total flux cleaned = 0.0034993 Jy
! Component: 1150  -  total flux cleaned = 0.00354886 Jy
! Component: 1200  -  total flux cleaned = 0.00354927 Jy
! Component: 1250  -  total flux cleaned = 0.00364734 Jy
! Component: 1300  -  total flux cleaned = 0.00364771 Jy
! Component: 1350  -  total flux cleaned = 0.00383923 Jy
! Component: 1400  -  total flux cleaned = 0.0037441 Jy
! Component: 1450  -  total flux cleaned = 0.00388555 Jy
! Component: 1500  -  total flux cleaned = 0.00388588 Jy
! Component: 1550  -  total flux cleaned = 0.00393221 Jy
! Component: 1600  -  total flux cleaned = 0.00402405 Jy
! Component: 1650  -  total flux cleaned = 0.00397859 Jy
! Component: 1700  -  total flux cleaned = 0.00411427 Jy
! Component: 1750  -  total flux cleaned = 0.00406926 Jy
! Component: 1800  -  total flux cleaned = 0.004069 Jy
! Component: 1850  -  total flux cleaned = 0.00411323 Jy
! Component: 1900  -  total flux cleaned = 0.0041134 Jy
! Component: 1950  -  total flux cleaned = 0.00407006 Jy
! Component: 2000  -  total flux cleaned = 0.00415678 Jy
! Total flux subtracted in 2048 components = 0.00402732 Jy
! Clean residual min=-0.002300 max=0.002470 Jy/beam
! Clean residual mean=0.000018 rms=0.000803 Jy/beam
! Combined flux in latest and established models = 4.15091 Jy
keep
! Adding 163 model components to the UV plane model.
! The established model now contains 418 components and 4.15091 Jy
![Exited script file: muppet]
wmap "J1613+3412_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.226 x 3.44 at 11.72 degrees (North through East)
! Clean map  min=-0.0034975  max=1.7516 Jy/beam
! Writing clean map to FITS file: J1613+3412_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.75156 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000802914 
device "J1613+3412_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1613+3412_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.13752 0.13752 0.275039 0.550079 1.10016 2.20031 4.40063 8.80126 17.6025 35.205 70.4101
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0024 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.751 
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.226 x 3.44 at 11.72 degrees (North through East)
! Clean map  min=-0.0034975  max=1.7516 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1613+3412_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1613+3412_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1613+3412_S_2000_12_04_pus_uvs.log closed on Wed Oct 17 17:14:10 2007