! Started logfile: J1642+6856_S_2003_09_17_pus_uvs.log on Mon May 21 22:23:48 2007
obs J1642+6856_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1642+6856_S_2003_09_17_pus_uva.fits
! AN table 1: 229 integrations on 120 of 120 possible baselines.
! AN table 2: 61 integrations on 120 of 120 possible baselines.
! AN table 3: 31 integrations on 120 of 120 possible baselines.
! AN table 4: 69 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.265385 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1642+6856
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1732 lines of history.
! 
! Reading 49680 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 1724 telescope corrections were flagged in sub-array 1.
!  A total of 572 telescope corrections were flagged in sub-array 2.
!  A total of 431 telescope corrections were flagged in sub-array 3.
!  A total of 571 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1724 telescope corrections were flagged in sub-array 1.
!  A total of 572 telescope corrections were flagged in sub-array 2.
!  A total of 431 telescope corrections were flagged in sub-array 3.
!  A total of 571 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1724 telescope corrections were flagged in sub-array 1.
!  A total of 572 telescope corrections were flagged in sub-array 2.
!  A total of 431 telescope corrections were flagged in sub-array 3.
!  A total of 571 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1724 telescope corrections were flagged in sub-array 1.
!  A total of 572 telescope corrections were flagged in sub-array 2.
!  A total of 431 telescope corrections were flagged in sub-array 3.
!  A total of 571 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.944330Jy  sigma=0.005387
! Fit after  self-cal, rms=0.689281Jy  sigma=0.003806
! 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.779 mas, bmaj=2.289 mas, bpa=-36.69 degrees
! Estimated noise=1156.38 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.305139 Jy
! Component: 100  -  total flux cleaned = 0.398205 Jy
! Total flux subtracted in 100 components = 0.398205 Jy
! Clean residual min=-0.018172 max=0.077267 Jy/beam
! Clean residual mean=0.000148 rms=0.005471 Jy/beam
! Combined flux in latest and established models = 0.398205 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.398206 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383285Jy  sigma=0.001676
! Fit after  self-cal, rms=0.382862Jy  sigma=0.001675
! Inverting map 
! Added new window around map position (-2.5, -9).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0713026 Jy
! Component: 100  -  total flux cleaned = 0.113162 Jy
! Total flux subtracted in 100 components = 0.113162 Jy
! Clean residual min=-0.017704 max=0.058276 Jy/beam
! Clean residual mean=0.000116 rms=0.004318 Jy/beam
! Combined flux in latest and established models = 0.511368 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 13 components and 0.511368 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.364184Jy  sigma=0.001508
! Fit after  self-cal, rms=0.363102Jy  sigma=0.001501
! Inverting map 
! Added new window around map position (-1, -3.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0539604 Jy
! Component: 100  -  total flux cleaned = 0.0862729 Jy
! Total flux subtracted in 100 components = 0.0862729 Jy
! Clean residual min=-0.013252 max=0.020336 Jy/beam
! Clean residual mean=0.000109 rms=0.003280 Jy/beam
! Combined flux in latest and established models = 0.597641 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 27 components and 0.597641 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.351803Jy  sigma=0.001394
! Fit after  self-cal, rms=0.351035Jy  sigma=0.001389
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0283627 Jy
! Component: 100  -  total flux cleaned = 0.0507041 Jy
! Total flux subtracted in 100 components = 0.0507041 Jy
! Clean residual min=-0.010951 max=0.015417 Jy/beam
! Clean residual mean=0.000099 rms=0.002783 Jy/beam
! Combined flux in latest and established models = 0.648345 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 33 components and 0.648345 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.347065Jy  sigma=0.001346
! Fit after  self-cal, rms=0.346915Jy  sigma=0.001345
! 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.006 mas, bmaj=3.011 mas, bpa=-38.64 degrees
! Estimated noise=584.909 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.0362362 Jy
! Component: 100  -  total flux cleaned = 0.0630955 Jy
! Component: 150  -  total flux cleaned = 0.0839079 Jy
! Component: 200  -  total flux cleaned = 0.100163 Jy
! Total flux subtracted in 200 components = 0.100163 Jy
! Clean residual min=-0.007736 max=0.013441 Jy/beam
! Clean residual mean=0.000959 rms=0.002768 Jy/beam
! Combined flux in latest and established models = 0.748508 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 52 components and 0.748508 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.342898Jy  sigma=0.001292
! Fit after  self-cal, rms=0.342611Jy  sigma=0.001290
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.99     GC        1.06     HN        0.96     KP        0.93     
!   LA        0.94     MK        1.00*    NL        0.92     NY        1.03     
!   ON        0.95     OV        0.80     PT        1.00*    SC        1.05     
!   TS        1.03     KK        1.00*    WZ        1.00*    WF        0.94     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.93     GC        0.98     HN        0.99     KP        1.02     
!   LA        0.94     MK        1.00*    NL        0.94     NY        1.03     
!   ON        1.00     OV        2.03     PT        0.93     SC        1.00*    
!   TS        1.09     KK        1.05     WZ        1.05     WF        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.98     GC        1.00*    HN        0.93     KP        1.00*    
!   LA        0.87     MK        1.00*    NL        1.03     NY        1.00*    
!   ON        0.96     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.90     GC        1.01     HN        0.92     KP        0.90     
!   LA        0.91     MK        1.01     NL        0.99     NY        1.02     
!   ON        0.96     OV        1.40     PT        0.89     SC        1.06     
!   TS        1.06     KK        0.95     WZ        1.00     WF        0.96     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.01     GC        1.02     HN        1.00     KP        1.01     
!   LA        0.96     MK        1.00*    NL        0.96     NY        1.00     
!   ON        0.95     OV        1.00     PT        1.00*    SC        1.10     
!   TS        1.02     KK        1.00*    WZ        1.00*    WF        0.95     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.95     GC        0.98     HN        1.10     KP        1.05     
!   LA        0.92     MK        1.00*    NL        1.00     NY        1.03     
!   ON        1.01     OV        1.46     PT        0.92     SC        1.00*    
!   TS        1.04     KK        1.08     WZ        0.97     WF        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.95     GC        1.00*    HN        0.99     KP        1.00*    
!   LA        0.91     MK        1.00*    NL        1.11     NY        1.00*    
!   ON        0.91     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.90     GC        0.97     HN        0.97     KP        0.89     
!   LA        0.91     MK        1.03     NL        1.00     NY        1.06     
!   ON        0.97     OV        1.29     PT        0.85     SC        1.21     
!   TS        1.05     KK        0.94     WZ        1.07     WF        0.94     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.96     GC        1.01     HN        1.01     KP        1.00     
!   LA        0.91     MK        1.00*    NL        0.90     NY        0.97     
!   ON        0.99     OV        1.13     PT        1.00*    SC        1.11     
!   TS        1.07     KK        1.00*    WZ        1.00*    WF        0.91     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.93     GC        1.02     HN        1.05     KP        1.00     
!   LA        0.91     MK        1.00*    NL        0.95     NY        0.89     
!   ON        0.92     OV        2.39     PT        0.95     SC        1.00*    
!   TS        1.09     KK        1.06     WZ        0.95     WF        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.98     GC        1.00*    HN        0.95     KP        1.00*    
!   LA        0.90     MK        1.00*    NL        0.99     NY        1.00*    
!   ON        0.85     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.88     GC        1.02     HN        0.95     KP        0.91     
!   LA        0.87     MK        0.96     NL        0.98     NY        0.98     
!   ON        0.89     OV        1.49     PT        0.93     SC        1.15     
!   TS        1.07     KK        0.93     WZ        0.96     WF        0.94     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.98     GC        1.06     HN        0.94     KP        1.02     
!   LA        0.94     MK        1.00*    NL        0.94     NY        0.93     
!   ON        0.96     OV        1.08     PT        1.00*    SC        1.04     
!   TS        1.06     KK        1.00*    WZ        1.00*    WF        0.94     
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.93     GC        1.04     HN        0.88     KP        1.05     
!   LA        0.92     MK        1.00*    NL        0.95     NY        0.98     
!   ON        0.86     OV        1.87     PT        0.92     SC        1.00*    
!   TS        1.08     KK        1.12     WZ        0.92     WF        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.93     GC        1.00*    HN        0.90     KP        1.00*    
!   LA        0.95     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        0.81     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.89     GC        1.05     HN        0.86     KP        0.91     
!   LA        0.89     MK        0.90     NL        0.99     NY        0.97     
!   ON        0.97     OV        1.76     PT        0.86     SC        1.04     
!   TS        1.08     KK        0.95     WZ        0.93     WF        0.96     
! 
! 
! Fit before self-cal, rms=0.342611Jy  sigma=0.001290
! Fit after  self-cal, rms=0.388897Jy  sigma=0.001248
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.04 mas, bmaj=3.019 mas, bpa=-38.06 degrees
! Estimated noise=575.96 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.00966544 Jy
! Component: 100  -  total flux cleaned = 0.0150695 Jy
! Component: 150  -  total flux cleaned = 0.0172314 Jy
! Component: 200  -  total flux cleaned = 0.0185095 Jy
! Total flux subtracted in 200 components = 0.0185095 Jy
! Clean residual min=-0.004293 max=0.005125 Jy/beam
! Clean residual mean=0.000328 rms=0.001132 Jy/beam
! Combined flux in latest and established models = 0.767017 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 66 components and 0.767017 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.388599Jy  sigma=0.001244
! Fit after  self-cal, rms=0.389021Jy  sigma=0.001244
! 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.389021Jy  sigma=0.001244
! Fit after  self-cal, rms=0.391351Jy  sigma=0.001241
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.044 mas, bmaj=3.015 mas, bpa=-38.03 degrees
! Estimated noise=576.628 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00520455 Jy
! Component: 100  -  total flux cleaned = 0.00727862 Jy
! Component: 150  -  total flux cleaned = 0.00833901 Jy
! Component: 200  -  total flux cleaned = 0.00892643 Jy
! Total flux subtracted in 200 components = 0.00892643 Jy
! Clean residual min=-0.003359 max=0.004065 Jy/beam
! Clean residual mean=0.000261 rms=0.000857 Jy/beam
! Combined flux in latest and established models = 0.775943 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 73 components and 0.775944 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391254Jy  sigma=0.001240
! Fit after  self-cal, rms=0.391226Jy  sigma=0.001240
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 (13.5, 21.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00316894 Jy
! Component: 100  -  total flux cleaned = 0.00384385 Jy
! Component: 150  -  total flux cleaned = 0.00434649 Jy
! Component: 200  -  total flux cleaned = 0.00472199 Jy
! Total flux subtracted in 200 components = 0.00472199 Jy
! Clean residual min=-0.002995 max=0.003412 Jy/beam
! Clean residual mean=0.000231 rms=0.000807 Jy/beam
! Combined flux in latest and established models = 0.780666 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 81 components and 0.780666 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391156Jy  sigma=0.001240
! Fit after  self-cal, rms=0.391138Jy  sigma=0.001240
! 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.391138Jy  sigma=0.001240
! Fit after  self-cal, rms=0.391618Jy  sigma=0.001240
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.046 mas, bmaj=3.013 mas, bpa=-38.01 degrees
! Estimated noise=577.004 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00261562 Jy
! Component: 100  -  total flux cleaned = 0.00382273 Jy
! Component: 150  -  total flux cleaned = 0.00438692 Jy
! Component: 200  -  total flux cleaned = 0.00471416 Jy
! Total flux subtracted in 200 components = 0.00471416 Jy
! Clean residual min=-0.002917 max=0.003276 Jy/beam
! Clean residual mean=0.000172 rms=0.000775 Jy/beam
! Combined flux in latest and established models = 0.78538 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 90 components and 0.78538 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391582Jy  sigma=0.001239
! Fit after  self-cal, rms=0.391571Jy  sigma=0.001239
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.000603213 Jy
! Component: 100  -  total flux cleaned = 0.000970591 Jy
! Component: 150  -  total flux cleaned = 0.00120107 Jy
! Component: 200  -  total flux cleaned = 0.00152325 Jy
! Total flux subtracted in 200 components = 0.00152325 Jy
! Clean residual min=-0.002903 max=0.003139 Jy/beam
! Clean residual mean=0.000164 rms=0.000762 Jy/beam
! Combined flux in latest and established models = 0.786903 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 92 components and 0.786903 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391551Jy  sigma=0.001239
! Fit after  self-cal, rms=0.391547Jy  sigma=0.001239
! 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.391547Jy  sigma=0.001239
! Fit after  self-cal, rms=0.391713Jy  sigma=0.001239
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.092 mas, bmaj=9.332 mas, bpa=88.77 degrees
! Estimated noise=973.603 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00490959 Jy
! Component: 100  -  total flux cleaned = 0.00574461 Jy
! Component: 150  -  total flux cleaned = 0.00600194 Jy
! Component: 200  -  total flux cleaned = 0.00621173 Jy
! Total flux subtracted in 200 components = 0.00621173 Jy
! Clean residual min=-0.003150 max=0.004458 Jy/beam
! Clean residual mean=0.000518 rms=0.001188 Jy/beam
! Combined flux in latest and established models = 0.793115 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 95 components and 0.793115 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391705Jy  sigma=0.001239
! Fit after  self-cal, rms=0.391698Jy  sigma=0.001239
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.00011404 Jy
! Component: 100  -  total flux cleaned = 0.000303697 Jy
! Component: 150  -  total flux cleaned = 0.000438457 Jy
! Component: 200  -  total flux cleaned = 0.000519403 Jy
! Total flux subtracted in 200 components = 0.000519403 Jy
! Clean residual min=-0.002965 max=0.004321 Jy/beam
! Clean residual mean=0.000514 rms=0.001155 Jy/beam
! Combined flux in latest and established models = 0.793634 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 99 components and 0.793634 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391702Jy  sigma=0.001239
! Fit after  self-cal, rms=0.391701Jy  sigma=0.001239
! 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.048 mas, bmaj=3.011 mas, bpa=-38.01 degrees
! Estimated noise=577.359 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.048 x 3.011 at -38.01 degrees (North through East)
! Clean map  min=-0.0029856  max=0.4053 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=1.807 mas, bmaj=2.292 mas, bpa=-36.68 degrees
! Estimated noise=1159.37 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.303325 Jy
! Component: 100  -  total flux cleaned = 0.413198 Jy
! Component: 150  -  total flux cleaned = 0.487133 Jy
! Component: 200  -  total flux cleaned = 0.537891 Jy
! Total flux subtracted in 200 components = 0.537891 Jy
! Clean residual min=-0.011943 max=0.027957 Jy/beam
! Clean residual mean=0.000105 rms=0.003229 Jy/beam
! Combined flux in latest and established models = 0.537891 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 0.537891 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.048 mas, bmaj=3.011 mas, bpa=-38.01 degrees
! Estimated noise=577.359 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.0601566 Jy
! Component: 100  -  total flux cleaned = 0.102963 Jy
! Component: 150  -  total flux cleaned = 0.135626 Jy
! Component: 200  -  total flux cleaned = 0.16086 Jy
! Total flux subtracted in 200 components = 0.16086 Jy
! Clean residual min=-0.005663 max=0.015434 Jy/beam
! Clean residual mean=0.000737 rms=0.002378 Jy/beam
! Combined flux in latest and established models = 0.698751 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 41 components and 0.698751 Jy
! Inverting map 
! Added new window around map position (-1.5, -6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0197877 Jy
! Component: 100  -  total flux cleaned = 0.0352059 Jy
! Component: 150  -  total flux cleaned = 0.0473756 Jy
! Component: 200  -  total flux cleaned = 0.0570297 Jy
! Total flux subtracted in 200 components = 0.0570297 Jy
! Clean residual min=-0.003680 max=0.006460 Jy/beam
! Clean residual mean=0.000366 rms=0.001156 Jy/beam
! Combined flux in latest and established models = 0.755781 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 68 components and 0.755781 Jy
! Inverting map 
! Added new window around map position (-2, -11).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00784988 Jy
! Component: 100  -  total flux cleaned = 0.0141706 Jy
! Component: 150  -  total flux cleaned = 0.0193493 Jy
! Component: 200  -  total flux cleaned = 0.0236087 Jy
! Total flux subtracted in 200 components = 0.0236087 Jy
! Clean residual min=-0.002984 max=0.003358 Jy/beam
! Clean residual mean=0.000209 rms=0.000836 Jy/beam
! Combined flux in latest and established models = 0.77939 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 87 components and 0.77939 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.092 mas, bmaj=9.332 mas, bpa=88.77 degrees
! Estimated noise=973.603 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00790086 Jy
! Component: 100  -  total flux cleaned = 0.0115563 Jy
! Component: 150  -  total flux cleaned = 0.0137341 Jy
! Component: 200  -  total flux cleaned = 0.0150887 Jy
! Total flux subtracted in 200 components = 0.0150887 Jy
! Clean residual min=-0.003034 max=0.004305 Jy/beam
! Clean residual mean=0.000482 rms=0.001116 Jy/beam
! Combined flux in latest and established models = 0.794479 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.0003424 Jy
! Component: 100  -  total flux cleaned = 0.000528607 Jy
! Component: 150  -  total flux cleaned = 0.000684661 Jy
! Component: 200  -  total flux cleaned = 0.000752946 Jy
! Total flux subtracted in 200 components = 0.000752946 Jy
! Clean residual min=-0.003115 max=0.004181 Jy/beam
! Clean residual mean=0.000456 rms=0.001116 Jy/beam
! Combined flux in latest and established models = 0.795231 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 120 components and 0.795232 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.048 mas, bmaj=3.011 mas, bpa=-38.01 degrees
! Estimated noise=577.359 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -6.38986e-05 Jy
! Component: 100  -  total flux cleaned = 0.000129349 Jy
! Component: 150  -  total flux cleaned = 0.000379501 Jy
! Component: 200  -  total flux cleaned = 0.000451969 Jy
! Total flux subtracted in 200 components = 0.000451969 Jy
! Clean residual min=-0.002916 max=0.002828 Jy/beam
! Clean residual mean=0.000097 rms=0.000748 Jy/beam
! Combined flux in latest and established models = 0.795683 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 126 components and 0.795683 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391736Jy  sigma=0.001239
! Fit after  self-cal, rms=0.391729Jy  sigma=0.001239
wmodel J1642+6856_S_2003_09_17_pus_map.mod
! Writing 126 model components to file: J1642+6856_S_2003_09_17_pus_map.mod
wobs J1642+6856_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1642+6856_S_2003_09_17_pus_uvs.fits
wwins J1642+6856_S_2003_09_17_pus_map.win
! wwins: Wrote 6 windows to J1642+6856_S_2003_09_17_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000111321 Jy
! Component: 100  -  total flux cleaned = 0.000163372 Jy
! Component: 150  -  total flux cleaned = 0.000408787 Jy
! Component: 200  -  total flux cleaned = 0.000694936 Jy
! Component: 250  -  total flux cleaned = 0.000974484 Jy
! Component: 300  -  total flux cleaned = 0.00120309 Jy
! Component: 350  -  total flux cleaned = 0.00142743 Jy
! Component: 400  -  total flux cleaned = 0.00169208 Jy
! Component: 450  -  total flux cleaned = 0.00199595 Jy
! Component: 500  -  total flux cleaned = 0.00229516 Jy
! Component: 550  -  total flux cleaned = 0.00259058 Jy
! Component: 600  -  total flux cleaned = 0.00292399 Jy
! Component: 650  -  total flux cleaned = 0.00325263 Jy
! Component: 700  -  total flux cleaned = 0.00353651 Jy
! Component: 750  -  total flux cleaned = 0.00385711 Jy
! Component: 800  -  total flux cleaned = 0.00413376 Jy
! Component: 850  -  total flux cleaned = 0.00440757 Jy
! Component: 900  -  total flux cleaned = 0.00467821 Jy
! Component: 950  -  total flux cleaned = 0.00494585 Jy
! Component: 1000  -  total flux cleaned = 0.00517291 Jy
! Component: 1050  -  total flux cleaned = 0.00539788 Jy
! Component: 1100  -  total flux cleaned = 0.00562087 Jy
! Component: 1150  -  total flux cleaned = 0.00573132 Jy
! Component: 1200  -  total flux cleaned = 0.00576802 Jy
! Component: 1250  -  total flux cleaned = 0.00595001 Jy
! Component: 1300  -  total flux cleaned = 0.00609457 Jy
! Component: 1350  -  total flux cleaned = 0.00620178 Jy
! Component: 1400  -  total flux cleaned = 0.00637917 Jy
! Component: 1450  -  total flux cleaned = 0.00651996 Jy
! Component: 1500  -  total flux cleaned = 0.00658992 Jy
! Component: 1550  -  total flux cleaned = 0.00672892 Jy
! Component: 1600  -  total flux cleaned = 0.00679772 Jy
! Component: 1650  -  total flux cleaned = 0.00690061 Jy
! Component: 1700  -  total flux cleaned = 0.00700279 Jy
! Component: 1750  -  total flux cleaned = 0.0071043 Jy
! Component: 1800  -  total flux cleaned = 0.00713797 Jy
! Component: 1850  -  total flux cleaned = 0.00727157 Jy
! Component: 1900  -  total flux cleaned = 0.00727141 Jy
! Component: 1950  -  total flux cleaned = 0.00733739 Jy
! Component: 2000  -  total flux cleaned = 0.00743567 Jy
! Total flux subtracted in 2048 components = 0.00740295 Jy
! Clean residual min=-0.002338 max=0.001804 Jy/beam
! Clean residual mean=0.000048 rms=0.000593 Jy/beam
! Combined flux in latest and established models = 0.803086 Jy
keep
! Adding 165 model components to the UV plane model.
! The established model now contains 291 components and 0.803086 Jy
wmap "J1642+6856_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.048 x 3.011 at -38.01 degrees (North through East)
! Clean map  min=-0.002592  max=0.4046 Jy/beam
! Writing clean map to FITS file: J1642+6856_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.404595 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000591872 
device "J1642+6856_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1642+6856_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.438862 0.438862 0.877724 1.75545 3.5109 7.02179 14.0436 28.0872 56.1743
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.404 
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.048 x 3.011 at -38.01 degrees (North through East)
! Clean map  min=-0.002592  max=0.4046 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1642+6856_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1642+6856_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1642+6856_S_2003_09_17_pus_uvs.log closed on Mon May 21 22:25:41 2007