! Started logfile: J0242+1101_S_2003_06_18_pus_uvs.log on Wed Jan 24 17:05:14 2007
obs J0242+1101_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J0242+1101_S_2003_06_18_pus_uva.fits
! AN table 1: 185 integrations on 153 of 153 possible baselines.
! AN table 2: 43 integrations on 153 of 153 possible baselines.
! AN table 3: 258 integrations on 153 of 153 possible baselines.
! AN table 4: 52 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.166436 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0242+1101
! 
! 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 54800 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 2588 telescope corrections were flagged in sub-array 1.
!  A total of 651 telescope corrections were flagged in sub-array 2.
!  A total of 2651 telescope corrections were flagged in sub-array 3.
!  A total of 936 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 2494 telescope corrections were flagged in sub-array 1.
!  A total of 651 telescope corrections were flagged in sub-array 2.
!  A total of 2651 telescope corrections were flagged in sub-array 3.
!  A total of 936 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 2494 telescope corrections were flagged in sub-array 1.
!  A total of 651 telescope corrections were flagged in sub-array 2.
!  A total of 2651 telescope corrections were flagged in sub-array 3.
!  A total of 936 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 2494 telescope corrections were flagged in sub-array 1.
!  A total of 651 telescope corrections were flagged in sub-array 2.
!  A total of 2651 telescope corrections were flagged in sub-array 3.
!  A total of 936 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.859289Jy  sigma=0.008487
! Fit after  self-cal, rms=0.641320Jy  sigma=0.006169
! 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.952 mas, bmaj=4.69 mas, bpa=2.302 degrees
! Estimated noise=657.994 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.584905 Jy
! Component: 100  -  total flux cleaned = 0.851829 Jy
! Total flux subtracted in 100 components = 0.851829 Jy
! Clean residual min=-0.038578 max=0.140766 Jy/beam
! Clean residual mean=0.000984 rms=0.013665 Jy/beam
! Combined flux in latest and established models = 0.851829 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 0.851829 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.529481Jy  sigma=0.004935
! Fit after  self-cal, rms=0.526722Jy  sigma=0.004909
! Inverting map 
! Added new window around map position (2, -1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.16974 Jy
! Component: 100  -  total flux cleaned = 0.265053 Jy
! Total flux subtracted in 100 components = 0.265053 Jy
! Clean residual min=-0.025698 max=0.066645 Jy/beam
! Clean residual mean=0.000403 rms=0.007601 Jy/beam
! Combined flux in latest and established models = 1.11688 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 24 components and 1.11688 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.457580Jy  sigma=0.003498
! Fit after  self-cal, rms=0.456391Jy  sigma=0.003468
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0703144 Jy
! Component: 100  -  total flux cleaned = 0.113 Jy
! Total flux subtracted in 100 components = 0.113 Jy
! Clean residual min=-0.019163 max=0.027663 Jy/beam
! Clean residual mean=0.000161 rms=0.005272 Jy/beam
! Combined flux in latest and established models = 1.22988 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 33 components and 1.22988 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.443036Jy  sigma=0.003129
! Fit after  self-cal, rms=0.442648Jy  sigma=0.003125
! 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.512 mas, bmaj=5.728 mas, bpa=-4.089 degrees
! Estimated noise=280.551 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.0479463 Jy
! Component: 100  -  total flux cleaned = 0.0745404 Jy
! Component: 150  -  total flux cleaned = 0.0911336 Jy
! Component: 200  -  total flux cleaned = 0.10181 Jy
! Total flux subtracted in 200 components = 0.10181 Jy
! Clean residual min=-0.019334 max=0.016680 Jy/beam
! Clean residual mean=-0.000830 rms=0.004575 Jy/beam
! Combined flux in latest and established models = 1.33169 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 54 components and 1.33169 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.438219Jy  sigma=0.003004
! Fit after  self-cal, rms=0.437878Jy  sigma=0.003001
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.94     GG        1.00*    HN        1.04     
!   KK        1.00*    KP        0.93     LA        0.97     MA        1.00*    
!   MK        0.95     NL        1.03     ON        1.00*    OV        0.96     
!   PT        0.97     SC        1.01     TC        1.00*    TS        1.20     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00*    GG        1.00*    HN        0.93     
!   KK        1.04     KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.03     NL        0.85     ON        1.35     OV        1.26     
!   PT        1.00*    SC        0.88     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 147 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.22     FD        0.95     GG        1.00*    HN        0.92     
!   KK        1.03     KP        0.94     LA        0.99     MA        1.00*    
!   MK        0.99     NL        1.01     ON        1.11     OV        0.99     
!   PT        0.99     SC        0.87     TC        1.17     TS        1.00*    
!   WF        1.29     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 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.95     GG        1.00*    HN        2.31     
!   KK        1.00*    KP        1.00     LA        0.98     MA        1.00*    
!   MK        1.04     NL        0.99     ON        1.00*    OV        0.89     
!   PT        0.96     SC        1.01     TC        1.05     TS        1.15     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        1.00*    GG        1.00*    HN        0.93     
!   KK        1.04     KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.11     NL        0.84     ON        1.19     OV        1.02     
!   PT        1.00*    SC        0.90     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 147 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.18     FD        0.97     GG        1.00*    HN        1.03     
!   KK        1.03     KP        1.03     LA        1.00     MA        1.00*    
!   MK        1.06     NL        0.97     ON        0.96     OV        0.76     
!   PT        1.00     SC        0.90     TC        1.19     TS        1.00*    
!   WF        0.99     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 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.96     GG        1.00*    HN        1.11     
!   KK        1.00*    KP        0.99     LA        0.95     MA        1.00*    
!   MK        1.02     NL        0.99     ON        1.00*    OV        0.92     
!   PT        0.99     SC        1.18     TC        1.22     TS        1.18     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.00*    GG        1.00*    HN        1.01     
!   KK        1.03     KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.08     NL        0.85     ON        1.39     OV        1.13     
!   PT        1.00*    SC        1.06     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 147 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.20     FD        0.97     GG        1.00*    HN        1.04     
!   KK        1.04     KP        1.02     LA        0.97     MA        1.00*    
!   MK        1.03     NL        0.98     ON        1.03     OV        1.05     
!   PT        1.01     SC        1.06     TC        1.05     TS        1.00*    
!   WF        1.03     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 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.97     GG        1.00*    HN        1.11     
!   KK        1.00*    KP        1.00     LA        0.98     MA        1.00*    
!   MK        0.98     NL        1.03     ON        1.00*    OV        0.83     
!   PT        1.04     SC        1.19     TC        0.81     TS        1.14     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        1.00*    GG        1.00*    HN        0.99     
!   KK        1.09     KP        1.00*    LA        1.00*    MA        1.00*    
!   MK        1.00     NL        0.88     ON        1.03     OV        1.07     
!   PT        1.00*    SC        1.12     TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 147 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.18     FD        0.99     GG        1.00*    HN        0.87     
!   KK        1.07     KP        1.03     LA        1.02     MA        1.00*    
!   MK        0.98     NL        1.03     ON        1.17     OV        1.00     
!   PT        1.07     SC        1.06     TC        0.96     TS        1.00*    
!   WF        1.02     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.437878Jy  sigma=0.003001
! Fit after  self-cal, rms=0.484959Jy  sigma=0.002696
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.564 mas, bmaj=5.883 mas, bpa=-4.317 degrees
! Estimated noise=283.791 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.00121892 Jy
! Component: 100  -  total flux cleaned = 0.00158272 Jy
! Component: 150  -  total flux cleaned = 0.00159793 Jy
! Component: 200  -  total flux cleaned = 0.00145992 Jy
! Total flux subtracted in 200 components = 0.00145992 Jy
! Clean residual min=-0.006507 max=0.005496 Jy/beam
! Clean residual mean=0.000059 rms=0.001480 Jy/beam
! Combined flux in latest and established models = 1.33315 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 62 components and 1.33315 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.484736Jy  sigma=0.002694
! Fit after  self-cal, rms=0.485975Jy  sigma=0.002692
! 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.485975Jy  sigma=0.002692
! Fit after  self-cal, rms=0.497327Jy  sigma=0.002672
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.563 mas, bmaj=5.901 mas, bpa=-4.301 degrees
! Estimated noise=283.931 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00128087 Jy
! Component: 100  -  total flux cleaned = 0.00102512 Jy
! Component: 150  -  total flux cleaned = 0.000910395 Jy
! Component: 200  -  total flux cleaned = 0.000908142 Jy
! Total flux subtracted in 200 components = 0.000908142 Jy
! Clean residual min=-0.004601 max=0.004857 Jy/beam
! Clean residual mean=0.000137 rms=0.001194 Jy/beam
! Combined flux in latest and established models = 1.33406 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 66 components and 1.33406 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.497197Jy  sigma=0.002671
! Fit after  self-cal, rms=0.497234Jy  sigma=0.002670
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.00012965 Jy
! Component: 100  -  total flux cleaned = 2.51866e-05 Jy
! Component: 150  -  total flux cleaned = 2.77606e-05 Jy
! Component: 200  -  total flux cleaned = -6.95203e-05 Jy
! Total flux subtracted in 200 components = -6.95203e-05 Jy
! Clean residual min=-0.004651 max=0.004659 Jy/beam
! Clean residual mean=0.000137 rms=0.001177 Jy/beam
! Combined flux in latest and established models = 1.33399 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 66 components and 1.33399 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.497151Jy  sigma=0.002670
! Fit after  self-cal, rms=0.497146Jy  sigma=0.002670
! 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.497146Jy  sigma=0.002670
! Fit after  self-cal, rms=0.505131Jy  sigma=0.002664
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.563 mas, bmaj=5.931 mas, bpa=-4.316 degrees
! Estimated noise=284.231 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00174464 Jy
! Component: 100  -  total flux cleaned = 0.00174107 Jy
! Component: 150  -  total flux cleaned = 0.00173885 Jy
! Component: 200  -  total flux cleaned = 0.0016515 Jy
! Total flux subtracted in 200 components = 0.0016515 Jy
! Clean residual min=-0.004271 max=0.003979 Jy/beam
! Clean residual mean=0.000122 rms=0.001121 Jy/beam
! Combined flux in latest and established models = 1.33564 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 66 components and 1.33564 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.505042Jy  sigma=0.002664
! Fit after  self-cal, rms=0.505040Jy  sigma=0.002664
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 = -9.96079e-08 Jy
! Component: 100  -  total flux cleaned = 1.9117e-06 Jy
! Component: 150  -  total flux cleaned = -7.99927e-05 Jy
! Component: 200  -  total flux cleaned = -7.88673e-05 Jy
! Total flux subtracted in 200 components = -7.88673e-05 Jy
! Clean residual min=-0.004447 max=0.003924 Jy/beam
! Clean residual mean=0.000123 rms=0.001113 Jy/beam
! Combined flux in latest and established models = 1.33556 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 67 components and 1.33556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.504975Jy  sigma=0.002664
! Fit after  self-cal, rms=0.504963Jy  sigma=0.002664
! 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.504963Jy  sigma=0.002664
! Fit after  self-cal, rms=0.510714Jy  sigma=0.002664
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.164 mas, bmaj=11.65 mas, bpa=-7.964 degrees
! Estimated noise=367.648 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00236086 Jy
! Component: 100  -  total flux cleaned = 0.00275982 Jy
! Component: 150  -  total flux cleaned = 0.00278815 Jy
! Component: 200  -  total flux cleaned = 0.00275107 Jy
! Total flux subtracted in 200 components = 0.00275107 Jy
! Clean residual min=-0.005364 max=0.005027 Jy/beam
! Clean residual mean=0.000319 rms=0.001533 Jy/beam
! Combined flux in latest and established models = 1.33831 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 75 components and 1.33831 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.510706Jy  sigma=0.002664
! Fit after  self-cal, rms=0.510716Jy  sigma=0.002664
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.000286684 Jy
! Component: 100  -  total flux cleaned = 0.000290932 Jy
! Component: 150  -  total flux cleaned = 0.000254149 Jy
! Component: 200  -  total flux cleaned = 0.000222488 Jy
! Total flux subtracted in 200 components = 0.000222488 Jy
! Clean residual min=-0.005380 max=0.005054 Jy/beam
! Clean residual mean=0.000314 rms=0.001534 Jy/beam
! Combined flux in latest and established models = 1.33854 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 77 components and 1.33854 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.510712Jy  sigma=0.002664
! Fit after  self-cal, rms=0.510715Jy  sigma=0.002664
! 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.562 mas, bmaj=5.949 mas, bpa=-4.308 degrees
! Estimated noise=284.543 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.562 x 5.949 at -4.308 degrees (North through East)
! Clean map  min=-0.0045057  max=0.78304 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.510715Jy  sigma=0.002664
! Fit after  self-cal, rms=1.533579Jy  sigma=0.002012
! Inverting map and beam 
! Estimated beam: bmin=2.562 mas, bmaj=5.92 mas, bpa=-4.325 degrees
! Estimated noise=284.027 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00172375 Jy
! Component: 100  -  total flux cleaned = -0.00179972 Jy
! Component: 150  -  total flux cleaned = -0.00186588 Jy
! Component: 200  -  total flux cleaned = -0.00193065 Jy
! Total flux subtracted in 200 components = -0.00193065 Jy
! Clean residual min=-0.003677 max=0.003330 Jy/beam
! Clean residual mean=0.000125 rms=0.000849 Jy/beam
! Combined flux in latest and established models = 1.33661 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 80 components and 1.33661 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.533566Jy  sigma=0.002011
! Fit after  self-cal, rms=1.533511Jy  sigma=0.002011
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000233801 Jy
! Component: 100  -  total flux cleaned = -0.000235465 Jy
! Component: 150  -  total flux cleaned = -0.000299709 Jy
! Component: 200  -  total flux cleaned = -0.000362174 Jy
! Total flux subtracted in 200 components = -0.000362174 Jy
! Clean residual min=-0.003657 max=0.003295 Jy/beam
! Clean residual mean=0.000127 rms=0.000842 Jy/beam
! Combined flux in latest and established models = 1.33624 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 80 components and 1.33624 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.533498Jy  sigma=0.002011
! Fit after  self-cal, rms=1.533479Jy  sigma=0.002011
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.533479Jy  sigma=0.002011
! Fit after  self-cal, rms=1.560800Jy  sigma=0.002011
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.022 mas, bmaj=4.758 mas, bpa=1.921 degrees
! Estimated noise=698.373 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.607065 Jy
! Component: 100  -  total flux cleaned = 0.893334 Jy
! Component: 150  -  total flux cleaned = 1.05101 Jy
! Component: 200  -  total flux cleaned = 1.14601 Jy
! Total flux subtracted in 200 components = 1.14601 Jy
! Clean residual min=-0.013046 max=0.049524 Jy/beam
! Clean residual mean=0.000426 rms=0.004835 Jy/beam
! Combined flux in latest and established models = 1.14601 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 28 model components to the UV plane model.
! The established model now contains 28 components and 1.14601 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.56 mas, bmaj=5.932 mas, bpa=-4.294 degrees
! Estimated noise=283.939 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.0849648 Jy
! Component: 100  -  total flux cleaned = 0.129508 Jy
! Component: 150  -  total flux cleaned = 0.154264 Jy
! Component: 200  -  total flux cleaned = 0.168256 Jy
! Total flux subtracted in 200 components = 0.168256 Jy
! Clean residual min=-0.003268 max=0.008527 Jy/beam
! Clean residual mean=0.000326 rms=0.001196 Jy/beam
! Combined flux in latest and established models = 1.31427 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 43 components and 1.31427 Jy
! Inverting map 
! Added new window around map position (-2.5, 2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00872847 Jy
! Component: 100  -  total flux cleaned = 0.0138908 Jy
! Component: 150  -  total flux cleaned = 0.016739 Jy
! Component: 200  -  total flux cleaned = 0.0171826 Jy
! Total flux subtracted in 200 components = 0.0171826 Jy
! Clean residual min=-0.003132 max=0.003812 Jy/beam
! Clean residual mean=0.000182 rms=0.000812 Jy/beam
! Combined flux in latest and established models = 1.33145 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 56 components and 1.33145 Jy
! Inverting map 
! Added new window around map position (4.5, 6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0023356 Jy
! Component: 100  -  total flux cleaned = 0.00222313 Jy
! Component: 150  -  total flux cleaned = 0.00232262 Jy
! Component: 200  -  total flux cleaned = 0.00241826 Jy
! Total flux subtracted in 200 components = 0.00241826 Jy
! Clean residual min=-0.003098 max=0.003021 Jy/beam
! Clean residual mean=0.000161 rms=0.000763 Jy/beam
! Combined flux in latest and established models = 1.33387 Jy
! Adding 17 model components to the UV plane model.
! The established model now contains 66 components and 1.33387 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.167 mas, bmaj=11.65 mas, bpa=-7.873 degrees
! Estimated noise=366.975 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000956952 Jy
! Component: 100  -  total flux cleaned = 0.00132217 Jy
! Component: 150  -  total flux cleaned = 0.00159322 Jy
! Component: 200  -  total flux cleaned = 0.00181797 Jy
! Total flux subtracted in 200 components = 0.00181797 Jy
! Clean residual min=-0.002369 max=0.003469 Jy/beam
! Clean residual mean=0.000390 rms=0.000885 Jy/beam
! Combined flux in latest and established models = 1.33569 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.000134384 Jy
! Component: 100  -  total flux cleaned = 0.000235089 Jy
! Component: 150  -  total flux cleaned = 0.000280944 Jy
! Component: 200  -  total flux cleaned = 0.000324816 Jy
! Total flux subtracted in 200 components = 0.000324816 Jy
! Clean residual min=-0.002348 max=0.003456 Jy/beam
! Clean residual mean=0.000383 rms=0.000883 Jy/beam
! Combined flux in latest and established models = 1.33601 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 85 components and 1.33601 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.56 mas, bmaj=5.932 mas, bpa=-4.294 degrees
! Estimated noise=283.939 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000837933 Jy
! Component: 100  -  total flux cleaned = -0.000836289 Jy
! Component: 150  -  total flux cleaned = -0.000842872 Jy
! Component: 200  -  total flux cleaned = -0.000845179 Jy
! Total flux subtracted in 200 components = -0.000845179 Jy
! Clean residual min=-0.003020 max=0.002986 Jy/beam
! Clean residual mean=0.000150 rms=0.000747 Jy/beam
! Combined flux in latest and established models = 1.33516 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 92 components and 1.33516 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.560719Jy  sigma=0.002008
! Fit after  self-cal, rms=1.560352Jy  sigma=0.002007
wmodel J0242+1101_S_2003_06_18_pus_map.mod
! Writing 92 model components to file: J0242+1101_S_2003_06_18_pus_map.mod
wobs J0242+1101_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J0242+1101_S_2003_06_18_pus_uvs.fits
wwins J0242+1101_S_2003_06_18_pus_map.win
! wwins: Wrote 4 windows to J0242+1101_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.000855009 Jy
! Component: 100  -  total flux cleaned = 0.00187322 Jy
! Component: 150  -  total flux cleaned = 0.00293898 Jy
! Component: 200  -  total flux cleaned = 0.00391591 Jy
! Component: 250  -  total flux cleaned = 0.00490274 Jy
! Component: 300  -  total flux cleaned = 0.00577445 Jy
! Component: 350  -  total flux cleaned = 0.00641337 Jy
! Component: 400  -  total flux cleaned = 0.00691417 Jy
! Component: 450  -  total flux cleaned = 0.0072425 Jy
! Component: 500  -  total flux cleaned = 0.00760586 Jy
! Component: 550  -  total flux cleaned = 0.00792434 Jy
! Component: 600  -  total flux cleaned = 0.00823884 Jy
! Component: 650  -  total flux cleaned = 0.00851062 Jy
! Component: 700  -  total flux cleaned = 0.00874116 Jy
! Component: 750  -  total flux cleaned = 0.0091578 Jy
! Component: 800  -  total flux cleaned = 0.0093075 Jy
! Component: 850  -  total flux cleaned = 0.00949282 Jy
! Component: 900  -  total flux cleaned = 0.00964042 Jy
! Component: 950  -  total flux cleaned = 0.00993227 Jy
! Component: 1000  -  total flux cleaned = 0.0100767 Jy
! Component: 1050  -  total flux cleaned = 0.0102562 Jy
! Component: 1100  -  total flux cleaned = 0.0105046 Jy
! Component: 1150  -  total flux cleaned = 0.0105044 Jy
! Component: 1200  -  total flux cleaned = 0.0106793 Jy
! Component: 1250  -  total flux cleaned = 0.010818 Jy
! Component: 1300  -  total flux cleaned = 0.0110929 Jy
! Component: 1350  -  total flux cleaned = 0.0111611 Jy
! Component: 1400  -  total flux cleaned = 0.0114319 Jy
! Component: 1450  -  total flux cleaned = 0.0115329 Jy
! Component: 1500  -  total flux cleaned = 0.0117994 Jy
! Component: 1550  -  total flux cleaned = 0.0119312 Jy
! Component: 1600  -  total flux cleaned = 0.0120294 Jy
! Component: 1650  -  total flux cleaned = 0.0122249 Jy
! Component: 1700  -  total flux cleaned = 0.0124511 Jy
! Component: 1750  -  total flux cleaned = 0.0125153 Jy
! Component: 1800  -  total flux cleaned = 0.0126751 Jy
! Component: 1850  -  total flux cleaned = 0.0128973 Jy
! Component: 1900  -  total flux cleaned = 0.0130235 Jy
! Component: 1950  -  total flux cleaned = 0.01318 Jy
! Component: 2000  -  total flux cleaned = 0.013336 Jy
! Total flux subtracted in 2048 components = 0.0135213 Jy
! Clean residual min=-0.001998 max=0.001543 Jy/beam
! Clean residual mean=0.000050 rms=0.000556 Jy/beam
! Combined flux in latest and established models = 1.34869 Jy
keep
! Adding 150 model components to the UV plane model.
! The established model now contains 242 components and 1.34869 Jy
wmap "J0242+1101_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.56 x 5.932 at -4.294 degrees (North through East)
! Clean map  min=-0.0024056  max=0.7787 Jy/beam
! Writing clean map to FITS file: J0242+1101_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 0.778705 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000556277 
device "J0242+1101_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J0242+1101_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.214308 0.214308 0.428617 0.857234 1.71447 3.42894 6.85787 13.7157 27.4315 54.863
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0016 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.778 
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.56 x 5.932 at -4.294 degrees (North through East)
! Clean map  min=-0.0024056  max=0.7787 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0242+1101_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J0242+1101_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0242+1101_S_2003_06_18_pus_uvs.log closed on Wed Jan 24 17:08:03 2007