! Started logfile: J1044+8054_S_2001_07_05_pus_uvs.log on Fri Aug 10 00:54:30 2007
obs J1044+8054_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1044+8054_S_2001_07_05_pus_uva.fits
! AN table 1: 258 integrations on 171 of 171 possible baselines.
! AN table 2: 147 integrations on 171 of 171 possible baselines.
! AN table 3: 141 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.335101 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1044+8054
! 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 125148 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 2109 telescope corrections were flagged in sub-array 1.
!  A total of 2165 telescope corrections were flagged in sub-array 2.
!  A total of 1208 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2109 telescope corrections were flagged in sub-array 1.
!  A total of 2165 telescope corrections were flagged in sub-array 2.
!  A total of 1207 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2108 telescope corrections were flagged in sub-array 1.
!  A total of 2165 telescope corrections were flagged in sub-array 2.
!  A total of 1207 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2107 telescope corrections were flagged in sub-array 1.
!  A total of 2165 telescope corrections were flagged in sub-array 2.
!  A total of 1207 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.815106Jy  sigma=0.005661
! Fit after  self-cal, rms=0.690143Jy  sigma=0.004624
! 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.907 mas, bmaj=2.016 mas, bpa=-34.35 degrees
! Estimated noise=564.655 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.320251 Jy
! Component: 100  -  total flux cleaned = 0.44097 Jy
! Total flux subtracted in 100 components = 0.44097 Jy
! Clean residual min=-0.010399 max=0.056204 Jy/beam
! Clean residual mean=0.000064 rms=0.002809 Jy/beam
! Combined flux in latest and established models = 0.44097 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.44097 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.412862Jy  sigma=0.001876
! Fit after  self-cal, rms=0.411950Jy  sigma=0.001868
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0660405 Jy
! Component: 100  -  total flux cleaned = 0.100093 Jy
! Total flux subtracted in 100 components = 0.100093 Jy
! Clean residual min=-0.006552 max=0.025457 Jy/beam
! Clean residual mean=0.000043 rms=0.001750 Jy/beam
! Combined flux in latest and established models = 0.541063 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 7 components and 0.541063 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.397502Jy  sigma=0.001635
! Fit after  self-cal, rms=0.397182Jy  sigma=0.001631
! Inverting map 
! Added new window around map position (-2.5, 1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0259384 Jy
! Component: 100  -  total flux cleaned = 0.0408062 Jy
! Total flux subtracted in 100 components = 0.0408062 Jy
! Clean residual min=-0.005978 max=0.020144 Jy/beam
! Clean residual mean=0.000033 rms=0.001511 Jy/beam
! Combined flux in latest and established models = 0.581869 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 16 components and 0.581869 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.394210Jy  sigma=0.001579
! Fit after  self-cal, rms=0.394063Jy  sigma=0.001578
! Inverting map 
! Added new window around map position (-6.5, 1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0183896 Jy
! Component: 100  -  total flux cleaned = 0.0294515 Jy
! Total flux subtracted in 100 components = 0.0294515 Jy
! Clean residual min=-0.005736 max=0.008629 Jy/beam
! Clean residual mean=0.000025 rms=0.001355 Jy/beam
! Combined flux in latest and established models = 0.611321 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 25 components and 0.611321 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.392589Jy  sigma=0.001551
! Fit after  self-cal, rms=0.392486Jy  sigma=0.001550
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0100583 Jy
! Component: 100  -  total flux cleaned = 0.0176933 Jy
! Total flux subtracted in 100 components = 0.0176933 Jy
! Clean residual min=-0.005481 max=0.006852 Jy/beam
! Clean residual mean=0.000020 rms=0.001291 Jy/beam
! Combined flux in latest and established models = 0.629014 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 35 components and 0.629014 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391925Jy  sigma=0.001539
! Fit after  self-cal, rms=0.391905Jy  sigma=0.001539
! 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.304 mas, bmaj=2.558 mas, bpa=-7.934 degrees
! Estimated noise=262.341 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.0144601 Jy
! Component: 100  -  total flux cleaned = 0.0234735 Jy
! Component: 150  -  total flux cleaned = 0.0296051 Jy
! Component: 200  -  total flux cleaned = 0.0338927 Jy
! Total flux subtracted in 200 components = 0.0338927 Jy
! Clean residual min=-0.003367 max=0.006763 Jy/beam
! Clean residual mean=0.000141 rms=0.000980 Jy/beam
! Combined flux in latest and established models = 0.662907 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 53 components and 0.662907 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391369Jy  sigma=0.001529
! Fit after  self-cal, rms=0.391323Jy  sigma=0.001528
! Inverting map 
! Added new window around map position (-10, 1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00562559 Jy
! Component: 100  -  total flux cleaned = 0.0094074 Jy
! Component: 150  -  total flux cleaned = 0.0122052 Jy
! Component: 200  -  total flux cleaned = 0.0138592 Jy
! Total flux subtracted in 200 components = 0.0138592 Jy
! Clean residual min=-0.003415 max=0.004557 Jy/beam
! Clean residual mean=0.000112 rms=0.000900 Jy/beam
! Combined flux in latest and established models = 0.676766 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 74 components and 0.676766 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.391243Jy  sigma=0.001526
! Fit after  self-cal, rms=0.391232Jy  sigma=0.001526
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.03     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.03     KP        1.06     
!   LA        1.03     MC        0.98     MK        1.06     NL        0.98     
!   NY        0.99     OV        1.01     PT        0.98     SC        1.03     
!   TS        1.01     WF        1.01     WZ        0.99     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.03     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        0.94     KP        1.08     
!   LA        0.99     MC        0.94     MK        1.04     NL        0.98     
!   NY        1.02     OV        0.99     PT        0.99     SC        1.00     
!   TS        1.03     WF        0.97     WZ        1.02     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.98     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.03     KP        0.93     
!   LA        1.00     MC        1.01     MK        1.01     NL        1.00     
!   NY        0.99     OV        0.94     PT        0.96     SC        1.08     
!   TS        1.00     WF        0.97     WZ        0.97     
! 
! 
! Correcting IF 2.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.03     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        0.97     KK        1.03     KP        0.98     
!   LA        0.98     MC        0.90     MK        1.02     NL        0.95     
!   NY        1.00     OV        1.05     PT        1.01     SC        1.04     
!   TS        0.98     WF        1.01     WZ        0.95     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.03     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        0.96     KP        0.75     
!   LA        0.97     MC        0.95     MK        1.00     NL        0.97     
!   NY        0.96     OV        1.02     PT        1.03     SC        1.05     
!   TS        0.94     WF        0.95     WZ        0.98     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.99     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.01     KP        0.95     
!   LA        0.97     MC        0.96     MK        0.99     NL        0.97     
!   NY        1.00     OV        0.97     PT        0.99     SC        1.07     
!   TS        0.98     WF        0.99     WZ        0.92     
! 
! 
! Correcting IF 3.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.98     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.02     KK        1.03     KP        1.07     
!   LA        1.00     MC        1.64     MK        1.06     NL        0.99     
!   NY        1.00     OV        1.06     PT        1.00     SC        1.05     
!   TS        0.97     WF        1.01     WZ        0.97     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.93     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        0.98     KP        1.00     
!   LA        1.01     MC        1.34     MK        1.04     NL        0.97     
!   NY        0.99     OV        1.03     PT        0.96     SC        1.02     
!   TS        0.98     WF        0.97     WZ        1.02     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.96     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.06     KK        1.02     KP        1.02     
!   LA        0.99     MC        3.27     MK        1.02     NL        1.02     
!   NY        1.00     OV        0.99     PT        0.99     SC        1.07     
!   TS        0.99     WF        0.95     WZ        0.92     
! 
! 
! Correcting IF 4.
!  A total of 45 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.01     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        1.05     KP        1.08     
!   LA        1.01     MC        0.63     MK        1.03     NL        0.98     
!   NY        1.01     OV        1.03     PT        1.02     SC        1.05     
!   TS        1.03     WF        1.01     WZ        0.93     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.01     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        0.93     KP        1.04     
!   LA        1.00     MC        1.00     MK        1.04     NL        1.00     
!   NY        0.98     OV        0.97     PT        0.85     SC        1.02     
!   TS        0.96     WF        1.00     WZ        1.01     
! 
!  A total of 18 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.94     KK        1.03     KP        1.01     
!   LA        1.01     MC        1.44     MK        1.00     NL        0.99     
!   NY        1.00     OV        0.96     PT        1.02     SC        1.05     
!   TS        0.99     WF        0.95     WZ        0.96     
! 
! 
! Fit before self-cal, rms=0.391232Jy  sigma=0.001526
! Fit after  self-cal, rms=0.380538Jy  sigma=0.001485
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.308 mas, bmaj=2.57 mas, bpa=-11.14 degrees
! Estimated noise=262.84 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 (-16, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00231032 Jy
! Component: 100  -  total flux cleaned = 0.00405708 Jy
! Component: 150  -  total flux cleaned = 0.00524029 Jy
! Component: 200  -  total flux cleaned = 0.00589686 Jy
! Total flux subtracted in 200 components = 0.00589686 Jy
! Clean residual min=-0.002514 max=0.002327 Jy/beam
! Clean residual mean=0.000049 rms=0.000585 Jy/beam
! Combined flux in latest and established models = 0.682663 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 95 components and 0.682663 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380472Jy  sigma=0.001484
! Fit after  self-cal, rms=0.380749Jy  sigma=0.001483
! 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.380749Jy  sigma=0.001483
! Fit after  self-cal, rms=0.383753Jy  sigma=0.001476
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.31 mas, bmaj=2.563 mas, bpa=-10.08 degrees
! Estimated noise=262.857 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00124789 Jy
! Component: 100  -  total flux cleaned = 0.00168882 Jy
! Component: 150  -  total flux cleaned = 0.0021231 Jy
! Component: 200  -  total flux cleaned = 0.00239222 Jy
! Total flux subtracted in 200 components = 0.00239222 Jy
! Clean residual min=-0.001791 max=0.001588 Jy/beam
! Clean residual mean=0.000024 rms=0.000410 Jy/beam
! Combined flux in latest and established models = 0.685055 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 105 components and 0.685055 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383731Jy  sigma=0.001475
! Fit after  self-cal, rms=0.383753Jy  sigma=0.001475
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.000489504 Jy
! Component: 100  -  total flux cleaned = 0.000866928 Jy
! Component: 150  -  total flux cleaned = 0.00112022 Jy
! Component: 200  -  total flux cleaned = 0.00127317 Jy
! Total flux subtracted in 200 components = 0.00127317 Jy
! Clean residual min=-0.001814 max=0.001578 Jy/beam
! Clean residual mean=0.000021 rms=0.000406 Jy/beam
! Combined flux in latest and established models = 0.686328 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 109 components and 0.686328 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383742Jy  sigma=0.001475
! Fit after  self-cal, rms=0.383742Jy  sigma=0.001475
! 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.383742Jy  sigma=0.001475
! Fit after  self-cal, rms=0.384528Jy  sigma=0.001475
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.31 mas, bmaj=2.563 mas, bpa=-10.48 degrees
! Estimated noise=263.011 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000512254 Jy
! Component: 100  -  total flux cleaned = 0.000851203 Jy
! Component: 150  -  total flux cleaned = 0.00107634 Jy
! Component: 200  -  total flux cleaned = 0.00117935 Jy
! Total flux subtracted in 200 components = 0.00117935 Jy
! Clean residual min=-0.001825 max=0.001558 Jy/beam
! Clean residual mean=0.000020 rms=0.000401 Jy/beam
! Combined flux in latest and established models = 0.687508 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 116 components and 0.687508 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384523Jy  sigma=0.001475
! Fit after  self-cal, rms=0.384525Jy  sigma=0.001475
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.000242126 Jy
! Component: 100  -  total flux cleaned = 0.00037043 Jy
! Component: 150  -  total flux cleaned = 0.000431109 Jy
! Component: 200  -  total flux cleaned = 0.000488257 Jy
! Total flux subtracted in 200 components = 0.000488257 Jy
! Clean residual min=-0.001827 max=0.001577 Jy/beam
! Clean residual mean=0.000019 rms=0.000399 Jy/beam
! Combined flux in latest and established models = 0.687996 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 120 components and 0.687996 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384522Jy  sigma=0.001475
! Fit after  self-cal, rms=0.384521Jy  sigma=0.001475
! 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.384521Jy  sigma=0.001475
! Fit after  self-cal, rms=0.384908Jy  sigma=0.001475
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.644 mas, bmaj=9.208 mas, bpa=52.86 degrees
! Estimated noise=430.321 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00122352 Jy
! Component: 100  -  total flux cleaned = 0.00175117 Jy
! Component: 150  -  total flux cleaned = 0.00196699 Jy
! Component: 200  -  total flux cleaned = 0.0020158 Jy
! Total flux subtracted in 200 components = 0.0020158 Jy
! Clean residual min=-0.001486 max=0.001785 Jy/beam
! Clean residual mean=0.000064 rms=0.000535 Jy/beam
! Combined flux in latest and established models = 0.690012 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 136 components and 0.690012 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384907Jy  sigma=0.001475
! Fit after  self-cal, rms=0.384908Jy  sigma=0.001475
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.000261636 Jy
! Component: 100  -  total flux cleaned = 0.00031196 Jy
! Component: 150  -  total flux cleaned = 0.000332457 Jy
! Component: 200  -  total flux cleaned = 0.000338599 Jy
! Total flux subtracted in 200 components = 0.000338599 Jy
! Clean residual min=-0.001529 max=0.001789 Jy/beam
! Clean residual mean=0.000061 rms=0.000539 Jy/beam
! Combined flux in latest and established models = 0.69035 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 142 components and 0.69035 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384909Jy  sigma=0.001475
! Fit after  self-cal, rms=0.384909Jy  sigma=0.001475
! 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.31 mas, bmaj=2.563 mas, bpa=-10.72 degrees
! Estimated noise=263.099 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.31 x 2.563 at -10.72 degrees (North through East)
! Clean map  min=-0.0015416  max=0.43554 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.903 mas, bmaj=2.029 mas, bpa=-36.34 degrees
! Estimated noise=563.729 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.321418 Jy
! Component: 100  -  total flux cleaned = 0.449448 Jy
! Component: 150  -  total flux cleaned = 0.515254 Jy
! Component: 200  -  total flux cleaned = 0.55194 Jy
! Total flux subtracted in 200 components = 0.55194 Jy
! Clean residual min=-0.005243 max=0.019789 Jy/beam
! Clean residual mean=0.000036 rms=0.001393 Jy/beam
! Combined flux in latest and established models = 0.55194 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 12 model components to the UV plane model.
! The established model now contains 12 components and 0.55194 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.31 mas, bmaj=2.563 mas, bpa=-10.72 degrees
! Estimated noise=263.099 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.0446057 Jy
! Component: 100  -  total flux cleaned = 0.0709367 Jy
! Component: 150  -  total flux cleaned = 0.0876126 Jy
! Component: 200  -  total flux cleaned = 0.09906 Jy
! Total flux subtracted in 200 components = 0.09906 Jy
! Clean residual min=-0.002348 max=0.006380 Jy/beam
! Clean residual mean=0.000105 rms=0.000840 Jy/beam
! Combined flux in latest and established models = 0.651 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 46 components and 0.651 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00824149 Jy
! Component: 100  -  total flux cleaned = 0.014482 Jy
! Component: 150  -  total flux cleaned = 0.0193406 Jy
! Component: 200  -  total flux cleaned = 0.0231968 Jy
! Total flux subtracted in 200 components = 0.0231968 Jy
! Clean residual min=-0.001800 max=0.002631 Jy/beam
! Clean residual mean=0.000052 rms=0.000494 Jy/beam
! Combined flux in latest and established models = 0.674197 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 79 components and 0.674197 Jy
! Inverting map 
! Added new window around map position (-4, -1.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00317198 Jy
! Component: 100  -  total flux cleaned = 0.00573468 Jy
! Component: 150  -  total flux cleaned = 0.00783721 Jy
! Component: 200  -  total flux cleaned = 0.00957101 Jy
! Total flux subtracted in 200 components = 0.00957101 Jy
! Clean residual min=-0.001640 max=0.001620 Jy/beam
! Clean residual mean=0.000030 rms=0.000417 Jy/beam
! Combined flux in latest and established models = 0.683768 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 110 components and 0.683768 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.644 mas, bmaj=9.208 mas, bpa=52.86 degrees
! Estimated noise=430.321 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00342808 Jy
! Component: 100  -  total flux cleaned = 0.00509198 Jy
! Component: 150  -  total flux cleaned = 0.00596983 Jy
! Component: 200  -  total flux cleaned = 0.00644895 Jy
! Total flux subtracted in 200 components = 0.00644895 Jy
! Clean residual min=-0.001505 max=0.001902 Jy/beam
! Clean residual mean=0.000063 rms=0.000539 Jy/beam
! Combined flux in latest and established models = 0.690217 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.000146012 Jy
! Component: 100  -  total flux cleaned = 0.000211225 Jy
! Component: 150  -  total flux cleaned = 0.000257131 Jy
! Component: 200  -  total flux cleaned = 0.00028981 Jy
! Total flux subtracted in 200 components = 0.00028981 Jy
! Clean residual min=-0.001511 max=0.001808 Jy/beam
! Clean residual mean=0.000060 rms=0.000540 Jy/beam
! Combined flux in latest and established models = 0.690507 Jy
! Adding 53 model components to the UV plane model.
! The established model now contains 152 components and 0.690507 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.31 mas, bmaj=2.563 mas, bpa=-10.72 degrees
! Estimated noise=263.099 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000557597 Jy
! Component: 100  -  total flux cleaned = -0.000769325 Jy
! Component: 150  -  total flux cleaned = -0.000996405 Jy
! Component: 200  -  total flux cleaned = -0.00110043 Jy
! Total flux subtracted in 200 components = -0.00110043 Jy
! Clean residual min=-0.001755 max=0.001606 Jy/beam
! Clean residual mean=0.000017 rms=0.000399 Jy/beam
! Combined flux in latest and established models = 0.689406 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 159 components and 0.689406 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.384922Jy  sigma=0.001475
! Fit after  self-cal, rms=0.384931Jy  sigma=0.001475
wmodel J1044+8054_S_2001_07_05_pus_map.mod
! Writing 159 model components to file: J1044+8054_S_2001_07_05_pus_map.mod
wobs J1044+8054_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1044+8054_S_2001_07_05_pus_uvs.fits
wwins J1044+8054_S_2001_07_05_pus_map.win
! wwins: Wrote 6 windows to J1044+8054_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 = -4.68477e-05 Jy
! Component: 100  -  total flux cleaned = 0.000263279 Jy
! Component: 150  -  total flux cleaned = 0.000479942 Jy
! Component: 200  -  total flux cleaned = 0.00066303 Jy
! Component: 250  -  total flux cleaned = 0.000816397 Jy
! Component: 300  -  total flux cleaned = 0.000916792 Jy
! Component: 350  -  total flux cleaned = 0.00108912 Jy
! Component: 400  -  total flux cleaned = 0.00125844 Jy
! Component: 450  -  total flux cleaned = 0.00140139 Jy
! Component: 500  -  total flux cleaned = 0.00147205 Jy
! Component: 550  -  total flux cleaned = 0.00156529 Jy
! Component: 600  -  total flux cleaned = 0.00165732 Jy
! Component: 650  -  total flux cleaned = 0.00172558 Jy
! Component: 700  -  total flux cleaned = 0.00177085 Jy
! Component: 750  -  total flux cleaned = 0.00186033 Jy
! Component: 800  -  total flux cleaned = 0.00192689 Jy
! Component: 850  -  total flux cleaned = 0.00194892 Jy
! Component: 900  -  total flux cleaned = 0.00199254 Jy
! Component: 950  -  total flux cleaned = 0.00203614 Jy
! Component: 1000  -  total flux cleaned = 0.00210075 Jy
! Component: 1050  -  total flux cleaned = 0.00214352 Jy
! Component: 1100  -  total flux cleaned = 0.00216456 Jy
! Component: 1150  -  total flux cleaned = 0.00220695 Jy
! Component: 1200  -  total flux cleaned = 0.00226989 Jy
! Component: 1250  -  total flux cleaned = 0.00226981 Jy
! Component: 1300  -  total flux cleaned = 0.00229059 Jy
! Component: 1350  -  total flux cleaned = 0.00233188 Jy
! Component: 1400  -  total flux cleaned = 0.00235254 Jy
! Component: 1450  -  total flux cleaned = 0.00243427 Jy
! Component: 1500  -  total flux cleaned = 0.00243418 Jy
! Component: 1550  -  total flux cleaned = 0.00245439 Jy
! Component: 1600  -  total flux cleaned = 0.00251485 Jy
! Component: 1650  -  total flux cleaned = 0.00251487 Jy
! Component: 1700  -  total flux cleaned = 0.00255483 Jy
! Component: 1750  -  total flux cleaned = 0.0026342 Jy
! Component: 1800  -  total flux cleaned = 0.0026736 Jy
! Component: 1850  -  total flux cleaned = 0.0026933 Jy
! Component: 1900  -  total flux cleaned = 0.00275194 Jy
! Component: 1950  -  total flux cleaned = 0.0027325 Jy
! Component: 2000  -  total flux cleaned = 0.00273253 Jy
! Total flux subtracted in 2048 components = 0.00286765 Jy
! Clean residual min=-0.001305 max=0.001293 Jy/beam
! Clean residual mean=0.000010 rms=0.000357 Jy/beam
! Combined flux in latest and established models = 0.692274 Jy
keep
! Adding 170 model components to the UV plane model.
! The established model now contains 329 components and 0.692274 Jy
wmap "J1044+8054_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.31 x 2.563 at -10.72 degrees (North through East)
! Clean map  min=-0.0014109  max=0.4353 Jy/beam
! Writing clean map to FITS file: J1044+8054_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.435295 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000356878 
device "J1044+8054_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1044+8054_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.245956 0.245956 0.491912 0.983824 1.96765 3.9353 7.87059 15.7412 31.4824 62.9647
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.001 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.435 
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.31 x 2.563 at -10.72 degrees (North through East)
! Clean map  min=-0.0014109  max=0.4353 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1044+8054_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1044+8054_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1044+8054_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 00:58:00 2007