! Started logfile: J0808+4950_X_2003_05_07_pus_uvs.log on Thu Dec 14 15:07:05 2006
obs J0808+4950_X_2003_05_07_pus_uva.fits
! Reading UV FITS file: J0808+4950_X_2003_05_07_pus_uva.fits
! AN table 1: 69 integrations on 171 of 171 possible baselines.
! AN table 2: 91 integrations on 171 of 171 possible baselines.
! AN table 3: 137 integrations on 171 of 171 possible baselines.
! AN table 4: 308 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0776183 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0808+4950
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1739 lines of history.
! 
! Reading 32120 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
float field_size
field_size = 256
float field_cell
field_cell = 0.2
float taper_size
taper_size = 70.
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 = 256x256 pixels with 0.200x0.200 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 825 telescope corrections were flagged in sub-array 1.
!  A total of 1288 telescope corrections were flagged in sub-array 2.
!  A total of 1924 telescope corrections were flagged in sub-array 3.
!  A total of 4990 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 795 telescope corrections were flagged in sub-array 1.
!  A total of 1275 telescope corrections were flagged in sub-array 2.
!  A total of 1924 telescope corrections were flagged in sub-array 3.
!  A total of 5056 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 795 telescope corrections were flagged in sub-array 1.
!  A total of 1274 telescope corrections were flagged in sub-array 2.
!  A total of 1900 telescope corrections were flagged in sub-array 3.
!  A total of 5002 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 795 telescope corrections were flagged in sub-array 1.
!  A total of 1274 telescope corrections were flagged in sub-array 2.
!  A total of 1900 telescope corrections were flagged in sub-array 3.
!  A total of 5068 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.889745Jy  sigma=0.007641
! Fit after  self-cal, rms=0.698430Jy  sigma=0.005885
! 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 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! Estimated beam: bmin=0.5383 mas, bmaj=0.8199 mas, bpa=-5.866 degrees
! Estimated noise=1002.15 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.2438 Jy
! Component: 100  -  total flux cleaned = 0.304878 Jy
! Total flux subtracted in 100 components = 0.304878 Jy
! Clean residual min=-0.008563 max=0.025767 Jy/beam
! Clean residual mean=0.000147 rms=0.002937 Jy/beam
! Combined flux in latest and established models = 0.304878 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.304878 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240024Jy  sigma=0.001428
! Fit after  self-cal, rms=0.239845Jy  sigma=0.001428
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0286251 Jy
! Component: 100  -  total flux cleaned = 0.0458542 Jy
! Total flux subtracted in 100 components = 0.0458542 Jy
! Clean residual min=-0.008387 max=0.017321 Jy/beam
! Clean residual mean=0.000085 rms=0.002363 Jy/beam
! Combined flux in latest and established models = 0.350732 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 13 components and 0.350732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233650Jy  sigma=0.001325
! Fit after  self-cal, rms=0.233380Jy  sigma=0.001325
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! Added new window around map position (0.8, -1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0173345 Jy
! Component: 100  -  total flux cleaned = 0.0292155 Jy
! Total flux subtracted in 100 components = 0.0292155 Jy
! Clean residual min=-0.008296 max=0.011001 Jy/beam
! Clean residual mean=0.000049 rms=0.002092 Jy/beam
! Combined flux in latest and established models = 0.379948 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 20 components and 0.379948 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231030Jy  sigma=0.001286
! Fit after  self-cal, rms=0.230837Jy  sigma=0.001284
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
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 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! Estimated beam: bmin=0.877 mas, bmaj=1.099 mas, bpa=-0.2905 degrees
! Estimated noise=498.955 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.0185224 Jy
! Component: 100  -  total flux cleaned = 0.0284136 Jy
! Component: 150  -  total flux cleaned = 0.0343672 Jy
! Component: 200  -  total flux cleaned = 0.0380578 Jy
! Total flux subtracted in 200 components = 0.0380578 Jy
! Clean residual min=-0.005118 max=0.007563 Jy/beam
! Clean residual mean=-0.000185 rms=0.001414 Jy/beam
! Combined flux in latest and established models = 0.418005 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 44 components and 0.418005 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229528Jy  sigma=0.001262
! Fit after  self-cal, rms=0.229424Jy  sigma=0.001261
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.95     GG        1.00*    HN        0.99     
!   KK        1.18     KP        1.08     LA        0.95     MA        1.00*    
!   MC        1.00*    MK        0.95     NL        1.03     ON        1.00*    
!   OV        0.97     PT        0.97     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.98     GG        1.00*    HN        1.05     
!   KK        0.99     KP        1.05     LA        1.00     MA        1.00*    
!   MC        1.00*    MK        1.00     NL        1.07     ON        1.00*    
!   OV        0.95     PT        0.98     SC        0.97     TC        1.00*    
!   TS        1.00*    WF        1.07     WZ        1.00*    
! 
!  A total of 90 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.92     FD        1.01     GG        1.00*    HN        0.98     
!   KK        1.09     KP        1.06     LA        0.94     MA        1.00*    
!   MC        0.96     MK        1.00     NL        1.00*    ON        1.00*    
!   OV        0.98     PT        0.91     SC        0.96     TC        1.00*    
!   TS        1.00*    WF        1.01     WZ        1.00*    
! 
!  A total of 192 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        1.00*    GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.17     LA        1.03     MA        0.96     
!   MC        1.03     MK        1.00*    NL        1.08     ON        0.93     
!   OV        1.00*    PT        1.03     SC        1.00*    TC        1.00*    
!   TS        0.99     WF        1.09     WZ        1.04     
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.97     GG        1.00*    HN        0.99     
!   KK        1.18     KP        1.02     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        0.97     NL        1.00     ON        1.00*    
!   OV        0.92     PT        1.00     SC        1.00*    TC        1.00*    
!   TS        1.15     WF        1.04     WZ        1.00*    
! 
!  A total of 27 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.09     
!   KK        1.00     KP        0.99     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        1.01     NL        1.02     ON        1.00*    
!   OV        0.93     PT        1.00     SC        0.94     TC        1.00*    
!   TS        1.20     WF        1.07     WZ        1.00*    
! 
!  A total of 90 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.00     GG        1.00*    HN        0.96     
!   KK        1.15     KP        1.01     LA        0.91     MA        1.00*    
!   MC        0.88     MK        1.02     NL        1.00*    ON        1.00*    
!   OV        0.96     PT        0.96     SC        0.91     TC        1.00*    
!   TS        1.00*    WF        1.06     WZ        1.00*    
! 
!  A total of 147 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.00*    GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.05     LA        0.98     MA        0.94     
!   MC        0.99     MK        1.00*    NL        1.04     ON        0.96     
!   OV        1.00*    PT        1.16     SC        1.00*    TC        1.00*    
!   TS        1.01     WF        1.22     WZ        1.05     
! 
! 
! Correcting IF 3.
!  A total of 9 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.98     
!   KK        1.18     KP        0.91     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        0.98     NL        0.99     ON        1.00*    
!   OV        0.99     PT        1.04     SC        1.00*    TC        1.00*    
!   TS        1.19     WF        0.97     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.98     GG        1.00*    HN        1.06     
!   KK        1.00     KP        0.95     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        1.01     NL        1.01     ON        1.00*    
!   OV        0.96     PT        1.06     SC        0.91     TC        1.00*    
!   TS        1.20     WF        0.99     WZ        1.00*    
! 
!  A total of 99 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        0.96     
!   KK        1.29     KP        0.94     LA        0.95     MA        1.00*    
!   MC        0.86     MK        1.02     NL        1.00*    ON        1.00*    
!   OV        1.00     PT        0.97     SC        0.92     TC        1.00*    
!   TS        1.00*    WF        0.92     WZ        1.00*    
! 
!  A total of 180 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.06     FD        1.00*    GG        1.00*    HN        1.08     
!   KK        1.00*    KP        0.98     LA        1.01     MA        0.83     
!   MC        0.91     MK        1.00*    NL        0.98     ON        0.93     
!   OV        1.00*    PT        1.09     SC        1.00*    TC        1.00*    
!   TS        1.02     WF        1.01     WZ        1.04     
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.96     GG        1.00*    HN        1.01     
!   KK        1.15     KP        1.02     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        1.02     NL        1.00     ON        1.00*    
!   OV        0.95     PT        1.04     SC        1.00*    TC        1.00*    
!   TS        1.14     WF        0.96     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.94     GG        1.00*    HN        1.10     
!   KK        0.98     KP        1.00     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        1.02     NL        1.03     ON        1.00*    
!   OV        0.96     PT        1.08     SC        0.97     TC        1.00*    
!   TS        1.19     WF        0.96     WZ        1.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.96     GG        1.00*    HN        0.99     
!   KK        1.23     KP        0.99     LA        0.87     MA        1.00*    
!   MC        0.91     MK        1.04     NL        1.00*    ON        1.00*    
!   OV        1.00     PT        1.00     SC        0.96     TC        1.00*    
!   TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  A total of 135 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.00*    GG        1.00*    HN        1.09     
!   KK        1.00*    KP        1.07     LA        0.99     MA        0.87     
!   MC        0.91     MK        1.00*    NL        1.01     ON        0.93     
!   OV        1.00*    PT        1.09     SC        1.00*    TC        1.00*    
!   TS        1.08     WF        1.12     WZ        1.01     
! 
! 
! Fit before self-cal, rms=0.229424Jy  sigma=0.001261
! Fit after  self-cal, rms=0.224035Jy  sigma=0.001246
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! Estimated beam: bmin=0.8859 mas, bmaj=1.103 mas, bpa=-0.8584 degrees
! Estimated noise=505.47 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.00129388 Jy
! Component: 100  -  total flux cleaned = 0.00178916 Jy
! Component: 150  -  total flux cleaned = 0.00184555 Jy
! Component: 200  -  total flux cleaned = 0.00189471 Jy
! Total flux subtracted in 200 components = 0.00189471 Jy
! Clean residual min=-0.002847 max=0.003182 Jy/beam
! Clean residual mean=0.000031 rms=0.000813 Jy/beam
! Combined flux in latest and established models = 0.4199 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 47 components and 0.4199 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.223975Jy  sigma=0.001245
! Fit after  self-cal, rms=0.223916Jy  sigma=0.001245
! Inverting map 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
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.223916Jy  sigma=0.001245
! Fit after  self-cal, rms=0.224160Jy  sigma=0.001240
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! Estimated beam: bmin=0.8869 mas, bmaj=1.102 mas, bpa=-0.6675 degrees
! Estimated noise=504.913 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00108096 Jy
! Component: 100  -  total flux cleaned = 0.00119776 Jy
! Component: 150  -  total flux cleaned = 0.00127513 Jy
! Component: 200  -  total flux cleaned = 0.00127371 Jy
! Total flux subtracted in 200 components = 0.00127371 Jy
! Clean residual min=-0.002495 max=0.002986 Jy/beam
! Clean residual mean=0.000166 rms=0.000694 Jy/beam
! Combined flux in latest and established models = 0.421174 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 52 components and 0.421174 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224128Jy  sigma=0.001240
! Fit after  self-cal, rms=0.224164Jy  sigma=0.001239
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
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.04506e-06 Jy
! Component: 100  -  total flux cleaned = 0.000114967 Jy
! Component: 150  -  total flux cleaned = 0.000143729 Jy
! Component: 200  -  total flux cleaned = 0.000194375 Jy
! Total flux subtracted in 200 components = 0.000194375 Jy
! Clean residual min=-0.002524 max=0.003006 Jy/beam
! Clean residual mean=0.000162 rms=0.000687 Jy/beam
! Combined flux in latest and established models = 0.421368 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 52 components and 0.421368 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.224149Jy  sigma=0.001239
! Fit after  self-cal, rms=0.224147Jy  sigma=0.001239
! Inverting map 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
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.224147Jy  sigma=0.001239
! Fit after  self-cal, rms=0.227359Jy  sigma=0.001238
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! Estimated beam: bmin=0.8885 mas, bmaj=1.103 mas, bpa=-0.9893 degrees
! Estimated noise=505.527 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000388179 Jy
! Component: 100  -  total flux cleaned = 0.000603314 Jy
! Component: 150  -  total flux cleaned = 0.000633333 Jy
! Component: 200  -  total flux cleaned = 0.000635323 Jy
! Total flux subtracted in 200 components = 0.000635323 Jy
! Clean residual min=-0.002596 max=0.002765 Jy/beam
! Clean residual mean=0.000132 rms=0.000675 Jy/beam
! Combined flux in latest and established models = 0.422003 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 53 components and 0.422003 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227343Jy  sigma=0.001238
! Fit after  self-cal, rms=0.227548Jy  sigma=0.001238
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
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 = -4.26634e-05 Jy
! Component: 100  -  total flux cleaned = -1.5185e-05 Jy
! Component: 150  -  total flux cleaned = 6.88289e-06 Jy
! Component: 200  -  total flux cleaned = 6.74871e-06 Jy
! Total flux subtracted in 200 components = 6.74871e-06 Jy
! Clean residual min=-0.002585 max=0.002779 Jy/beam
! Clean residual mean=0.000135 rms=0.000673 Jy/beam
! Combined flux in latest and established models = 0.42201 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 56 components and 0.42201 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227538Jy  sigma=0.001238
! Fit after  self-cal, rms=0.227537Jy  sigma=0.001238
! Inverting map 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.227537Jy  sigma=0.001238
! Fit after  self-cal, rms=0.228817Jy  sigma=0.001237
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! Estimated beam: bmin=2.269 mas, bmaj=3.109 mas, bpa=78.7 degrees
! Estimated noise=621.142 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0016145 Jy
! Component: 100  -  total flux cleaned = 0.00164298 Jy
! Component: 150  -  total flux cleaned = 0.00164112 Jy
! Component: 200  -  total flux cleaned = 0.00163881 Jy
! Total flux subtracted in 200 components = 0.00163881 Jy
! Clean residual min=-0.002152 max=0.002717 Jy/beam
! Clean residual mean=0.000244 rms=0.000684 Jy/beam
! Combined flux in latest and established models = 0.423649 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 57 components and 0.423649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228817Jy  sigma=0.001238
! Fit after  self-cal, rms=0.228858Jy  sigma=0.001238
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
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.000142982 Jy
! Component: 100  -  total flux cleaned = 0.000183018 Jy
! Component: 150  -  total flux cleaned = 0.000182759 Jy
! Component: 200  -  total flux cleaned = 0.000183638 Jy
! Total flux subtracted in 200 components = 0.000183638 Jy
! Clean residual min=-0.002148 max=0.002711 Jy/beam
! Clean residual mean=0.000242 rms=0.000687 Jy/beam
! Combined flux in latest and established models = 0.423832 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 57 components and 0.423832 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228858Jy  sigma=0.001238
! Fit after  self-cal, rms=0.228857Jy  sigma=0.001238
! Inverting map 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
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 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! Estimated beam: bmin=0.8902 mas, bmaj=1.104 mas, bpa=-1.092 degrees
! Estimated noise=506.076 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8902 x 1.104 at -1.092 degrees (North through East)
! Clean map  min=-0.0024545  max=0.33386 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! Estimated beam: bmin=0.5496 mas, bmaj=0.8334 mas, bpa=-7.724 degrees
! Estimated noise=987.818 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.246177 Jy
! Component: 100  -  total flux cleaned = 0.30458 Jy
! Component: 150  -  total flux cleaned = 0.332598 Jy
! Component: 200  -  total flux cleaned = 0.351829 Jy
! Total flux subtracted in 200 components = 0.351829 Jy
! Clean residual min=-0.005634 max=0.010842 Jy/beam
! Clean residual mean=0.000096 rms=0.001727 Jy/beam
! Combined flux in latest and established models = 0.351829 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 16 model components to the UV plane model.
! The established model now contains 16 components and 0.351829 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! Estimated beam: bmin=0.8902 mas, bmaj=1.104 mas, bpa=-1.092 degrees
! Estimated noise=506.076 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.0296805 Jy
! Component: 100  -  total flux cleaned = 0.0458435 Jy
! Component: 150  -  total flux cleaned = 0.0554169 Jy
! Component: 200  -  total flux cleaned = 0.0612409 Jy
! Total flux subtracted in 200 components = 0.0612409 Jy
! Clean residual min=-0.002428 max=0.004207 Jy/beam
! Clean residual mean=0.000285 rms=0.000821 Jy/beam
! Combined flux in latest and established models = 0.41307 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 47 components and 0.41307 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! Added new window around map position (1.2, 0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0043253 Jy
! Component: 100  -  total flux cleaned = 0.00681765 Jy
! Component: 150  -  total flux cleaned = 0.00772427 Jy
! Component: 200  -  total flux cleaned = 0.00816201 Jy
! Total flux subtracted in 200 components = 0.00816201 Jy
! Clean residual min=-0.002371 max=0.002732 Jy/beam
! Clean residual mean=0.000147 rms=0.000656 Jy/beam
! Combined flux in latest and established models = 0.421232 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 62 components and 0.421232 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! Estimated beam: bmin=2.269 mas, bmaj=3.109 mas, bpa=78.7 degrees
! Estimated noise=621.142 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00184968 Jy
! Component: 100  -  total flux cleaned = 0.00255508 Jy
! Component: 150  -  total flux cleaned = 0.00261347 Jy
! Component: 200  -  total flux cleaned = 0.00264716 Jy
! Total flux subtracted in 200 components = 0.00264716 Jy
! Clean residual min=-0.001892 max=0.002689 Jy/beam
! Clean residual mean=0.000236 rms=0.000682 Jy/beam
! Combined flux in latest and established models = 0.423879 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 = 1.53163e-05 Jy
! Component: 100  -  total flux cleaned = 4.4006e-05 Jy
! Component: 150  -  total flux cleaned = 6.98336e-05 Jy
! Component: 200  -  total flux cleaned = 6.94419e-05 Jy
! Total flux subtracted in 200 components = 6.94419e-05 Jy
! Clean residual min=-0.001865 max=0.002693 Jy/beam
! Clean residual mean=0.000233 rms=0.000678 Jy/beam
! Combined flux in latest and established models = 0.423949 Jy
! Adding 8 model components to the UV plane model.
! The established model now contains 66 components and 0.423949 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! Estimated beam: bmin=0.8902 mas, bmaj=1.104 mas, bpa=-1.092 degrees
! Estimated noise=506.076 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00113732 Jy
! Component: 100  -  total flux cleaned = -0.00109766 Jy
! Component: 150  -  total flux cleaned = -0.00102575 Jy
! Component: 200  -  total flux cleaned = -0.000992035 Jy
! Total flux subtracted in 200 components = -0.000992035 Jy
! Clean residual min=-0.002442 max=0.002587 Jy/beam
! Clean residual mean=0.000119 rms=0.000641 Jy/beam
! Combined flux in latest and established models = 0.422957 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 73 components and 0.422957 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228788Jy  sigma=0.001237
! Fit after  self-cal, rms=0.228782Jy  sigma=0.001237
wmodel J0808+4950_X_2003_05_07_pus_map.mod
! Writing 73 model components to file: J0808+4950_X_2003_05_07_pus_map.mod
wobs J0808+4950_X_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J0808+4950_X_2003_05_07_pus_uvs.fits
wwins J0808+4950_X_2003_05_07_pus_map.win
! wwins: Wrote 3 windows to J0808+4950_X_2003_05_07_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000405797 Jy
! Component: 100  -  total flux cleaned = 0.00085204 Jy
! Component: 150  -  total flux cleaned = 0.00138459 Jy
! Component: 200  -  total flux cleaned = 0.00189009 Jy
! Component: 250  -  total flux cleaned = 0.00233959 Jy
! Component: 300  -  total flux cleaned = 0.00277482 Jy
! Component: 350  -  total flux cleaned = 0.00310079 Jy
! Component: 400  -  total flux cleaned = 0.00335561 Jy
! Component: 450  -  total flux cleaned = 0.0036678 Jy
! Component: 500  -  total flux cleaned = 0.00394303 Jy
! Component: 550  -  total flux cleaned = 0.00415277 Jy
! Component: 600  -  total flux cleaned = 0.00438769 Jy
! Component: 650  -  total flux cleaned = 0.00453226 Jy
! Component: 700  -  total flux cleaned = 0.00473185 Jy
! Component: 750  -  total flux cleaned = 0.00495572 Jy
! Component: 800  -  total flux cleaned = 0.00514888 Jy
! Component: 850  -  total flux cleaned = 0.00531201 Jy
! Component: 900  -  total flux cleaned = 0.00544624 Jy
! Component: 950  -  total flux cleaned = 0.00552588 Jy
! Component: 1000  -  total flux cleaned = 0.00563116 Jy
! Total flux subtracted in 1024 components = 0.00565732 Jy
! Clean residual min=-0.001298 max=0.001604 Jy/beam
! Clean residual mean=0.000016 rms=0.000508 Jy/beam
! Combined flux in latest and established models = 0.428614 Jy
keep
! Adding 72 model components to the UV plane model.
! The established model now contains 145 components and 0.428614 Jy
wmap "J0808+4950_X_2003_05_07_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8902 x 1.104 at -1.092 degrees (North through East)
! Clean map  min=-0.0021376  max=0.33487 Jy/beam
! Writing clean map to FITS file: J0808+4950_X_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.334869 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.26% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000509004 
device "J0808+4950_X_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J0808+4950_X_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.456003 0.456003 0.912006 1.82401 3.64802 7.29605 14.5921 29.1842 58.3684
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.334 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8902 x 1.104 at -1.092 degrees (North through East)
! Clean map  min=-0.0021376  max=0.33487 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0808+4950_X_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J0808+4950_X_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0808+4950_X_2003_05_07_pus_uvs.log closed on Thu Dec 14 15:09:55 2006