! Started logfile: J0237+2848_S_2001_07_05_pus_uvs.log on Thu Aug  9 23:57:18 2007
obs J0237+2848_S_2001_07_05_pus_uva.fits
! Reading UV FITS file: J0237+2848_S_2001_07_05_pus_uva.fits
! AN table 1: 67 integrations on 171 of 171 possible baselines.
! AN table 2: 194 integrations on 171 of 171 possible baselines.
! AN table 3: 229 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.234789 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0237+2848
! 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 78692 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 1050 telescope corrections were flagged in sub-array 1.
!  A total of 2709 telescope corrections were flagged in sub-array 2.
!  A total of 2035 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1050 telescope corrections were flagged in sub-array 1.
!  A total of 2709 telescope corrections were flagged in sub-array 2.
!  A total of 2035 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1050 telescope corrections were flagged in sub-array 1.
!  A total of 2709 telescope corrections were flagged in sub-array 2.
!  A total of 2035 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1050 telescope corrections were flagged in sub-array 1.
!  A total of 2744 telescope corrections were flagged in sub-array 2.
!  A total of 2035 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.799841Jy  sigma=0.006346
! Fit after  self-cal, rms=0.446216Jy  sigma=0.003554
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.899 mas, bmaj=3.059 mas, bpa=-1.679 degrees
! Estimated noise=642.722 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.674996 Jy
! Component: 100  -  total flux cleaned = 0.86819 Jy
! Total flux subtracted in 100 components = 0.86819 Jy
! Clean residual min=-0.026117 max=0.172975 Jy/beam
! Clean residual mean=0.000071 rms=0.008275 Jy/beam
! Combined flux in latest and established models = 0.86819 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.86819 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.429360Jy  sigma=0.003595
! Fit after  self-cal, rms=0.427082Jy  sigma=0.003589
! Inverting map 
! Added new window around map position (-0.5, 4.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.152663 Jy
! Component: 100  -  total flux cleaned = 0.234281 Jy
! Total flux subtracted in 100 components = 0.234281 Jy
! Clean residual min=-0.018072 max=0.052293 Jy/beam
! Clean residual mean=0.000037 rms=0.005473 Jy/beam
! Combined flux in latest and established models = 1.10247 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 28 components and 1.10247 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.342703Jy  sigma=0.002700
! Fit after  self-cal, rms=0.335356Jy  sigma=0.002653
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0726915 Jy
! Component: 100  -  total flux cleaned = 0.126448 Jy
! Total flux subtracted in 100 components = 0.126448 Jy
! Clean residual min=-0.013929 max=0.033498 Jy/beam
! Clean residual mean=0.000021 rms=0.004150 Jy/beam
! Combined flux in latest and established models = 1.22892 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 40 components and 1.22892 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305859Jy  sigma=0.002307
! Fit after  self-cal, rms=0.303484Jy  sigma=0.002293
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0476871 Jy
! Component: 100  -  total flux cleaned = 0.0837819 Jy
! Total flux subtracted in 100 components = 0.0837819 Jy
! Clean residual min=-0.012143 max=0.028636 Jy/beam
! Clean residual mean=0.000010 rms=0.003470 Jy/beam
! Combined flux in latest and established models = 1.3127 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 45 components and 1.3127 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289498Jy  sigma=0.002117
! Fit after  self-cal, rms=0.288449Jy  sigma=0.002112
! Inverting map 
! Added new window around map position (-0.5, 9).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0341414 Jy
! Component: 100  -  total flux cleaned = 0.0602516 Jy
! Total flux subtracted in 100 components = 0.0602516 Jy
! Clean residual min=-0.011409 max=0.020366 Jy/beam
! Clean residual mean=0.000001 rms=0.003084 Jy/beam
! Combined flux in latest and established models = 1.37295 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 55 components and 1.37295 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281124Jy  sigma=0.002017
! Fit after  self-cal, rms=0.280503Jy  sigma=0.002013
! Inverting map 
! Added new window around map position (-2.5, 7.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0248881 Jy
! Component: 100  -  total flux cleaned = 0.0444803 Jy
! Total flux subtracted in 100 components = 0.0444803 Jy
! Clean residual min=-0.010675 max=0.016555 Jy/beam
! Clean residual mean=-0.000005 rms=0.002843 Jy/beam
! Combined flux in latest and established models = 1.41743 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 63 components and 1.41743 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276538Jy  sigma=0.001961
! Fit after  self-cal, rms=0.276172Jy  sigma=0.001959
! 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.341 mas, bmaj=3.716 mas, bpa=-2.034 degrees
! Estimated noise=322.169 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.035146 Jy
! Component: 100  -  total flux cleaned = 0.0579283 Jy
! Component: 150  -  total flux cleaned = 0.0738593 Jy
! Component: 200  -  total flux cleaned = 0.0854299 Jy
! Total flux subtracted in 200 components = 0.0854298 Jy
! Clean residual min=-0.011459 max=0.015935 Jy/beam
! Clean residual mean=0.000234 rms=0.003241 Jy/beam
! Combined flux in latest and established models = 1.50286 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 90 components and 1.50286 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272057Jy  sigma=0.001899
! Fit after  self-cal, rms=0.271581Jy  sigma=0.001895
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        0.99     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.02     KP        1.02     
!   LA        0.99     MC        1.00*    MK        0.98     NL        1.01     
!   NY        1.00     OV        0.95     PT        0.94     SC        1.04     
!   TS        1.00     WF        1.00     WZ        1.00*    
! 
!  A total of 111 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.97     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        0.96     KK        1.01     KP        0.95     
!   LA        0.99     MC        1.13     MK        1.01     NL        0.95     
!   NY        0.97     OV        0.96     PT        0.93     SC        0.94     
!   TS        1.08     WF        1.03     WZ        1.29     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00     GC        1.04     GG        1.00*    
!   HH        0.94     HN        0.95     KK        1.11     KP        0.96     
!   LA        0.99     MC        1.40     MK        1.03     NL        0.98     
!   NY        1.02     OV        0.96     PT        0.96     SC        1.17     
!   TS        0.85     WF        0.98     WZ        0.92     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.98     GC        0.92     GG        1.00*    
!   HH        1.00*    HN        0.99     KK        1.01     KP        0.94     
!   LA        0.95     MC        1.00*    MK        0.97     NL        0.97     
!   NY        0.97     OV        0.98     PT        0.97     SC        1.05     
!   TS        0.98     WF        1.00     WZ        1.00*    
! 
!  A total of 111 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GC        0.96     GG        1.00*    
!   HH        1.00*    HN        0.98     KK        1.02     KP        0.86     
!   LA        0.94     MC        1.04     MK        1.01     NL        0.93     
!   NY        0.94     OV        0.99     PT        0.96     SC        0.98     
!   TS        1.03     WF        1.03     WZ        1.23     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.01     GC        0.99     GG        1.00*    
!   HH        0.98     HN        0.95     KK        1.11     KP        1.07     
!   LA        0.95     MC        0.98     MK        1.02     NL        0.95     
!   NY        1.02     OV        1.00     PT        0.99     SC        1.17     
!   TS        1.18     WF        0.97     WZ        0.90     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.93     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.07     KK        1.03     KP        0.97     
!   LA        0.97     MC        1.00*    MK        0.98     NL        0.96     
!   NY        0.96     OV        0.98     PT        0.94     SC        1.05     
!   TS        0.98     WF        1.01     WZ        1.00*    
! 
!  A total of 111 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.93     GC        1.01     GG        1.00*    
!   HH        1.00*    HN        1.04     KK        1.04     KP        0.96     
!   LA        0.97     MC        1.21     MK        1.03     NL        0.97     
!   NY        0.95     OV        1.01     PT        0.94     SC        0.96     
!   TS        1.03     WF        1.03     WZ        1.22     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        0.95     GC        1.01     GG        1.00*    
!   HH        0.98     HN        0.99     KK        1.13     KP        1.03     
!   LA        0.98     MC        1.30     MK        1.04     NL        1.01     
!   NY        1.00     OV        1.03     PT        1.02     SC        1.12     
!   TS        0.82     WF        0.95     WZ        0.91     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.97     GC        0.93     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.03     KP        1.02     
!   LA        0.98     MC        1.00*    MK        0.96     NL        0.99     
!   NY        0.95     OV        0.94     PT        0.96     SC        1.04     
!   TS        0.99     WF        1.00     WZ        1.00*    
! 
!  A total of 117 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.96     GC        0.98     GG        1.00*    
!   HH        1.00*    HN        0.93     KK        1.01     KP        0.98     
!   LA        0.98     MC        1.15     MK        1.01     NL        0.96     
!   NY        0.94     OV        0.97     PT        0.97     SC        0.95     
!   TS        1.04     WF        1.11     WZ        1.23     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        0.98     GG        1.00*    
!   HH        0.96     HN        0.92     KK        1.11     KP        1.04     
!   LA        0.98     MC        0.90     MK        1.03     NL        0.98     
!   NY        1.02     OV        1.00     PT        1.21     SC        1.12     
!   TS        1.23     WF        0.99     WZ        0.89     
! 
! 
! Fit before self-cal, rms=0.271581Jy  sigma=0.001895
! Fit after  self-cal, rms=0.264495Jy  sigma=0.001751
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.338 mas, bmaj=3.767 mas, bpa=-1.746 degrees
! Estimated noise=324.675 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.5, 14.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0149773 Jy
! Component: 100  -  total flux cleaned = 0.0218745 Jy
! Component: 150  -  total flux cleaned = 0.0245859 Jy
! Component: 200  -  total flux cleaned = 0.0265713 Jy
! Total flux subtracted in 200 components = 0.0265713 Jy
! Clean residual min=-0.007032 max=0.009729 Jy/beam
! Clean residual mean=0.000179 rms=0.002000 Jy/beam
! Combined flux in latest and established models = 1.52943 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 110 components and 1.52943 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.263455Jy  sigma=0.001741
! Fit after  self-cal, rms=0.263411Jy  sigma=0.001739
! 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.263411Jy  sigma=0.001739
! Fit after  self-cal, rms=0.260498Jy  sigma=0.001678
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.34 mas, bmaj=3.767 mas, bpa=-2.026 degrees
! Estimated noise=325.06 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00711608 Jy
! Component: 100  -  total flux cleaned = 0.0110005 Jy
! Component: 150  -  total flux cleaned = 0.0128063 Jy
! Component: 200  -  total flux cleaned = 0.0145329 Jy
! Total flux subtracted in 200 components = 0.0145329 Jy
! Clean residual min=-0.003387 max=0.004890 Jy/beam
! Clean residual mean=0.000203 rms=0.000995 Jy/beam
! Combined flux in latest and established models = 1.54397 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 130 components and 1.54397 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259935Jy  sigma=0.001673
! Fit after  self-cal, rms=0.259898Jy  sigma=0.001672
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 (1.5, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00179508 Jy
! Component: 100  -  total flux cleaned = 0.00368489 Jy
! Component: 150  -  total flux cleaned = 0.00478204 Jy
! Component: 200  -  total flux cleaned = 0.00573287 Jy
! Total flux subtracted in 200 components = 0.00573287 Jy
! Clean residual min=-0.003649 max=0.003914 Jy/beam
! Clean residual mean=0.000169 rms=0.000924 Jy/beam
! Combined flux in latest and established models = 1.5497 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 152 components and 1.5497 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259634Jy  sigma=0.001670
! Fit after  self-cal, rms=0.259571Jy  sigma=0.001670
! 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.259571Jy  sigma=0.001670
! Fit after  self-cal, rms=0.265508Jy  sigma=0.001671
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.335 mas, bmaj=3.775 mas, bpa=-2.439 degrees
! Estimated noise=326.473 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00319074 Jy
! Component: 100  -  total flux cleaned = 0.00571738 Jy
! Component: 150  -  total flux cleaned = 0.0068823 Jy
! Component: 200  -  total flux cleaned = 0.0079335 Jy
! Total flux subtracted in 200 components = 0.0079335 Jy
! Clean residual min=-0.003110 max=0.004572 Jy/beam
! Clean residual mean=0.000176 rms=0.000876 Jy/beam
! Combined flux in latest and established models = 1.55763 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 161 components and 1.55763 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.265098Jy  sigma=0.001668
! Fit after  self-cal, rms=0.265073Jy  sigma=0.001668
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.0012145 Jy
! Component: 100  -  total flux cleaned = 0.00282777 Jy
! Component: 150  -  total flux cleaned = 0.00368238 Jy
! Component: 200  -  total flux cleaned = 0.00407549 Jy
! Total flux subtracted in 200 components = 0.00407549 Jy
! Clean residual min=-0.002880 max=0.003629 Jy/beam
! Clean residual mean=0.000152 rms=0.000818 Jy/beam
! Combined flux in latest and established models = 1.56171 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 168 components and 1.56171 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264869Jy  sigma=0.001666
! Fit after  self-cal, rms=0.264818Jy  sigma=0.001666
! Inverting map 
! Added new window around map position (10, 23.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0012819 Jy
! Component: 100  -  total flux cleaned = 0.00273712 Jy
! Component: 150  -  total flux cleaned = 0.0034335 Jy
! Component: 200  -  total flux cleaned = 0.00385562 Jy
! Total flux subtracted in 200 components = 0.00385562 Jy
! Clean residual min=-0.002848 max=0.003193 Jy/beam
! Clean residual mean=0.000131 rms=0.000776 Jy/beam
! Combined flux in latest and established models = 1.56557 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 175 components and 1.56556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264673Jy  sigma=0.001665
! Fit after  self-cal, rms=0.264651Jy  sigma=0.001665
! 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.264651Jy  sigma=0.001665
! Fit after  self-cal, rms=0.266613Jy  sigma=0.001665
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.52 mas, bmaj=8.692 mas, bpa=6.526 degrees
! Estimated noise=453.843 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00590088 Jy
! Component: 100  -  total flux cleaned = 0.00889088 Jy
! Component: 150  -  total flux cleaned = 0.0101406 Jy
! Component: 200  -  total flux cleaned = 0.0108455 Jy
! Total flux subtracted in 200 components = 0.0108455 Jy
! Clean residual min=-0.002633 max=0.002843 Jy/beam
! Clean residual mean=0.000353 rms=0.000855 Jy/beam
! Combined flux in latest and established models = 1.57641 Jy
selfcal
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 209 components and 1.57641 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266559Jy  sigma=0.001664
! Fit after  self-cal, rms=0.266550Jy  sigma=0.001664
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.000609661 Jy
! Component: 100  -  total flux cleaned = 0.00114789 Jy
! Component: 150  -  total flux cleaned = 0.00153728 Jy
! Component: 200  -  total flux cleaned = 0.00181311 Jy
! Total flux subtracted in 200 components = 0.00181311 Jy
! Clean residual min=-0.002483 max=0.002773 Jy/beam
! Clean residual mean=0.000320 rms=0.000838 Jy/beam
! Combined flux in latest and established models = 1.57822 Jy
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 228 components and 1.57822 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266510Jy  sigma=0.001664
! Fit after  self-cal, rms=0.266498Jy  sigma=0.001664
! 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.333 mas, bmaj=3.779 mas, bpa=-2.586 degrees
! Estimated noise=327.149 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.333 x 3.779 at -2.586 degrees (North through East)
! Clean map  min=-0.0024036  max=0.87861 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.266498Jy  sigma=0.001664
! Fit after  self-cal, rms=0.783168Jy  sigma=0.001409
! Inverting map and beam 
! Estimated beam: bmin=2.333 mas, bmaj=3.766 mas, bpa=-2.378 degrees
! Estimated noise=325.679 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00141543 Jy
! Component: 100  -  total flux cleaned = 0.00171969 Jy
! Component: 150  -  total flux cleaned = 0.00189481 Jy
! Component: 200  -  total flux cleaned = 0.00204802 Jy
! Total flux subtracted in 200 components = 0.00204802 Jy
! Clean residual min=-0.002204 max=0.003002 Jy/beam
! Clean residual mean=0.000090 rms=0.000612 Jy/beam
! Combined flux in latest and established models = 1.58027 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 239 components and 1.58027 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.783148Jy  sigma=0.001408
! Fit after  self-cal, rms=0.783140Jy  sigma=0.001408
! Inverting map 
! Added new window around map position (-34, 55.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00129306 Jy
! Component: 100  -  total flux cleaned = 0.00177662 Jy
! Component: 150  -  total flux cleaned = 0.00192265 Jy
! Component: 200  -  total flux cleaned = 0.00205668 Jy
! Total flux subtracted in 200 components = 0.00205668 Jy
! Clean residual min=-0.002253 max=0.002528 Jy/beam
! Clean residual mean=0.000079 rms=0.000599 Jy/beam
! Combined flux in latest and established models = 1.58233 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 246 components and 1.58233 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.783116Jy  sigma=0.001408
! Fit after  self-cal, rms=0.783109Jy  sigma=0.001408
! 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.783109Jy  sigma=0.001408
! Fit after  self-cal, rms=0.791397Jy  sigma=0.001407
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.908 mas, bmaj=3.089 mas, bpa=-1.191 degrees
! Estimated noise=649.523 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.671001 Jy
! Component: 100  -  total flux cleaned = 0.906212 Jy
! Component: 150  -  total flux cleaned = 1.03979 Jy
! Component: 200  -  total flux cleaned = 1.13422 Jy
! Total flux subtracted in 200 components = 1.13422 Jy
! Clean residual min=-0.013142 max=0.053977 Jy/beam
! Clean residual mean=0.000065 rms=0.004328 Jy/beam
! Combined flux in latest and established models = 1.13422 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 30 model components to the UV plane model.
! The established model now contains 30 components and 1.13422 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.333 mas, bmaj=3.768 mas, bpa=-2.426 degrees
! Estimated noise=325.598 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.136916 Jy
! Component: 100  -  total flux cleaned = 0.219748 Jy
! Component: 150  -  total flux cleaned = 0.274126 Jy
! Component: 200  -  total flux cleaned = 0.312101 Jy
! Total flux subtracted in 200 components = 0.3121 Jy
! Clean residual min=-0.004986 max=0.021693 Jy/beam
! Clean residual mean=0.000886 rms=0.003319 Jy/beam
! Combined flux in latest and established models = 1.44632 Jy
! Adding 85 model components to the UV plane model.
! The established model now contains 100 components and 1.44632 Jy
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0281823 Jy
! Component: 100  -  total flux cleaned = 0.0496809 Jy
! Component: 150  -  total flux cleaned = 0.0663927 Jy
! Component: 200  -  total flux cleaned = 0.0795133 Jy
! Total flux subtracted in 200 components = 0.0795133 Jy
! Clean residual min=-0.002906 max=0.009104 Jy/beam
! Clean residual mean=0.000414 rms=0.001398 Jy/beam
! Combined flux in latest and established models = 1.52584 Jy
! Adding 70 model components to the UV plane model.
! The established model now contains 152 components and 1.52583 Jy
! Inverting map 
! Added new window around map position (-4, 12.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0106861 Jy
! Component: 100  -  total flux cleaned = 0.0191567 Jy
! Component: 150  -  total flux cleaned = 0.025985 Jy
! Component: 200  -  total flux cleaned = 0.0315467 Jy
! Total flux subtracted in 200 components = 0.0315467 Jy
! Clean residual min=-0.002213 max=0.004045 Jy/beam
! Clean residual mean=0.000230 rms=0.000787 Jy/beam
! Combined flux in latest and established models = 1.55738 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 181 components and 1.55738 Jy
! Inverting map 
! Added new window around map position (-3, 4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00471622 Jy
! Component: 100  -  total flux cleaned = 0.00859413 Jy
! Component: 150  -  total flux cleaned = 0.0118943 Jy
! Component: 200  -  total flux cleaned = 0.0147244 Jy
! Total flux subtracted in 200 components = 0.0147244 Jy
! Clean residual min=-0.002107 max=0.002808 Jy/beam
! Clean residual mean=0.000146 rms=0.000620 Jy/beam
! Combined flux in latest and established models = 1.57211 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 197 components and 1.57211 Jy
! Inverting map 
! Added new window around map position (3, 21.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00284407 Jy
! Component: 100  -  total flux cleaned = 0.00505401 Jy
! Component: 150  -  total flux cleaned = 0.00637574 Jy
! Component: 200  -  total flux cleaned = 0.00763326 Jy
! Total flux subtracted in 200 components = 0.00763326 Jy
! Clean residual min=-0.002066 max=0.002229 Jy/beam
! Clean residual mean=0.000103 rms=0.000571 Jy/beam
! Combined flux in latest and established models = 1.57974 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 212 components and 1.57974 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.509 mas, bmaj=8.672 mas, bpa=6.979 degrees
! Estimated noise=454.074 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00271508 Jy
! Component: 100  -  total flux cleaned = 0.00439192 Jy
! Component: 150  -  total flux cleaned = 0.0051567 Jy
! Component: 200  -  total flux cleaned = 0.00566459 Jy
! Total flux subtracted in 200 components = 0.00566459 Jy
! Clean residual min=-0.002250 max=0.002735 Jy/beam
! Clean residual mean=0.000236 rms=0.000713 Jy/beam
! Combined flux in latest and established models = 1.5854 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.000345564 Jy
! Component: 100  -  total flux cleaned = 0.00046806 Jy
! Component: 150  -  total flux cleaned = 0.000555322 Jy
! Component: 200  -  total flux cleaned = 0.000634499 Jy
! Total flux subtracted in 200 components = 0.000634499 Jy
! Clean residual min=-0.002304 max=0.002670 Jy/beam
! Clean residual mean=0.000223 rms=0.000707 Jy/beam
! Combined flux in latest and established models = 1.58604 Jy
! Adding 75 model components to the UV plane model.
! The established model now contains 274 components and 1.58604 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.333 mas, bmaj=3.768 mas, bpa=-2.426 degrees
! Estimated noise=325.598 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000877048 Jy
! Component: 100  -  total flux cleaned = -0.00115178 Jy
! Component: 150  -  total flux cleaned = -0.0012537 Jy
! Component: 200  -  total flux cleaned = -0.00125251 Jy
! Total flux subtracted in 200 components = -0.00125251 Jy
! Clean residual min=-0.001990 max=0.002296 Jy/beam
! Clean residual mean=0.000075 rms=0.000547 Jy/beam
! Combined flux in latest and established models = 1.58479 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 293 components and 1.58479 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.791335Jy  sigma=0.001406
! Fit after  self-cal, rms=0.791288Jy  sigma=0.001405
wmodel J0237+2848_S_2001_07_05_pus_map.mod
! Writing 293 model components to file: J0237+2848_S_2001_07_05_pus_map.mod
wobs J0237+2848_S_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J0237+2848_S_2001_07_05_pus_uvs.fits
wwins J0237+2848_S_2001_07_05_pus_map.win
! wwins: Wrote 11 windows to J0237+2848_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.000851523 Jy
! Component: 100  -  total flux cleaned = 0.0015901 Jy
! Component: 150  -  total flux cleaned = 0.00208159 Jy
! Component: 200  -  total flux cleaned = 0.00248805 Jy
! Component: 250  -  total flux cleaned = 0.00275287 Jy
! Component: 300  -  total flux cleaned = 0.00314275 Jy
! Component: 350  -  total flux cleaned = 0.00346193 Jy
! Component: 400  -  total flux cleaned = 0.00377645 Jy
! Component: 450  -  total flux cleaned = 0.00408615 Jy
! Component: 500  -  total flux cleaned = 0.00445201 Jy
! Component: 550  -  total flux cleaned = 0.00469251 Jy
! Component: 600  -  total flux cleaned = 0.00493066 Jy
! Component: 650  -  total flux cleaned = 0.00516602 Jy
! Component: 700  -  total flux cleaned = 0.00534051 Jy
! Component: 750  -  total flux cleaned = 0.00554173 Jy
! Component: 800  -  total flux cleaned = 0.00565585 Jy
! Component: 850  -  total flux cleaned = 0.00588114 Jy
! Component: 900  -  total flux cleaned = 0.00604835 Jy
! Component: 950  -  total flux cleaned = 0.00615915 Jy
! Component: 1000  -  total flux cleaned = 0.00637795 Jy
! Component: 1050  -  total flux cleaned = 0.00648639 Jy
! Component: 1100  -  total flux cleaned = 0.00659393 Jy
! Component: 1150  -  total flux cleaned = 0.00675404 Jy
! Component: 1200  -  total flux cleaned = 0.00678072 Jy
! Component: 1250  -  total flux cleaned = 0.00696524 Jy
! Component: 1300  -  total flux cleaned = 0.00706988 Jy
! Component: 1350  -  total flux cleaned = 0.00719988 Jy
! Component: 1400  -  total flux cleaned = 0.00730318 Jy
! Component: 1450  -  total flux cleaned = 0.00738018 Jy
! Component: 1500  -  total flux cleaned = 0.00753316 Jy
! Component: 1550  -  total flux cleaned = 0.00768538 Jy
! Component: 1600  -  total flux cleaned = 0.00771041 Jy
! Component: 1650  -  total flux cleaned = 0.00788619 Jy
! Component: 1700  -  total flux cleaned = 0.00793606 Jy
! Component: 1750  -  total flux cleaned = 0.00808493 Jy
! Component: 1800  -  total flux cleaned = 0.00818385 Jy
! Component: 1850  -  total flux cleaned = 0.00823306 Jy
! Component: 1900  -  total flux cleaned = 0.0083552 Jy
! Component: 1950  -  total flux cleaned = 0.00842825 Jy
! Component: 2000  -  total flux cleaned = 0.00847656 Jy
! Total flux subtracted in 2048 components = 0.00862091 Jy
! Clean residual min=-0.001618 max=0.001781 Jy/beam
! Clean residual mean=0.000033 rms=0.000452 Jy/beam
! Combined flux in latest and established models = 1.59341 Jy
keep
! Adding 161 model components to the UV plane model.
! The established model now contains 454 components and 1.59341 Jy
wmap "J0237+2848_S_2001_07_05_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.333 x 3.768 at -2.426 degrees (North through East)
! Clean map  min=-0.0016928  max=0.87611 Jy/beam
! Writing clean map to FITS file: J0237+2848_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.876113 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000452197 
device "J0237+2848_S_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J0237+2848_S_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.154842 0.154842 0.309684 0.619367 1.23873 2.47747 4.95494 9.90988 19.8198 39.6395 79.279
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.876 
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.333 x 3.768 at -2.426 degrees (North through East)
! Clean map  min=-0.0016928  max=0.87611 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0237+2848_S_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J0237+2848_S_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0237+2848_S_2001_07_05_pus_uvs.log closed on Fri Aug 10 00:00:56 2007