! Started logfile: J0237+2848_S_2003_06_18_pus_uvs.log on Wed Jan 24 16:58:55 2007
obs J0237+2848_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J0237+2848_S_2003_06_18_pus_uva.fits
! AN table 1: 167 integrations on 153 of 153 possible baselines.
! AN table 2: 53 integrations on 153 of 153 possible baselines.
! AN table 3: 120 integrations on 153 of 153 possible baselines.
! AN table 4: 28 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.21677 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0237+2848
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2429 lines of history.
! 
! Reading 48820 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
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 1849 telescope corrections were flagged in sub-array 1.
!  A total of 600 telescope corrections were flagged in sub-array 2.
!  A total of 1098 telescope corrections were flagged in sub-array 3.
!  A total of 504 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1846 telescope corrections were flagged in sub-array 1.
!  A total of 600 telescope corrections were flagged in sub-array 2.
!  A total of 1098 telescope corrections were flagged in sub-array 3.
!  A total of 504 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1849 telescope corrections were flagged in sub-array 1.
!  A total of 600 telescope corrections were flagged in sub-array 2.
!  A total of 1098 telescope corrections were flagged in sub-array 3.
!  A total of 504 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1872 telescope corrections were flagged in sub-array 1.
!  A total of 600 telescope corrections were flagged in sub-array 2.
!  A total of 1098 telescope corrections were flagged in sub-array 3.
!  A total of 504 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.454211Jy  sigma=0.016830
! Fit after  self-cal, rms=1.090469Jy  sigma=0.013023
! 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.974 mas, bmaj=4.27 mas, bpa=4.719 degrees
! Estimated noise=581.602 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 = 1.3814 Jy
! Component: 100  -  total flux cleaned = 1.73694 Jy
! Total flux subtracted in 100 components = 1.73694 Jy
! Clean residual min=-0.039121 max=0.174972 Jy/beam
! Clean residual mean=0.000160 rms=0.014317 Jy/beam
! Combined flux in latest and established models = 1.73694 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 1.73694 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.615199Jy  sigma=0.006453
! Fit after  self-cal, rms=0.613293Jy  sigma=0.006448
! Inverting map 
! Added new window around map position (-1, 5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.196482 Jy
! Component: 100  -  total flux cleaned = 0.320813 Jy
! Total flux subtracted in 100 components = 0.320813 Jy
! Clean residual min=-0.029730 max=0.069938 Jy/beam
! Clean residual mean=0.000100 rms=0.009718 Jy/beam
! Combined flux in latest and established models = 2.05776 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 37 components and 2.05776 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.502364Jy  sigma=0.004582
! Fit after  self-cal, rms=0.500029Jy  sigma=0.004557
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0966615 Jy
! Component: 100  -  total flux cleaned = 0.168576 Jy
! Total flux subtracted in 100 components = 0.168576 Jy
! Clean residual min=-0.025841 max=0.044389 Jy/beam
! Clean residual mean=0.000059 rms=0.007813 Jy/beam
! Combined flux in latest and established models = 2.22633 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 52 components and 2.22633 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.463867Jy  sigma=0.003841
! Fit after  self-cal, rms=0.462793Jy  sigma=0.003828
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0609492 Jy
! Component: 100  -  total flux cleaned = 0.107386 Jy
! Total flux subtracted in 100 components = 0.107386 Jy
! Clean residual min=-0.026934 max=0.036983 Jy/beam
! Clean residual mean=0.000032 rms=0.006898 Jy/beam
! Combined flux in latest and established models = 2.33372 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 65 components and 2.33372 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.447074Jy  sigma=0.003486
! Fit after  self-cal, rms=0.446447Jy  sigma=0.003479
! 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.824 mas, bmaj=5.22 mas, bpa=8.395 degrees
! Estimated noise=305.113 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.0826435 Jy
! Component: 100  -  total flux cleaned = 0.133626 Jy
! Component: 150  -  total flux cleaned = 0.167568 Jy
! Component: 200  -  total flux cleaned = 0.19049 Jy
! Total flux subtracted in 200 components = 0.19049 Jy
! Clean residual min=-0.034436 max=0.031622 Jy/beam
! Clean residual mean=-0.000700 rms=0.007744 Jy/beam
! Combined flux in latest and established models = 2.52421 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 87 components and 2.52421 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.432027Jy  sigma=0.003163
! Fit after  self-cal, rms=0.431099Jy  sigma=0.003146
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 66 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.97     GG        1.00*    HN        0.86     
!   KK        1.04     KP        0.91     LA        0.98     MA        1.00*    
!   MK        1.01     NL        1.00     ON        1.00*    OV        0.97     
!   PT        0.97     SC        0.94     TC        1.07     TS        1.03     
!   WF        1.14     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.99     GG        1.00*    HN        0.95     
!   KK        1.09     KP        0.97     LA        1.01     MA        1.00*    
!   MK        0.99     NL        1.08     ON        1.00*    OV        1.00*    
!   PT        1.01     SC        0.93     TC        1.16     TS        1.00*    
!   WF        1.31     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.08     FD        1.00     GG        1.00*    HN        1.02     
!   KK        1.14     KP        0.96     LA        1.00     MA        1.00*    
!   MK        1.05     NL        1.04     ON        1.12     OV        0.90     
!   PT        1.00     SC        0.93     TC        1.14     TS        1.00*    
!   WF        1.14     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GG        1.00*    HN        0.97     
!   KK        1.03     KP        0.99     LA        0.98     MA        1.00*    
!   MK        1.12     NL        0.95     ON        1.00*    OV        0.91     
!   PT        0.96     SC        0.95     TC        1.00     TS        1.06     
!   WF        1.04     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.01     GG        1.00*    HN        1.05     
!   KK        1.08     KP        1.05     LA        1.01     MA        1.00*    
!   MK        1.06     NL        1.02     ON        1.00*    OV        1.00*    
!   PT        1.01     SC        0.95     TC        1.01     TS        1.00*    
!   WF        1.04     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.02     GG        1.00*    HN        1.04     
!   KK        1.13     KP        1.05     LA        1.00     MA        1.00*    
!   MK        1.12     NL        0.98     ON        1.02     OV        0.94     
!   PT        1.00     SC        0.94     TC        1.03     TS        1.00*    
!   WF        1.04     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 66 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.98     GG        1.00*    HN        1.00     
!   KK        1.01     KP        0.98     LA        0.94     MA        1.00*    
!   MK        1.02     NL        0.94     ON        1.00*    OV        0.94     
!   PT        0.97     SC        1.11     TC        0.97     TS        1.10     
!   WF        1.05     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.99     GG        1.00*    HN        1.05     
!   KK        1.06     KP        1.02     LA        0.97     MA        1.00*    
!   MK        1.02     NL        1.01     ON        1.00*    OV        1.00*    
!   PT        1.01     SC        1.09     TC        1.01     TS        1.00*    
!   WF        1.09     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.01     GG        1.00*    HN        1.04     
!   KK        1.11     KP        1.02     LA        0.95     MA        1.00*    
!   MK        1.07     NL        0.98     ON        1.01     OV        1.01     
!   PT        1.00     SC        1.07     TC        0.99     TS        1.00*    
!   WF        1.06     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GG        1.00*    HN        1.01     
!   KK        1.01     KP        0.99     LA        0.98     MA        1.00*    
!   MK        0.98     NL        0.98     ON        1.00*    OV        0.90     
!   PT        1.01     SC        1.08     TC        0.97     TS        1.07     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.01     GG        1.00*    HN        0.84     
!   KK        1.08     KP        1.04     LA        1.01     MA        1.00*    
!   MK        0.96     NL        1.05     ON        1.00*    OV        1.00*    
!   PT        1.06     SC        1.10     TC        1.05     TS        1.00*    
!   WF        1.09     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00     GG        1.00*    HN        1.06     
!   KK        1.11     KP        1.03     LA        0.99     MA        1.00*    
!   MK        1.01     NL        1.02     ON        1.06     OV        0.91     
!   PT        1.05     SC        1.08     TC        0.99     TS        1.00*    
!   WF        1.05     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.431099Jy  sigma=0.003146
! Fit after  self-cal, rms=0.407026Jy  sigma=0.002653
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.869 mas, bmaj=5.289 mas, bpa=8.362 degrees
! Estimated noise=305.997 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 (1, 14).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0267295 Jy
! Component: 100  -  total flux cleaned = 0.0359635 Jy
! Component: 150  -  total flux cleaned = 0.0403878 Jy
! Component: 200  -  total flux cleaned = 0.0422836 Jy
! Total flux subtracted in 200 components = 0.0422836 Jy
! Clean residual min=-0.014948 max=0.015276 Jy/beam
! Clean residual mean=0.000037 rms=0.003642 Jy/beam
! Combined flux in latest and established models = 2.56649 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 110 components and 2.56649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.404643Jy  sigma=0.002599
! Fit after  self-cal, rms=0.404395Jy  sigma=0.002594
! 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.404395Jy  sigma=0.002594
! Fit after  self-cal, rms=0.397478Jy  sigma=0.002396
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.872 mas, bmaj=5.287 mas, bpa=8.434 degrees
! Estimated noise=305.515 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0115837 Jy
! Component: 100  -  total flux cleaned = 0.0148695 Jy
! Component: 150  -  total flux cleaned = 0.0168051 Jy
! Component: 200  -  total flux cleaned = 0.0181535 Jy
! Total flux subtracted in 200 components = 0.0181535 Jy
! Clean residual min=-0.011875 max=0.012418 Jy/beam
! Clean residual mean=-0.000072 rms=0.002606 Jy/beam
! Combined flux in latest and established models = 2.58464 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 122 components and 2.58464 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.396559Jy  sigma=0.002374
! Fit after  self-cal, rms=0.396427Jy  sigma=0.002372
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.00250433 Jy
! Component: 100  -  total flux cleaned = 0.00441936 Jy
! Component: 150  -  total flux cleaned = 0.00554628 Jy
! Component: 200  -  total flux cleaned = 0.00606717 Jy
! Total flux subtracted in 200 components = 0.00606717 Jy
! Clean residual min=-0.012179 max=0.011209 Jy/beam
! Clean residual mean=-0.000105 rms=0.002487 Jy/beam
! Combined flux in latest and established models = 2.59071 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 127 components and 2.59071 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.395966Jy  sigma=0.002363
! Fit after  self-cal, rms=0.395887Jy  sigma=0.002362
! 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.395887Jy  sigma=0.002362
! Fit after  self-cal, rms=0.393801Jy  sigma=0.002265
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.879 mas, bmaj=5.286 mas, bpa=8.436 degrees
! Estimated noise=305.589 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00261832 Jy
! Component: 100  -  total flux cleaned = 0.00391512 Jy
! Component: 150  -  total flux cleaned = 0.0047547 Jy
! Component: 200  -  total flux cleaned = 0.0050067 Jy
! Total flux subtracted in 200 components = 0.0050067 Jy
! Clean residual min=-0.009403 max=0.008088 Jy/beam
! Clean residual mean=-0.000133 rms=0.001808 Jy/beam
! Combined flux in latest and established models = 2.59572 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 131 components and 2.59572 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393299Jy  sigma=0.002256
! Fit after  self-cal, rms=0.393238Jy  sigma=0.002255
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.000854197 Jy
! Component: 100  -  total flux cleaned = 0.00177803 Jy
! Component: 150  -  total flux cleaned = 0.00237969 Jy
! Component: 200  -  total flux cleaned = 0.00255528 Jy
! Total flux subtracted in 200 components = 0.00255528 Jy
! Clean residual min=-0.009010 max=0.007548 Jy/beam
! Clean residual mean=-0.000147 rms=0.001727 Jy/beam
! Combined flux in latest and established models = 2.59827 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 136 components and 2.59827 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.393000Jy  sigma=0.002250
! Fit after  self-cal, rms=0.392956Jy  sigma=0.002249
! 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.392956Jy  sigma=0.002249
! Fit after  self-cal, rms=0.394136Jy  sigma=0.002246
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.053 mas, bmaj=10.28 mas, bpa=-1.455 degrees
! Estimated noise=363.809 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0026048 Jy
! Component: 100  -  total flux cleaned = 0.0041897 Jy
! Component: 150  -  total flux cleaned = 0.00530304 Jy
! Component: 200  -  total flux cleaned = 0.00610636 Jy
! Total flux subtracted in 200 components = 0.00610636 Jy
! Clean residual min=-0.008557 max=0.006792 Jy/beam
! Clean residual mean=-0.000314 rms=0.002262 Jy/beam
! Combined flux in latest and established models = 2.60438 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 163 components and 2.60438 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.394195Jy  sigma=0.002245
! Fit after  self-cal, rms=0.394123Jy  sigma=0.002243
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.000106237 Jy
! Component: 100  -  total flux cleaned = 0.00066257 Jy
! Component: 150  -  total flux cleaned = 0.00143058 Jy
! Component: 200  -  total flux cleaned = 0.00206407 Jy
! Total flux subtracted in 200 components = 0.00206407 Jy
! Clean residual min=-0.009138 max=0.006564 Jy/beam
! Clean residual mean=-0.000344 rms=0.002234 Jy/beam
! Combined flux in latest and established models = 2.60644 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 167 components and 2.60644 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.394121Jy  sigma=0.002242
! Fit after  self-cal, rms=0.394072Jy  sigma=0.002241
! 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.887 mas, bmaj=5.286 mas, bpa=8.463 degrees
! Estimated noise=305.817 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.887 x 5.286 at 8.463 degrees (North through East)
! Clean map  min=-0.0082081  max=1.8532 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.394072Jy  sigma=0.002241
! Fit after  self-cal, rms=0.448739Jy  sigma=0.001739
! Inverting map and beam 
! Estimated beam: bmin=2.888 mas, bmaj=5.285 mas, bpa=8.506 degrees
! Estimated noise=304.957 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00442554 Jy
! Component: 100  -  total flux cleaned = -0.00442335 Jy
! Component: 150  -  total flux cleaned = -0.00423463 Jy
! Component: 200  -  total flux cleaned = -0.00405965 Jy
! Total flux subtracted in 200 components = -0.00405965 Jy
! Clean residual min=-0.006222 max=0.005178 Jy/beam
! Clean residual mean=-0.000044 rms=0.001258 Jy/beam
! Combined flux in latest and established models = 2.60238 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 171 components and 2.60238 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.448431Jy  sigma=0.001734
! Fit after  self-cal, rms=0.448424Jy  sigma=0.001734
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000415475 Jy
! Component: 100  -  total flux cleaned = 0.000573142 Jy
! Component: 150  -  total flux cleaned = 0.000571882 Jy
! Component: 200  -  total flux cleaned = 0.000574069 Jy
! Total flux subtracted in 200 components = 0.000574069 Jy
! Clean residual min=-0.005860 max=0.005177 Jy/beam
! Clean residual mean=-0.000047 rms=0.001221 Jy/beam
! Combined flux in latest and established models = 2.60296 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 172 components and 2.60296 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.448262Jy  sigma=0.001731
! Fit after  self-cal, rms=0.448258Jy  sigma=0.001731
! 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.448258Jy  sigma=0.001731
! Fit after  self-cal, rms=0.451507Jy  sigma=0.001729
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.021 mas, bmaj=4.295 mas, bpa=4.733 degrees
! Estimated noise=589.337 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.40176 Jy
! Component: 100  -  total flux cleaned = 1.77408 Jy
! Component: 150  -  total flux cleaned = 1.96094 Jy
! Component: 200  -  total flux cleaned = 2.08211 Jy
! Total flux subtracted in 200 components = 2.08211 Jy
! Clean residual min=-0.018897 max=0.068178 Jy/beam
! Clean residual mean=0.000121 rms=0.007165 Jy/beam
! Combined flux in latest and established models = 2.08211 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 46 model components to the UV plane model.
! The established model now contains 46 components and 2.08211 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.895 mas, bmaj=5.287 mas, bpa=8.529 degrees
! Estimated noise=304.807 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.168921 Jy
! Component: 100  -  total flux cleaned = 0.267082 Jy
! Component: 150  -  total flux cleaned = 0.331798 Jy
! Component: 200  -  total flux cleaned = 0.377118 Jy
! Total flux subtracted in 200 components = 0.377118 Jy
! Clean residual min=-0.009065 max=0.025943 Jy/beam
! Clean residual mean=0.000819 rms=0.004760 Jy/beam
! Combined flux in latest and established models = 2.45923 Jy
! Adding 86 model components to the UV plane model.
! The established model now contains 114 components and 2.45923 Jy
! Inverting map 
! Added new window around map position (-3, 5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0330759 Jy
! Component: 100  -  total flux cleaned = 0.0575825 Jy
! Component: 150  -  total flux cleaned = 0.0763001 Jy
! Component: 200  -  total flux cleaned = 0.0908153 Jy
! Total flux subtracted in 200 components = 0.0908153 Jy
! Clean residual min=-0.005965 max=0.009687 Jy/beam
! Clean residual mean=0.000279 rms=0.001985 Jy/beam
! Combined flux in latest and established models = 2.55004 Jy
! Adding 52 model components to the UV plane model.
! The established model now contains 154 components and 2.55004 Jy
! Inverting map 
! Added new window around map position (2, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0115704 Jy
! Component: 100  -  total flux cleaned = 0.0206251 Jy
! Component: 150  -  total flux cleaned = 0.0267745 Jy
! Component: 200  -  total flux cleaned = 0.029276 Jy
! Total flux subtracted in 200 components = 0.029276 Jy
! Clean residual min=-0.005000 max=0.005140 Jy/beam
! Clean residual mean=0.000105 rms=0.001316 Jy/beam
! Combined flux in latest and established models = 2.57932 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 174 components and 2.57932 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.061 mas, bmaj=10.28 mas, bpa=-1.446 degrees
! Estimated noise=361.788 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00805462 Jy
! Component: 100  -  total flux cleaned = 0.0127286 Jy
! Component: 150  -  total flux cleaned = 0.0158425 Jy
! Component: 200  -  total flux cleaned = 0.0170375 Jy
! Total flux subtracted in 200 components = 0.0170375 Jy
! Clean residual min=-0.004534 max=0.004862 Jy/beam
! Clean residual mean=0.000010 rms=0.001642 Jy/beam
! Combined flux in latest and established models = 2.59636 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.000599458 Jy
! Component: 100  -  total flux cleaned = 0.000922366 Jy
! Component: 150  -  total flux cleaned = 0.00115382 Jy
! Component: 200  -  total flux cleaned = 0.00136372 Jy
! Total flux subtracted in 200 components = 0.00136372 Jy
! Clean residual min=-0.004414 max=0.004793 Jy/beam
! Clean residual mean=-0.000011 rms=0.001583 Jy/beam
! Combined flux in latest and established models = 2.59772 Jy
! Adding 77 model components to the UV plane model.
! The established model now contains 244 components and 2.59772 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.895 mas, bmaj=5.287 mas, bpa=8.529 degrees
! Estimated noise=304.807 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00144194 Jy
! Component: 100  -  total flux cleaned = -0.000888551 Jy
! Component: 150  -  total flux cleaned = -0.000723728 Jy
! Component: 200  -  total flux cleaned = -0.000726028 Jy
! Total flux subtracted in 200 components = -0.000726028 Jy
! Clean residual min=-0.004102 max=0.004820 Jy/beam
! Clean residual mean=0.000003 rms=0.001039 Jy/beam
! Combined flux in latest and established models = 2.597 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 248 components and 2.597 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.451242Jy  sigma=0.001725
! Fit after  self-cal, rms=0.451133Jy  sigma=0.001722
wmodel J0237+2848_S_2003_06_18_pus_map.mod
! Writing 248 model components to file: J0237+2848_S_2003_06_18_pus_map.mod
wobs J0237+2848_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J0237+2848_S_2003_06_18_pus_uvs.fits
wwins J0237+2848_S_2003_06_18_pus_map.win
! wwins: Wrote 5 windows to J0237+2848_S_2003_06_18_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.000372458 Jy
! Component: 100  -  total flux cleaned = 2.51519e-05 Jy
! Component: 150  -  total flux cleaned = -0.000372375 Jy
! Component: 200  -  total flux cleaned = -0.000694302 Jy
! Component: 250  -  total flux cleaned = -0.000943286 Jy
! Component: 300  -  total flux cleaned = -0.00124218 Jy
! Component: 350  -  total flux cleaned = -0.00153247 Jy
! Component: 400  -  total flux cleaned = -0.0017596 Jy
! Component: 450  -  total flux cleaned = -0.00203626 Jy
! Component: 500  -  total flux cleaned = -0.00219869 Jy
! Component: 550  -  total flux cleaned = -0.00235804 Jy
! Component: 600  -  total flux cleaned = -0.00256686 Jy
! Component: 650  -  total flux cleaned = -0.0026176 Jy
! Component: 700  -  total flux cleaned = -0.00266774 Jy
! Component: 750  -  total flux cleaned = -0.00276706 Jy
! Component: 800  -  total flux cleaned = -0.00281548 Jy
! Component: 850  -  total flux cleaned = -0.00271815 Jy
! Component: 900  -  total flux cleaned = -0.00276649 Jy
! Component: 950  -  total flux cleaned = -0.00276693 Jy
! Component: 1000  -  total flux cleaned = -0.00276727 Jy
! Component: 1050  -  total flux cleaned = -0.00276763 Jy
! Component: 1100  -  total flux cleaned = -0.0027676 Jy
! Component: 1150  -  total flux cleaned = -0.00281275 Jy
! Component: 1200  -  total flux cleaned = -0.002768 Jy
! Component: 1250  -  total flux cleaned = -0.00276831 Jy
! Component: 1300  -  total flux cleaned = -0.00281223 Jy
! Component: 1350  -  total flux cleaned = -0.00281231 Jy
! Component: 1400  -  total flux cleaned = -0.00276969 Jy
! Component: 1450  -  total flux cleaned = -0.00281246 Jy
! Component: 1500  -  total flux cleaned = -0.00272757 Jy
! Component: 1550  -  total flux cleaned = -0.00272753 Jy
! Component: 1600  -  total flux cleaned = -0.002686 Jy
! Component: 1650  -  total flux cleaned = -0.00264507 Jy
! Component: 1700  -  total flux cleaned = -0.00268588 Jy
! Component: 1750  -  total flux cleaned = -0.00264523 Jy
! Component: 1800  -  total flux cleaned = -0.00268516 Jy
! Component: 1850  -  total flux cleaned = -0.00260478 Jy
! Component: 1900  -  total flux cleaned = -0.00272366 Jy
! Component: 1950  -  total flux cleaned = -0.00268375 Jy
! Component: 2000  -  total flux cleaned = -0.00260549 Jy
! Total flux subtracted in 2048 components = -0.00268349 Jy
! Clean residual min=-0.002316 max=0.002017 Jy/beam
! Clean residual mean=0.000018 rms=0.000729 Jy/beam
! Combined flux in latest and established models = 2.59431 Jy
keep
! Adding 127 model components to the UV plane model.
! The established model now contains 367 components and 2.59431 Jy
wmap "J0237+2848_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.895 x 5.287 at 8.529 degrees (North through East)
! Clean map  min=-0.0044181  max=1.8511 Jy/beam
! Writing clean map to FITS file: J0237+2848_S_2003_06_18_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.85106 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000731061 
device "J0237+2848_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J0237+2848_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.118483 0.118483 0.236965 0.47393 0.94786 1.89572 3.79144 7.58288 15.1658 30.3315 60.6631
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.851 
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.895 x 5.287 at 8.529 degrees (North through East)
! Clean map  min=-0.0044181  max=1.8511 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0237+2848_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J0237+2848_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0237+2848_S_2003_06_18_pus_uvs.log closed on Wed Jan 24 17:01:39 2007