! Started logfile: J0825+0309_S_2003_06_18_pus_uvs.log on Fri Jan 26 13:49:37 2007
obs J0825+0309_S_2003_06_18_pus_uve.fits
! Reading UV FITS file: J0825+0309_S_2003_06_18_pus_uve.fits
! AN table 1: 5 integrations on 153 of 153 possible baselines.
! AN table 2: 8 integrations on 153 of 153 possible baselines.
! AN table 3: 17 integrations on 153 of 153 possible baselines.
! AN table 4: 11 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0970827 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 2429 lines of history.
! 
! Reading 2436 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  A total of 108 telescope corrections were flagged in sub-array 2.
!  A total of 216 telescope corrections were flagged in sub-array 3.
!  A total of 198 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  A total of 109 telescope corrections were flagged in sub-array 2.
!  A total of 215 telescope corrections were flagged in sub-array 3.
!  A total of 198 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  A total of 108 telescope corrections were flagged in sub-array 2.
!  A total of 214 telescope corrections were flagged in sub-array 3.
!  A total of 198 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 90 telescope corrections were flagged in sub-array 1.
!  A total of 108 telescope corrections were flagged in sub-array 2.
!  A total of 215 telescope corrections were flagged in sub-array 3.
!  A total of 198 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.830594Jy  sigma=11.798740
! Fit after  self-cal, rms=0.301578Jy  sigma=4.441692
! 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.921 mas, bmaj=7.247 mas, bpa=-4.149 degrees
! Estimated noise=1.58618 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.60299 Jy
! Component: 100  -  total flux cleaned = 0.78357 Jy
! Total flux subtracted in 100 components = 0.78357 Jy
! Clean residual min=-0.025133 max=0.082913 Jy/beam
! Clean residual mean=0.000297 rms=0.009977 Jy/beam
! Combined flux in latest and established models = 0.78357 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.78357 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229303Jy  sigma=3.135515
! Fit after  self-cal, rms=0.229077Jy  sigma=3.134239
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0933796 Jy
! Component: 100  -  total flux cleaned = 0.145558 Jy
! Total flux subtracted in 100 components = 0.145558 Jy
! Clean residual min=-0.021483 max=0.037149 Jy/beam
! Clean residual mean=0.000070 rms=0.006479 Jy/beam
! Combined flux in latest and established models = 0.929128 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 21 components and 0.929128 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174388Jy  sigma=2.175120
! Fit after  self-cal, rms=0.174023Jy  sigma=2.173027
! 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.182 mas, bmaj=8.684 mas, bpa=-4.53 degrees
! Estimated noise=1.17023 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 (5, 6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0605046 Jy
! Component: 100  -  total flux cleaned = 0.0952745 Jy
! Component: 150  -  total flux cleaned = 0.118087 Jy
! Component: 200  -  total flux cleaned = 0.133697 Jy
! Total flux subtracted in 200 components = 0.133697 Jy
! Clean residual min=-0.021231 max=0.033267 Jy/beam
! Clean residual mean=0.000142 rms=0.006102 Jy/beam
! Combined flux in latest and established models = 1.06282 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 70 components and 1.06282 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.150038Jy  sigma=1.771828
! Fit after  self-cal, rms=0.147772Jy  sigma=1.732199
! 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        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        0.92     GG        1.00*    HN        1.07     
!   KK        1.00*    KP        0.83     LA        0.97     MA        1.00*    
!   MK        1.14     NL        1.02     ON        1.00*    OV        1.05     
!   PT        1.00*    SC        0.94     TC        1.00*    TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        0.99     GG        1.00*    HN        1.50     
!   KK        1.20     KP        0.94     LA        0.96     MA        1.00*    
!   MK        0.96     NL        0.96     ON        1.00*    OV        0.93     
!   PT        0.99     SC        1.00*    TC        1.00*    TS        1.02     
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.95     GG        1.00*    HN        1.06     
!   KK        1.00*    KP        0.97     LA        0.98     MA        1.00*    
!   MK        1.09     NL        0.94     ON        1.00*    OV        0.96     
!   PT        1.00*    SC        0.97     TC        1.00*    TS        1.00*    
!   WF        1.62     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.98     GG        1.00*    HN        1.57     
!   KK        0.95     KP        1.02     LA        0.96     MA        1.00*    
!   MK        0.97     NL        0.89     ON        1.00*    OV        0.97     
!   PT        0.98     SC        1.00*    TC        1.00*    TS        1.00     
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.96     GG        1.00*    HN        1.10     
!   KK        1.00*    KP        0.95     LA        0.94     MA        1.00*    
!   MK        1.05     NL        0.99     ON        1.00*    OV        0.90     
!   PT        1.00*    SC        1.08     TC        1.00*    TS        1.00*    
!   WF        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.98     GG        1.00*    HN        1.59     
!   KK        0.97     KP        0.99     LA        0.95     MA        1.00*    
!   MK        0.96     NL        0.93     ON        1.00*    OV        1.02     
!   PT        0.97     SC        1.00*    TC        1.00*    TS        1.01     
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.96     GG        1.00*    HN        1.25     
!   KK        1.00*    KP        0.97     LA        0.98     MA        1.00*    
!   MK        0.98     NL        1.02     ON        1.00*    OV        1.08     
!   PT        1.00*    SC        1.09     TC        1.00*    TS        1.00*    
!   WF        1.07     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00     GG        1.00*    HN        1.47     
!   KK        0.98     KP        1.01     LA        0.98     MA        1.00*    
!   MK        0.90     NL        0.93     ON        1.00*    OV        0.94     
!   PT        1.03     SC        1.00*    TC        1.00*    TS        0.98     
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MK        0.00*    NL        0.00*    ON        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    TC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.147772Jy  sigma=1.732199
! Fit after  self-cal, rms=0.108489Jy  sigma=1.209692
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.202 mas, bmaj=8.702 mas, bpa=-4.429 degrees
! Estimated noise=1.17102 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.00183147 Jy
! Component: 100  -  total flux cleaned = 0.0015707 Jy
! Component: 150  -  total flux cleaned = 0.00198562 Jy
! Component: 200  -  total flux cleaned = 0.002695 Jy
! Total flux subtracted in 200 components = 0.002695 Jy
! Clean residual min=-0.008180 max=0.009052 Jy/beam
! Clean residual mean=-0.000100 rms=0.002159 Jy/beam
! Combined flux in latest and established models = 1.06552 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 85 components and 1.06552 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.107337Jy  sigma=1.195019
! Fit after  self-cal, rms=0.107322Jy  sigma=1.193756
! 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.107322Jy  sigma=1.193756
! Fit after  self-cal, rms=0.107372Jy  sigma=1.192832
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.2 mas, bmaj=8.696 mas, bpa=-4.425 degrees
! Estimated noise=1.17099 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00127822 Jy
! Component: 100  -  total flux cleaned = 0.00144023 Jy
! Component: 150  -  total flux cleaned = 0.00187735 Jy
! Component: 200  -  total flux cleaned = 0.00226954 Jy
! Total flux subtracted in 200 components = 0.00226954 Jy
! Clean residual min=-0.007871 max=0.008543 Jy/beam
! Clean residual mean=-0.000103 rms=0.002086 Jy/beam
! Combined flux in latest and established models = 1.06779 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 95 components and 1.06779 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106845Jy  sigma=1.186608
! Fit after  self-cal, rms=0.106826Jy  sigma=1.186136
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 = 2.56286e-05 Jy
! Component: 100  -  total flux cleaned = 1.70131e-05 Jy
! Component: 150  -  total flux cleaned = -9.21968e-05 Jy
! Component: 200  -  total flux cleaned = -0.000194889 Jy
! Total flux subtracted in 200 components = -0.000194889 Jy
! Clean residual min=-0.007773 max=0.008388 Jy/beam
! Clean residual mean=-0.000102 rms=0.002064 Jy/beam
! Combined flux in latest and established models = 1.06759 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 107 components and 1.06759 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106559Jy  sigma=1.182915
! Fit after  self-cal, rms=0.106562Jy  sigma=1.182682
! 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.106562Jy  sigma=1.182682
! Fit after  self-cal, rms=0.092509Jy  sigma=0.984856
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.2 mas, bmaj=8.688 mas, bpa=-4.439 degrees
! Estimated noise=1.17095 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00265777 Jy
! Component: 100  -  total flux cleaned = -0.00288994 Jy
! Component: 150  -  total flux cleaned = -0.0027981 Jy
! Component: 200  -  total flux cleaned = -0.00288546 Jy
! Total flux subtracted in 200 components = -0.00288546 Jy
! Clean residual min=-0.005216 max=0.004086 Jy/beam
! Clean residual mean=-0.000041 rms=0.001176 Jy/beam
! Combined flux in latest and established models = 1.06471 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 119 components and 1.06471 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092252Jy  sigma=0.981132
! Fit after  self-cal, rms=0.092236Jy  sigma=0.980862
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.000434462 Jy
! Component: 100  -  total flux cleaned = -0.000511013 Jy
! Component: 150  -  total flux cleaned = -0.00051015 Jy
! Component: 200  -  total flux cleaned = -0.000579743 Jy
! Total flux subtracted in 200 components = -0.000579743 Jy
! Clean residual min=-0.005221 max=0.003953 Jy/beam
! Clean residual mean=-0.000037 rms=0.001156 Jy/beam
! Combined flux in latest and established models = 1.06413 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 127 components and 1.06413 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092113Jy  sigma=0.979125
! Fit after  self-cal, rms=0.092106Jy  sigma=0.979048
! 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.092106Jy  sigma=0.979048
! Fit after  self-cal, rms=0.092234Jy  sigma=0.978398
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.508 mas, bmaj=12.19 mas, bpa=-3.95 degrees
! Estimated noise=1.62409 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00244049 Jy
! Component: 100  -  total flux cleaned = -0.00279301 Jy
! Component: 150  -  total flux cleaned = -0.00279338 Jy
! Component: 200  -  total flux cleaned = -0.00284094 Jy
! Total flux subtracted in 200 components = -0.00284094 Jy
! Clean residual min=-0.004743 max=0.004492 Jy/beam
! Clean residual mean=-0.000084 rms=0.001514 Jy/beam
! Combined flux in latest and established models = 1.06129 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 138 components and 1.06129 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092201Jy  sigma=0.977314
! Fit after  self-cal, rms=0.092194Jy  sigma=0.977069
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.000327088 Jy
! Component: 100  -  total flux cleaned = -0.000458618 Jy
! Component: 150  -  total flux cleaned = -0.000538024 Jy
! Component: 200  -  total flux cleaned = -0.000575768 Jy
! Total flux subtracted in 200 components = -0.000575768 Jy
! Clean residual min=-0.004883 max=0.004458 Jy/beam
! Clean residual mean=-0.000075 rms=0.001508 Jy/beam
! Combined flux in latest and established models = 1.06071 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 145 components and 1.06071 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092188Jy  sigma=0.976805
! Fit after  self-cal, rms=0.092177Jy  sigma=0.976756
! 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.2 mas, bmaj=8.688 mas, bpa=-4.434 degrees
! Estimated noise=1.17147 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.2 x 8.688 at -4.434 degrees (North through East)
! Clean map  min=-0.0048997  max=0.80843 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.092177Jy  sigma=0.976756
! Fit after  self-cal, rms=0.081642Jy  sigma=0.818370
! Inverting map and beam 
! Estimated beam: bmin=2.203 mas, bmaj=8.687 mas, bpa=-4.452 degrees
! Estimated noise=1.17018 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000939018 Jy
! Component: 100  -  total flux cleaned = -0.00102708 Jy
! Component: 150  -  total flux cleaned = -0.00126418 Jy
! Component: 200  -  total flux cleaned = -0.00147317 Jy
! Total flux subtracted in 200 components = -0.00147317 Jy
! Clean residual min=-0.004610 max=0.004032 Jy/beam
! Clean residual mean=0.000021 rms=0.000983 Jy/beam
! Combined flux in latest and established models = 1.05924 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 160 components and 1.05924 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.081432Jy  sigma=0.815643
! Fit after  self-cal, rms=0.081426Jy  sigma=0.815442
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000490771 Jy
! Component: 100  -  total flux cleaned = -0.00061518 Jy
! Component: 150  -  total flux cleaned = -0.000726286 Jy
! Component: 200  -  total flux cleaned = -0.000830199 Jy
! Total flux subtracted in 200 components = -0.000830199 Jy
! Clean residual min=-0.004521 max=0.003991 Jy/beam
! Clean residual mean=0.000027 rms=0.000970 Jy/beam
! Combined flux in latest and established models = 1.05841 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 168 components and 1.05841 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.081335Jy  sigma=0.814176
! Fit after  self-cal, rms=0.081337Jy  sigma=0.814105
! 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.081337Jy  sigma=0.814105
! Fit after  self-cal, rms=0.081278Jy  sigma=0.813489
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.933 mas, bmaj=7.268 mas, bpa=-4.117 degrees
! Estimated noise=1.58534 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.602075 Jy
! Component: 100  -  total flux cleaned = 0.778588 Jy
! Component: 150  -  total flux cleaned = 0.870359 Jy
! Component: 200  -  total flux cleaned = 0.923406 Jy
! Total flux subtracted in 200 components = 0.923406 Jy
! Clean residual min=-0.010566 max=0.027590 Jy/beam
! Clean residual mean=0.000162 rms=0.003780 Jy/beam
! Combined flux in latest and established models = 0.923406 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 26 model components to the UV plane model.
! The established model now contains 26 components and 0.923406 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.205 mas, bmaj=8.688 mas, bpa=-4.458 degrees
! Estimated noise=1.16922 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.0506669 Jy
! Component: 100  -  total flux cleaned = 0.0798069 Jy
! Component: 150  -  total flux cleaned = 0.0981091 Jy
! Component: 200  -  total flux cleaned = 0.109989 Jy
! Total flux subtracted in 200 components = 0.109989 Jy
! Clean residual min=-0.005293 max=0.007049 Jy/beam
! Clean residual mean=0.000174 rms=0.001536 Jy/beam
! Combined flux in latest and established models = 1.03339 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 64 components and 1.03339 Jy
! Inverting map 
! Added new window around map position (8.5, 7.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00821924 Jy
! Component: 100  -  total flux cleaned = 0.0138801 Jy
! Component: 150  -  total flux cleaned = 0.017934 Jy
! Component: 200  -  total flux cleaned = 0.02036 Jy
! Total flux subtracted in 200 components = 0.02036 Jy
! Clean residual min=-0.004337 max=0.004433 Jy/beam
! Clean residual mean=0.000040 rms=0.001042 Jy/beam
! Combined flux in latest and established models = 1.05375 Jy
! Adding 26 model components to the UV plane model.
! The established model now contains 82 components and 1.05375 Jy
! Inverting map 
! Added new window around map position (19.5, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00311891 Jy
! Component: 100  -  total flux cleaned = 0.00341771 Jy
! Component: 150  -  total flux cleaned = 0.00359921 Jy
! Component: 200  -  total flux cleaned = 0.00385369 Jy
! Total flux subtracted in 200 components = 0.00385369 Jy
! Clean residual min=-0.003985 max=0.003262 Jy/beam
! Clean residual mean=0.000016 rms=0.000969 Jy/beam
! Combined flux in latest and established models = 1.05761 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 102 components and 1.05761 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=8.505 mas, bmaj=12.19 mas, bpa=-3.987 degrees
! Estimated noise=1.61922 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000564743 Jy
! Component: 100  -  total flux cleaned = 0.000623505 Jy
! Component: 150  -  total flux cleaned = 0.00067591 Jy
! Component: 200  -  total flux cleaned = 0.000676064 Jy
! Total flux subtracted in 200 components = 0.000676064 Jy
! Clean residual min=-0.003698 max=0.003762 Jy/beam
! Clean residual mean=0.000026 rms=0.001167 Jy/beam
! Combined flux in latest and established models = 1.05828 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 = -4.52513e-05 Jy
! Component: 100  -  total flux cleaned = -0.000124832 Jy
! Component: 150  -  total flux cleaned = -0.000160431 Jy
! Component: 200  -  total flux cleaned = -0.000194489 Jy
! Total flux subtracted in 200 components = -0.000194489 Jy
! Clean residual min=-0.003701 max=0.003718 Jy/beam
! Clean residual mean=0.000029 rms=0.001159 Jy/beam
! Combined flux in latest and established models = 1.05809 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 141 components and 1.05809 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.205 mas, bmaj=8.688 mas, bpa=-4.458 degrees
! Estimated noise=1.16922 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000186823 Jy
! Component: 100  -  total flux cleaned = -0.000333516 Jy
! Component: 150  -  total flux cleaned = -0.00040259 Jy
! Component: 200  -  total flux cleaned = -0.000534622 Jy
! Total flux subtracted in 200 components = -0.000534622 Jy
! Clean residual min=-0.003846 max=0.003185 Jy/beam
! Clean residual mean=0.000015 rms=0.000935 Jy/beam
! Combined flux in latest and established models = 1.05755 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 156 components and 1.05755 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.081094Jy  sigma=0.811626
! Fit after  self-cal, rms=0.080998Jy  sigma=0.809818
wmodel J0825+0309_S_2003_06_18_pus_map.mod
! Writing 156 model components to file: J0825+0309_S_2003_06_18_pus_map.mod
wobs J0825+0309_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J0825+0309_S_2003_06_18_pus_uvs.fits
wwins J0825+0309_S_2003_06_18_pus_map.win
! wwins: Wrote 4 windows to J0825+0309_S_2003_06_18_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00167916 Jy
! Component: 100  -  total flux cleaned = -0.00296407 Jy
! Component: 150  -  total flux cleaned = -0.00373461 Jy
! Component: 200  -  total flux cleaned = -0.00441969 Jy
! Component: 250  -  total flux cleaned = -0.00462341 Jy
! Component: 300  -  total flux cleaned = -0.00496832 Jy
! Component: 350  -  total flux cleaned = -0.00539997 Jy
! Component: 400  -  total flux cleaned = -0.00582138 Jy
! Component: 450  -  total flux cleaned = -0.00627926 Jy
! Component: 500  -  total flux cleaned = -0.00659341 Jy
! Component: 550  -  total flux cleaned = -0.00677002 Jy
! Component: 600  -  total flux cleaned = -0.00698711 Jy
! Component: 650  -  total flux cleaned = -0.00719997 Jy
! Component: 700  -  total flux cleaned = -0.00724211 Jy
! Component: 750  -  total flux cleaned = -0.00736751 Jy
! Component: 800  -  total flux cleaned = -0.00744947 Jy
! Component: 850  -  total flux cleaned = -0.00761077 Jy
! Component: 900  -  total flux cleaned = -0.00769066 Jy
! Component: 950  -  total flux cleaned = -0.00784844 Jy
! Component: 1000  -  total flux cleaned = -0.00800421 Jy
! Component: 1050  -  total flux cleaned = -0.00819591 Jy
! Component: 1100  -  total flux cleaned = -0.00823369 Jy
! Component: 1150  -  total flux cleaned = -0.00823346 Jy
! Component: 1200  -  total flux cleaned = -0.00841814 Jy
! Component: 1250  -  total flux cleaned = -0.00838112 Jy
! Component: 1300  -  total flux cleaned = -0.00841736 Jy
! Component: 1350  -  total flux cleaned = -0.00856048 Jy
! Component: 1400  -  total flux cleaned = -0.00859605 Jy
! Component: 1450  -  total flux cleaned = -0.00863142 Jy
! Component: 1500  -  total flux cleaned = -0.0085628 Jy
! Component: 1550  -  total flux cleaned = -0.00866642 Jy
! Component: 1600  -  total flux cleaned = -0.00866673 Jy
! Component: 1650  -  total flux cleaned = -0.00859878 Jy
! Component: 1700  -  total flux cleaned = -0.00856555 Jy
! Component: 1750  -  total flux cleaned = -0.00856604 Jy
! Component: 1800  -  total flux cleaned = -0.00856577 Jy
! Component: 1850  -  total flux cleaned = -0.00846766 Jy
! Component: 1900  -  total flux cleaned = -0.00850007 Jy
! Component: 1950  -  total flux cleaned = -0.00846814 Jy
! Component: 2000  -  total flux cleaned = -0.00837265 Jy
! Total flux subtracted in 2048 components = -0.00834143 Jy
! Clean residual min=-0.002313 max=0.001944 Jy/beam
! Clean residual mean=0.000035 rms=0.000646 Jy/beam
! Combined flux in latest and established models = 1.04921 Jy
keep
! Adding 140 model components to the UV plane model.
! The established model now contains 296 components and 1.04921 Jy
wmap "J0825+0309_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.205 x 8.688 at -4.458 degrees (North through East)
! Clean map  min=-0.0038916  max=0.81205 Jy/beam
! Writing clean map to FITS file: J0825+0309_S_2003_06_18_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.812046 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000644021 
device "J0825+0309_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J0825+0309_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.237925 0.237925 0.475851 0.951702 1.9034 3.80681 7.61362 15.2272 30.4545 60.9089
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.812 
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.205 x 8.688 at -4.458 degrees (North through East)
! Clean map  min=-0.0038916  max=0.81205 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0825+0309_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J0825+0309_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0825+0309_S_2003_06_18_pus_uvs.log closed on Fri Jan 26 13:50:27 2007