! Started logfile: J0646+4451_S_2001_07_05_pus_uvs.log on Fri Aug 10 00:27:50 2007
obs J0646+4451_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0646+4451_S_2001_07_05_pus_uva.fits
! AN table 1: 25 integrations on 171 of 171 possible baselines.
! AN table 2: 377 integrations on 171 of 171 possible baselines.
! AN table 3: 212 integrations on 171 of 171 possible baselines.
! AN table 4: 50 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.210526 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0646+4451
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1774 lines of history.
! 
! Reading 95616 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 230 telescope corrections were flagged in sub-array 1.
!  A total of 5279 telescope corrections were flagged in sub-array 2.
!  A total of 2157 telescope corrections were flagged in sub-array 3.
!  A total of 366 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 231 telescope corrections were flagged in sub-array 1.
!  A total of 5279 telescope corrections were flagged in sub-array 2.
!  A total of 2157 telescope corrections were flagged in sub-array 3.
!  A total of 366 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 230 telescope corrections were flagged in sub-array 1.
!  A total of 5278 telescope corrections were flagged in sub-array 2.
!  A total of 2157 telescope corrections were flagged in sub-array 3.
!  A total of 366 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 232 telescope corrections were flagged in sub-array 1.
!  A total of 5280 telescope corrections were flagged in sub-array 2.
!  A total of 2157 telescope corrections were flagged in sub-array 3.
!  A total of 383 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.858621Jy  sigma=0.006252
! Fit after  self-cal, rms=0.454784Jy  sigma=0.002530
! 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.899 mas, bmaj=2.575 mas, bpa=3.671 degrees
! Estimated noise=624.849 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.579287 Jy
! Component: 100  -  total flux cleaned = 0.705697 Jy
! Total flux subtracted in 100 components = 0.705697 Jy
! Clean residual min=-0.010431 max=0.037005 Jy/beam
! Clean residual mean=-0.000008 rms=0.002523 Jy/beam
! Combined flux in latest and established models = 0.705697 Jy
! Performing phase self-cal
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.705697 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.395574Jy  sigma=0.001699
! Fit after  self-cal, rms=0.395571Jy  sigma=0.001699
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0392407 Jy
! Component: 100  -  total flux cleaned = 0.0602149 Jy
! Total flux subtracted in 100 components = 0.0602149 Jy
! Clean residual min=-0.009082 max=0.024388 Jy/beam
! Clean residual mean=-0.000030 rms=0.002079 Jy/beam
! Combined flux in latest and established models = 0.765912 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 17 components and 0.765912 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.389450Jy  sigma=0.001577
! Fit after  self-cal, rms=0.389410Jy  sigma=0.001577
! Inverting map 
! Added new window around map position (3.5, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0215073 Jy
! Component: 100  -  total flux cleaned = 0.0343544 Jy
! Total flux subtracted in 100 components = 0.0343544 Jy
! Clean residual min=-0.008911 max=0.008598 Jy/beam
! Clean residual mean=-0.000043 rms=0.001905 Jy/beam
! Combined flux in latest and established models = 0.800267 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 24 components and 0.800267 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.387674Jy  sigma=0.001538
! Fit after  self-cal, rms=0.387561Jy  sigma=0.001536
! 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.335 mas, bmaj=3.212 mas, bpa=5.436 degrees
! Estimated noise=277.186 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.0193219 Jy
! Component: 100  -  total flux cleaned = 0.0304321 Jy
! Component: 150  -  total flux cleaned = 0.0376072 Jy
! Component: 200  -  total flux cleaned = 0.0423343 Jy
! Total flux subtracted in 200 components = 0.0423343 Jy
! Clean residual min=-0.005209 max=0.005095 Jy/beam
! Clean residual mean=-0.000264 rms=0.001246 Jy/beam
! Combined flux in latest and established models = 0.842601 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 45 components and 0.842601 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.386689Jy  sigma=0.001515
! Fit after  self-cal, rms=0.386642Jy  sigma=0.001514
! 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        1.06     FD        1.08     GC        1.07     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.05     KP        1.01     
!   LA        1.12     MC        1.07     MK        1.02     NL        1.13     
!   NY        0.87     OV        1.06     PT        1.03     SC        1.00*    
!   TS        1.02     WF        1.00*    WZ        1.04     
! 
!  A total of 108 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.99     GC        1.04     GG        1.00*    
!   HH        1.02     HN        0.99     KK        1.05     KP        1.07     
!   LA        1.01     MC        1.09     MK        1.04     NL        0.99     
!   NY        1.01     OV        1.02     PT        0.99     SC        1.02     
!   TS        1.02     WF        1.05     WZ        1.09     
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.02     GC        1.09     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        1.03     
!   LA        1.02     MC        1.19     MK        1.03     NL        1.03     
!   NY        1.00     OV        0.98     PT        1.01     SC        1.04     
!   TS        1.02     WF        1.06     WZ        1.04     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.98     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.95     KK        1.00*    KP        0.89     
!   LA        1.00     MC        0.99     MK        1.00*    NL        1.00     
!   NY        0.99     OV        0.99     PT        0.97     SC        1.00     
!   TS        1.00*    WF        1.06     WZ        1.06     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.16     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.06     KP        1.01     
!   LA        1.05     MC        1.91     MK        1.02     NL        1.06     
!   NY        1.00     OV        1.08     PT        1.08     SC        1.00*    
!   TS        0.99     WF        1.00*    WZ        1.01     
! 
!  A total of 108 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.99     GC        0.96     GG        1.00*    
!   HH        1.03     HN        0.98     KK        1.07     KP        1.08     
!   LA        0.97     MC        1.00     MK        1.00     NL        0.95     
!   NY        0.99     OV        1.03     PT        1.00     SC        1.03     
!   TS        0.98     WF        1.05     WZ        1.03     
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.03     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.00*    KP        0.96     
!   LA        0.97     MC        1.26     MK        1.00     NL        0.98     
!   NY        0.99     OV        0.99     PT        1.02     SC        1.05     
!   TS        0.99     WF        1.04     WZ        1.02     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.99     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.00*    KP        0.89     
!   LA        0.96     MC        0.92     MK        1.00*    NL        0.96     
!   NY        0.99     OV        1.00     PT        1.01     SC        1.02     
!   TS        1.00*    WF        1.03     WZ        1.04     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.06     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.06     KP        1.09     
!   LA        1.02     MC        1.01     MK        1.01     NL        1.07     
!   NY        1.03     OV        1.08     PT        1.03     SC        1.00*    
!   TS        0.97     WF        1.00*    WZ        1.04     
! 
!  A total of 108 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.93     GC        1.00     GG        1.00*    
!   HH        1.03     HN        1.02     KK        1.05     KP        1.08     
!   LA        0.98     MC        1.03     MK        1.02     NL        0.98     
!   NY        0.98     OV        1.01     PT        1.02     SC        0.99     
!   TS        0.96     WF        1.06     WZ        1.05     
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.96     GC        1.06     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.00*    KP        1.02     
!   LA        0.99     MC        1.24     MK        1.00     NL        1.01     
!   NY        0.98     OV        0.99     PT        0.98     SC        1.02     
!   TS        0.99     WF        1.01     WZ        1.02     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.92     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00*    KP        0.98     
!   LA        1.01     MC        1.25     MK        1.00*    NL        1.00     
!   NY        0.94     OV        1.03     PT        0.98     SC        0.97     
!   TS        1.00*    WF        0.98     WZ        1.02     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.05     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.01     KP        1.07     
!   LA        1.04     MC        0.83     MK        1.00     NL        1.08     
!   NY        0.47     OV        1.02     PT        1.05     SC        1.00*    
!   TS        0.98     WF        1.00*    WZ        1.00     
! 
!  A total of 108 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.95     GC        0.96     GG        1.00*    
!   HH        1.02     HN        0.92     KK        1.01     KP        1.08     
!   LA        0.97     MC        0.86     MK        1.00     NL        0.95     
!   NY        0.98     OV        0.96     PT        1.18     SC        1.00     
!   TS        0.96     WF        0.99     WZ        1.04     
! 
!  A total of 75 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        0.97     GC        1.04     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        1.00*    KP        1.04     
!   LA        0.97     MC        1.17     MK        0.98     NL        0.98     
!   NY        0.98     OV        0.93     PT        1.05     SC        1.00     
!   TS        0.99     WF        1.00     WZ        1.00     
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.95     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        0.89     KK        1.00*    KP        0.93     
!   LA        0.97     MC        0.77     MK        1.00*    NL        0.95     
!   NY        0.99     OV        0.98     PT        1.01     SC        0.98     
!   TS        1.00*    WF        1.00*    WZ        1.01     
! 
! 
! Fit before self-cal, rms=0.386642Jy  sigma=0.001514
! Fit after  self-cal, rms=0.369304Jy  sigma=0.001448
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.342 mas, bmaj=3.226 mas, bpa=5.522 degrees
! Estimated noise=277.164 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.00314021 Jy
! Component: 100  -  total flux cleaned = 0.00325691 Jy
! Component: 150  -  total flux cleaned = 0.00309276 Jy
! Component: 200  -  total flux cleaned = 0.00287994 Jy
! Total flux subtracted in 200 components = 0.00287994 Jy
! Clean residual min=-0.003186 max=0.002244 Jy/beam
! Clean residual mean=-0.000116 rms=0.000667 Jy/beam
! Combined flux in latest and established models = 0.845481 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 55 components and 0.845481 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.369255Jy  sigma=0.001447
! Fit after  self-cal, rms=0.369363Jy  sigma=0.001446
! 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.369363Jy  sigma=0.001446
! Fit after  self-cal, rms=0.360607Jy  sigma=0.001433
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.342 mas, bmaj=3.229 mas, bpa=5.514 degrees
! Estimated noise=277.399 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00264104 Jy
! Component: 100  -  total flux cleaned = 0.00252233 Jy
! Component: 150  -  total flux cleaned = 0.002435 Jy
! Component: 200  -  total flux cleaned = 0.00243536 Jy
! Total flux subtracted in 200 components = 0.00243536 Jy
! Clean residual min=-0.001786 max=0.002024 Jy/beam
! Clean residual mean=0.000026 rms=0.000482 Jy/beam
! Combined flux in latest and established models = 0.847916 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 59 components and 0.847916 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360579Jy  sigma=0.001433
! Fit after  self-cal, rms=0.360643Jy  sigma=0.001433
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 (6.5, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00195619 Jy
! Component: 100  -  total flux cleaned = 0.0021046 Jy
! Component: 150  -  total flux cleaned = 0.00206818 Jy
! Component: 200  -  total flux cleaned = 0.00197244 Jy
! Total flux subtracted in 200 components = 0.00197244 Jy
! Clean residual min=-0.001666 max=0.001750 Jy/beam
! Clean residual mean=0.000015 rms=0.000468 Jy/beam
! Combined flux in latest and established models = 0.849889 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 75 components and 0.849889 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360622Jy  sigma=0.001432
! Fit after  self-cal, rms=0.360623Jy  sigma=0.001432
! 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.360623Jy  sigma=0.001432
! Fit after  self-cal, rms=0.359837Jy  sigma=0.001431
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.342 mas, bmaj=3.23 mas, bpa=5.479 degrees
! Estimated noise=277.822 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00180602 Jy
! Component: 100  -  total flux cleaned = 0.00257074 Jy
! Component: 150  -  total flux cleaned = 0.0027625 Jy
! Component: 200  -  total flux cleaned = 0.00284656 Jy
! Total flux subtracted in 200 components = 0.00284656 Jy
! Clean residual min=-0.001804 max=0.001789 Jy/beam
! Clean residual mean=0.000004 rms=0.000470 Jy/beam
! Combined flux in latest and established models = 0.852735 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 80 components and 0.852735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.359820Jy  sigma=0.001431
! Fit after  self-cal, rms=0.359824Jy  sigma=0.001431
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.000299344 Jy
! Component: 100  -  total flux cleaned = 0.000348985 Jy
! Component: 150  -  total flux cleaned = 0.000370676 Jy
! Component: 200  -  total flux cleaned = 0.00037082 Jy
! Total flux subtracted in 200 components = 0.00037082 Jy
! Clean residual min=-0.001788 max=0.001768 Jy/beam
! Clean residual mean=0.000002 rms=0.000468 Jy/beam
! Combined flux in latest and established models = 0.853106 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 88 components and 0.853106 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.359819Jy  sigma=0.001431
! Fit after  self-cal, rms=0.359820Jy  sigma=0.001431
! 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.359820Jy  sigma=0.001431
! Fit after  self-cal, rms=0.360284Jy  sigma=0.001429
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.498 mas, bmaj=8.68 mas, bpa=-6.095 degrees
! Estimated noise=422.338 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00166986 Jy
! Component: 100  -  total flux cleaned = 0.00248223 Jy
! Component: 150  -  total flux cleaned = 0.00293147 Jy
! Component: 200  -  total flux cleaned = 0.00318825 Jy
! Total flux subtracted in 200 components = 0.00318825 Jy
! Clean residual min=-0.001831 max=0.001792 Jy/beam
! Clean residual mean=-0.000016 rms=0.000570 Jy/beam
! Combined flux in latest and established models = 0.856294 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 102 components and 0.856294 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360287Jy  sigma=0.001429
! Fit after  self-cal, rms=0.360288Jy  sigma=0.001429
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.000297747 Jy
! Component: 100  -  total flux cleaned = 0.000344321 Jy
! Component: 150  -  total flux cleaned = 0.000379477 Jy
! Component: 200  -  total flux cleaned = 0.000387937 Jy
! Total flux subtracted in 200 components = 0.000387937 Jy
! Clean residual min=-0.001819 max=0.001796 Jy/beam
! Clean residual mean=-0.000023 rms=0.000572 Jy/beam
! Combined flux in latest and established models = 0.856682 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 103 components and 0.856682 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.360289Jy  sigma=0.001429
! Fit after  self-cal, rms=0.360289Jy  sigma=0.001429
! 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.342 mas, bmaj=3.231 mas, bpa=5.461 degrees
! Estimated noise=278.234 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.342 x 3.231 at 5.461 degrees (North through East)
! Clean map  min=-0.00156  max=0.75972 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.360289Jy  sigma=0.001429
! Fit after  self-cal, rms=0.462988Jy  sigma=0.001320
! Inverting map and beam 
! Estimated beam: bmin=2.342 mas, bmaj=3.229 mas, bpa=5.49 degrees
! Estimated noise=277.905 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000994037 Jy
! Component: 100  -  total flux cleaned = -0.00137715 Jy
! Component: 150  -  total flux cleaned = -0.00151 Jy
! Component: 200  -  total flux cleaned = -0.00156884 Jy
! Total flux subtracted in 200 components = -0.00156884 Jy
! Clean residual min=-0.001355 max=0.001505 Jy/beam
! Clean residual mean=0.000006 rms=0.000385 Jy/beam
! Combined flux in latest and established models = 0.855113 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 109 components and 0.855113 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.462983Jy  sigma=0.001320
! Fit after  self-cal, rms=0.462985Jy  sigma=0.001320
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -9.62353e-05 Jy
! Component: 100  -  total flux cleaned = -0.000112916 Jy
! Component: 150  -  total flux cleaned = -0.000158264 Jy
! Component: 200  -  total flux cleaned = -0.000186714 Jy
! Total flux subtracted in 200 components = -0.000186714 Jy
! Clean residual min=-0.001349 max=0.001515 Jy/beam
! Clean residual mean=0.000007 rms=0.000384 Jy/beam
! Combined flux in latest and established models = 0.854927 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 115 components and 0.854927 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.462983Jy  sigma=0.001320
! Fit after  self-cal, rms=0.462984Jy  sigma=0.001320
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.462984Jy  sigma=0.001320
! Fit after  self-cal, rms=0.606280Jy  sigma=0.001320
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.903 mas, bmaj=2.585 mas, bpa=3.524 degrees
! Estimated noise=638.996 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.585601 Jy
! Component: 100  -  total flux cleaned = 0.713658 Jy
! Component: 150  -  total flux cleaned = 0.755504 Jy
! Component: 200  -  total flux cleaned = 0.782063 Jy
! Total flux subtracted in 200 components = 0.782063 Jy
! Clean residual min=-0.004948 max=0.014105 Jy/beam
! Clean residual mean=0.000022 rms=0.001320 Jy/beam
! Combined flux in latest and established models = 0.782063 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.782063 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.342 mas, bmaj=3.231 mas, bpa=5.484 degrees
! Estimated noise=277.851 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.0265076 Jy
! Component: 100  -  total flux cleaned = 0.0413832 Jy
! Component: 150  -  total flux cleaned = 0.0508632 Jy
! Component: 200  -  total flux cleaned = 0.0571891 Jy
! Total flux subtracted in 200 components = 0.0571891 Jy
! Clean residual min=-0.001554 max=0.003443 Jy/beam
! Clean residual mean=0.000079 rms=0.000516 Jy/beam
! Combined flux in latest and established models = 0.839252 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 45 components and 0.839252 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00429107 Jy
! Component: 100  -  total flux cleaned = 0.00723753 Jy
! Component: 150  -  total flux cleaned = 0.0093647 Jy
! Component: 200  -  total flux cleaned = 0.0109337 Jy
! Total flux subtracted in 200 components = 0.0109337 Jy
! Clean residual min=-0.001355 max=0.001573 Jy/beam
! Clean residual mean=0.000026 rms=0.000391 Jy/beam
! Combined flux in latest and established models = 0.850185 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 59 components and 0.850185 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.499 mas, bmaj=8.688 mas, bpa=-6.085 degrees
! Estimated noise=421.35 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00217901 Jy
! Component: 100  -  total flux cleaned = 0.00312937 Jy
! Component: 150  -  total flux cleaned = 0.00362332 Jy
! Component: 200  -  total flux cleaned = 0.00369921 Jy
! Total flux subtracted in 200 components = 0.00369921 Jy
! Clean residual min=-0.001741 max=0.001736 Jy/beam
! Clean residual mean=0.000034 rms=0.000479 Jy/beam
! Combined flux in latest and established models = 0.853885 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 = 6.07493e-05 Jy
! Component: 100  -  total flux cleaned = 0.000109573 Jy
! Component: 150  -  total flux cleaned = 0.00014268 Jy
! Component: 200  -  total flux cleaned = 0.000165376 Jy
! Total flux subtracted in 200 components = 0.000165376 Jy
! Clean residual min=-0.001738 max=0.001731 Jy/beam
! Clean residual mean=0.000030 rms=0.000479 Jy/beam
! Combined flux in latest and established models = 0.85405 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 90 components and 0.85405 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.342 mas, bmaj=3.231 mas, bpa=5.484 degrees
! Estimated noise=277.851 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00065683 Jy
! Component: 100  -  total flux cleaned = -0.000687339 Jy
! Component: 150  -  total flux cleaned = -0.000714091 Jy
! Component: 200  -  total flux cleaned = -0.000737424 Jy
! Total flux subtracted in 200 components = -0.000737424 Jy
! Clean residual min=-0.001310 max=0.001512 Jy/beam
! Clean residual mean=0.000011 rms=0.000381 Jy/beam
! Combined flux in latest and established models = 0.853313 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 101 components and 0.853313 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.606290Jy  sigma=0.001320
! Fit after  self-cal, rms=0.606299Jy  sigma=0.001320
wmodel J0646+4451_S_2001_07_05_pus_map.mod
! Writing 101 model components to file: J0646+4451_S_2001_07_05_pus_map.mod
wobs J0646+4451_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0646+4451_S_2001_07_05_pus_uvs.fits
wwins J0646+4451_S_2001_07_05_pus_map.win
! wwins: Wrote 3 windows to J0646+4451_S_2001_07_05_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000683113 Jy
! Component: 100  -  total flux cleaned = 0.000989526 Jy
! Component: 150  -  total flux cleaned = 0.00108769 Jy
! Component: 200  -  total flux cleaned = 0.00120789 Jy
! Component: 250  -  total flux cleaned = 0.00137313 Jy
! Component: 300  -  total flux cleaned = 0.00146565 Jy
! Component: 350  -  total flux cleaned = 0.00160283 Jy
! Component: 400  -  total flux cleaned = 0.00171564 Jy
! Component: 450  -  total flux cleaned = 0.00184904 Jy
! Component: 500  -  total flux cleaned = 0.00184902 Jy
! Component: 550  -  total flux cleaned = 0.00189265 Jy
! Component: 600  -  total flux cleaned = 0.001871 Jy
! Component: 650  -  total flux cleaned = 0.00184996 Jy
! Component: 700  -  total flux cleaned = 0.00187107 Jy
! Component: 750  -  total flux cleaned = 0.00187112 Jy
! Component: 800  -  total flux cleaned = 0.00187106 Jy
! Component: 850  -  total flux cleaned = 0.00187108 Jy
! Component: 900  -  total flux cleaned = 0.00187106 Jy
! Component: 950  -  total flux cleaned = 0.00191187 Jy
! Component: 1000  -  total flux cleaned = 0.00189166 Jy
! Component: 1050  -  total flux cleaned = 0.00193185 Jy
! Component: 1100  -  total flux cleaned = 0.00195182 Jy
! Component: 1150  -  total flux cleaned = 0.00189206 Jy
! Component: 1200  -  total flux cleaned = 0.00197127 Jy
! Component: 1250  -  total flux cleaned = 0.00191205 Jy
! Component: 1300  -  total flux cleaned = 0.0019513 Jy
! Component: 1350  -  total flux cleaned = 0.0019902 Jy
! Component: 1400  -  total flux cleaned = 0.00200941 Jy
! Component: 1450  -  total flux cleaned = 0.00200937 Jy
! Component: 1500  -  total flux cleaned = 0.0020093 Jy
! Component: 1550  -  total flux cleaned = 0.00202841 Jy
! Component: 1600  -  total flux cleaned = 0.00202843 Jy
! Component: 1650  -  total flux cleaned = 0.00206634 Jy
! Component: 1700  -  total flux cleaned = 0.00210401 Jy
! Component: 1750  -  total flux cleaned = 0.0021227 Jy
! Component: 1800  -  total flux cleaned = 0.00206686 Jy
! Component: 1850  -  total flux cleaned = 0.00214101 Jy
! Component: 1900  -  total flux cleaned = 0.00214098 Jy
! Component: 1950  -  total flux cleaned = 0.00210414 Jy
! Component: 2000  -  total flux cleaned = 0.00215908 Jy
! Total flux subtracted in 2048 components = 0.00219559 Jy
! Clean residual min=-0.001115 max=0.001207 Jy/beam
! Clean residual mean=0.000000 rms=0.000338 Jy/beam
! Combined flux in latest and established models = 0.855508 Jy
keep
! Adding 168 model components to the UV plane model.
! The established model now contains 269 components and 0.855509 Jy
wmap "J0646+4451_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.342 x 3.231 at 5.484 degrees (North through East)
! Clean map  min=-0.0013091  max=0.75903 Jy/beam
! Writing clean map to FITS file: J0646+4451_S_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.759027 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000337818 
device "J0646+4451_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0646+4451_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.13352 0.13352 0.267041 0.534081 1.06816 2.13633 4.27265 8.5453 17.0906 34.1812 68.3624
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.001 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.759 
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.342 x 3.231 at 5.484 degrees (North through East)
! Clean map  min=-0.0013091  max=0.75903 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0646+4451_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0646+4451_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0646+4451_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 00:31:24 2007