! Started logfile: J0808+4950_S_2003_05_07_pus_uvs.log on Sun Dec 24 09:53:41 2006
obs J0808+4950_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J0808+4950_S_2003_05_07_pus_uva.fits
! AN table 1: 41 integrations on 171 of 171 possible baselines.
! AN table 2: 107 integrations on 171 of 171 possible baselines.
! AN table 3: 12 integrations on 171 of 171 possible baselines.
! AN table 4: 137 integrations on 171 of 171 possible baselines.
! AN table 5: 308 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.077657 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  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 1680 lines of history.
! 
! Reading 32136 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 = 512
float field_cell
field_cell = 0.5
float taper_size
taper_size = 20.
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 630 telescope corrections were flagged in sub-array 1.
!  A total of 1286 telescope corrections were flagged in sub-array 2.
!  A total of 153 telescope corrections were flagged in sub-array 3.
!  A total of 1912 telescope corrections were flagged in sub-array 4.
!  A total of 4996 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 630 telescope corrections were flagged in sub-array 1.
!  A total of 1329 telescope corrections were flagged in sub-array 2.
!  A total of 153 telescope corrections were flagged in sub-array 3.
!  A total of 1912 telescope corrections were flagged in sub-array 4.
!  A total of 5018 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 630 telescope corrections were flagged in sub-array 1.
!  A total of 1329 telescope corrections were flagged in sub-array 2.
!  A total of 153 telescope corrections were flagged in sub-array 3.
!  A total of 1900 telescope corrections were flagged in sub-array 4.
!  A total of 5021 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 630 telescope corrections were flagged in sub-array 1.
!  A total of 1286 telescope corrections were flagged in sub-array 2.
!  A total of 153 telescope corrections were flagged in sub-array 3.
!  A total of 1900 telescope corrections were flagged in sub-array 4.
!  A total of 5042 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.868469Jy  sigma=0.006625
! Fit after  self-cal, rms=0.574606Jy  sigma=0.003904
! 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.946 mas, bmaj=3.12 mas, bpa=-6.68 degrees
! Estimated noise=1169.02 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.354311 Jy
! Component: 100  -  total flux cleaned = 0.459687 Jy
! Total flux subtracted in 100 components = 0.459687 Jy
! Clean residual min=-0.013493 max=0.044586 Jy/beam
! Clean residual mean=0.000154 rms=0.003987 Jy/beam
! Combined flux in latest and established models = 0.459687 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.459687 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289367Jy  sigma=0.001627
! Fit after  self-cal, rms=0.288868Jy  sigma=0.001627
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.048066 Jy
! Component: 100  -  total flux cleaned = 0.076207 Jy
! Total flux subtracted in 100 components = 0.076207 Jy
! Clean residual min=-0.011070 max=0.015151 Jy/beam
! Clean residual mean=0.000077 rms=0.002956 Jy/beam
! Combined flux in latest and established models = 0.535894 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 21 components and 0.535894 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276713Jy  sigma=0.001454
! Fit after  self-cal, rms=0.276382Jy  sigma=0.001453
! 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=3.076 mas, bmaj=4.007 mas, bpa=-0.7665 degrees
! Estimated noise=574.124 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.0327058 Jy
! Component: 100  -  total flux cleaned = 0.048234 Jy
! Component: 150  -  total flux cleaned = 0.0560487 Jy
! Component: 200  -  total flux cleaned = 0.0600567 Jy
! Total flux subtracted in 200 components = 0.0600567 Jy
! Clean residual min=-0.007683 max=0.011813 Jy/beam
! Clean residual mean=0.000036 rms=0.002439 Jy/beam
! Combined flux in latest and established models = 0.595951 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 39 components and 0.595951 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274041Jy  sigma=0.001404
! Fit after  self-cal, rms=0.273792Jy  sigma=0.001403
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00     GG        1.00*    HN        0.69     
!   KK        1.00*    KP        1.04     LA        1.01     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        0.97     ON        1.00*    
!   OV        1.00*    PT        1.04     SC        0.96     TC        1.00*    
!   TS        1.00*    WF        0.84     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.94     FD        0.98     GG        1.00*    HN        0.90     
!   KK        1.04     KP        0.99     LA        1.02     MA        1.00*    
!   MC        1.00*    MK        0.89     NL        0.93     ON        1.00*    
!   OV        1.26     PT        1.00     SC        1.00*    TC        1.00*    
!   TS        1.03     WF        1.27     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.88     FD        0.94     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.94     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        0.82     PT        0.98     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.07     WZ        1.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.92     FD        1.01     GG        1.00*    HN        0.85     
!   KK        1.07     KP        1.01     LA        0.97     MA        1.00*    
!   MC        1.16     MK        0.99     NL        1.00*    ON        1.00*    
!   OV        1.16     PT        0.92     SC        0.86     TC        1.00*    
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
!  A total of 186 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.99     FD        1.00*    GG        1.00*    HN        0.86     
!   KK        1.00*    KP        0.96     LA        1.10     MA        1.11     
!   MC        0.99     MK        1.00*    NL        0.98     ON        1.01     
!   OV        1.00*    PT        1.06     SC        1.00*    TC        1.00*    
!   TS        0.98     WF        1.00     WZ        1.03     
! 
! 
! Correcting IF 2.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.06     GG        1.00*    HN        0.83     
!   KK        1.00*    KP        1.06     LA        1.00     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.01     ON        1.00*    
!   OV        1.00*    PT        1.04     SC        0.97     TC        1.00*    
!   TS        1.00*    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.02     FD        1.02     GG        1.00*    HN        0.98     
!   KK        1.08     KP        0.95     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.00     NL        0.98     ON        1.00*    
!   OV        1.17     PT        0.99     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.01     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.02     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.93     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        0.90     PT        0.98     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.06     WZ        1.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        1.04     GG        1.00*    HN        0.95     
!   KK        1.11     KP        0.98     LA        0.95     MA        1.00*    
!   MC        0.99     MK        1.05     NL        1.00*    ON        1.00*    
!   OV        1.18     PT        0.92     SC        0.88     TC        1.00*    
!   TS        1.00*    WF        1.00     WZ        1.00*    
! 
!  A total of 192 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.07     FD        1.00*    GG        1.00*    HN        1.04     
!   KK        1.00*    KP        0.99     LA        1.07     MA        0.99     
!   MC        1.02     MK        1.00*    NL        1.00     ON        1.08     
!   OV        1.00*    PT        1.01     SC        1.00*    TC        1.00*    
!   TS        1.00     WF        1.00     WZ        0.96     
! 
! 
! Correcting IF 3.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.99     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        1.15     LA        1.02     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00     ON        1.00*    
!   OV        1.00*    PT        1.10     SC        1.13     TC        1.00*    
!   TS        1.00*    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        0.97     FD        0.98     GG        1.00*    HN        0.98     
!   KK        1.08     KP        0.99     LA        0.99     MA        1.00*    
!   MC        1.00*    MK        0.97     NL        1.01     ON        1.00*    
!   OV        1.15     PT        1.04     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.97     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.96     LA        0.95     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        0.87     PT        0.97     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        0.96     WZ        1.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        0.99     GG        1.00*    HN        0.97     
!   KK        1.32     KP        1.02     LA        0.94     MA        1.00*    
!   MC        0.97     MK        1.03     NL        1.00*    ON        1.00*    
!   OV        1.11     PT        0.98     SC        1.00     TC        1.00*    
!   TS        1.00*    WF        0.99     WZ        1.00*    
! 
!  A total of 189 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.03     FD        1.00*    GG        1.00*    HN        1.04     
!   KK        1.00*    KP        1.06     LA        1.02     MA        1.01     
!   MC        0.97     MK        1.00*    NL        1.01     ON        1.02     
!   OV        1.00*    PT        1.07     SC        1.00*    TC        1.00*    
!   TS        1.05     WF        0.99     WZ        1.02     
! 
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.04     GG        1.00*    HN        1.07     
!   KK        1.00*    KP        1.04     LA        1.04     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        0.93     ON        1.00*    
!   OV        1.00*    PT        0.99     SC        1.10     TC        1.00*    
!   TS        1.00*    WF        1.01     WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.98     GG        1.00*    HN        0.94     
!   KK        1.08     KP        0.99     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        1.00     NL        0.95     ON        1.00*    
!   OV        1.01     PT        0.97     SC        1.00*    TC        1.00*    
!   TS        1.06     WF        1.03     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        0.95     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.89     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        0.82     PT        0.93     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.10     WZ        1.00*    
! 
!  A total of 99 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.94     FD        1.00     GG        1.00*    HN        0.90     
!   KK        1.31     KP        0.98     LA        0.92     MA        1.00*    
!   MC        1.02     MK        1.06     NL        1.00*    ON        1.00*    
!   OV        1.07     PT        0.92     SC        1.02     TC        1.00*    
!   TS        1.00*    WF        0.97     WZ        1.00*    
! 
!  A total of 171 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.09     FD        1.00*    GG        1.00*    HN        0.91     
!   KK        1.00*    KP        1.02     LA        1.04     MA        1.04     
!   MC        1.17     MK        1.00*    NL        0.93     ON        0.96     
!   OV        1.00*    PT        1.02     SC        1.00*    TC        1.00*    
!   TS        1.07     WF        1.11     WZ        1.01     
! 
! 
! Fit before self-cal, rms=0.273792Jy  sigma=0.001403
! Fit after  self-cal, rms=0.282324Jy  sigma=0.001361
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.104 mas, bmaj=4.035 mas, bpa=-2.225 degrees
! Estimated noise=580.144 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.000596511 Jy
! Component: 100  -  total flux cleaned = 0.000438233 Jy
! Component: 150  -  total flux cleaned = 0.000368228 Jy
! Component: 200  -  total flux cleaned = 0.000424092 Jy
! Total flux subtracted in 200 components = 0.000424092 Jy
! Clean residual min=-0.005188 max=0.006848 Jy/beam
! Clean residual mean=0.000142 rms=0.001379 Jy/beam
! Combined flux in latest and established models = 0.596375 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 41 components and 0.596375 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.282277Jy  sigma=0.001361
! Fit after  self-cal, rms=0.282642Jy  sigma=0.001360
! Inverting map 
! Added new window around map position (58, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00617286 Jy
! Component: 100  -  total flux cleaned = 0.00770112 Jy
! Component: 150  -  total flux cleaned = 0.00876472 Jy
! Component: 200  -  total flux cleaned = 0.00902416 Jy
! Total flux subtracted in 200 components = 0.00902416 Jy
! Clean residual min=-0.005140 max=0.005250 Jy/beam
! Clean residual mean=0.000027 rms=0.001314 Jy/beam
! Combined flux in latest and established models = 0.605399 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 62 components and 0.605399 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.282431Jy  sigma=0.001359
! Fit after  self-cal, rms=0.282416Jy  sigma=0.001359
! 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.282416Jy  sigma=0.001359
! Fit after  self-cal, rms=0.283006Jy  sigma=0.001356
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.099 mas, bmaj=4.037 mas, bpa=-1.991 degrees
! Estimated noise=580.237 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00354225 Jy
! Component: 100  -  total flux cleaned = 0.00443519 Jy
! Component: 150  -  total flux cleaned = 0.00465864 Jy
! Component: 200  -  total flux cleaned = 0.00485925 Jy
! Total flux subtracted in 200 components = 0.00485925 Jy
! Clean residual min=-0.004817 max=0.005435 Jy/beam
! Clean residual mean=0.000058 rms=0.001272 Jy/beam
! Combined flux in latest and established models = 0.610258 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 69 components and 0.610258 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.282923Jy  sigma=0.001356
! Fit after  self-cal, rms=0.283010Jy  sigma=0.001356
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.000906639 Jy
! Component: 100  -  total flux cleaned = 0.00115744 Jy
! Component: 150  -  total flux cleaned = 0.00132274 Jy
! Component: 200  -  total flux cleaned = 0.00147374 Jy
! Total flux subtracted in 200 components = 0.00147374 Jy
! Clean residual min=-0.004850 max=0.005096 Jy/beam
! Clean residual mean=0.000044 rms=0.001258 Jy/beam
! Combined flux in latest and established models = 0.611732 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 73 components and 0.611732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.282975Jy  sigma=0.001356
! Fit after  self-cal, rms=0.282980Jy  sigma=0.001356
! 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.282980Jy  sigma=0.001356
! Fit after  self-cal, rms=0.298838Jy  sigma=0.001336
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.092 mas, bmaj=4.042 mas, bpa=-2.424 degrees
! Estimated noise=583.763 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00142038 Jy
! Component: 100  -  total flux cleaned = -0.00176341 Jy
! Component: 150  -  total flux cleaned = -0.00212241 Jy
! Component: 200  -  total flux cleaned = -0.00248997 Jy
! Total flux subtracted in 200 components = -0.00248997 Jy
! Clean residual min=-0.004063 max=0.005933 Jy/beam
! Clean residual mean=0.000064 rms=0.001196 Jy/beam
! Combined flux in latest and established models = 0.609242 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 88 components and 0.609242 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298724Jy  sigma=0.001335
! Fit after  self-cal, rms=0.299177Jy  sigma=0.001335
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (5, -7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00535264 Jy
! Component: 100  -  total flux cleaned = 0.00511687 Jy
! Component: 150  -  total flux cleaned = 0.00479345 Jy
! Component: 200  -  total flux cleaned = 0.00465284 Jy
! Total flux subtracted in 200 components = 0.00465284 Jy
! Clean residual min=-0.003790 max=0.004543 Jy/beam
! Clean residual mean=-0.000004 rms=0.001104 Jy/beam
! Combined flux in latest and established models = 0.613895 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 103 components and 0.613895 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299055Jy  sigma=0.001334
! Fit after  self-cal, rms=0.299050Jy  sigma=0.001333
! 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.299050Jy  sigma=0.001333
! Fit after  self-cal, rms=0.306617Jy  sigma=0.001333
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.905 mas, bmaj=10.69 mas, bpa=79.88 degrees
! Estimated noise=738.591 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00126084 Jy
! Component: 100  -  total flux cleaned = 0.000942792 Jy
! Component: 150  -  total flux cleaned = 0.000785198 Jy
! Component: 200  -  total flux cleaned = 0.000717694 Jy
! Total flux subtracted in 200 components = 0.000717694 Jy
! Clean residual min=-0.003873 max=0.005282 Jy/beam
! Clean residual mean=0.000042 rms=0.001265 Jy/beam
! Combined flux in latest and established models = 0.614613 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 127 components and 0.614613 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.306565Jy  sigma=0.001332
! Fit after  self-cal, rms=0.306615Jy  sigma=0.001332
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.000220836 Jy
! Component: 100  -  total flux cleaned = -0.000447368 Jy
! Component: 150  -  total flux cleaned = -0.000540113 Jy
! Component: 200  -  total flux cleaned = -0.000622017 Jy
! Total flux subtracted in 200 components = -0.000622017 Jy
! Clean residual min=-0.003809 max=0.005236 Jy/beam
! Clean residual mean=0.000045 rms=0.001241 Jy/beam
! Combined flux in latest and established models = 0.613991 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 137 components and 0.613991 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.306597Jy  sigma=0.001332
! Fit after  self-cal, rms=0.306589Jy  sigma=0.001332
! Inverting map 
! Added new window around map position (-45, -41.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0042854 Jy
! Component: 100  -  total flux cleaned = 0.00537356 Jy
! Component: 150  -  total flux cleaned = 0.00612927 Jy
! Component: 200  -  total flux cleaned = 0.00647944 Jy
! Total flux subtracted in 200 components = 0.00647944 Jy
! Clean residual min=-0.004054 max=0.003084 Jy/beam
! Clean residual mean=-0.000192 rms=0.001081 Jy/beam
! Combined flux in latest and established models = 0.62047 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 173 components and 0.62047 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.306439Jy  sigma=0.001332
! Fit after  self-cal, rms=0.306430Jy  sigma=0.001332
! 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=3.09 mas, bmaj=4.04 mas, bpa=-2.624 degrees
! Estimated noise=585.297 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.09 x 4.04 at -2.624 degrees (North through East)
! Clean map  min=-0.0039683  max=0.50507 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.306430Jy  sigma=0.001332
! Fit after  self-cal, rms=0.713836Jy  sigma=0.001204
! Inverting map and beam 
! Estimated beam: bmin=3.095 mas, bmaj=4.036 mas, bpa=-2.649 degrees
! Estimated noise=584.203 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000571115 Jy
! Component: 100  -  total flux cleaned = 0.000138402 Jy
! Component: 150  -  total flux cleaned = -0.000176324 Jy
! Component: 200  -  total flux cleaned = -0.000398146 Jy
! Total flux subtracted in 200 components = -0.000398146 Jy
! Clean residual min=-0.003049 max=0.002941 Jy/beam
! Clean residual mean=-0.000057 rms=0.000689 Jy/beam
! Combined flux in latest and established models = 0.620072 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 203 components and 0.620072 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.713809Jy  sigma=0.001203
! Fit after  self-cal, rms=0.713817Jy  sigma=0.001203
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000128757 Jy
! Component: 100  -  total flux cleaned = -0.000196194 Jy
! Component: 150  -  total flux cleaned = -0.000326826 Jy
! Component: 200  -  total flux cleaned = -0.000451981 Jy
! Total flux subtracted in 200 components = -0.000451981 Jy
! Clean residual min=-0.002926 max=0.002876 Jy/beam
! Clean residual mean=-0.000050 rms=0.000674 Jy/beam
! Combined flux in latest and established models = 0.61962 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 221 components and 0.61962 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.713803Jy  sigma=0.001203
! Fit after  self-cal, rms=0.713804Jy  sigma=0.001203
! 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.713804Jy  sigma=0.001203
! Fit after  self-cal, rms=0.972676Jy  sigma=0.001203
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.963 mas, bmaj=3.187 mas, bpa=-8.53 degrees
! Estimated noise=1203.31 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.356888 Jy
! Component: 100  -  total flux cleaned = 0.461631 Jy
! Component: 150  -  total flux cleaned = 0.508955 Jy
! Component: 200  -  total flux cleaned = 0.537406 Jy
! Total flux subtracted in 200 components = 0.537406 Jy
! Clean residual min=-0.008010 max=0.015107 Jy/beam
! Clean residual mean=0.000090 rms=0.002107 Jy/beam
! Combined flux in latest and established models = 0.537406 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 17 model components to the UV plane model.
! The established model now contains 17 components and 0.537406 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.097 mas, bmaj=4.034 mas, bpa=-2.683 degrees
! Estimated noise=584.384 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.0344028 Jy
! Component: 100  -  total flux cleaned = 0.0509188 Jy
! Component: 150  -  total flux cleaned = 0.060413 Jy
! Component: 200  -  total flux cleaned = 0.0667421 Jy
! Total flux subtracted in 200 components = 0.0667421 Jy
! Clean residual min=-0.003212 max=0.004964 Jy/beam
! Clean residual mean=0.000163 rms=0.000903 Jy/beam
! Combined flux in latest and established models = 0.604148 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 57 components and 0.604148 Jy
! Inverting map 
! Added new window around map position (0, -4.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0049636 Jy
! Component: 100  -  total flux cleaned = 0.0072864 Jy
! Component: 150  -  total flux cleaned = 0.00950674 Jy
! Component: 200  -  total flux cleaned = 0.0111234 Jy
! Total flux subtracted in 200 components = 0.0111234 Jy
! Clean residual min=-0.003139 max=0.003397 Jy/beam
! Clean residual mean=0.000009 rms=0.000751 Jy/beam
! Combined flux in latest and established models = 0.615271 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 99 components and 0.615271 Jy
! Inverting map 
! Added new window around map position (25, -31.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00229276 Jy
! Component: 100  -  total flux cleaned = 0.00256991 Jy
! Component: 150  -  total flux cleaned = 0.00291851 Jy
! Component: 200  -  total flux cleaned = 0.00316601 Jy
! Total flux subtracted in 200 components = 0.00316601 Jy
! Clean residual min=-0.003097 max=0.002738 Jy/beam
! Clean residual mean=-0.000029 rms=0.000704 Jy/beam
! Combined flux in latest and established models = 0.618437 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 122 components and 0.618437 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.885 mas, bmaj=10.7 mas, bpa=79.63 degrees
! Estimated noise=738.612 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00116883 Jy
! Component: 100  -  total flux cleaned = 0.00116902 Jy
! Component: 150  -  total flux cleaned = 0.00128214 Jy
! Component: 200  -  total flux cleaned = 0.0013887 Jy
! Total flux subtracted in 200 components = 0.0013887 Jy
! Clean residual min=-0.002469 max=0.002073 Jy/beam
! Clean residual mean=-0.000113 rms=0.000739 Jy/beam
! Combined flux in latest and established models = 0.619826 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 = 9.63244e-05 Jy
! Component: 100  -  total flux cleaned = 0.000142208 Jy
! Component: 150  -  total flux cleaned = 0.000141425 Jy
! Component: 200  -  total flux cleaned = 0.00010077 Jy
! Total flux subtracted in 200 components = 0.00010077 Jy
! Clean residual min=-0.002422 max=0.002046 Jy/beam
! Clean residual mean=-0.000114 rms=0.000728 Jy/beam
! Combined flux in latest and established models = 0.619927 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 165 components and 0.619927 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.097 mas, bmaj=4.034 mas, bpa=-2.683 degrees
! Estimated noise=584.384 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000181587 Jy
! Component: 100  -  total flux cleaned = -0.000322304 Jy
! Component: 150  -  total flux cleaned = -0.000257859 Jy
! Component: 200  -  total flux cleaned = -0.000195112 Jy
! Total flux subtracted in 200 components = -0.000195113 Jy
! Clean residual min=-0.002931 max=0.002728 Jy/beam
! Clean residual mean=-0.000047 rms=0.000664 Jy/beam
! Combined flux in latest and established models = 0.619732 Jy
selfcal
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 195 components and 0.619732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.972663Jy  sigma=0.001203
! Fit after  self-cal, rms=0.972738Jy  sigma=0.001202
wmodel J0808+4950_S_2003_05_07_pus_map.mod
! Writing 195 model components to file: J0808+4950_S_2003_05_07_pus_map.mod
wobs J0808+4950_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J0808+4950_S_2003_05_07_pus_uvs.fits
wwins J0808+4950_S_2003_05_07_pus_map.win
! wwins: Wrote 6 windows to J0808+4950_S_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 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000460947 Jy
! Component: 100  -  total flux cleaned = -0.000644703 Jy
! Component: 150  -  total flux cleaned = -0.000944184 Jy
! Component: 200  -  total flux cleaned = -0.00102731 Jy
! Component: 250  -  total flux cleaned = -0.00102801 Jy
! Component: 300  -  total flux cleaned = -0.0011456 Jy
! Component: 350  -  total flux cleaned = -0.00122227 Jy
! Component: 400  -  total flux cleaned = -0.00137302 Jy
! Component: 450  -  total flux cleaned = -0.00148437 Jy
! Component: 500  -  total flux cleaned = -0.00159425 Jy
! Component: 550  -  total flux cleaned = -0.00173794 Jy
! Component: 600  -  total flux cleaned = -0.00184403 Jy
! Component: 650  -  total flux cleaned = -0.00194866 Jy
! Component: 700  -  total flux cleaned = -0.002052 Jy
! Component: 750  -  total flux cleaned = -0.00208584 Jy
! Component: 800  -  total flux cleaned = -0.00221999 Jy
! Component: 850  -  total flux cleaned = -0.00222021 Jy
! Component: 900  -  total flux cleaned = -0.00228637 Jy
! Component: 950  -  total flux cleaned = -0.00231898 Jy
! Component: 1000  -  total flux cleaned = -0.00235139 Jy
! Component: 1050  -  total flux cleaned = -0.00238364 Jy
! Component: 1100  -  total flux cleaned = -0.00238396 Jy
! Component: 1150  -  total flux cleaned = -0.00244696 Jy
! Component: 1200  -  total flux cleaned = -0.00247812 Jy
! Component: 1250  -  total flux cleaned = -0.00247807 Jy
! Component: 1300  -  total flux cleaned = -0.00244747 Jy
! Component: 1350  -  total flux cleaned = -0.00247798 Jy
! Component: 1400  -  total flux cleaned = -0.00247762 Jy
! Component: 1450  -  total flux cleaned = -0.00238804 Jy
! Component: 1500  -  total flux cleaned = -0.00238827 Jy
! Component: 1550  -  total flux cleaned = -0.00244729 Jy
! Component: 1600  -  total flux cleaned = -0.00238883 Jy
! Component: 1650  -  total flux cleaned = -0.00241785 Jy
! Component: 1700  -  total flux cleaned = -0.002389 Jy
! Component: 1750  -  total flux cleaned = -0.00238908 Jy
! Component: 1800  -  total flux cleaned = -0.00238911 Jy
! Component: 1850  -  total flux cleaned = -0.00238897 Jy
! Component: 1900  -  total flux cleaned = -0.00238887 Jy
! Component: 1950  -  total flux cleaned = -0.00236072 Jy
! Component: 2000  -  total flux cleaned = -0.00233289 Jy
! Total flux subtracted in 2048 components = -0.00233279 Jy
! Clean residual min=-0.001900 max=0.001879 Jy/beam
! Clean residual mean=-0.000014 rms=0.000519 Jy/beam
! Combined flux in latest and established models = 0.617399 Jy
keep
! Adding 141 model components to the UV plane model.
! The established model now contains 336 components and 0.617399 Jy
wmap "J0808+4950_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.097 x 4.034 at -2.683 degrees (North through East)
! Clean map  min=-0.0027643  max=0.50545 Jy/beam
! Writing clean map to FITS file: J0808+4950_S_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.505452 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000518548 
device "J0808+4950_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J0808+4950_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.307773 0.307773 0.615545 1.23109 2.46218 4.92436 9.84872 19.6974 39.3949 78.7898
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.505 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.097 x 4.034 at -2.683 degrees (North through East)
! Clean map  min=-0.0027643  max=0.50545 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0808+4950_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J0808+4950_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0808+4950_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 09:56:47 2006