! Started logfile: J0646+4451_S_2003_09_17_pus_uvs.log on Mon May 21 20:58:40 2007
obs J0646+4451_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0646+4451_S_2003_09_17_pus_uva.fits
! AN table 1: 19 integrations on 120 of 120 possible baselines.
! AN table 2: 214 integrations on 120 of 120 possible baselines.
! AN table 3: 16 integrations on 120 of 120 possible baselines.
! AN table 4: 156 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.222222 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.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 43200 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 138 telescope corrections were flagged in sub-array 1.
!  A total of 1813 telescope corrections were flagged in sub-array 2.
!  A total of 217 telescope corrections were flagged in sub-array 3.
!  A total of 1645 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  A total of 1813 telescope corrections were flagged in sub-array 2.
!  A total of 217 telescope corrections were flagged in sub-array 3.
!  A total of 1645 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  A total of 1813 telescope corrections were flagged in sub-array 2.
!  A total of 217 telescope corrections were flagged in sub-array 3.
!  A total of 1645 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  A total of 1813 telescope corrections were flagged in sub-array 2.
!  A total of 217 telescope corrections were flagged in sub-array 3.
!  A total of 1645 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.053179Jy  sigma=0.006768
! Fit after  self-cal, rms=0.326321Jy  sigma=0.001702
! 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.969 mas, bmaj=2.484 mas, bpa=6.548 degrees
! Estimated noise=952.019 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.737311 Jy
! Component: 100  -  total flux cleaned = 0.905119 Jy
! Total flux subtracted in 100 components = 0.905119 Jy
! Clean residual min=-0.018739 max=0.062828 Jy/beam
! Clean residual mean=-0.000232 rms=0.005460 Jy/beam
! Combined flux in latest and established models = 0.905119 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.905119 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.338566Jy  sigma=0.001812
! Fit after  self-cal, rms=0.338513Jy  sigma=0.001812
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0674311 Jy
! Component: 100  -  total flux cleaned = 0.105499 Jy
! Total flux subtracted in 100 components = 0.105499 Jy
! Clean residual min=-0.017088 max=0.031741 Jy/beam
! Clean residual mean=-0.000148 rms=0.004533 Jy/beam
! Combined flux in latest and established models = 1.01062 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 11 components and 1.01062 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317533Jy  sigma=0.001595
! Fit after  self-cal, rms=0.317421Jy  sigma=0.001595
! Inverting map 
! Added new window around map position (4, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0316996 Jy
! Component: 100  -  total flux cleaned = 0.0541939 Jy
! Total flux subtracted in 100 components = 0.0541939 Jy
! Clean residual min=-0.016259 max=0.021436 Jy/beam
! Clean residual mean=-0.000106 rms=0.004178 Jy/beam
! Combined flux in latest and established models = 1.06481 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 20 components and 1.06481 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.312727Jy  sigma=0.001532
! Fit after  self-cal, rms=0.312550Jy  sigma=0.001531
! 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.337 mas, bmaj=3.018 mas, bpa=-1.441 degrees
! Estimated noise=544.714 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.0338997 Jy
! Component: 100  -  total flux cleaned = 0.0537187 Jy
! Component: 150  -  total flux cleaned = 0.0668711 Jy
! Component: 200  -  total flux cleaned = 0.075942 Jy
! Total flux subtracted in 200 components = 0.075942 Jy
! Clean residual min=-0.013693 max=0.018834 Jy/beam
! Clean residual mean=0.000117 rms=0.003540 Jy/beam
! Combined flux in latest and established models = 1.14075 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 34 components and 1.14075 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.309706Jy  sigma=0.001484
! Fit after  self-cal, rms=0.309574Jy  sigma=0.001483
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.01     GC        1.03     HN        0.92     KP        0.99     
!   LA        0.98     MK        0.99     NL        1.00     NY        1.01     
!   ON        1.07     OV        0.88     PT        1.01     SC        1.00*    
!   TS        0.95     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 93 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        1.03     HN        0.96     KP        0.97     
!   LA        0.98     MK        0.94     NL        1.01     NY        1.01     
!   ON        1.02     OV        1.04     PT        1.00     SC        0.99     
!   TS        1.08     KK        0.97     WZ        1.12     WF        1.04     
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        1.00     HN        0.98     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.04     NY        1.04     
!   ON        1.01     OV        1.00*    PT        1.00*    SC        1.08     
!   TS        1.11     KK        1.00*    WZ        0.98     WF        1.05     
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.99     GC        1.00     HN        0.93     KP        1.05     
!   LA        1.00     MK        1.01     NL        1.06     NY        1.03     
!   ON        1.01     OV        1.02     PT        0.96     SC        1.00*    
!   TS        0.93     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 93 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.02     GC        0.97     HN        1.02     KP        1.02     
!   LA        0.98     MK        1.03     NL        1.04     NY        1.00     
!   ON        0.98     OV        0.97     PT        0.97     SC        1.02     
!   TS        1.05     KK        0.97     WZ        1.08     WF        0.98     
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        0.92     HN        1.02     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.06     NY        1.05     
!   ON        1.02     OV        1.00*    PT        1.00*    SC        1.14     
!   TS        1.10     KK        1.00*    WZ        0.96     WF        0.99     
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.94     GC        1.03     HN        0.91     KP        1.00     
!   LA        0.95     MK        0.97     NL        0.96     NY        0.94     
!   ON        1.05     OV        1.10     PT        1.00     SC        1.00*    
!   TS        0.93     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 93 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.96     GC        1.01     HN        0.99     KP        0.98     
!   LA        0.92     MK        0.97     NL        0.94     NY        0.93     
!   ON        0.96     OV        0.98     PT        0.99     SC        1.01     
!   TS        1.06     KK        0.94     WZ        1.05     WF        0.96     
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        0.98     HN        1.00     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.98     NY        0.98     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.10     
!   TS        1.13     KK        1.00*    WZ        0.92     WF        0.98     
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.02     GC        1.02     HN        1.04     KP        1.03     
!   LA        0.99     MK        0.90     NL        0.96     NY        0.91     
!   ON        0.96     OV        1.21     PT        0.96     SC        1.00*    
!   TS        3.97     KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  A total of 93 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.95     GC        1.02     HN        1.15     KP        0.99     
!   LA        0.96     MK        0.89     NL        0.96     NY        0.93     
!   ON        0.93     OV        1.02     PT        0.93     SC        0.97     
!   TS        1.04     KK        0.99     WZ        1.07     WF        0.95     
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00*    GC        0.99     HN        0.96     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.99     NY        0.97     
!   ON        0.96     OV        1.00*    PT        1.00*    SC        1.04     
!   TS        1.11     KK        1.00*    WZ        0.94     WF        0.99     
! 
! 
! Fit before self-cal, rms=0.309574Jy  sigma=0.001483
! Fit after  self-cal, rms=0.302908Jy  sigma=0.001383
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.375 mas, bmaj=3.022 mas, bpa=-1.341 degrees
! Estimated noise=545.781 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.00739932 Jy
! Component: 100  -  total flux cleaned = -0.00715143 Jy
! Component: 150  -  total flux cleaned = -0.00715451 Jy
! Component: 200  -  total flux cleaned = -0.00735501 Jy
! Total flux subtracted in 200 components = -0.00735501 Jy
! Clean residual min=-0.009499 max=0.011244 Jy/beam
! Clean residual mean=0.000196 rms=0.002485 Jy/beam
! Combined flux in latest and established models = 1.1334 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 41 components and 1.1334 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.302421Jy  sigma=0.001379
! Fit after  self-cal, rms=0.302414Jy  sigma=0.001379
! 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.302414Jy  sigma=0.001379
! Fit after  self-cal, rms=0.296573Jy  sigma=0.001302
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.381 mas, bmaj=3.03 mas, bpa=-1.397 degrees
! Estimated noise=546.448 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00494025 Jy
! Component: 100  -  total flux cleaned = -0.00675118 Jy
! Component: 150  -  total flux cleaned = -0.00839629 Jy
! Component: 200  -  total flux cleaned = -0.00975512 Jy
! Total flux subtracted in 200 components = -0.00975512 Jy
! Clean residual min=-0.004815 max=0.005190 Jy/beam
! Clean residual mean=0.000129 rms=0.001206 Jy/beam
! Combined flux in latest and established models = 1.12364 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 47 components and 1.12364 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296239Jy  sigma=0.001300
! Fit after  self-cal, rms=0.296288Jy  sigma=0.001300
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 (-9.5, 10.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00336546 Jy
! Component: 100  -  total flux cleaned = 0.00390308 Jy
! Component: 150  -  total flux cleaned = 0.00390116 Jy
! Component: 200  -  total flux cleaned = 0.00379499 Jy
! Total flux subtracted in 200 components = 0.00379499 Jy
! Clean residual min=-0.004777 max=0.004752 Jy/beam
! Clean residual mean=0.000095 rms=0.001163 Jy/beam
! Combined flux in latest and established models = 1.12744 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 55 components and 1.12744 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296160Jy  sigma=0.001299
! Fit after  self-cal, rms=0.296161Jy  sigma=0.001299
! 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.296161Jy  sigma=0.001299
! Fit after  self-cal, rms=0.295322Jy  sigma=0.001291
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.387 mas, bmaj=3.039 mas, bpa=-1.69 degrees
! Estimated noise=546.393 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00590011 Jy
! Component: 100  -  total flux cleaned = -0.00740066 Jy
! Component: 150  -  total flux cleaned = -0.00877707 Jy
! Component: 200  -  total flux cleaned = -0.00972517 Jy
! Total flux subtracted in 200 components = -0.00972517 Jy
! Clean residual min=-0.004389 max=0.003737 Jy/beam
! Clean residual mean=-0.000005 rms=0.000934 Jy/beam
! Combined flux in latest and established models = 1.11771 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 57 components and 1.11771 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295130Jy  sigma=0.001290
! Fit after  self-cal, rms=0.295187Jy  sigma=0.001290
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.000591741 Jy
! Component: 100  -  total flux cleaned = -0.000589129 Jy
! Component: 150  -  total flux cleaned = -0.000511097 Jy
! Component: 200  -  total flux cleaned = -0.000511859 Jy
! Total flux subtracted in 200 components = -0.000511859 Jy
! Clean residual min=-0.004301 max=0.003645 Jy/beam
! Clean residual mean=-0.000000 rms=0.000920 Jy/beam
! Combined flux in latest and established models = 1.1172 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 63 components and 1.1172 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295140Jy  sigma=0.001290
! Fit after  self-cal, rms=0.295141Jy  sigma=0.001290
! 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.295141Jy  sigma=0.001290
! Fit after  self-cal, rms=0.294926Jy  sigma=0.001289
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.188 mas, bmaj=9.428 mas, bpa=-30.6 degrees
! Estimated noise=845.597 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00357535 Jy
! Component: 100  -  total flux cleaned = -0.0038302 Jy
! Component: 150  -  total flux cleaned = -0.00387522 Jy
! Component: 200  -  total flux cleaned = -0.00387209 Jy
! Total flux subtracted in 200 components = -0.00387209 Jy
! Clean residual min=-0.003617 max=0.003675 Jy/beam
! Clean residual mean=-0.000028 rms=0.001081 Jy/beam
! Combined flux in latest and established models = 1.11333 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 71 components and 1.11333 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294935Jy  sigma=0.001289
! Fit after  self-cal, rms=0.294909Jy  sigma=0.001289
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 = -1.91167e-05 Jy
! Component: 100  -  total flux cleaned = -1.94626e-05 Jy
! Component: 150  -  total flux cleaned = 1.21657e-05 Jy
! Component: 200  -  total flux cleaned = 3.96544e-05 Jy
! Total flux subtracted in 200 components = 3.96544e-05 Jy
! Clean residual min=-0.003601 max=0.003695 Jy/beam
! Clean residual mean=-0.000027 rms=0.001075 Jy/beam
! Combined flux in latest and established models = 1.11337 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 76 components and 1.11337 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294917Jy  sigma=0.001289
! Fit after  self-cal, rms=0.294915Jy  sigma=0.001289
! 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.394 mas, bmaj=3.045 mas, bpa=-1.9 degrees
! Estimated noise=546.419 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.394 x 3.045 at -1.9 degrees (North through East)
! Clean map  min=-0.003482  max=0.9848 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.294915Jy  sigma=0.001289
! Fit after  self-cal, rms=0.288885Jy  sigma=0.001133
! Inverting map and beam 
! Estimated beam: bmin=2.395 mas, bmaj=3.045 mas, bpa=-2.025 degrees
! Estimated noise=544.498 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00450865 Jy
! Component: 100  -  total flux cleaned = -0.00575535 Jy
! Component: 150  -  total flux cleaned = -0.00622443 Jy
! Component: 200  -  total flux cleaned = -0.00654545 Jy
! Total flux subtracted in 200 components = -0.00654545 Jy
! Clean residual min=-0.003797 max=0.003051 Jy/beam
! Clean residual mean=-0.000024 rms=0.000791 Jy/beam
! Combined flux in latest and established models = 1.10682 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 79 components and 1.10682 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288770Jy  sigma=0.001133
! Fit after  self-cal, rms=0.288778Jy  sigma=0.001133
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000271989 Jy
! Component: 100  -  total flux cleaned = -0.000272197 Jy
! Component: 150  -  total flux cleaned = -0.000335943 Jy
! Component: 200  -  total flux cleaned = -0.000336761 Jy
! Total flux subtracted in 200 components = -0.000336761 Jy
! Clean residual min=-0.003713 max=0.002953 Jy/beam
! Clean residual mean=-0.000022 rms=0.000782 Jy/beam
! Combined flux in latest and established models = 1.10649 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 81 components and 1.10649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288747Jy  sigma=0.001132
! Fit after  self-cal, rms=0.288750Jy  sigma=0.001132
! 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.288750Jy  sigma=0.001132
! Fit after  self-cal, rms=0.288660Jy  sigma=0.001132
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.006 mas, bmaj=2.499 mas, bpa=8.42 degrees
! Estimated noise=983.705 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.753341 Jy
! Component: 100  -  total flux cleaned = 0.918519 Jy
! Component: 150  -  total flux cleaned = 0.971816 Jy
! Component: 200  -  total flux cleaned = 1.00303 Jy
! Total flux subtracted in 200 components = 1.00303 Jy
! Clean residual min=-0.006213 max=0.016563 Jy/beam
! Clean residual mean=-0.000086 rms=0.001794 Jy/beam
! Combined flux in latest and established models = 1.00303 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 1.00304 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.399 mas, bmaj=3.05 mas, bpa=-2.174 degrees
! Estimated noise=544.327 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.0335204 Jy
! Component: 100  -  total flux cleaned = 0.0529969 Jy
! Component: 150  -  total flux cleaned = 0.0654952 Jy
! Component: 200  -  total flux cleaned = 0.0739579 Jy
! Total flux subtracted in 200 components = 0.0739579 Jy
! Clean residual min=-0.002962 max=0.005393 Jy/beam
! Clean residual mean=0.000201 rms=0.000973 Jy/beam
! Combined flux in latest and established models = 1.07699 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 45 components and 1.07699 Jy
! Inverting map 
! Added new window around map position (6.5, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00618635 Jy
! Component: 100  -  total flux cleaned = 0.0107903 Jy
! Component: 150  -  total flux cleaned = 0.0143634 Jy
! Component: 200  -  total flux cleaned = 0.017222 Jy
! Total flux subtracted in 200 components = 0.017222 Jy
! Clean residual min=-0.002734 max=0.003196 Jy/beam
! Clean residual mean=0.000055 rms=0.000754 Jy/beam
! Combined flux in latest and established models = 1.09421 Jy
! Adding 33 model components to the UV plane model.
! The established model now contains 69 components and 1.09421 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.189 mas, bmaj=9.447 mas, bpa=-30.7 degrees
! Estimated noise=838.41 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00496207 Jy
! Component: 100  -  total flux cleaned = 0.00715272 Jy
! Component: 150  -  total flux cleaned = 0.00840918 Jy
! Component: 200  -  total flux cleaned = 0.00875736 Jy
! Total flux subtracted in 200 components = 0.00875736 Jy
! Clean residual min=-0.003454 max=0.002880 Jy/beam
! Clean residual mean=-0.000065 rms=0.000927 Jy/beam
! Combined flux in latest and established models = 1.10297 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.000114426 Jy
! Component: 100  -  total flux cleaned = 0.000190279 Jy
! Component: 150  -  total flux cleaned = 0.000259689 Jy
! Component: 200  -  total flux cleaned = 0.000340286 Jy
! Total flux subtracted in 200 components = 0.000340286 Jy
! Clean residual min=-0.003481 max=0.002766 Jy/beam
! Clean residual mean=-0.000076 rms=0.000919 Jy/beam
! Combined flux in latest and established models = 1.10331 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 93 components and 1.10331 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.399 mas, bmaj=3.05 mas, bpa=-2.174 degrees
! Estimated noise=544.327 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000577881 Jy
! Component: 100  -  total flux cleaned = -0.000701475 Jy
! Component: 150  -  total flux cleaned = -0.000700577 Jy
! Component: 200  -  total flux cleaned = -0.000597313 Jy
! Total flux subtracted in 200 components = -0.000597313 Jy
! Clean residual min=-0.002704 max=0.002748 Jy/beam
! Clean residual mean=-0.000017 rms=0.000709 Jy/beam
! Combined flux in latest and established models = 1.10271 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 106 components and 1.10271 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.288509Jy  sigma=0.001131
! Fit after  self-cal, rms=0.288517Jy  sigma=0.001131
wmodel J0646+4451_S_2003_09_17_pus_map.mod
! Writing 106 model components to file: J0646+4451_S_2003_09_17_pus_map.mod
wobs J0646+4451_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0646+4451_S_2003_09_17_pus_uvs.fits
wwins J0646+4451_S_2003_09_17_pus_map.win
! wwins: Wrote 4 windows to J0646+4451_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.000107565 Jy
! Component: 100  -  total flux cleaned = 0.00010661 Jy
! Component: 150  -  total flux cleaned = 0.000244574 Jy
! Component: 200  -  total flux cleaned = 0.000376443 Jy
! Component: 250  -  total flux cleaned = 0.000375413 Jy
! Component: 300  -  total flux cleaned = 0.000333288 Jy
! Component: 350  -  total flux cleaned = 0.000292115 Jy
! Component: 400  -  total flux cleaned = 0.000211845 Jy
! Component: 450  -  total flux cleaned = 0.000132908 Jy
! Component: 500  -  total flux cleaned = 9.41151e-05 Jy
! Component: 550  -  total flux cleaned = 1.74571e-05 Jy
! Component: 600  -  total flux cleaned = 9.36839e-05 Jy
! Component: 650  -  total flux cleaned = 1.78513e-05 Jy
! Component: 700  -  total flux cleaned = -5.67333e-05 Jy
! Component: 750  -  total flux cleaned = -5.69353e-05 Jy
! Component: 800  -  total flux cleaned = -0.000130145 Jy
! Component: 850  -  total flux cleaned = -0.000166528 Jy
! Component: 900  -  total flux cleaned = -0.000238218 Jy
! Component: 950  -  total flux cleaned = -0.000344855 Jy
! Component: 1000  -  total flux cleaned = -0.000450332 Jy
! Component: 1050  -  total flux cleaned = -0.000485227 Jy
! Component: 1100  -  total flux cleaned = -0.000554473 Jy
! Component: 1150  -  total flux cleaned = -0.000656997 Jy
! Component: 1200  -  total flux cleaned = -0.00065697 Jy
! Component: 1250  -  total flux cleaned = -0.000724524 Jy
! Component: 1300  -  total flux cleaned = -0.000791691 Jy
! Component: 1350  -  total flux cleaned = -0.000924606 Jy
! Component: 1400  -  total flux cleaned = -0.0010229 Jy
! Component: 1450  -  total flux cleaned = -0.001088 Jy
! Component: 1500  -  total flux cleaned = -0.00105558 Jy
! Component: 1550  -  total flux cleaned = -0.00112024 Jy
! Component: 1600  -  total flux cleaned = -0.00115254 Jy
! Component: 1650  -  total flux cleaned = -0.00124794 Jy
! Component: 1700  -  total flux cleaned = -0.00124799 Jy
! Component: 1750  -  total flux cleaned = -0.0013735 Jy
! Component: 1800  -  total flux cleaned = -0.00137343 Jy
! Component: 1850  -  total flux cleaned = -0.00140423 Jy
! Component: 1900  -  total flux cleaned = -0.00146552 Jy
! Component: 1950  -  total flux cleaned = -0.00143512 Jy
! Component: 2000  -  total flux cleaned = -0.00152616 Jy
! Total flux subtracted in 2048 components = -0.00155628 Jy
! Clean residual min=-0.001829 max=0.001610 Jy/beam
! Clean residual mean=-0.000003 rms=0.000575 Jy/beam
! Combined flux in latest and established models = 1.10116 Jy
keep
! Adding 159 model components to the UV plane model.
! The established model now contains 265 components and 1.10116 Jy
wmap "J0646+4451_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.399 x 3.05 at -2.174 degrees (North through East)
! Clean map  min=-0.0021382  max=0.9838 Jy/beam
! Writing clean map to FITS file: J0646+4451_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.983801 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00057426 
device "J0646+4451_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0646+4451_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.175115 0.175115 0.35023 0.700459 1.40092 2.80184 5.60367 11.2073 22.4147 44.8294 89.6588
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.983 
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.399 x 3.05 at -2.174 degrees (North through East)
! Clean map  min=-0.0021382  max=0.9838 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0646+4451_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0646+4451_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0646+4451_S_2003_09_17_pus_uvs.log closed on Mon May 21 21:00:39 2007