! Started logfile: J2225-0457_S_2003_06_18_pus_uvs.log on Thu Jan 25 13:08:33 2007
obs J2225-0457_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J2225-0457_S_2003_06_18_pus_uva.fits
! AN table 1: 236 integrations on 153 of 153 possible baselines.
! AN table 2: 253 integrations on 153 of 153 possible baselines.
! AN table 3: 211 integrations on 153 of 153 possible baselines.
! AN table 4: 126 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.060327 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2225-0457
! 
! 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 2433 lines of history.
! 
! Reading 30496 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.600x0.600 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 4005 telescope corrections were flagged in sub-array 1.
!  A total of 3984 telescope corrections were flagged in sub-array 2.
!  A total of 2951 telescope corrections were flagged in sub-array 3.
!  A total of 1570 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 4005 telescope corrections were flagged in sub-array 1.
!  A total of 3990 telescope corrections were flagged in sub-array 2.
!  A total of 2947 telescope corrections were flagged in sub-array 3.
!  A total of 1570 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 4005 telescope corrections were flagged in sub-array 1.
!  A total of 3984 telescope corrections were flagged in sub-array 2.
!  A total of 2956 telescope corrections were flagged in sub-array 3.
!  A total of 1570 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 4005 telescope corrections were flagged in sub-array 1.
!  A total of 3990 telescope corrections were flagged in sub-array 2.
!  A total of 2974 telescope corrections were flagged in sub-array 3.
!  A total of 1594 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=2.140426Jy  sigma=0.019549
! Fit after  self-cal, rms=1.814929Jy  sigma=0.017279
! 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=2.061 mas, bmaj=3.517 mas, bpa=-2.204 degrees
! Estimated noise=1036.7 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 = 1.9161 Jy
! Component: 100  -  total flux cleaned = 2.44205 Jy
! Total flux subtracted in 100 components = 2.44205 Jy
! Clean residual min=-0.073216 max=0.246384 Jy/beam
! Clean residual mean=0.004801 rms=0.027229 Jy/beam
! Combined flux in latest and established models = 2.44205 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 16 components and 2.44205 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.909543Jy  sigma=0.007490
! Fit after  self-cal, rms=0.908461Jy  sigma=0.007486
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.289167 Jy
! Component: 100  -  total flux cleaned = 0.460492 Jy
! Total flux subtracted in 100 components = 0.460492 Jy
! Clean residual min=-0.068201 max=0.128224 Jy/beam
! Clean residual mean=0.003609 rms=0.019404 Jy/beam
! Combined flux in latest and established models = 2.90254 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 24 components and 2.90254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.765617Jy  sigma=0.005462
! Fit after  self-cal, rms=0.764814Jy  sigma=0.005457
! Inverting map 
! Added new window around map position (3, -1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.136936 Jy
! Component: 100  -  total flux cleaned = 0.227608 Jy
! Total flux subtracted in 100 components = 0.227608 Jy
! Clean residual min=-0.071349 max=0.097463 Jy/beam
! Clean residual mean=0.003021 rms=0.016778 Jy/beam
! Combined flux in latest and established models = 3.13015 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 35 components and 3.13015 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.720274Jy  sigma=0.004753
! Fit after  self-cal, rms=0.717780Jy  sigma=0.004738
! 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.545 mas, bmaj=4.369 mas, bpa=-7.253 degrees
! Estimated noise=560.518 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.176265 Jy
! Component: 100  -  total flux cleaned = 0.276246 Jy
! Component: 150  -  total flux cleaned = 0.335227 Jy
! Component: 200  -  total flux cleaned = 0.370485 Jy
! Total flux subtracted in 200 components = 0.370485 Jy
! Clean residual min=-0.059003 max=0.122675 Jy/beam
! Clean residual mean=0.012952 rms=0.023224 Jy/beam
! Combined flux in latest and established models = 3.50063 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 49 components and 3.50063 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.684062Jy  sigma=0.004153
! Fit after  self-cal, rms=0.682423Jy  sigma=0.004129
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.96     GG        1.00*    HN        1.00*    
!   KK        0.98     KP        1.00*    LA        0.92     MA        1.00*    
!   MK        0.97     NL        1.04     ON        1.00*    OV        1.00*    
!   PT        0.93     SC        1.00*    TC        1.02     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 168 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.99     GG        1.00*    HN        1.05     
!   KK        1.00*    KP        1.18     LA        1.09     MA        1.00*    
!   MK        1.00*    NL        1.11     ON        1.11     OV        1.00*    
!   PT        1.05     SC        0.96     TC        1.03     TS        1.00*    
!   WF        0.94     WZ        1.00*    
! 
!  A total of 159 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.16     FD        0.95     GG        1.00*    HN        0.93     
!   KK        0.98     KP        1.00     LA        0.97     MA        1.00*    
!   MK        1.01     NL        0.97     ON        1.05     OV        1.04     
!   PT        1.00     SC        0.88     TC        1.05     TS        1.13     
!   WF        1.04     WZ        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.04     FD        0.94     GG        1.00*    HN        1.11     
!   KK        0.98     KP        0.89     LA        0.93     MA        1.00*    
!   MK        0.99     NL        1.02     ON        1.17     OV        1.08     
!   PT        0.94     SC        0.89     TC        1.06     TS        1.07     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00     GG        1.00*    HN        1.00*    
!   KK        1.01     KP        1.00*    LA        0.92     MA        1.00*    
!   MK        1.04     NL        1.11     ON        1.00*    OV        1.00*    
!   PT        0.94     SC        1.00*    TC        1.01     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 165 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.98     GG        1.00*    HN        1.00     
!   KK        1.00*    KP        1.22     LA        1.08     MA        1.00*    
!   MK        1.00*    NL        1.07     ON        1.00     OV        1.00*    
!   PT        1.04     SC        0.97     TC        1.01     TS        1.00*    
!   WF        0.87     WZ        1.00*    
! 
!  A total of 162 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.13     FD        0.96     GG        1.00*    HN        1.01     
!   KK        0.99     KP        1.11     LA        0.96     MA        1.00*    
!   MK        0.97     NL        0.92     ON        0.97     OV        0.97     
!   PT        1.01     SC        0.89     TC        0.98     TS        1.20     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.95     GG        1.00*    HN        1.25     
!   KK        1.02     KP        1.00     LA        0.92     MA        1.00*    
!   MK        1.04     NL        0.97     ON        1.03     OV        1.01     
!   PT        0.94     SC        0.88     TC        1.01     TS        1.09     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00     GG        1.00*    HN        1.00*    
!   KK        1.03     KP        1.00*    LA        0.90     MA        1.00*    
!   MK        0.99     NL        1.09     ON        1.00*    OV        1.00*    
!   PT        0.95     SC        1.00*    TC        0.91     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 171 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.19     LA        1.04     MA        1.00*    
!   MK        1.00*    NL        1.06     ON        1.03     OV        1.00*    
!   PT        1.05     SC        1.16     TC        0.99     TS        1.00*    
!   WF        0.91     WZ        1.00*    
! 
!  A total of 153 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.13     FD        0.97     GG        1.00*    HN        1.01     
!   KK        1.00     KP        1.09     LA        0.93     MA        1.00*    
!   MK        0.93     NL        0.91     ON        0.98     OV        1.00     
!   PT        1.02     SC        1.03     TC        1.01     TS        1.30     
!   WF        1.09     WZ        1.00*    
! 
!  A total of 78 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.96     GG        1.00*    HN        1.28     
!   KK        1.02     KP        1.01     LA        0.89     MA        1.00*    
!   MK        1.01     NL        0.97     ON        1.15     OV        1.00     
!   PT        0.95     SC        1.04     TC        0.98     TS        1.11     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 99 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.01     GG        1.00*    HN        1.00*    
!   KK        1.03     KP        1.00*    LA        0.94     MA        1.00*    
!   MK        0.96     NL        1.14     ON        1.00*    OV        1.00*    
!   PT        1.00     SC        1.00*    TC        0.91     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 165 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.99     GG        1.00*    HN        1.19     
!   KK        1.00*    KP        1.19     LA        1.09     MA        1.00*    
!   MK        1.00*    NL        1.10     ON        1.05     OV        1.00*    
!   PT        1.09     SC        1.14     TC        0.98     TS        1.00*    
!   WF        0.94     WZ        1.00*    
! 
!  A total of 162 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.10     FD        0.96     GG        1.00*    HN        1.16     
!   KK        1.01     KP        1.10     LA        0.95     MA        1.00*    
!   MK        0.89     NL        0.96     ON        0.98     OV        0.90     
!   PT        1.08     SC        1.02     TC        0.97     TS        1.37     
!   WF        1.11     WZ        1.00*    
! 
!  A total of 54 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.96     GG        1.00*    HN        1.23     
!   KK        1.03     KP        1.02     LA        0.93     MA        1.00*    
!   MK        0.96     NL        1.01     ON        1.15     OV        0.98     
!   PT        0.99     SC        1.04     TC        0.99     TS        1.12     
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.682423Jy  sigma=0.004129
! Fit after  self-cal, rms=0.621774Jy  sigma=0.003511
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.589 mas, bmaj=4.603 mas, bpa=-6.441 degrees
! Estimated noise=554.637 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 = 8.5778e-05 Jy
! Component: 100  -  total flux cleaned = -0.00393087 Jy
! Component: 150  -  total flux cleaned = -0.00620271 Jy
! Component: 200  -  total flux cleaned = -0.00664749 Jy
! Total flux subtracted in 200 components = -0.00664749 Jy
! Clean residual min=-0.031616 max=0.083686 Jy/beam
! Clean residual mean=0.011427 rms=0.017268 Jy/beam
! Combined flux in latest and established models = 3.49398 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 56 components and 3.49398 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.619547Jy  sigma=0.003485
! Fit after  self-cal, rms=0.619313Jy  sigma=0.003482
! 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.619313Jy  sigma=0.003482
! Fit after  self-cal, rms=0.633463Jy  sigma=0.003168
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.604 mas, bmaj=4.605 mas, bpa=-6.314 degrees
! Estimated noise=554.488 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00615342 Jy
! Component: 100  -  total flux cleaned = 0.00335239 Jy
! Component: 150  -  total flux cleaned = 0.00182686 Jy
! Component: 200  -  total flux cleaned = 0.000963837 Jy
! Total flux subtracted in 200 components = 0.000963837 Jy
! Clean residual min=-0.029827 max=0.077880 Jy/beam
! Clean residual mean=0.010023 rms=0.016299 Jy/beam
! Combined flux in latest and established models = 3.49495 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 58 components and 3.49495 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.631909Jy  sigma=0.003147
! Fit after  self-cal, rms=0.631890Jy  sigma=0.003144
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 (52.8, -17.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0801848 Jy
! Component: 100  -  total flux cleaned = 0.124444 Jy
! Component: 150  -  total flux cleaned = 0.137632 Jy
! Component: 200  -  total flux cleaned = 0.144995 Jy
! Total flux subtracted in 200 components = 0.144995 Jy
! Clean residual min=-0.028888 max=0.064519 Jy/beam
! Clean residual mean=0.008451 rms=0.013378 Jy/beam
! Combined flux in latest and established models = 3.63994 Jy
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 102 components and 3.63994 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.622294Jy  sigma=0.002972
! Fit after  self-cal, rms=0.620099Jy  sigma=0.002939
! Inverting map 
! Added new window around map position (67.8, -24).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0674204 Jy
! Component: 100  -  total flux cleaned = 0.106879 Jy
! Component: 150  -  total flux cleaned = 0.135378 Jy
! Component: 200  -  total flux cleaned = 0.151539 Jy
! Total flux subtracted in 200 components = 0.151539 Jy
! Clean residual min=-0.025625 max=0.049043 Jy/beam
! Clean residual mean=0.006895 rms=0.010635 Jy/beam
! Combined flux in latest and established models = 3.79148 Jy
! Performing phase self-cal
! Adding 60 model components to the UV plane model.
! The established model now contains 147 components and 3.79148 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.613353Jy  sigma=0.002791
! Fit after  self-cal, rms=0.612368Jy  sigma=0.002779
! Inverting map 
! Added new window around map position (-24, 65.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0454656 Jy
! Component: 100  -  total flux cleaned = 0.0710797 Jy
! Component: 150  -  total flux cleaned = 0.0859708 Jy
! Component: 200  -  total flux cleaned = 0.0944681 Jy
! Total flux subtracted in 200 components = 0.0944681 Jy
! Clean residual min=-0.023249 max=0.036872 Jy/beam
! Clean residual mean=0.006044 rms=0.009396 Jy/beam
! Combined flux in latest and established models = 3.88595 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 174 components and 3.88595 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.609093Jy  sigma=0.002705
! Fit after  self-cal, rms=0.608873Jy  sigma=0.002701
! 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.608873Jy  sigma=0.002701
! Fit after  self-cal, rms=0.610294Jy  sigma=0.002643
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.613 mas, bmaj=4.602 mas, bpa=-6.222 degrees
! Estimated noise=555.661 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0194757 Jy
! Component: 100  -  total flux cleaned = 0.032122 Jy
! Component: 150  -  total flux cleaned = 0.0428165 Jy
! Component: 200  -  total flux cleaned = 0.0526599 Jy
! Total flux subtracted in 200 components = 0.0526599 Jy
! Clean residual min=-0.021562 max=0.033630 Jy/beam
! Clean residual mean=0.006163 rms=0.007837 Jy/beam
! Combined flux in latest and established models = 3.93861 Jy
selfcal
! Performing phase self-cal
! Adding 42 model components to the UV plane model.
! The established model now contains 192 components and 3.93861 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.608289Jy  sigma=0.002602
! Fit after  self-cal, rms=0.608057Jy  sigma=0.002598
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 (39, -14.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0351135 Jy
! Component: 100  -  total flux cleaned = 0.0506463 Jy
! Component: 150  -  total flux cleaned = 0.0602534 Jy
! Component: 200  -  total flux cleaned = 0.0678648 Jy
! Total flux subtracted in 200 components = 0.0678648 Jy
! Clean residual min=-0.021922 max=0.030635 Jy/beam
! Clean residual mean=0.005362 rms=0.007416 Jy/beam
! Combined flux in latest and established models = 4.00647 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 213 components and 4.00647 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.605676Jy  sigma=0.002563
! Fit after  self-cal, rms=0.605410Jy  sigma=0.002558
! 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.605410Jy  sigma=0.002558
! Fit after  self-cal, rms=0.605887Jy  sigma=0.002548
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.515 mas, bmaj=15.22 mas, bpa=-10.38 degrees
! Estimated noise=665.704 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0418242 Jy
! Component: 100  -  total flux cleaned = 0.0689567 Jy
! Component: 150  -  total flux cleaned = 0.0789373 Jy
! Component: 200  -  total flux cleaned = 0.0851659 Jy
! Total flux subtracted in 200 components = 0.0851659 Jy
! Clean residual min=-0.024468 max=0.052609 Jy/beam
! Clean residual mean=0.010500 rms=0.012761 Jy/beam
! Combined flux in latest and established models = 4.09164 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 225 components and 4.09164 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.605221Jy  sigma=0.002545
! Fit after  self-cal, rms=0.604820Jy  sigma=0.002541
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.012118 Jy
! Component: 100  -  total flux cleaned = 0.0175965 Jy
! Component: 150  -  total flux cleaned = 0.0204409 Jy
! Component: 200  -  total flux cleaned = 0.0225801 Jy
! Total flux subtracted in 200 components = 0.0225801 Jy
! Clean residual min=-0.025028 max=0.052702 Jy/beam
! Clean residual mean=0.009855 rms=0.012930 Jy/beam
! Combined flux in latest and established models = 4.11422 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 227 components and 4.11422 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.604689Jy  sigma=0.002546
! Fit after  self-cal, rms=0.604641Jy  sigma=0.002545
! 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.619 mas, bmaj=4.599 mas, bpa=-6.205 degrees
! Estimated noise=555.703 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.619 x 4.599 at -6.205 degrees (North through East)
! Clean map  min=-0.023027  max=2.5762 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.604641Jy  sigma=0.002545
! Fit after  self-cal, rms=0.692381Jy  sigma=0.002054
! Inverting map and beam 
! Estimated beam: bmin=2.615 mas, bmaj=4.594 mas, bpa=-6.191 degrees
! Estimated noise=554.14 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0205023 Jy
! Component: 100  -  total flux cleaned = -0.030268 Jy
! Component: 150  -  total flux cleaned = -0.0335098 Jy
! Component: 200  -  total flux cleaned = -0.0331045 Jy
! Total flux subtracted in 200 components = -0.0331045 Jy
! Clean residual min=-0.018029 max=0.023427 Jy/beam
! Clean residual mean=0.002660 rms=0.006175 Jy/beam
! Combined flux in latest and established models = 4.08111 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 236 components and 4.08111 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.691552Jy  sigma=0.002031
! Fit after  self-cal, rms=0.691407Jy  sigma=0.002030
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00140089 Jy
! Component: 100  -  total flux cleaned = -0.000675363 Jy
! Component: 150  -  total flux cleaned = 0.000685346 Jy
! Component: 200  -  total flux cleaned = 0.0013319 Jy
! Total flux subtracted in 200 components = 0.0013319 Jy
! Clean residual min=-0.017593 max=0.023486 Jy/beam
! Clean residual mean=0.002630 rms=0.006092 Jy/beam
! Combined flux in latest and established models = 4.08245 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 245 components and 4.08245 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.691045Jy  sigma=0.002022
! Fit after  self-cal, rms=0.691001Jy  sigma=0.002022
! 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.691001Jy  sigma=0.002022
! Fit after  self-cal, rms=0.699529Jy  sigma=0.002019
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.091 mas, bmaj=3.584 mas, bpa=-1.847 degrees
! Estimated noise=1037.78 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.92761 Jy
! Component: 100  -  total flux cleaned = 2.46002 Jy
! Component: 150  -  total flux cleaned = 2.74374 Jy
! Component: 200  -  total flux cleaned = 2.92707 Jy
! Total flux subtracted in 200 components = 2.92707 Jy
! Clean residual min=-0.035701 max=0.100491 Jy/beam
! Clean residual mean=0.003193 rms=0.013264 Jy/beam
! Combined flux in latest and established models = 2.92707 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 28 model components to the UV plane model.
! The established model now contains 28 components and 2.92707 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.62 mas, bmaj=4.595 mas, bpa=-6.197 degrees
! Estimated noise=553.985 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.245651 Jy
! Component: 100  -  total flux cleaned = 0.40522 Jy
! Component: 150  -  total flux cleaned = 0.518212 Jy
! Component: 200  -  total flux cleaned = 0.606832 Jy
! Total flux subtracted in 200 components = 0.606832 Jy
! Clean residual min=-0.026233 max=0.065566 Jy/beam
! Clean residual mean=0.008629 rms=0.015586 Jy/beam
! Combined flux in latest and established models = 3.5339 Jy
! Adding 87 model components to the UV plane model.
! The established model now contains 103 components and 3.5339 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.535 mas, bmaj=15.23 mas, bpa=-10.28 degrees
! Estimated noise=662.824 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.146858 Jy
! Component: 100  -  total flux cleaned = 0.24828 Jy
! Component: 150  -  total flux cleaned = 0.323038 Jy
! Component: 200  -  total flux cleaned = 0.379346 Jy
! Total flux subtracted in 200 components = 0.379346 Jy
! Clean residual min=-0.029254 max=0.047924 Jy/beam
! Clean residual mean=0.009988 rms=0.013878 Jy/beam
! Combined flux in latest and established models = 3.91325 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.042847 Jy
! Component: 100  -  total flux cleaned = 0.0756122 Jy
! Component: 150  -  total flux cleaned = 0.100772 Jy
! Component: 200  -  total flux cleaned = 0.120166 Jy
! Total flux subtracted in 200 components = 0.120166 Jy
! Clean residual min=-0.024472 max=0.040224 Jy/beam
! Clean residual mean=0.006939 rms=0.010968 Jy/beam
! Combined flux in latest and established models = 4.03341 Jy
! Adding 118 model components to the UV plane model.
! The established model now contains 203 components and 4.03341 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.62 mas, bmaj=4.595 mas, bpa=-6.197 degrees
! Estimated noise=553.985 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00210881 Jy
! Component: 100  -  total flux cleaned = 0.00212802 Jy
! Component: 150  -  total flux cleaned = 0.00574275 Jy
! Component: 200  -  total flux cleaned = 0.00637463 Jy
! Total flux subtracted in 200 components = 0.00637463 Jy
! Clean residual min=-0.018639 max=0.030344 Jy/beam
! Clean residual mean=0.003029 rms=0.006139 Jy/beam
! Combined flux in latest and established models = 4.03979 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 216 components and 4.03979 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.701601Jy  sigma=0.002055
! Fit after  self-cal, rms=0.701209Jy  sigma=0.002046
wmodel J2225-0457_S_2003_06_18_pus_map.mod
! Writing 216 model components to file: J2225-0457_S_2003_06_18_pus_map.mod
wobs J2225-0457_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J2225-0457_S_2003_06_18_pus_uvs.fits
wwins J2225-0457_S_2003_06_18_pus_map.win
! wwins: Wrote 6 windows to J2225-0457_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.011529 Jy
! Component: 100  -  total flux cleaned = 0.0214228 Jy
! Component: 150  -  total flux cleaned = 0.030616 Jy
! Component: 200  -  total flux cleaned = 0.0379483 Jy
! Component: 250  -  total flux cleaned = 0.0443086 Jy
! Component: 300  -  total flux cleaned = 0.0504179 Jy
! Component: 350  -  total flux cleaned = 0.0563021 Jy
! Component: 400  -  total flux cleaned = 0.0613988 Jy
! Component: 450  -  total flux cleaned = 0.0663578 Jy
! Component: 500  -  total flux cleaned = 0.071192 Jy
! Component: 550  -  total flux cleaned = 0.0759143 Jy
! Component: 600  -  total flux cleaned = 0.0810753 Jy
! Component: 650  -  total flux cleaned = 0.0858679 Jy
! Component: 700  -  total flux cleaned = 0.0910873 Jy
! Component: 750  -  total flux cleaned = 0.095954 Jy
! Component: 800  -  total flux cleaned = 0.100732 Jy
! Component: 850  -  total flux cleaned = 0.105919 Jy
! Component: 900  -  total flux cleaned = 0.110533 Jy
! Component: 950  -  total flux cleaned = 0.115073 Jy
! Component: 1000  -  total flux cleaned = 0.11931 Jy
! Component: 1050  -  total flux cleaned = 0.123255 Jy
! Component: 1100  -  total flux cleaned = 0.126689 Jy
! Component: 1150  -  total flux cleaned = 0.130755 Jy
! Component: 1200  -  total flux cleaned = 0.134765 Jy
! Component: 1250  -  total flux cleaned = 0.138063 Jy
! Component: 1300  -  total flux cleaned = 0.141537 Jy
! Component: 1350  -  total flux cleaned = 0.144753 Jy
! Component: 1400  -  total flux cleaned = 0.14793 Jy
! Component: 1450  -  total flux cleaned = 0.150443 Jy
! Component: 1500  -  total flux cleaned = 0.153548 Jy
! Component: 1550  -  total flux cleaned = 0.15682 Jy
! Component: 1600  -  total flux cleaned = 0.159042 Jy
! Component: 1650  -  total flux cleaned = 0.161841 Jy
! Component: 1700  -  total flux cleaned = 0.164412 Jy
! Component: 1750  -  total flux cleaned = 0.166955 Jy
! Component: 1800  -  total flux cleaned = 0.169471 Jy
! Component: 1850  -  total flux cleaned = 0.17177 Jy
! Component: 1900  -  total flux cleaned = 0.173855 Jy
! Component: 1950  -  total flux cleaned = 0.175921 Jy
! Component: 2000  -  total flux cleaned = 0.177966 Jy
! Total flux subtracted in 2048 components = 0.179806 Jy
! Clean residual min=-0.009524 max=0.011295 Jy/beam
! Clean residual mean=0.001466 rms=0.003658 Jy/beam
! Combined flux in latest and established models = 4.21959 Jy
keep
! Adding 179 model components to the UV plane model.
! The established model now contains 393 components and 4.21959 Jy
wmap "J2225-0457_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.62 x 4.595 at -6.197 degrees (North through East)
! Clean map  min=-0.013967  max=2.5996 Jy/beam
! Writing clean map to FITS file: J2225-0457_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 2.59962 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00361254 
device "J2225-0457_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J2225-0457_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.416892 0.416892 0.833785 1.66757 3.33514 6.67028 13.3406 26.6811 53.3622
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0108 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.599 
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.62 x 4.595 at -6.197 degrees (North through East)
! Clean map  min=-0.013967  max=2.5996 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2225-0457_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J2225-0457_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2225-0457_S_2003_06_18_pus_uvs.log closed on Thu Jan 25 13:12:05 2007