! Started logfile: J0824+5552_X_2003_06_18_pus_uvs.log on Fri Jan 19 12:59:26 2007
obs J0824+5552_X_2003_06_18_pus_uva.fits
! Reading UV FITS file: J0824+5552_X_2003_06_18_pus_uva.fits
! AN table 1: 300 integrations on 153 of 153 possible baselines.
! AN table 2: 26 integrations on 153 of 153 possible baselines.
! AN table 3: 151 integrations on 153 of 153 possible baselines.
! AN table 4: 72 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.154077 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0824+5552
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2235 lines of history.
! 
! Reading 51768 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.16
float taper_size
taper_size = 90.
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.160x0.160 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 3707 telescope corrections were flagged in sub-array 1.
!  A total of 468 telescope corrections were flagged in sub-array 2.
!  A total of 2021 telescope corrections were flagged in sub-array 3.
!  A total of 1123 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 3402 telescope corrections were flagged in sub-array 1.
!  A total of 423 telescope corrections were flagged in sub-array 2.
!  A total of 1986 telescope corrections were flagged in sub-array 3.
!  A total of 1123 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 3538 telescope corrections were flagged in sub-array 1.
!  A total of 423 telescope corrections were flagged in sub-array 2.
!  A total of 1986 telescope corrections were flagged in sub-array 3.
!  A total of 1123 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 3402 telescope corrections were flagged in sub-array 1.
!  A total of 468 telescope corrections were flagged in sub-array 2.
!  A total of 1986 telescope corrections were flagged in sub-array 3.
!  A total of 1123 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.930354Jy  sigma=0.011583
! Fit after  self-cal, rms=0.623612Jy  sigma=0.006674
! 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=0.5033 mas, bmaj=0.7043 mas, bpa=8.109 degrees
! Estimated noise=639.73 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.312391 Jy
! Component: 100  -  total flux cleaned = 0.433689 Jy
! Total flux subtracted in 100 components = 0.433689 Jy
! Clean residual min=-0.018127 max=0.073260 Jy/beam
! Clean residual mean=0.000032 rms=0.005112 Jy/beam
! Combined flux in latest and established models = 0.433689 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.433689 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.289846Jy  sigma=0.003038
! Fit after  self-cal, rms=0.287364Jy  sigma=0.003032
! Inverting map 
! Added new window around map position (0.64, -0.16).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0749806 Jy
! Component: 100  -  total flux cleaned = 0.11724 Jy
! Total flux subtracted in 100 components = 0.11724 Jy
! Clean residual min=-0.012145 max=0.039234 Jy/beam
! Clean residual mean=0.000020 rms=0.003093 Jy/beam
! Combined flux in latest and established models = 0.55093 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 17 components and 0.55093 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256911Jy  sigma=0.002355
! Fit after  self-cal, rms=0.254849Jy  sigma=0.002338
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0313213 Jy
! Component: 100  -  total flux cleaned = 0.0485286 Jy
! Total flux subtracted in 100 components = 0.0485286 Jy
! Clean residual min=-0.009101 max=0.020922 Jy/beam
! Clean residual mean=0.000016 rms=0.002377 Jy/beam
! Combined flux in latest and established models = 0.599459 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 20 components and 0.599458 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248464Jy  sigma=0.002167
! Fit after  self-cal, rms=0.247864Jy  sigma=0.002162
! Inverting map 
! Added new window around map position (2.24, -0.32).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.018734 Jy
! Component: 100  -  total flux cleaned = 0.0311702 Jy
! Total flux subtracted in 100 components = 0.0311702 Jy
! Clean residual min=-0.007540 max=0.014675 Jy/beam
! Clean residual mean=0.000015 rms=0.002045 Jy/beam
! Combined flux in latest and established models = 0.630629 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 29 components and 0.630629 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245408Jy  sigma=0.002090
! Fit after  self-cal, rms=0.245156Jy  sigma=0.002086
! Inverting map 
! Added new window around map position (2.88, -0.16).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0128614 Jy
! Component: 100  -  total flux cleaned = 0.0215546 Jy
! Total flux subtracted in 100 components = 0.0215546 Jy
! Clean residual min=-0.007444 max=0.011779 Jy/beam
! Clean residual mean=0.000013 rms=0.001855 Jy/beam
! Combined flux in latest and established models = 0.652183 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 36 components and 0.652183 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244041Jy  sigma=0.002051
! Fit after  self-cal, rms=0.243948Jy  sigma=0.002049
! 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=0.6983 mas, bmaj=0.9209 mas, bpa=18.27 degrees
! Estimated noise=276.078 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 (1.28, -0.48).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0199455 Jy
! Component: 100  -  total flux cleaned = 0.0310113 Jy
! Component: 150  -  total flux cleaned = 0.0343493 Jy
! Component: 200  -  total flux cleaned = 0.0362192 Jy
! Total flux subtracted in 200 components = 0.0362192 Jy
! Clean residual min=-0.007571 max=0.010303 Jy/beam
! Clean residual mean=0.000207 rms=0.002263 Jy/beam
! Combined flux in latest and established models = 0.688403 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 59 components and 0.688403 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242655Jy  sigma=0.002009
! Fit after  self-cal, rms=0.242464Jy  sigma=0.002005
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 132 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.95     GG        1.00*    HN        1.03     
!   KK        1.00     KP        0.99     LA        0.97     MA        1.00*    
!   MK        0.99     NL        1.06     ON        1.02     OV        0.95     
!   PT        0.97     SC        0.97     TC        1.00*    TS        0.94     
!   WF        1.15     WZ        1.00*    
! 
!  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*    
!   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 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.05     GG        1.00*    HN        0.94     
!   KK        1.00*    KP        1.11     LA        1.00     MA        1.00*    
!   MK        1.00*    NL        1.04     ON        1.07     OV        1.06     
!   PT        1.02     SC        0.96     TC        1.00*    TS        1.08     
!   WF        0.94     WZ        1.17     
! 
!  A total of 93 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.03     FD        1.00*    GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.00*    LA        1.04     MA        1.00*    
!   MK        1.00*    NL        1.03     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        0.95     
!   WF        0.90     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 168 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.96     GG        1.00*    HN        1.05     
!   KK        0.99     KP        0.95     LA        0.98     MA        0.94     
!   MK        0.99     NL        1.03     ON        1.02     OV        0.94     
!   PT        1.01     SC        0.94     TC        1.00*    TS        0.91     
!   WF        1.16     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  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*    
!   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 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.04     GG        1.00*    HN        0.95     
!   KK        1.00*    KP        1.05     LA        1.01     MA        0.94     
!   MK        1.00*    NL        1.01     ON        1.02     OV        1.04     
!   PT        1.06     SC        0.95     TC        1.00*    TS        1.10     
!   WF        0.98     WZ        1.04     
! 
!  A total of 93 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        1.00*    GG        1.00*    HN        1.00     
!   KK        1.00*    KP        1.00*    LA        1.17     MA        1.00*    
!   MK        1.00*    NL        0.94     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        0.97     
!   WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 147 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.95     GG        1.00*    HN        1.04     
!   KK        1.07     KP        0.99     LA        0.99     MA        0.99     
!   MK        0.98     NL        1.00     ON        0.93     OV        0.99     
!   PT        1.04     SC        0.98     TC        1.00*    TS        0.91     
!   WF        1.10     WZ        1.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  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*    
!   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 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.01     GG        1.00*    HN        0.95     
!   KK        1.00*    KP        1.10     LA        1.02     MA        0.89     
!   MK        1.00*    NL        0.98     ON        1.01     OV        1.10     
!   PT        1.12     SC        0.98     TC        1.00*    TS        1.11     
!   WF        0.92     WZ        1.10     
! 
!  A total of 93 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.00*    GG        1.00*    HN        0.99     
!   KK        1.00*    KP        1.00*    LA        1.13     MA        1.00*    
!   MK        1.00*    NL        0.99     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        0.88     
!   WF        0.94     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 168 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.94     GG        1.00*    HN        1.07     
!   KK        1.03     KP        0.95     LA        0.98     MA        0.96     
!   MK        1.03     NL        1.02     ON        0.96     OV        0.97     
!   PT        1.03     SC        1.04     TC        1.00*    TS        0.93     
!   WF        1.06     WZ        1.00*    
! 
!  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*    
!   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 36 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.02     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.07     LA        1.01     MA        0.82     
!   MK        1.00*    NL        1.00     ON        0.99     OV        1.06     
!   PT        1.12     SC        1.00     TC        1.00*    TS        1.08     
!   WF        0.90     WZ        1.03     
! 
!  A total of 93 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        1.00*    GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.00*    LA        1.12     MA        1.00*    
!   MK        1.00*    NL        1.03     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    TC        1.00*    TS        0.90     
!   WF        1.03     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.242464Jy  sigma=0.002005
! Fit after  self-cal, rms=0.236398Jy  sigma=0.001964
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7014 mas, bmaj=0.9204 mas, bpa=17.01 degrees
! Estimated noise=276.6 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 (4.32, 1.12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00608131 Jy
! Component: 100  -  total flux cleaned = 0.0069451 Jy
! Component: 150  -  total flux cleaned = 0.00736201 Jy
! Component: 200  -  total flux cleaned = 0.00774099 Jy
! Total flux subtracted in 200 components = 0.00774099 Jy
! Clean residual min=-0.004028 max=0.006353 Jy/beam
! Clean residual mean=0.000563 rms=0.001236 Jy/beam
! Combined flux in latest and established models = 0.696144 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 76 components and 0.696144 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236130Jy  sigma=0.001960
! Fit after  self-cal, rms=0.236183Jy  sigma=0.001959
! Inverting map 
! Added new window around map position (20.32, 6.72).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00589861 Jy
! Component: 100  -  total flux cleaned = 0.00884631 Jy
! Component: 150  -  total flux cleaned = 0.0096849 Jy
! Component: 200  -  total flux cleaned = 0.0103447 Jy
! Total flux subtracted in 200 components = 0.0103447 Jy
! Clean residual min=-0.003912 max=0.004782 Jy/beam
! Clean residual mean=0.000480 rms=0.001130 Jy/beam
! Combined flux in latest and established models = 0.706488 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 93 components and 0.706489 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235977Jy  sigma=0.001956
! Fit after  self-cal, rms=0.235976Jy  sigma=0.001956
! 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.235976Jy  sigma=0.001956
! Fit after  self-cal, rms=0.238181Jy  sigma=0.001943
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.7026 mas, bmaj=0.9152 mas, bpa=16.97 degrees
! Estimated noise=276.984 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00313973 Jy
! Component: 100  -  total flux cleaned = 0.00484487 Jy
! Component: 150  -  total flux cleaned = 0.00601852 Jy
! Component: 200  -  total flux cleaned = 0.00688808 Jy
! Total flux subtracted in 200 components = 0.00688808 Jy
! Clean residual min=-0.002525 max=0.004474 Jy/beam
! Clean residual mean=0.000326 rms=0.000847 Jy/beam
! Combined flux in latest and established models = 0.713377 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 112 components and 0.713377 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238104Jy  sigma=0.001942
! Fit after  self-cal, rms=0.238178Jy  sigma=0.001942
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 (17.92, 3.04).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0043822 Jy
! Component: 100  -  total flux cleaned = 0.006904 Jy
! Component: 150  -  total flux cleaned = 0.00847744 Jy
! Component: 200  -  total flux cleaned = 0.00950763 Jy
! Total flux subtracted in 200 components = 0.00950763 Jy
! Clean residual min=-0.002444 max=0.003387 Jy/beam
! Clean residual mean=0.000247 rms=0.000750 Jy/beam
! Combined flux in latest and established models = 0.722884 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 130 components and 0.722885 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238081Jy  sigma=0.001941
! Fit after  self-cal, rms=0.238061Jy  sigma=0.001940
! Inverting map 
! Added new window around map position (-16.48, -13.12).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00303994 Jy
! Component: 100  -  total flux cleaned = 0.00427942 Jy
! Component: 150  -  total flux cleaned = 0.00523649 Jy
! Component: 200  -  total flux cleaned = 0.00611156 Jy
! Total flux subtracted in 200 components = 0.00611156 Jy
! Clean residual min=-0.002333 max=0.003112 Jy/beam
! Clean residual mean=0.000209 rms=0.000693 Jy/beam
! Combined flux in latest and established models = 0.728996 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 144 components and 0.728996 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237995Jy  sigma=0.001940
! Fit after  self-cal, rms=0.237990Jy  sigma=0.001939
! Inverting map 
! Added new window around map position (15.68, 7.04).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00308893 Jy
! Component: 100  -  total flux cleaned = 0.00445354 Jy
! Component: 150  -  total flux cleaned = 0.00517901 Jy
! Component: 200  -  total flux cleaned = 0.00556434 Jy
! Total flux subtracted in 200 components = 0.00556434 Jy
! Clean residual min=-0.002189 max=0.002841 Jy/beam
! Clean residual mean=0.000158 rms=0.000652 Jy/beam
! Combined flux in latest and established models = 0.73456 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 159 components and 0.73456 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237930Jy  sigma=0.001939
! Fit after  self-cal, rms=0.237940Jy  sigma=0.001939
! Inverting map 
! Added new window around map position (6.88, 3.36).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00277738 Jy
! Component: 100  -  total flux cleaned = 0.00403364 Jy
! Component: 150  -  total flux cleaned = 0.0044762 Jy
! Component: 200  -  total flux cleaned = 0.00457771 Jy
! Total flux subtracted in 200 components = 0.00457771 Jy
! Clean residual min=-0.002225 max=0.002538 Jy/beam
! Clean residual mean=0.000129 rms=0.000612 Jy/beam
! Combined flux in latest and established models = 0.739138 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 177 components and 0.739138 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237894Jy  sigma=0.001938
! Fit after  self-cal, rms=0.237876Jy  sigma=0.001938
! 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.237876Jy  sigma=0.001938
! Fit after  self-cal, rms=0.238390Jy  sigma=0.001937
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.7023 mas, bmaj=0.914 mas, bpa=16.89 degrees
! Estimated noise=276.597 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00125524 Jy
! Component: 100  -  total flux cleaned = 0.00216131 Jy
! Component: 150  -  total flux cleaned = 0.00276451 Jy
! Component: 200  -  total flux cleaned = 0.00322594 Jy
! Total flux subtracted in 200 components = 0.00322594 Jy
! Clean residual min=-0.002091 max=0.002353 Jy/beam
! Clean residual mean=0.000123 rms=0.000581 Jy/beam
! Combined flux in latest and established models = 0.742364 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 187 components and 0.742364 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238355Jy  sigma=0.001937
! Fit after  self-cal, rms=0.238376Jy  sigma=0.001937
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.000405064 Jy
! Component: 100  -  total flux cleaned = 0.000754283 Jy
! Component: 150  -  total flux cleaned = 0.00108592 Jy
! Component: 200  -  total flux cleaned = 0.00135978 Jy
! Total flux subtracted in 200 components = 0.00135978 Jy
! Clean residual min=-0.002075 max=0.002360 Jy/beam
! Clean residual mean=0.000114 rms=0.000573 Jy/beam
! Combined flux in latest and established models = 0.743724 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 189 components and 0.743724 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238350Jy  sigma=0.001937
! Fit after  self-cal, rms=0.238352Jy  sigma=0.001937
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 90 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.238352Jy  sigma=0.001937
! Fit after  self-cal, rms=0.238450Jy  sigma=0.001936
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.852 mas, bmaj=2.705 mas, bpa=68.46 degrees
! Estimated noise=332.577 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00222891 Jy
! Component: 100  -  total flux cleaned = 0.00383406 Jy
! Component: 150  -  total flux cleaned = 0.0049822 Jy
! Component: 200  -  total flux cleaned = 0.00572185 Jy
! Total flux subtracted in 200 components = 0.00572185 Jy
! Clean residual min=-0.002457 max=0.002375 Jy/beam
! Clean residual mean=0.000176 rms=0.000686 Jy/beam
! Combined flux in latest and established models = 0.749445 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 200 components and 0.749445 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238447Jy  sigma=0.001936
! Fit after  self-cal, rms=0.238443Jy  sigma=0.001936
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.000993531 Jy
! Component: 100  -  total flux cleaned = 0.00140644 Jy
! Component: 150  -  total flux cleaned = 0.00160719 Jy
! Component: 200  -  total flux cleaned = 0.00179065 Jy
! Total flux subtracted in 200 components = 0.00179065 Jy
! Clean residual min=-0.002464 max=0.002312 Jy/beam
! Clean residual mean=0.000156 rms=0.000672 Jy/beam
! Combined flux in latest and established models = 0.751236 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 205 components and 0.751236 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238443Jy  sigma=0.001936
! Fit after  self-cal, rms=0.238442Jy  sigma=0.001936
! 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=0.7022 mas, bmaj=0.9133 mas, bpa=16.89 degrees
! Estimated noise=276.438 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7022 x 0.9133 at 16.89 degrees (North through East)
! Clean map  min=-0.0029269  max=0.42274 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=0.5034 mas, bmaj=0.6962 mas, bpa=6.835 degrees
! Estimated noise=655.011 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.310728 Jy
! Component: 100  -  total flux cleaned = 0.441354 Jy
! Component: 150  -  total flux cleaned = 0.514057 Jy
! Component: 200  -  total flux cleaned = 0.557758 Jy
! Total flux subtracted in 200 components = 0.557758 Jy
! Clean residual min=-0.008090 max=0.022661 Jy/beam
! Clean residual mean=0.000040 rms=0.002327 Jy/beam
! Combined flux in latest and established models = 0.557758 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 12 model components to the UV plane model.
! The established model now contains 12 components and 0.557758 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.7022 mas, bmaj=0.9133 mas, bpa=16.89 degrees
! Estimated noise=276.438 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.0563891 Jy
! Component: 100  -  total flux cleaned = 0.0870717 Jy
! Component: 150  -  total flux cleaned = 0.105993 Jy
! Component: 200  -  total flux cleaned = 0.118603 Jy
! Total flux subtracted in 200 components = 0.118603 Jy
! Clean residual min=-0.003421 max=0.009145 Jy/beam
! Clean residual mean=0.000576 rms=0.001407 Jy/beam
! Combined flux in latest and established models = 0.676361 Jy
! Adding 63 model components to the UV plane model.
! The established model now contains 66 components and 0.676361 Jy
! Inverting map 
! Added new window around map position (-0.64, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00950918 Jy
! Component: 100  -  total flux cleaned = 0.0165316 Jy
! Component: 150  -  total flux cleaned = 0.0224568 Jy
! Component: 200  -  total flux cleaned = 0.0276633 Jy
! Total flux subtracted in 200 components = 0.0276633 Jy
! Clean residual min=-0.002498 max=0.004291 Jy/beam
! Clean residual mean=0.000389 rms=0.000946 Jy/beam
! Combined flux in latest and established models = 0.704025 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 112 components and 0.704025 Jy
! Inverting map 
! Added new window around map position (6.08, 0.96).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00485025 Jy
! Component: 100  -  total flux cleaned = 0.00905094 Jy
! Component: 150  -  total flux cleaned = 0.0128314 Jy
! Component: 200  -  total flux cleaned = 0.0162501 Jy
! Total flux subtracted in 200 components = 0.0162501 Jy
! Clean residual min=-0.002357 max=0.003360 Jy/beam
! Clean residual mean=0.000272 rms=0.000750 Jy/beam
! Combined flux in latest and established models = 0.720275 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 135 components and 0.720275 Jy
! Inverting map 
! Added new window around map position (20.32, 4.64).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00349874 Jy
! Component: 100  -  total flux cleaned = 0.00641524 Jy
! Component: 150  -  total flux cleaned = 0.0090714 Jy
! Component: 200  -  total flux cleaned = 0.0114993 Jy
! Total flux subtracted in 200 components = 0.0114993 Jy
! Clean residual min=-0.002138 max=0.002698 Jy/beam
! Clean residual mean=0.000196 rms=0.000642 Jy/beam
! Combined flux in latest and established models = 0.731774 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 158 components and 0.731774 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 90 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.852 mas, bmaj=2.705 mas, bpa=68.46 degrees
! Estimated noise=332.577 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00400642 Jy
! Component: 100  -  total flux cleaned = 0.00718121 Jy
! Component: 150  -  total flux cleaned = 0.00981577 Jy
! Component: 200  -  total flux cleaned = 0.0120356 Jy
! Total flux subtracted in 200 components = 0.0120356 Jy
! Clean residual min=-0.002096 max=0.002786 Jy/beam
! Clean residual mean=0.000255 rms=0.000744 Jy/beam
! Combined flux in latest and established models = 0.74381 Jy
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00187485 Jy
! Component: 100  -  total flux cleaned = 0.00304026 Jy
! Component: 150  -  total flux cleaned = 0.00400815 Jy
! Component: 200  -  total flux cleaned = 0.00481658 Jy
! Total flux subtracted in 200 components = 0.00481658 Jy
! Clean residual min=-0.002033 max=0.002230 Jy/beam
! Clean residual mean=0.000167 rms=0.000664 Jy/beam
! Combined flux in latest and established models = 0.748626 Jy
! Adding 70 model components to the UV plane model.
! The established model now contains 213 components and 0.748626 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.7022 mas, bmaj=0.9133 mas, bpa=16.89 degrees
! Estimated noise=276.438 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000357473 Jy
! Component: 100  -  total flux cleaned = 0.000708275 Jy
! Component: 150  -  total flux cleaned = 0.000871667 Jy
! Component: 200  -  total flux cleaned = 0.00108111 Jy
! Total flux subtracted in 200 components = 0.00108111 Jy
! Clean residual min=-0.002055 max=0.002513 Jy/beam
! Clean residual mean=0.000083 rms=0.000539 Jy/beam
! Combined flux in latest and established models = 0.749707 Jy
selfcal
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 237 components and 0.749707 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238369Jy  sigma=0.001936
! Fit after  self-cal, rms=0.238326Jy  sigma=0.001935
wmodel J0824+5552_X_2003_06_18_pus_map.mod
! Writing 237 model components to file: J0824+5552_X_2003_06_18_pus_map.mod
wobs J0824+5552_X_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J0824+5552_X_2003_06_18_pus_uvs.fits
wwins J0824+5552_X_2003_06_18_pus_map.win
! wwins: Wrote 14 windows to J0824+5552_X_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.000941487 Jy
! Component: 100  -  total flux cleaned = 0.00161075 Jy
! Component: 150  -  total flux cleaned = 0.00225009 Jy
! Component: 200  -  total flux cleaned = 0.00276457 Jy
! Component: 250  -  total flux cleaned = 0.00323237 Jy
! Component: 300  -  total flux cleaned = 0.00365603 Jy
! Component: 350  -  total flux cleaned = 0.0038795 Jy
! Component: 400  -  total flux cleaned = 0.00419295 Jy
! Component: 450  -  total flux cleaned = 0.00447031 Jy
! Component: 500  -  total flux cleaned = 0.00468293 Jy
! Component: 550  -  total flux cleaned = 0.00492233 Jy
! Component: 600  -  total flux cleaned = 0.00512912 Jy
! Component: 650  -  total flux cleaned = 0.00533287 Jy
! Component: 700  -  total flux cleaned = 0.00553389 Jy
! Component: 750  -  total flux cleaned = 0.00573208 Jy
! Component: 800  -  total flux cleaned = 0.00590005 Jy
! Component: 850  -  total flux cleaned = 0.00603838 Jy
! Component: 900  -  total flux cleaned = 0.00614793 Jy
! Component: 950  -  total flux cleaned = 0.00631059 Jy
! Component: 1000  -  total flux cleaned = 0.00644474 Jy
! Component: 1050  -  total flux cleaned = 0.00655107 Jy
! Component: 1100  -  total flux cleaned = 0.00665643 Jy
! Component: 1150  -  total flux cleaned = 0.00678705 Jy
! Component: 1200  -  total flux cleaned = 0.00683878 Jy
! Component: 1250  -  total flux cleaned = 0.00699323 Jy
! Component: 1300  -  total flux cleaned = 0.00714607 Jy
! Component: 1350  -  total flux cleaned = 0.00724706 Jy
! Component: 1400  -  total flux cleaned = 0.00732224 Jy
! Component: 1450  -  total flux cleaned = 0.00739705 Jy
! Component: 1500  -  total flux cleaned = 0.0075454 Jy
! Component: 1550  -  total flux cleaned = 0.00764338 Jy
! Component: 1600  -  total flux cleaned = 0.00769224 Jy
! Component: 1650  -  total flux cleaned = 0.0077649 Jy
! Component: 1700  -  total flux cleaned = 0.00795701 Jy
! Component: 1750  -  total flux cleaned = 0.00800448 Jy
! Component: 1800  -  total flux cleaned = 0.00805188 Jy
! Component: 1850  -  total flux cleaned = 0.00814612 Jy
! Component: 1900  -  total flux cleaned = 0.0082397 Jy
! Component: 1950  -  total flux cleaned = 0.00823984 Jy
! Component: 2000  -  total flux cleaned = 0.0083554 Jy
! Total flux subtracted in 2048 components = 0.00837842 Jy
! Clean residual min=-0.001416 max=0.001293 Jy/beam
! Clean residual mean=0.000021 rms=0.000410 Jy/beam
! Combined flux in latest and established models = 0.758086 Jy
keep
! Adding 162 model components to the UV plane model.
! The established model now contains 399 components and 0.758086 Jy
wmap "J0824+5552_X_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7022 x 0.9133 at 16.89 degrees (North through East)
! Clean map  min=-0.0015966  max=0.41997 Jy/beam
! Writing clean map to FITS file: J0824+5552_X_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.419967 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000410218 
device "J0824+5552_X_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J0824+5552_X_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.293036 0.293036 0.586071 1.17214 2.34428 4.68857 9.37714 18.7543 37.5086 75.0171
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.419 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7022 x 0.9133 at 16.89 degrees (North through East)
! Clean map  min=-0.0015966  max=0.41997 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0824+5552_X_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J0824+5552_X_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0824+5552_X_2003_06_18_pus_uvs.log closed on Fri Jan 19 13:02:39 2007