! Started logfile: J2236+2828_S_2001_07_05_pus_uvs.log on Fri Aug 10 02:56:22 2007
obs J2236+2828_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J2236+2828_S_2001_07_05_pus_uva.fits
! AN table 1: 223 integrations on 171 of 171 possible baselines.
! AN table 2: 129 integrations on 171 of 171 possible baselines.
! AN table 3: 57 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.261213 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2236+2828
! 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 73076 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 2259 telescope corrections were flagged in sub-array 1.
!  A total of 1129 telescope corrections were flagged in sub-array 2.
!  A total of 889 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2259 telescope corrections were flagged in sub-array 1.
!  A total of 1129 telescope corrections were flagged in sub-array 2.
!  A total of 889 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2259 telescope corrections were flagged in sub-array 1.
!  A total of 1129 telescope corrections were flagged in sub-array 2.
!  A total of 889 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2259 telescope corrections were flagged in sub-array 1.
!  A total of 1129 telescope corrections were flagged in sub-array 2.
!  A total of 889 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.676105Jy  sigma=0.005869
! Fit after  self-cal, rms=0.349896Jy  sigma=0.003216
! 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.985 mas, bmaj=3.5 mas, bpa=-6.414 degrees
! Estimated noise=653.522 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.962849 Jy
! Component: 100  -  total flux cleaned = 1.17854 Jy
! Total flux subtracted in 100 components = 1.17854 Jy
! Clean residual min=-0.022193 max=0.076350 Jy/beam
! Clean residual mean=0.000076 rms=0.005333 Jy/beam
! Combined flux in latest and established models = 1.17854 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 1.17854 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.241855Jy  sigma=0.002025
! Fit after  self-cal, rms=0.241819Jy  sigma=0.002025
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0822175 Jy
! Component: 100  -  total flux cleaned = 0.124312 Jy
! Total flux subtracted in 100 components = 0.124312 Jy
! Clean residual min=-0.016325 max=0.020230 Jy/beam
! Clean residual mean=0.000067 rms=0.003227 Jy/beam
! Combined flux in latest and established models = 1.30285 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 13 components and 1.30285 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.207057Jy  sigma=0.001582
! Fit after  self-cal, rms=0.206968Jy  sigma=0.001582
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0246795 Jy
! Component: 100  -  total flux cleaned = 0.0408132 Jy
! Total flux subtracted in 100 components = 0.0408132 Jy
! Clean residual min=-0.014574 max=0.014576 Jy/beam
! Clean residual mean=0.000064 rms=0.002908 Jy/beam
! Combined flux in latest and established models = 1.34366 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 22 components and 1.34366 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203076Jy  sigma=0.001526
! Fit after  self-cal, rms=0.203047Jy  sigma=0.001525
! 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.487 mas, bmaj=4.885 mas, bpa=-12.52 degrees
! Estimated noise=289.161 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.0151325 Jy
! Component: 100  -  total flux cleaned = 0.021948 Jy
! Component: 150  -  total flux cleaned = 0.025483 Jy
! Component: 200  -  total flux cleaned = 0.0262919 Jy
! Total flux subtracted in 200 components = 0.0262919 Jy
! Clean residual min=-0.009242 max=0.012664 Jy/beam
! Clean residual mean=0.000121 rms=0.002269 Jy/beam
! Combined flux in latest and established models = 1.36995 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 29 components and 1.36995 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202184Jy  sigma=0.001513
! Fit after  self-cal, rms=0.202112Jy  sigma=0.001512
! Inverting map 
! Added new window around map position (19.5, -44.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0108192 Jy
! Component: 100  -  total flux cleaned = 0.0138214 Jy
! Component: 150  -  total flux cleaned = 0.014679 Jy
! Component: 200  -  total flux cleaned = 0.0146799 Jy
! Total flux subtracted in 200 components = 0.0146799 Jy
! Clean residual min=-0.009576 max=0.011649 Jy/beam
! Clean residual mean=0.000063 rms=0.002104 Jy/beam
! Combined flux in latest and established models = 1.38463 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 46 components and 1.38463 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.201496Jy  sigma=0.001505
! Fit after  self-cal, rms=0.201442Jy  sigma=0.001504
! 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:
!   BR        1.00     FD        1.00     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.02     KP        0.98     
!   LA        1.02     MC        1.00*    MK        0.99     NL        1.01     
!   NY        1.03     OV        0.98     PT        0.97     SC        1.00     
!   TS        1.00     WF        0.99     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.98     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.02     KP        0.99     
!   LA        1.02     MC        1.05     MK        1.01     NL        0.98     
!   NY        1.01     OV        0.98     PT        0.96     SC        0.99     
!   TS        1.00*    WF        1.02     WZ        0.98     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.00     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        0.97     NL        1.00*    
!   NY        1.00     OV        1.00*    PT        1.00*    SC        0.99     
!   TS        1.11     WF        0.94     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.01     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.03     KP        0.96     
!   LA        0.98     MC        1.00*    MK        0.98     NL        0.98     
!   NY        1.05     OV        1.01     PT        1.00     SC        1.02     
!   TS        0.99     WF        1.00     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        0.97     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.03     KP        0.99     
!   LA        0.98     MC        0.94     MK        1.00     NL        0.96     
!   NY        1.02     OV        1.01     PT        0.98     SC        1.00     
!   TS        1.00*    WF        1.00     WZ        0.98     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        0.94     GG        1.00*    
!   HH        1.00*    HN        0.92     KK        1.00     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        0.93     NL        1.00*    
!   NY        1.03     OV        1.00*    PT        1.00*    SC        1.03     
!   TS        1.09     WF        0.94     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.97     GC        1.03     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.02     KP        1.06     
!   LA        1.03     MC        1.00*    MK        1.01     NL        1.03     
!   NY        1.04     OV        1.04     PT        1.02     SC        1.02     
!   TS        1.01     WF        0.99     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.93     GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.05     KP        1.03     
!   LA        0.97     MC        1.43     MK        1.04     NL        1.00     
!   NY        1.03     OV        1.02     PT        0.99     SC        1.00     
!   TS        1.00*    WF        1.11     WZ        1.01     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.08     KK        1.03     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        1.01     NL        1.00*    
!   NY        1.01     OV        1.00*    PT        1.00*    SC        1.06     
!   TS        1.05     WF        0.95     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.01     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.03     KP        1.07     
!   LA        1.00     MC        1.00*    MK        1.00     NL        1.01     
!   NY        1.05     OV        1.02     PT        1.07     SC        1.01     
!   TS        1.01     WF        1.01     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.99     GC        1.00     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.03     KP        1.04     
!   LA        0.98     MC        1.00     MK        1.03     NL        0.99     
!   NY        1.04     OV        1.02     PT        1.03     SC        1.00     
!   TS        1.00*    WF        1.03     WZ        0.99     
! 
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        0.99     KP        1.00*    
!   LA        1.00*    MC        1.00*    MK        0.99     NL        1.00*    
!   NY        1.02     OV        1.00*    PT        1.00*    SC        1.08     
!   TS        1.07     WF        1.01     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.201442Jy  sigma=0.001504
! Fit after  self-cal, rms=0.194567Jy  sigma=0.001403
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.493 mas, bmaj=4.901 mas, bpa=-12.48 degrees
! Estimated noise=290.495 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.00283989 Jy
! Component: 100  -  total flux cleaned = -0.0028337 Jy
! Component: 150  -  total flux cleaned = -0.00274971 Jy
! Component: 200  -  total flux cleaned = -0.00282921 Jy
! Total flux subtracted in 200 components = -0.00282921 Jy
! Clean residual min=-0.006054 max=0.004558 Jy/beam
! Clean residual mean=-0.000037 rms=0.001325 Jy/beam
! Combined flux in latest and established models = 1.38181 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 63 components and 1.38181 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.194447Jy  sigma=0.001402
! Fit after  self-cal, rms=0.194469Jy  sigma=0.001402
! 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.194469Jy  sigma=0.001402
! Fit after  self-cal, rms=0.190273Jy  sigma=0.001353
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.495 mas, bmaj=4.899 mas, bpa=-12.53 degrees
! Estimated noise=290.529 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00240769 Jy
! Component: 100  -  total flux cleaned = -0.00308112 Jy
! Component: 150  -  total flux cleaned = -0.00347324 Jy
! Component: 200  -  total flux cleaned = -0.00382044 Jy
! Total flux subtracted in 200 components = -0.00382044 Jy
! Clean residual min=-0.002960 max=0.003852 Jy/beam
! Clean residual mean=-0.000010 rms=0.000676 Jy/beam
! Combined flux in latest and established models = 1.37798 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 66 components and 1.37798 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190141Jy  sigma=0.001352
! Fit after  self-cal, rms=0.190138Jy  sigma=0.001352
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 (-3.5, -0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0022994 Jy
! Component: 100  -  total flux cleaned = 0.00192962 Jy
! Component: 150  -  total flux cleaned = 0.00185113 Jy
! Component: 200  -  total flux cleaned = 0.00185131 Jy
! Total flux subtracted in 200 components = 0.00185131 Jy
! Clean residual min=-0.002804 max=0.002334 Jy/beam
! Clean residual mean=-0.000015 rms=0.000626 Jy/beam
! Combined flux in latest and established models = 1.37984 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 77 components and 1.37984 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190043Jy  sigma=0.001351
! Fit after  self-cal, rms=0.190034Jy  sigma=0.001351
! 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.190034Jy  sigma=0.001351
! Fit after  self-cal, rms=0.190146Jy  sigma=0.001350
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.497 mas, bmaj=4.897 mas, bpa=-12.54 degrees
! Estimated noise=290.569 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000740429 Jy
! Component: 100  -  total flux cleaned = -0.00073697 Jy
! Component: 150  -  total flux cleaned = -0.000735107 Jy
! Component: 200  -  total flux cleaned = -0.00059779 Jy
! Total flux subtracted in 200 components = -0.00059779 Jy
! Clean residual min=-0.002447 max=0.002202 Jy/beam
! Clean residual mean=-0.000015 rms=0.000586 Jy/beam
! Combined flux in latest and established models = 1.37924 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 81 components and 1.37924 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190080Jy  sigma=0.001350
! Fit after  self-cal, rms=0.190075Jy  sigma=0.001350
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.000168914 Jy
! Component: 100  -  total flux cleaned = 1.48313e-05 Jy
! Component: 150  -  total flux cleaned = 0.000124043 Jy
! Component: 200  -  total flux cleaned = 0.000176895 Jy
! Total flux subtracted in 200 components = 0.000176895 Jy
! Clean residual min=-0.002348 max=0.002191 Jy/beam
! Clean residual mean=-0.000015 rms=0.000571 Jy/beam
! Combined flux in latest and established models = 1.37941 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 91 components and 1.37941 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190040Jy  sigma=0.001349
! Fit after  self-cal, rms=0.190035Jy  sigma=0.001349
! 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.190035Jy  sigma=0.001349
! Fit after  self-cal, rms=0.190134Jy  sigma=0.001349
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.077 mas, bmaj=9.197 mas, bpa=-4.4 degrees
! Estimated noise=404.098 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -7.00794e-05 Jy
! Component: 100  -  total flux cleaned = 3.17611e-05 Jy
! Component: 150  -  total flux cleaned = 0.000251833 Jy
! Component: 200  -  total flux cleaned = 0.000386996 Jy
! Total flux subtracted in 200 components = 0.000386996 Jy
! Clean residual min=-0.002499 max=0.002472 Jy/beam
! Clean residual mean=-0.000046 rms=0.000785 Jy/beam
! Combined flux in latest and established models = 1.3798 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 111 components and 1.3798 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190134Jy  sigma=0.001349
! Fit after  self-cal, rms=0.190134Jy  sigma=0.001349
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 = 5.50964e-05 Jy
! Component: 100  -  total flux cleaned = 0.000133106 Jy
! Component: 150  -  total flux cleaned = 0.000157016 Jy
! Component: 200  -  total flux cleaned = 0.000157806 Jy
! Total flux subtracted in 200 components = 0.000157806 Jy
! Clean residual min=-0.002402 max=0.002447 Jy/beam
! Clean residual mean=-0.000048 rms=0.000766 Jy/beam
! Combined flux in latest and established models = 1.37996 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 127 components and 1.37996 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190136Jy  sigma=0.001349
! Fit after  self-cal, rms=0.190135Jy  sigma=0.001349
! 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.498 mas, bmaj=4.895 mas, bpa=-12.54 degrees
! Estimated noise=290.657 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.498 x 4.895 at -12.54 degrees (North through East)
! Clean map  min=-0.0021776  max=1.2721 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.190135Jy  sigma=0.001349
! Fit after  self-cal, rms=0.190413Jy  sigma=0.001213
! Inverting map and beam 
! Estimated beam: bmin=2.497 mas, bmaj=4.896 mas, bpa=-12.56 degrees
! Estimated noise=290.452 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00118269 Jy
! Component: 100  -  total flux cleaned = -0.0012413 Jy
! Component: 150  -  total flux cleaned = -0.00124283 Jy
! Component: 200  -  total flux cleaned = -0.00114818 Jy
! Total flux subtracted in 200 components = -0.00114818 Jy
! Clean residual min=-0.001836 max=0.001920 Jy/beam
! Clean residual mean=-0.000019 rms=0.000482 Jy/beam
! Combined flux in latest and established models = 1.37881 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 134 components and 1.37881 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190379Jy  sigma=0.001213
! Fit after  self-cal, rms=0.190375Jy  sigma=0.001213
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000104015 Jy
! Component: 100  -  total flux cleaned = -2.04829e-05 Jy
! Component: 150  -  total flux cleaned = 1.77822e-05 Jy
! Component: 200  -  total flux cleaned = 5.47946e-05 Jy
! Total flux subtracted in 200 components = 5.47946e-05 Jy
! Clean residual min=-0.001740 max=0.001905 Jy/beam
! Clean residual mean=-0.000019 rms=0.000476 Jy/beam
! Combined flux in latest and established models = 1.37887 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 139 components and 1.37887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190357Jy  sigma=0.001213
! Fit after  self-cal, rms=0.190355Jy  sigma=0.001213
! 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.190355Jy  sigma=0.001213
! Fit after  self-cal, rms=0.190349Jy  sigma=0.001213
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.999 mas, bmaj=3.516 mas, bpa=-6.8 degrees
! Estimated noise=634.945 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.968691 Jy
! Component: 100  -  total flux cleaned = 1.18345 Jy
! Component: 150  -  total flux cleaned = 1.26119 Jy
! Component: 200  -  total flux cleaned = 1.30095 Jy
! Total flux subtracted in 200 components = 1.30095 Jy
! Clean residual min=-0.006704 max=0.019097 Jy/beam
! Clean residual mean=0.000007 rms=0.001691 Jy/beam
! Combined flux in latest and established models = 1.30095 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 1.30095 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.499 mas, bmaj=4.895 mas, bpa=-12.57 degrees
! Estimated noise=290.393 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.0334998 Jy
! Component: 100  -  total flux cleaned = 0.0498208 Jy
! Component: 150  -  total flux cleaned = 0.0590964 Jy
! Component: 200  -  total flux cleaned = 0.0647146 Jy
! Total flux subtracted in 200 components = 0.0647146 Jy
! Clean residual min=-0.002227 max=0.003072 Jy/beam
! Clean residual mean=0.000026 rms=0.000607 Jy/beam
! Combined flux in latest and established models = 1.36566 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 42 components and 1.36566 Jy
! Inverting map 
! Added new window around map position (-13, -12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00371837 Jy
! Component: 100  -  total flux cleaned = 0.00641119 Jy
! Component: 150  -  total flux cleaned = 0.00755293 Jy
! Component: 200  -  total flux cleaned = 0.00857764 Jy
! Total flux subtracted in 200 components = 0.00857764 Jy
! Clean residual min=-0.001924 max=0.001967 Jy/beam
! Clean residual mean=-0.000002 rms=0.000500 Jy/beam
! Combined flux in latest and established models = 1.37424 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 60 components and 1.37424 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.077 mas, bmaj=9.194 mas, bpa=-4.38 degrees
! Estimated noise=403.756 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00272116 Jy
! Component: 100  -  total flux cleaned = 0.00416148 Jy
! Component: 150  -  total flux cleaned = 0.00510302 Jy
! Component: 200  -  total flux cleaned = 0.00543052 Jy
! Total flux subtracted in 200 components = 0.00543052 Jy
! Clean residual min=-0.002101 max=0.002030 Jy/beam
! Clean residual mean=-0.000066 rms=0.000636 Jy/beam
! Combined flux in latest and established models = 1.37967 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.000156635 Jy
! Component: 100  -  total flux cleaned = 0.000291877 Jy
! Component: 150  -  total flux cleaned = 0.000341898 Jy
! Component: 200  -  total flux cleaned = 0.000387461 Jy
! Total flux subtracted in 200 components = 0.000387461 Jy
! Clean residual min=-0.002062 max=0.002016 Jy/beam
! Clean residual mean=-0.000071 rms=0.000626 Jy/beam
! Combined flux in latest and established models = 1.38006 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 115 components and 1.38006 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.499 mas, bmaj=4.895 mas, bpa=-12.57 degrees
! Estimated noise=290.393 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00103373 Jy
! Component: 100  -  total flux cleaned = -0.000854688 Jy
! Component: 150  -  total flux cleaned = -0.00074345 Jy
! Component: 200  -  total flux cleaned = -0.000588194 Jy
! Total flux subtracted in 200 components = -0.000588194 Jy
! Clean residual min=-0.001737 max=0.001944 Jy/beam
! Clean residual mean=-0.000021 rms=0.000466 Jy/beam
! Combined flux in latest and established models = 1.37947 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 123 components and 1.37947 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190398Jy  sigma=0.001213
! Fit after  self-cal, rms=0.190382Jy  sigma=0.001213
wmodel J2236+2828_S_2001_07_05_pus_map.mod
! Writing 123 model components to file: J2236+2828_S_2001_07_05_pus_map.mod
wobs J2236+2828_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J2236+2828_S_2001_07_05_pus_uvs.fits
wwins J2236+2828_S_2001_07_05_pus_map.win
! wwins: Wrote 4 windows to J2236+2828_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.000443622 Jy
! Component: 100  -  total flux cleaned = 0.000567157 Jy
! Component: 150  -  total flux cleaned = 0.000597076 Jy
! Component: 200  -  total flux cleaned = 0.000539671 Jy
! Component: 250  -  total flux cleaned = 0.000484297 Jy
! Component: 300  -  total flux cleaned = 0.00053828 Jy
! Component: 350  -  total flux cleaned = 0.000617409 Jy
! Component: 400  -  total flux cleaned = 0.000592019 Jy
! Component: 450  -  total flux cleaned = 0.000719557 Jy
! Component: 500  -  total flux cleaned = 0.000744367 Jy
! Component: 550  -  total flux cleaned = 0.000769255 Jy
! Component: 600  -  total flux cleaned = 0.000744917 Jy
! Component: 650  -  total flux cleaned = 0.000793005 Jy
! Component: 700  -  total flux cleaned = 0.000745358 Jy
! Component: 750  -  total flux cleaned = 0.000651315 Jy
! Component: 800  -  total flux cleaned = 0.000627778 Jy
! Component: 850  -  total flux cleaned = 0.000512814 Jy
! Component: 900  -  total flux cleaned = 0.000444428 Jy
! Component: 950  -  total flux cleaned = 0.000421924 Jy
! Component: 1000  -  total flux cleaned = 0.000354921 Jy
! Component: 1050  -  total flux cleaned = 0.000288612 Jy
! Component: 1100  -  total flux cleaned = 0.000288979 Jy
! Component: 1150  -  total flux cleaned = 0.000245593 Jy
! Component: 1200  -  total flux cleaned = 0.000180828 Jy
! Component: 1250  -  total flux cleaned = 0.00015947 Jy
! Component: 1300  -  total flux cleaned = 7.45152e-05 Jy
! Component: 1350  -  total flux cleaned = 3.25162e-05 Jy
! Component: 1400  -  total flux cleaned = 1.15574e-05 Jy
! Component: 1450  -  total flux cleaned = -9.21005e-06 Jy
! Component: 1500  -  total flux cleaned = -7.10925e-05 Jy
! Component: 1550  -  total flux cleaned = -9.14552e-05 Jy
! Component: 1600  -  total flux cleaned = -0.00011186 Jy
! Component: 1650  -  total flux cleaned = -0.000172449 Jy
! Component: 1700  -  total flux cleaned = -0.000232475 Jy
! Component: 1750  -  total flux cleaned = -0.000272378 Jy
! Component: 1800  -  total flux cleaned = -0.000312041 Jy
! Component: 1850  -  total flux cleaned = -0.000371178 Jy
! Component: 1900  -  total flux cleaned = -0.000410293 Jy
! Component: 1950  -  total flux cleaned = -0.000410217 Jy
! Component: 2000  -  total flux cleaned = -0.000487392 Jy
! Total flux subtracted in 2048 components = -0.000487561 Jy
! Clean residual min=-0.001070 max=0.001121 Jy/beam
! Clean residual mean=-0.000020 rms=0.000367 Jy/beam
! Combined flux in latest and established models = 1.37898 Jy
keep
! Adding 143 model components to the UV plane model.
! The established model now contains 265 components and 1.37898 Jy
wmap "J2236+2828_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.499 x 4.895 at -12.57 degrees (North through East)
! Clean map  min=-0.0016515  max=1.2721 Jy/beam
! Writing clean map to FITS file: J2236+2828_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 1.27206 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000367154 
device "J2236+2828_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J2236+2828_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0865891 0.0865891 0.173178 0.346357 0.692713 1.38543 2.77085 5.5417 11.0834 22.1668 44.3336 88.6673
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0011 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.272 
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.499 x 4.895 at -12.57 degrees (North through East)
! Clean map  min=-0.0016515  max=1.2721 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2236+2828_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J2236+2828_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2236+2828_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 02:59:07 2007