! Started logfile: J0825+0309_S_2003_05_07_pus_uvs.log on Sun Dec 24 09:58:57 2006
obs J0825+0309_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J0825+0309_S_2003_05_07_pus_uva.fits
! AN table 1: 34 integrations on 171 of 171 possible baselines.
! AN table 2: 35 integrations on 171 of 171 possible baselines.
! AN table 3: 124 integrations on 171 of 171 possible baselines.
! AN table 4: 15 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.109874 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0825+0309
! 
! 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 15632 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 338 telescope corrections were flagged in sub-array 1.
!  A total of 665 telescope corrections were flagged in sub-array 2.
!  A total of 1827 telescope corrections were flagged in sub-array 3.
!  A total of 285 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 338 telescope corrections were flagged in sub-array 1.
!  A total of 665 telescope corrections were flagged in sub-array 2.
!  A total of 1827 telescope corrections were flagged in sub-array 3.
!  A total of 285 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 338 telescope corrections were flagged in sub-array 1.
!  A total of 665 telescope corrections were flagged in sub-array 2.
!  A total of 1827 telescope corrections were flagged in sub-array 3.
!  A total of 285 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 338 telescope corrections were flagged in sub-array 1.
!  A total of 665 telescope corrections were flagged in sub-array 2.
!  A total of 1830 telescope corrections were flagged in sub-array 3.
!  A total of 285 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.649481Jy  sigma=0.004071
! Fit after  self-cal, rms=0.461109Jy  sigma=0.002467
! 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.96 mas, bmaj=4.992 mas, bpa=-3.53 degrees
! Estimated noise=1177.49 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.563206 Jy
! Component: 100  -  total flux cleaned = 0.731273 Jy
! Total flux subtracted in 100 components = 0.731273 Jy
! Clean residual min=-0.023985 max=0.074818 Jy/beam
! Clean residual mean=0.000521 rms=0.008499 Jy/beam
! Combined flux in latest and established models = 0.731273 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.731272 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.387240Jy  sigma=0.001851
! Fit after  self-cal, rms=0.386404Jy  sigma=0.001847
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0831034 Jy
! Component: 100  -  total flux cleaned = 0.126368 Jy
! Total flux subtracted in 100 components = 0.126368 Jy
! Clean residual min=-0.016391 max=0.027623 Jy/beam
! Clean residual mean=0.000315 rms=0.004908 Jy/beam
! Combined flux in latest and established models = 0.85764 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 17 components and 0.85764 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.367240Jy  sigma=0.001468
! Fit after  self-cal, rms=0.366536Jy  sigma=0.001465
! 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.442 mas, bmaj=5.776 mas, bpa=-3.458 degrees
! Estimated noise=752.681 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.0360978 Jy
! Component: 100  -  total flux cleaned = 0.0547171 Jy
! Component: 150  -  total flux cleaned = 0.065389 Jy
! Component: 200  -  total flux cleaned = 0.071664 Jy
! Total flux subtracted in 200 components = 0.071664 Jy
! Clean residual min=-0.011265 max=0.018310 Jy/beam
! Clean residual mean=0.000438 rms=0.003504 Jy/beam
! Combined flux in latest and established models = 0.929304 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 36 components and 0.929304 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.363130Jy  sigma=0.001403
! Fit after  self-cal, rms=0.362910Jy  sigma=0.001403
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.96     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.00     LA        1.05     MA        1.09     
!   MC        1.72     MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        0.83     PT        0.99     SC        0.91     TC        1.00*    
!   TS        1.00*    WF        1.06     WZ        0.96     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        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*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.99     GG        1.00*    HN        0.94     
!   KK        0.97     KP        1.01     LA        1.05     MA        1.00*    
!   MC        1.00*    MK        1.01     NL        0.98     ON        1.00*    
!   OV        1.00     PT        1.02     SC        0.92     TC        1.05     
!   TS        1.00*    WF        1.04     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        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.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.12     FD        1.04     GG        1.00*    HN        1.01     
!   KK        1.00*    KP        1.00     LA        0.99     MA        0.94     
!   MC        1.00     MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        0.91     PT        1.01     SC        0.93     TC        1.00*    
!   TS        1.00*    WF        1.02     WZ        1.01     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        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*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        1.05     GG        1.00*    HN        0.99     
!   KK        1.00     KP        0.99     LA        0.99     MA        1.00*    
!   MC        1.00*    MK        0.98     NL        1.00     ON        1.00*    
!   OV        1.03     PT        1.01     SC        0.94     TC        1.09     
!   TS        1.00*    WF        1.01     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*    
!   MC        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.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        0.98     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.01     LA        1.00     MA        1.08     
!   MC        1.36     MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        0.82     PT        1.03     SC        1.07     TC        1.00*    
!   TS        1.00*    WF        1.04     WZ        1.02     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        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*    
! 
!  A total of 96 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.99     GG        1.00*    HN        0.99     
!   KK        0.97     KP        1.00     LA        1.00     MA        1.00*    
!   MC        1.00*    MK        0.96     NL        1.02     ON        1.00*    
!   OV        1.01     PT        1.03     SC        1.07     TC        0.94     
!   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*    
!   MC        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.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        0.99     GG        1.00*    HN        1.01     
!   KK        1.00*    KP        0.96     LA        1.01     MA        1.01     
!   MC        1.09     MK        1.00*    NL        1.00*    ON        1.00*    
!   OV        0.81     PT        0.97     SC        1.12     TC        1.00*    
!   TS        1.00*    WF        0.99     WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        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*    
! 
!  A total of 93 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GG        1.00*    HN        0.96     
!   KK        0.98     KP        0.98     LA        1.01     MA        1.00*    
!   MC        1.00*    MK        0.99     NL        0.96     ON        1.00*    
!   OV        1.00     PT        0.99     SC        1.08     TC        0.94     
!   TS        1.00*    WF        1.01     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*    
!   MC        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.362910Jy  sigma=0.001403
! Fit after  self-cal, rms=0.330386Jy  sigma=0.001308
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.489 mas, bmaj=5.915 mas, bpa=-3.52 degrees
! Estimated noise=751.574 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 (6, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0132483 Jy
! Component: 100  -  total flux cleaned = 0.014346 Jy
! Component: 150  -  total flux cleaned = 0.014929 Jy
! Component: 200  -  total flux cleaned = 0.0147223 Jy
! Total flux subtracted in 200 components = 0.0147223 Jy
! Clean residual min=-0.007833 max=0.007162 Jy/beam
! Clean residual mean=0.000223 rms=0.001641 Jy/beam
! Combined flux in latest and established models = 0.944027 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 53 components and 0.944027 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329570Jy  sigma=0.001296
! Fit after  self-cal, rms=0.329561Jy  sigma=0.001295
! 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.329561Jy  sigma=0.001295
! Fit after  self-cal, rms=0.330727Jy  sigma=0.001293
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.496 mas, bmaj=5.913 mas, bpa=-3.496 degrees
! Estimated noise=751.713 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00341346 Jy
! Component: 100  -  total flux cleaned = 0.00430034 Jy
! Component: 150  -  total flux cleaned = 0.00499719 Jy
! Component: 200  -  total flux cleaned = 0.0052955 Jy
! Total flux subtracted in 200 components = 0.0052955 Jy
! Clean residual min=-0.006238 max=0.005655 Jy/beam
! Clean residual mean=0.000169 rms=0.001347 Jy/beam
! Combined flux in latest and established models = 0.949322 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 62 components and 0.949322 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.330412Jy  sigma=0.001289
! Fit after  self-cal, rms=0.330377Jy  sigma=0.001289
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.000728325 Jy
! Component: 100  -  total flux cleaned = 0.000987435 Jy
! Component: 150  -  total flux cleaned = 0.00099096 Jy
! Component: 200  -  total flux cleaned = 0.000990159 Jy
! Total flux subtracted in 200 components = 0.000990159 Jy
! Clean residual min=-0.005766 max=0.005148 Jy/beam
! Clean residual mean=0.000161 rms=0.001305 Jy/beam
! Combined flux in latest and established models = 0.950312 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 68 components and 0.950312 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.330268Jy  sigma=0.001288
! Fit after  self-cal, rms=0.330249Jy  sigma=0.001288
! 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.330249Jy  sigma=0.001288
! Fit after  self-cal, rms=0.330900Jy  sigma=0.001287
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.505 mas, bmaj=5.909 mas, bpa=-3.454 degrees
! Estimated noise=751.498 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00011995 Jy
! Component: 100  -  total flux cleaned = 0.0002676 Jy
! Component: 150  -  total flux cleaned = 0.000588962 Jy
! Component: 200  -  total flux cleaned = 0.000779588 Jy
! Total flux subtracted in 200 components = 0.000779588 Jy
! Clean residual min=-0.004744 max=0.004545 Jy/beam
! Clean residual mean=0.000146 rms=0.001146 Jy/beam
! Combined flux in latest and established models = 0.951092 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 70 components and 0.951092 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.330779Jy  sigma=0.001286
! Fit after  self-cal, rms=0.330774Jy  sigma=0.001285
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.000194305 Jy
! Component: 100  -  total flux cleaned = 0.000374143 Jy
! Component: 150  -  total flux cleaned = 0.000533917 Jy
! Component: 200  -  total flux cleaned = 0.000604287 Jy
! Total flux subtracted in 200 components = 0.000604287 Jy
! Clean residual min=-0.004747 max=0.004374 Jy/beam
! Clean residual mean=0.000139 rms=0.001127 Jy/beam
! Combined flux in latest and established models = 0.951696 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 72 components and 0.951696 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.330726Jy  sigma=0.001285
! Fit after  self-cal, rms=0.330712Jy  sigma=0.001285
! 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.330712Jy  sigma=0.001285
! Fit after  self-cal, rms=0.331535Jy  sigma=0.001284
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.781 mas, bmaj=12.15 mas, bpa=-5.148 degrees
! Estimated noise=931.966 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000914159 Jy
! Component: 100  -  total flux cleaned = -0.000918113 Jy
! Component: 150  -  total flux cleaned = -0.000819345 Jy
! Component: 200  -  total flux cleaned = -0.000856144 Jy
! Total flux subtracted in 200 components = -0.000856144 Jy
! Clean residual min=-0.004139 max=0.004259 Jy/beam
! Clean residual mean=0.000332 rms=0.001310 Jy/beam
! Combined flux in latest and established models = 0.95084 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 93 components and 0.95084 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331525Jy  sigma=0.001284
! Fit after  self-cal, rms=0.331526Jy  sigma=0.001284
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 = -5.86101e-05 Jy
! Component: 100  -  total flux cleaned = 8.7672e-05 Jy
! Component: 150  -  total flux cleaned = 4.67652e-05 Jy
! Component: 200  -  total flux cleaned = 4.63233e-05 Jy
! Total flux subtracted in 200 components = 4.63233e-05 Jy
! Clean residual min=-0.004266 max=0.004059 Jy/beam
! Clean residual mean=0.000327 rms=0.001320 Jy/beam
! Combined flux in latest and established models = 0.950887 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 102 components and 0.950887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331537Jy  sigma=0.001284
! Fit after  self-cal, rms=0.331519Jy  sigma=0.001284
! 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.511 mas, bmaj=5.908 mas, bpa=-3.427 degrees
! Estimated noise=751.667 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.511 x 5.908 at -3.427 degrees (North through East)
! Clean map  min=-0.0042011  max=0.75408 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.331519Jy  sigma=0.001284
! Fit after  self-cal, rms=0.354716Jy  sigma=0.001198
! Inverting map and beam 
! Estimated beam: bmin=2.513 mas, bmaj=5.907 mas, bpa=-3.39 degrees
! Estimated noise=751.004 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000575981 Jy
! Component: 100  -  total flux cleaned = 0.00065018 Jy
! Component: 150  -  total flux cleaned = 0.000714635 Jy
! Component: 200  -  total flux cleaned = 0.000774641 Jy
! Total flux subtracted in 200 components = 0.000774641 Jy
! Clean residual min=-0.004155 max=0.003648 Jy/beam
! Clean residual mean=0.000120 rms=0.000958 Jy/beam
! Combined flux in latest and established models = 0.951661 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 107 components and 0.951661 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354687Jy  sigma=0.001197
! Fit after  self-cal, rms=0.354682Jy  sigma=0.001197
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000278949 Jy
! Component: 100  -  total flux cleaned = 0.000281182 Jy
! Component: 150  -  total flux cleaned = 0.000281135 Jy
! Component: 200  -  total flux cleaned = 0.00028103 Jy
! Total flux subtracted in 200 components = 0.00028103 Jy
! Clean residual min=-0.004133 max=0.003562 Jy/beam
! Clean residual mean=0.000117 rms=0.000949 Jy/beam
! Combined flux in latest and established models = 0.951942 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 110 components and 0.951942 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354667Jy  sigma=0.001197
! Fit after  self-cal, rms=0.354662Jy  sigma=0.001197
! 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.354662Jy  sigma=0.001197
! Fit after  self-cal, rms=0.355567Jy  sigma=0.001197
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.007 mas, bmaj=4.979 mas, bpa=-3.253 degrees
! Estimated noise=1203.16 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.572046 Jy
! Component: 100  -  total flux cleaned = 0.734736 Jy
! Component: 150  -  total flux cleaned = 0.810314 Jy
! Component: 200  -  total flux cleaned = 0.849593 Jy
! Total flux subtracted in 200 components = 0.849593 Jy
! Clean residual min=-0.010899 max=0.019946 Jy/beam
! Clean residual mean=0.000226 rms=0.002994 Jy/beam
! Combined flux in latest and established models = 0.849593 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.849593 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.516 mas, bmaj=5.907 mas, bpa=-3.378 degrees
! Estimated noise=751.154 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.0370854 Jy
! Component: 100  -  total flux cleaned = 0.059418 Jy
! Component: 150  -  total flux cleaned = 0.0738697 Jy
! Component: 200  -  total flux cleaned = 0.0835856 Jy
! Total flux subtracted in 200 components = 0.0835856 Jy
! Clean residual min=-0.004572 max=0.008288 Jy/beam
! Clean residual mean=0.000260 rms=0.001374 Jy/beam
! Combined flux in latest and established models = 0.933178 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 46 components and 0.933178 Jy
! Inverting map 
! Added new window around map position (0.5, 8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00776614 Jy
! Component: 100  -  total flux cleaned = 0.0125274 Jy
! Component: 150  -  total flux cleaned = 0.0156252 Jy
! Component: 200  -  total flux cleaned = 0.0166716 Jy
! Total flux subtracted in 200 components = 0.0166716 Jy
! Clean residual min=-0.004025 max=0.003433 Jy/beam
! Clean residual mean=0.000127 rms=0.000943 Jy/beam
! Combined flux in latest and established models = 0.94985 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 68 components and 0.94985 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.775 mas, bmaj=12.14 mas, bpa=-5.144 degrees
! Estimated noise=929.775 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0014595 Jy
! Component: 100  -  total flux cleaned = 0.00169751 Jy
! Component: 150  -  total flux cleaned = 0.00179593 Jy
! Component: 200  -  total flux cleaned = 0.00183413 Jy
! Total flux subtracted in 200 components = 0.00183413 Jy
! Clean residual min=-0.003536 max=0.003288 Jy/beam
! Clean residual mean=0.000273 rms=0.001067 Jy/beam
! Combined flux in latest and established models = 0.951684 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 = -3.3817e-05 Jy
! Component: 100  -  total flux cleaned = -6.27681e-05 Jy
! Component: 150  -  total flux cleaned = -6.13303e-05 Jy
! Component: 200  -  total flux cleaned = -6.06629e-05 Jy
! Total flux subtracted in 200 components = -6.06629e-05 Jy
! Clean residual min=-0.003554 max=0.003293 Jy/beam
! Clean residual mean=0.000272 rms=0.001056 Jy/beam
! Combined flux in latest and established models = 0.951623 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 102 components and 0.951623 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.516 mas, bmaj=5.907 mas, bpa=-3.378 degrees
! Estimated noise=751.154 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000382875 Jy
! Component: 100  -  total flux cleaned = 0.000492315 Jy
! Component: 150  -  total flux cleaned = 0.000440871 Jy
! Component: 200  -  total flux cleaned = 0.00048933 Jy
! Total flux subtracted in 200 components = 0.00048933 Jy
! Clean residual min=-0.003913 max=0.003515 Jy/beam
! Clean residual mean=0.000105 rms=0.000893 Jy/beam
! Combined flux in latest and established models = 0.952113 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 114 components and 0.952113 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.355516Jy  sigma=0.001196
! Fit after  self-cal, rms=0.355500Jy  sigma=0.001196
wmodel J0825+0309_S_2003_05_07_pus_map.mod
! Writing 114 model components to file: J0825+0309_S_2003_05_07_pus_map.mod
wobs J0825+0309_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J0825+0309_S_2003_05_07_pus_uvs.fits
wwins J0825+0309_S_2003_05_07_pus_map.win
! wwins: Wrote 3 windows to J0825+0309_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.00128131 Jy
! Component: 100  -  total flux cleaned = -0.00134505 Jy
! Component: 150  -  total flux cleaned = -0.00117219 Jy
! Component: 200  -  total flux cleaned = -0.000842107 Jy
! Component: 250  -  total flux cleaned = -0.000788006 Jy
! Component: 300  -  total flux cleaned = -0.00073647 Jy
! Component: 350  -  total flux cleaned = -0.000735994 Jy
! Component: 400  -  total flux cleaned = -0.000735497 Jy
! Component: 450  -  total flux cleaned = -0.000735622 Jy
! Component: 500  -  total flux cleaned = -0.000736085 Jy
! Component: 550  -  total flux cleaned = -0.000736286 Jy
! Component: 600  -  total flux cleaned = -0.000866561 Jy
! Component: 650  -  total flux cleaned = -0.000738054 Jy
! Component: 700  -  total flux cleaned = -0.000780434 Jy
! Component: 750  -  total flux cleaned = -0.00073924 Jy
! Component: 800  -  total flux cleaned = -0.000739052 Jy
! Component: 850  -  total flux cleaned = -0.000618857 Jy
! Component: 900  -  total flux cleaned = -0.000619077 Jy
! Component: 950  -  total flux cleaned = -0.000462723 Jy
! Component: 1000  -  total flux cleaned = -0.000269983 Jy
! Component: 1050  -  total flux cleaned = -3.18703e-06 Jy
! Component: 1100  -  total flux cleaned = 0.000260614 Jy
! Component: 1150  -  total flux cleaned = 0.000484527 Jy
! Component: 1200  -  total flux cleaned = 0.000816934 Jy
! Component: 1250  -  total flux cleaned = 0.00103614 Jy
! Component: 1300  -  total flux cleaned = 0.00125356 Jy
! Component: 1350  -  total flux cleaned = 0.00150496 Jy
! Component: 1400  -  total flux cleaned = 0.00171865 Jy
! Component: 1450  -  total flux cleaned = 0.00203609 Jy
! Component: 1500  -  total flux cleaned = 0.00224549 Jy
! Component: 1550  -  total flux cleaned = 0.00248787 Jy
! Component: 1600  -  total flux cleaned = 0.00272761 Jy
! Component: 1650  -  total flux cleaned = 0.00286399 Jy
! Component: 1700  -  total flux cleaned = 0.00310062 Jy
! Component: 1750  -  total flux cleaned = 0.00333535 Jy
! Component: 1800  -  total flux cleaned = 0.00350169 Jy
! Component: 1850  -  total flux cleaned = 0.00386485 Jy
! Component: 1900  -  total flux cleaned = 0.00396302 Jy
! Component: 1950  -  total flux cleaned = 0.00425573 Jy
! Component: 2000  -  total flux cleaned = 0.0044172 Jy
! Total flux subtracted in 2048 components = 0.00464144 Jy
! Clean residual min=-0.001736 max=0.002160 Jy/beam
! Clean residual mean=0.000080 rms=0.000590 Jy/beam
! Combined flux in latest and established models = 0.956754 Jy
keep
! Adding 139 model components to the UV plane model.
! The established model now contains 253 components and 0.956754 Jy
wmap "J0825+0309_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.516 x 5.907 at -3.378 degrees (North through East)
! Clean map  min=-0.003566  max=0.7564 Jy/beam
! Writing clean map to FITS file: J0825+0309_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.756404 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000592231 
device "J0825+0309_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J0825+0309_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.234887 0.234887 0.469774 0.939547 1.87909 3.75819 7.51638 15.0328 30.0655 60.131
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.756 
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.516 x 5.907 at -3.378 degrees (North through East)
! Clean map  min=-0.003566  max=0.7564 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0825+0309_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J0825+0309_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0825+0309_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 10:00:22 2006