! Started logfile: J1642+6856_S_2000_12_04_pus_uvs.log on Thu Oct 18 12:16:00 2007
obs J1642+6856_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J1642+6856_S_2000_12_04_pus_uva.fits
! AN table 1: 85 integrations on 190 of 190 possible baselines.
! AN table 2: 184 integrations on 190 of 190 possible baselines.
! AN table 3: 420 integrations on 190 of 190 possible baselines.
! AN table 4: 22 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.213287 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1642+6856
! 
! 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 2168 lines of history.
! 
! Reading 115252 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 J1642+6856_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 1140 telescope corrections were flagged in sub-array 1.
!  A total of 1816 telescope corrections were flagged in sub-array 2.
!  A total of 5361 telescope corrections were flagged in sub-array 3.
!  A total of 391 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1140 telescope corrections were flagged in sub-array 1.
!  A total of 1816 telescope corrections were flagged in sub-array 2.
!  A total of 5361 telescope corrections were flagged in sub-array 3.
!  A total of 391 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1140 telescope corrections were flagged in sub-array 1.
!  A total of 1816 telescope corrections were flagged in sub-array 2.
!  A total of 5363 telescope corrections were flagged in sub-array 3.
!  A total of 391 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1140 telescope corrections were flagged in sub-array 1.
!  A total of 1816 telescope corrections were flagged in sub-array 2.
!  A total of 5363 telescope corrections were flagged in sub-array 3.
!  A total of 391 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.848281Jy  sigma=0.006399
! Fit after  self-cal, rms=0.766052Jy  sigma=0.005781
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.057 mas, bmaj=2.1 mas, bpa=15.88 degrees
! Estimated noise=608.326 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.233744 Jy
! Component: 100  -  total flux cleaned = 0.322771 Jy
! Total flux subtracted in 100 components = 0.322771 Jy
! Clean residual min=-0.016700 max=0.094157 Jy/beam
! Clean residual mean=0.000499 rms=0.004641 Jy/beam
! Combined flux in latest and established models = 0.322771 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.322771 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.429317Jy  sigma=0.003102
! Fit after  self-cal, rms=0.428589Jy  sigma=0.003097
! Inverting map 
! Added new window around map position (-1, -3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0846146 Jy
! Component: 100  -  total flux cleaned = 0.125661 Jy
! Total flux subtracted in 100 components = 0.125661 Jy
! Clean residual min=-0.009967 max=0.037313 Jy/beam
! Clean residual mean=0.000345 rms=0.003086 Jy/beam
! Combined flux in latest and established models = 0.448432 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 12 components and 0.448432 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.401209Jy  sigma=0.002847
! Fit after  self-cal, rms=0.399401Jy  sigma=0.002834
! Inverting map 
! Added new window around map position (-2, -8.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0419081 Jy
! Component: 100  -  total flux cleaned = 0.0684355 Jy
! Total flux subtracted in 100 components = 0.0684355 Jy
! Clean residual min=-0.008107 max=0.017075 Jy/beam
! Clean residual mean=0.000273 rms=0.002281 Jy/beam
! Combined flux in latest and established models = 0.516867 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 22 components and 0.516867 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.390229Jy  sigma=0.002751
! Fit after  self-cal, rms=0.389685Jy  sigma=0.002747
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0238549 Jy
! Component: 100  -  total flux cleaned = 0.0418065 Jy
! Total flux subtracted in 100 components = 0.0418065 Jy
! Clean residual min=-0.007770 max=0.013570 Jy/beam
! Clean residual mean=0.000230 rms=0.001946 Jy/beam
! Combined flux in latest and established models = 0.558674 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 32 components and 0.558674 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.385686Jy  sigma=0.002708
! Fit after  self-cal, rms=0.385548Jy  sigma=0.002707
! Inverting map 
! Added new window around map position (-1.5, -6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0173956 Jy
! Component: 100  -  total flux cleaned = 0.031254 Jy
! Total flux subtracted in 100 components = 0.031254 Jy
! Clean residual min=-0.007133 max=0.008515 Jy/beam
! Clean residual mean=0.000197 rms=0.001757 Jy/beam
! Combined flux in latest and established models = 0.589928 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 47 components and 0.589928 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383256Jy  sigma=0.002684
! Fit after  self-cal, rms=0.383176Jy  sigma=0.002684
! 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.584 mas, bmaj=2.63 mas, bpa=-60.19 degrees
! Estimated noise=281.165 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.0364295 Jy
! Component: 100  -  total flux cleaned = 0.0605453 Jy
! Component: 150  -  total flux cleaned = 0.0775183 Jy
! Component: 200  -  total flux cleaned = 0.0896272 Jy
! Total flux subtracted in 200 components = 0.0896272 Jy
! Clean residual min=-0.005915 max=0.012635 Jy/beam
! Clean residual mean=0.000983 rms=0.002555 Jy/beam
! Combined flux in latest and established models = 0.679555 Jy
! Performing phase self-cal
! Adding 59 model components to the UV plane model.
! The established model now contains 84 components and 0.679555 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379576Jy  sigma=0.002643
! Fit after  self-cal, rms=0.379431Jy  sigma=0.002641
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        0.96     GC        1.05     GG        1.00*    
!   HH        1.00*    HN        0.90     KK        1.04     KP        0.85     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.03     
!   NL        0.92     NY        0.99     OV        0.98     PT        0.95     
!   SC        1.12     TS        1.04     WF        1.79     WZ        1.01     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        0.97     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.00*    KP        1.03     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.05     
!   NL        0.96     NY        1.08     OV        1.00*    PT        0.98     
!   SC        1.05     TS        1.01     WF        0.83     WZ        0.99     
! 
!  A total of 168 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.04     KP        2.04     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        0.97     
!   NL        1.02     NY        1.03     OV        0.98     PT        0.99     
!   SC        1.12     TS        1.03     WF        0.88     WZ        0.98     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.92     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.81     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.08     TS        1.00*    WF        0.88     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.97     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        0.91     KK        1.10     KP        0.91     
!   LA        0.94     MA        1.00*    MC        1.00*    MK        1.06     
!   NL        0.91     NY        0.95     OV        0.96     PT        0.95     
!   SC        1.08     TS        1.01     WF        2.09     WZ        1.00     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        0.98     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        1.01     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.06     
!   NL        0.92     NY        1.12     OV        1.00*    PT        1.00     
!   SC        1.04     TS        1.02     WF        1.00     WZ        0.98     
! 
!  A total of 168 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.01     GC        1.08     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.09     KP        1.16     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        0.99     NY        1.03     OV        0.94     PT        0.99     
!   SC        1.09     TS        1.03     WF        0.97     WZ        0.97     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.92     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.86     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.08     TS        1.00*    WF        0.91     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00     GC        1.09     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.02     KP        0.99     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.03     
!   NL        1.00     NY        0.98     OV        1.04     PT        1.00     
!   SC        1.09     TS        1.04     WF        1.00     WZ        0.83     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.96     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.76     KK        1.00*    KP        1.01     
!   LA        0.75     MA        1.00*    MC        1.00*    MK        1.15     
!   NL        0.75     NY        1.11     OV        1.00*    PT        0.63     
!   SC        1.30     TS        1.41     WF        1.46     WZ        1.15     
! 
!  A total of 171 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.96     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.10     KK        1.11     KP        1.07     
!   LA        0.95     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        0.89     NY        0.95     OV        1.04     PT        1.00     
!   SC        1.04     TS        1.02     WF        0.98     WZ        0.84     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.06     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.80     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.33     TS        1.00*    WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.97     GC        1.12     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.07     KP        0.92     
!   LA        0.97     MA        1.00*    MC        1.00*    MK        1.05     
!   NL        0.95     NY        1.01     OV        1.00     PT        0.99     
!   SC        1.09     TS        1.01     WF        1.16     WZ        1.00     
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        0.99     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        1.01     KK        1.00*    KP        1.03     
!   LA        1.01     MA        1.00*    MC        1.00*    MK        1.04     
!   NL        0.97     NY        0.87     OV        1.00*    PT        1.02     
!   SC        1.07     TS        1.02     WF        1.01     WZ        1.01     
! 
!  A total of 168 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.02     GC        1.10     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.10     KP        1.21     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.01     
!   NL        1.03     NY        1.00     OV        0.98     PT        1.03     
!   SC        1.15     TS        1.03     WF        0.97     WZ        0.98     
! 
!  A total of 9 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.07     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.84     KK        1.00*    KP        1.00*    
!   LA        1.00*    MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        1.00*    PT        1.00*    
!   SC        1.16     TS        1.00*    WF        1.00     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.379431Jy  sigma=0.002641
! Fit after  self-cal, rms=0.400778Jy  sigma=0.002568
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.613 mas, bmaj=2.669 mas, bpa=-58.49 degrees
! Estimated noise=282.284 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.00899087 Jy
! Component: 100  -  total flux cleaned = 0.0131555 Jy
! Component: 150  -  total flux cleaned = 0.0138971 Jy
! Component: 200  -  total flux cleaned = 0.0142564 Jy
! Total flux subtracted in 200 components = 0.0142564 Jy
! Clean residual min=-0.003494 max=0.004987 Jy/beam
! Clean residual mean=0.000200 rms=0.001094 Jy/beam
! Combined flux in latest and established models = 0.693811 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 99 components and 0.693811 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.400458Jy  sigma=0.002566
! Fit after  self-cal, rms=0.401876Jy  sigma=0.002560
! 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.401876Jy  sigma=0.002560
! Fit after  self-cal, rms=0.418557Jy  sigma=0.002550
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.617 mas, bmaj=2.674 mas, bpa=-57.73 degrees
! Estimated noise=283.894 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00556472 Jy
! Component: 100  -  total flux cleaned = 0.00822686 Jy
! Component: 150  -  total flux cleaned = 0.00899949 Jy
! Component: 200  -  total flux cleaned = 0.00927536 Jy
! Total flux subtracted in 200 components = 0.00927536 Jy
! Clean residual min=-0.003045 max=0.003689 Jy/beam
! Clean residual mean=0.000103 rms=0.000916 Jy/beam
! Combined flux in latest and established models = 0.703087 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 110 components and 0.703087 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.418397Jy  sigma=0.002550
! Fit after  self-cal, rms=0.418925Jy  sigma=0.002548
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.000934405 Jy
! Component: 100  -  total flux cleaned = 0.00118081 Jy
! Component: 150  -  total flux cleaned = 0.00138143 Jy
! Component: 200  -  total flux cleaned = 0.00155185 Jy
! Total flux subtracted in 200 components = 0.00155185 Jy
! Clean residual min=-0.003095 max=0.003589 Jy/beam
! Clean residual mean=0.000107 rms=0.000907 Jy/beam
! Combined flux in latest and established models = 0.704639 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 121 components and 0.704639 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.418888Jy  sigma=0.002548
! Fit after  self-cal, rms=0.418911Jy  sigma=0.002548
! 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.418911Jy  sigma=0.002548
! Fit after  self-cal, rms=0.420781Jy  sigma=0.002548
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.618 mas, bmaj=2.676 mas, bpa=-56.77 degrees
! Estimated noise=284.7 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00335517 Jy
! Component: 100  -  total flux cleaned = 0.00526462 Jy
! Component: 150  -  total flux cleaned = 0.00579969 Jy
! Component: 200  -  total flux cleaned = 0.00594774 Jy
! Total flux subtracted in 200 components = 0.00594774 Jy
! Clean residual min=-0.003231 max=0.003342 Jy/beam
! Clean residual mean=0.000007 rms=0.000886 Jy/beam
! Combined flux in latest and established models = 0.710586 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 122 components and 0.710587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.420693Jy  sigma=0.002547
! Fit after  self-cal, rms=0.420887Jy  sigma=0.002547
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.000263801 Jy
! Component: 100  -  total flux cleaned = 0.000602167 Jy
! Component: 150  -  total flux cleaned = 0.000694568 Jy
! Component: 200  -  total flux cleaned = 0.00077828 Jy
! Total flux subtracted in 200 components = 0.00077828 Jy
! Clean residual min=-0.003261 max=0.003302 Jy/beam
! Clean residual mean=0.000011 rms=0.000882 Jy/beam
! Combined flux in latest and established models = 0.711365 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 122 components and 0.711365 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.420867Jy  sigma=0.002547
! Fit after  self-cal, rms=0.420892Jy  sigma=0.002547
! 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.420892Jy  sigma=0.002547
! Fit after  self-cal, rms=0.422721Jy  sigma=0.002547
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.897 mas, bmaj=8.455 mas, bpa=36.75 degrees
! Estimated noise=436.214 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00585383 Jy
! Component: 100  -  total flux cleaned = 0.00784882 Jy
! Component: 150  -  total flux cleaned = 0.00805559 Jy
! Component: 200  -  total flux cleaned = 0.00816441 Jy
! Total flux subtracted in 200 components = 0.00816442 Jy
! Clean residual min=-0.004998 max=0.005226 Jy/beam
! Clean residual mean=-0.000269 rms=0.001751 Jy/beam
! Combined flux in latest and established models = 0.719529 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 126 components and 0.719529 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.422655Jy  sigma=0.002547
! Fit after  self-cal, rms=0.422694Jy  sigma=0.002545
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.000914042 Jy
! Component: 100  -  total flux cleaned = 0.00107192 Jy
! Component: 150  -  total flux cleaned = 0.00111033 Jy
! Component: 200  -  total flux cleaned = 0.00116603 Jy
! Total flux subtracted in 200 components = 0.00116603 Jy
! Clean residual min=-0.005724 max=0.005302 Jy/beam
! Clean residual mean=-0.000254 rms=0.001816 Jy/beam
! Combined flux in latest and established models = 0.720695 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 131 components and 0.720695 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.422696Jy  sigma=0.002546
! Fit after  self-cal, rms=0.422697Jy  sigma=0.002546
! 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.617 mas, bmaj=2.677 mas, bpa=-56.63 degrees
! Estimated noise=285.483 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.617 x 2.677 at -56.63 degrees (North through East)
! Clean map  min=-0.0033863  max=0.32187 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
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.069 mas, bmaj=2.124 mas, bpa=7.158 degrees
! Estimated noise=643.038 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.248313 Jy
! Component: 100  -  total flux cleaned = 0.363551 Jy
! Component: 150  -  total flux cleaned = 0.430431 Jy
! Component: 200  -  total flux cleaned = 0.477306 Jy
! Total flux subtracted in 200 components = 0.477306 Jy
! Clean residual min=-0.008984 max=0.027013 Jy/beam
! Clean residual mean=0.000295 rms=0.002545 Jy/beam
! Combined flux in latest and established models = 0.477306 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 18 model components to the UV plane model.
! The established model now contains 18 components and 0.477306 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.617 mas, bmaj=2.677 mas, bpa=-56.63 degrees
! Estimated noise=285.483 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.0748362 Jy
! Component: 100  -  total flux cleaned = 0.124078 Jy
! Component: 150  -  total flux cleaned = 0.157862 Jy
! Component: 200  -  total flux cleaned = 0.181485 Jy
! Total flux subtracted in 200 components = 0.181485 Jy
! Clean residual min=-0.004378 max=0.013190 Jy/beam
! Clean residual mean=0.000682 rms=0.001864 Jy/beam
! Combined flux in latest and established models = 0.658791 Jy
! Adding 59 model components to the UV plane model.
! The established model now contains 65 components and 0.658791 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0166763 Jy
! Component: 100  -  total flux cleaned = 0.0284827 Jy
! Component: 150  -  total flux cleaned = 0.0369023 Jy
! Component: 200  -  total flux cleaned = 0.0429476 Jy
! Total flux subtracted in 200 components = 0.0429476 Jy
! Clean residual min=-0.003368 max=0.005789 Jy/beam
! Clean residual mean=0.000156 rms=0.000996 Jy/beam
! Combined flux in latest and established models = 0.701739 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 79 components and 0.701738 Jy
! Inverting map 
! Added new window around map position (-4, -12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00548651 Jy
! Component: 100  -  total flux cleaned = 0.0091337 Jy
! Component: 150  -  total flux cleaned = 0.0119049 Jy
! Component: 200  -  total flux cleaned = 0.0140503 Jy
! Total flux subtracted in 200 components = 0.0140503 Jy
! Clean residual min=-0.003207 max=0.003129 Jy/beam
! Clean residual mean=-0.000011 rms=0.000872 Jy/beam
! Combined flux in latest and established models = 0.715789 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 96 components and 0.715789 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.897 mas, bmaj=8.455 mas, bpa=36.75 degrees
! Estimated noise=436.214 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00419404 Jy
! Component: 100  -  total flux cleaned = 0.0062879 Jy
! Component: 150  -  total flux cleaned = 0.00746365 Jy
! Component: 200  -  total flux cleaned = 0.00807113 Jy
! Total flux subtracted in 200 components = 0.00807113 Jy
! Clean residual min=-0.005473 max=0.005334 Jy/beam
! Clean residual mean=-0.000361 rms=0.001755 Jy/beam
! Combined flux in latest and established models = 0.72386 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.000121833 Jy
! Component: 100  -  total flux cleaned = 0.000213484 Jy
! Component: 150  -  total flux cleaned = 0.000264989 Jy
! Component: 200  -  total flux cleaned = 0.000312792 Jy
! Total flux subtracted in 200 components = 0.000312792 Jy
! Clean residual min=-0.005460 max=0.005299 Jy/beam
! Clean residual mean=-0.000374 rms=0.001756 Jy/beam
! Combined flux in latest and established models = 0.724173 Jy
! Adding 27 model components to the UV plane model.
! The established model now contains 119 components and 0.724173 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.617 mas, bmaj=2.677 mas, bpa=-56.63 degrees
! Estimated noise=285.483 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0020145 Jy
! Component: 100  -  total flux cleaned = -0.00251648 Jy
! Component: 150  -  total flux cleaned = -0.00256602 Jy
! Component: 200  -  total flux cleaned = -0.0025265 Jy
! Total flux subtracted in 200 components = -0.0025265 Jy
! Clean residual min=-0.003172 max=0.003014 Jy/beam
! Clean residual mean=-0.000080 rms=0.000859 Jy/beam
! Combined flux in latest and established models = 0.721646 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 129 components and 0.721646 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.422576Jy  sigma=0.002545
! Fit after  self-cal, rms=0.422558Jy  sigma=0.002545
wmodel J1642+6856_S_2000_12_04_pus_map.mod
! Writing 129 model components to file: J1642+6856_S_2000_12_04_pus_map.mod
wobs J1642+6856_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J1642+6856_S_2000_12_04_pus_uvs.fits
wwins J1642+6856_S_2000_12_04_pus_map.win
! wwins: Wrote 5 windows to J1642+6856_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.00101957 Jy
! Component: 100  -  total flux cleaned = -0.00129218 Jy
! Component: 150  -  total flux cleaned = -0.00124017 Jy
! Component: 200  -  total flux cleaned = -0.0011386 Jy
! Component: 250  -  total flux cleaned = -0.00108866 Jy
! Component: 300  -  total flux cleaned = -0.00113727 Jy
! Component: 350  -  total flux cleaned = -0.00113768 Jy
! Component: 400  -  total flux cleaned = -0.00123158 Jy
! Component: 450  -  total flux cleaned = -0.0012776 Jy
! Component: 500  -  total flux cleaned = -0.0012783 Jy
! Component: 550  -  total flux cleaned = -0.00141217 Jy
! Component: 600  -  total flux cleaned = -0.00145576 Jy
! Component: 650  -  total flux cleaned = -0.00149918 Jy
! Component: 700  -  total flux cleaned = -0.00149958 Jy
! Component: 750  -  total flux cleaned = -0.00154199 Jy
! Component: 800  -  total flux cleaned = -0.00158385 Jy
! Component: 850  -  total flux cleaned = -0.00154237 Jy
! Component: 900  -  total flux cleaned = -0.00154239 Jy
! Component: 950  -  total flux cleaned = -0.00150168 Jy
! Component: 1000  -  total flux cleaned = -0.00154191 Jy
! Component: 1050  -  total flux cleaned = -0.00146164 Jy
! Component: 1100  -  total flux cleaned = -0.00138242 Jy
! Component: 1150  -  total flux cleaned = -0.00134325 Jy
! Component: 1200  -  total flux cleaned = -0.00134348 Jy
! Component: 1250  -  total flux cleaned = -0.00126621 Jy
! Component: 1300  -  total flux cleaned = -0.00134275 Jy
! Component: 1350  -  total flux cleaned = -0.00126627 Jy
! Component: 1400  -  total flux cleaned = -0.00115317 Jy
! Component: 1450  -  total flux cleaned = -0.00122793 Jy
! Component: 1500  -  total flux cleaned = -0.00107927 Jy
! Component: 1550  -  total flux cleaned = -0.00111632 Jy
! Component: 1600  -  total flux cleaned = -0.00115258 Jy
! Component: 1650  -  total flux cleaned = -0.00111614 Jy
! Component: 1700  -  total flux cleaned = -0.00122438 Jy
! Component: 1750  -  total flux cleaned = -0.00122426 Jy
! Component: 1800  -  total flux cleaned = -0.0012243 Jy
! Component: 1850  -  total flux cleaned = -0.00125953 Jy
! Component: 1900  -  total flux cleaned = -0.0012593 Jy
! Component: 1950  -  total flux cleaned = -0.00122426 Jy
! Component: 2000  -  total flux cleaned = -0.00122436 Jy
! Total flux subtracted in 2048 components = -0.001259 Jy
! Clean residual min=-0.002094 max=0.002171 Jy/beam
! Clean residual mean=-0.000058 rms=0.000668 Jy/beam
! Combined flux in latest and established models = 0.720387 Jy
keep
! Adding 176 model components to the UV plane model.
! The established model now contains 305 components and 0.720387 Jy
![Exited script file: muppet]
wmap "J1642+6856_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.617 x 2.677 at -56.63 degrees (North through East)
! Clean map  min=-0.0027754  max=0.32214 Jy/beam
! Writing clean map to FITS file: J1642+6856_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 0.322138 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000667069 
device "J1642+6856_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J1642+6856_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.621226 0.621226 1.24245 2.4849 4.96981 9.93961 19.8792 39.7584 79.5169
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.322 
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.617 x 2.677 at -56.63 degrees (North through East)
! Clean map  min=-0.0027754  max=0.32214 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1642+6856_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J1642+6856_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1642+6856_S_2000_12_04_pus_uvs.log closed on Thu Oct 18 12:16:45 2007