! Started logfile: J0921-2618_S_2003_05_07_pus_uvs.log on Sun Dec 24 10:04:36 2006
obs J0921-2618_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J0921-2618_S_2003_05_07_pus_uva.fits
! AN table 1: 39 integrations on 171 of 171 possible baselines.
! AN table 2: 146 integrations on 171 of 171 possible baselines.
! AN table 3: 10 integrations on 171 of 171 possible baselines.
! AN table 4: 11 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0655198 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0921-2618
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1680 lines of history.
! 
! Reading 9232 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
float field_size
field_size = 512
float field_cell
field_cell = 0.5
float taper_size
taper_size = 20.
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 573 telescope corrections were flagged in sub-array 1.
!  A total of 2293 telescope corrections were flagged in sub-array 2.
!  A total of 190 telescope corrections were flagged in sub-array 3.
!  A total of 188 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 573 telescope corrections were flagged in sub-array 1.
!  A total of 2293 telescope corrections were flagged in sub-array 2.
!  A total of 190 telescope corrections were flagged in sub-array 3.
!  A total of 188 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 573 telescope corrections were flagged in sub-array 1.
!  A total of 2293 telescope corrections were flagged in sub-array 2.
!  A total of 190 telescope corrections were flagged in sub-array 3.
!  A total of 188 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 573 telescope corrections were flagged in sub-array 1.
!  A total of 2293 telescope corrections were flagged in sub-array 2.
!  A total of 190 telescope corrections were flagged in sub-array 3.
!  A total of 188 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.878783Jy  sigma=0.005428
! Fit after  self-cal, rms=0.509624Jy  sigma=0.003153
! 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.299 mas, bmaj=7.689 mas, bpa=-11.86 degrees
! Estimated noise=1770.29 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.623198 Jy
! Component: 100  -  total flux cleaned = 0.885294 Jy
! Total flux subtracted in 100 components = 0.885294 Jy
! Clean residual min=-0.040535 max=0.123735 Jy/beam
! Clean residual mean=0.001767 rms=0.017179 Jy/beam
! Combined flux in latest and established models = 0.885294 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.885294 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.431021Jy  sigma=0.002749
! Fit after  self-cal, rms=0.430887Jy  sigma=0.002747
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.143972 Jy
! Component: 100  -  total flux cleaned = 0.232974 Jy
! Total flux subtracted in 100 components = 0.232974 Jy
! Clean residual min=-0.024646 max=0.059598 Jy/beam
! Clean residual mean=0.000956 rms=0.009609 Jy/beam
! Combined flux in latest and established models = 1.11827 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 30 components and 1.11827 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.364138Jy  sigma=0.002006
! Fit after  self-cal, rms=0.364170Jy  sigma=0.002005
! Inverting map 
! Added new window around map position (-3.5, -0.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0624793 Jy
! Component: 100  -  total flux cleaned = 0.102592 Jy
! Total flux subtracted in 100 components = 0.102592 Jy
! Clean residual min=-0.019221 max=0.027961 Jy/beam
! Clean residual mean=0.000595 rms=0.007192 Jy/beam
! Combined flux in latest and established models = 1.22086 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 50 components and 1.22086 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.351842Jy  sigma=0.001821
! Fit after  self-cal, rms=0.351746Jy  sigma=0.001820
! 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.942 mas, bmaj=9.074 mas, bpa=-12.59 degrees
! Estimated noise=1132.68 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.0437992 Jy
! Component: 100  -  total flux cleaned = 0.0694055 Jy
! Component: 150  -  total flux cleaned = 0.084819 Jy
! Component: 200  -  total flux cleaned = 0.0941793 Jy
! Total flux subtracted in 200 components = 0.0941793 Jy
! Clean residual min=-0.020873 max=0.034348 Jy/beam
! Clean residual mean=0.001337 rms=0.008071 Jy/beam
! Combined flux in latest and established models = 1.31504 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 73 components and 1.31504 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349047Jy  sigma=0.001742
! Fit after  self-cal, rms=0.348822Jy  sigma=0.001740
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.98     GG        1.00*    HN        1.00*    
!   KK        1.04     KP        0.98     LA        1.02     MA        1.00*    
!   MC        1.00*    MK        1.02     NL        1.00     ON        1.00*    
!   OV        0.97     PT        1.00     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     GG        1.00*    HN        0.91     
!   KK        1.04     KP        0.99     LA        1.04     MA        2.93     
!   MC        0.98     MK        0.97     NL        1.00     ON        0.95     
!   OV        0.87     PT        1.02     SC        0.99     TC        1.00*    
!   TS        1.00*    WF        1.10     WZ        1.31     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.08     FD        1.01     GG        1.00*    HN        1.00*    
!   KK        1.06     KP        0.95     LA        0.97     MA        1.00*    
!   MC        1.00*    MK        1.02     NL        1.01     ON        1.00*    
!   OV        1.03     PT        0.99     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.00     GG        1.00*    HN        1.01     
!   KK        1.01     KP        0.96     LA        0.97     MA        1.78     
!   MC        1.13     MK        1.04     NL        1.01     ON        1.24     
!   OV        1.10     PT        1.01     SC        0.95     TC        1.00*    
!   TS        1.00*    WF        1.04     WZ        1.07     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.94     GG        1.00*    HN        1.00*    
!   KK        0.95     KP        0.94     LA        0.95     MA        1.00*    
!   MC        1.00*    MK        0.96     NL        1.00     ON        1.00*    
!   OV        1.05     PT        1.02     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.94     GG        1.00*    HN        0.97     
!   KK        0.96     KP        0.96     LA        0.95     MA        1.53     
!   MC        0.86     MK        0.89     NL        1.02     ON        1.12     
!   OV        2.80     PT        1.00     SC        1.02     TC        1.00*    
!   TS        1.00*    WF        1.02     WZ        1.28     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 36 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.00*    
!   KK        1.00     KP        0.91     LA        0.96     MA        1.00*    
!   MC        1.00*    MK        0.96     NL        0.93     ON        1.00*    
!   OV        1.01     PT        0.94     SC        1.00*    TC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.93     GG        1.00*    HN        0.87     
!   KK        0.98     KP        0.93     LA        0.97     MA        1.00     
!   MC        0.99     MK        0.90     NL        0.94     ON        1.14     
!   OV        3.10     PT        0.93     SC        1.04     TC        1.00*    
!   TS        1.00*    WF        1.01     WZ        1.10     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HN        0.00*    
!   KK        0.00*    KP        0.00*    LA        0.00*    MA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.348822Jy  sigma=0.001740
! Fit after  self-cal, rms=0.378428Jy  sigma=0.001439
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.875 mas, bmaj=9.03 mas, bpa=-12.79 degrees
! Estimated noise=1136.52 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.0119615 Jy
! Component: 100  -  total flux cleaned = 0.0146462 Jy
! Component: 150  -  total flux cleaned = 0.0157586 Jy
! Component: 200  -  total flux cleaned = 0.0161449 Jy
! Total flux subtracted in 200 components = 0.0161449 Jy
! Clean residual min=-0.011976 max=0.012987 Jy/beam
! Clean residual mean=0.001041 rms=0.003100 Jy/beam
! Combined flux in latest and established models = 1.33118 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 91 components and 1.33118 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.378004Jy  sigma=0.001435
! Fit after  self-cal, rms=0.378838Jy  sigma=0.001433
! 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.378838Jy  sigma=0.001433
! Fit after  self-cal, rms=0.379574Jy  sigma=0.001406
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.873 mas, bmaj=9.012 mas, bpa=-12.8 degrees
! Estimated noise=1136.19 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00666234 Jy
! Component: 100  -  total flux cleaned = 0.00747504 Jy
! Component: 150  -  total flux cleaned = 0.00761436 Jy
! Component: 200  -  total flux cleaned = 0.00774121 Jy
! Total flux subtracted in 200 components = 0.00774121 Jy
! Clean residual min=-0.008088 max=0.010071 Jy/beam
! Clean residual mean=0.000444 rms=0.002182 Jy/beam
! Combined flux in latest and established models = 1.33893 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 99 components and 1.33893 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379380Jy  sigma=0.001404
! Fit after  self-cal, rms=0.379439Jy  sigma=0.001404
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 (-10, 11.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0104229 Jy
! Component: 100  -  total flux cleaned = 0.0132041 Jy
! Component: 150  -  total flux cleaned = 0.013065 Jy
! Component: 200  -  total flux cleaned = 0.0129454 Jy
! Total flux subtracted in 200 components = 0.0129454 Jy
! Clean residual min=-0.006981 max=0.007562 Jy/beam
! Clean residual mean=0.000234 rms=0.001924 Jy/beam
! Combined flux in latest and established models = 1.35187 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 112 components and 1.35187 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379187Jy  sigma=0.001400
! Fit after  self-cal, rms=0.379188Jy  sigma=0.001400
! 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.379188Jy  sigma=0.001400
! Fit after  self-cal, rms=0.379922Jy  sigma=0.001399
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.872 mas, bmaj=9.011 mas, bpa=-12.82 degrees
! Estimated noise=1136.55 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00505495 Jy
! Component: 100  -  total flux cleaned = 0.00696 Jy
! Component: 150  -  total flux cleaned = 0.00715082 Jy
! Component: 200  -  total flux cleaned = 0.00715204 Jy
! Total flux subtracted in 200 components = 0.00715204 Jy
! Clean residual min=-0.006814 max=0.006607 Jy/beam
! Clean residual mean=0.000145 rms=0.001759 Jy/beam
! Combined flux in latest and established models = 1.35902 Jy
selfcal
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 140 components and 1.35902 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379852Jy  sigma=0.001398
! Fit after  self-cal, rms=0.379848Jy  sigma=0.001398
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.00116599 Jy
! Component: 100  -  total flux cleaned = 0.00116771 Jy
! Component: 150  -  total flux cleaned = 0.00109266 Jy
! Component: 200  -  total flux cleaned = 0.000957007 Jy
! Total flux subtracted in 200 components = 0.000957007 Jy
! Clean residual min=-0.006702 max=0.006645 Jy/beam
! Clean residual mean=0.000131 rms=0.001729 Jy/beam
! Combined flux in latest and established models = 1.35998 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 146 components and 1.35998 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.379822Jy  sigma=0.001397
! Fit after  self-cal, rms=0.379823Jy  sigma=0.001397
! 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.379823Jy  sigma=0.001397
! Fit after  self-cal, rms=0.380367Jy  sigma=0.001397
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.613 mas, bmaj=18.22 mas, bpa=-4.611 degrees
! Estimated noise=1466.71 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00335323 Jy
! Component: 100  -  total flux cleaned = 0.00379593 Jy
! Component: 150  -  total flux cleaned = 0.00391941 Jy
! Component: 200  -  total flux cleaned = 0.00397538 Jy
! Total flux subtracted in 200 components = 0.00397538 Jy
! Clean residual min=-0.005641 max=0.006128 Jy/beam
! Clean residual mean=0.000183 rms=0.001766 Jy/beam
! Combined flux in latest and established models = 1.36396 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 164 components and 1.36396 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380366Jy  sigma=0.001397
! Fit after  self-cal, rms=0.380362Jy  sigma=0.001397
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.0004627 Jy
! Component: 100  -  total flux cleaned = 0.000461786 Jy
! Component: 150  -  total flux cleaned = 0.000547852 Jy
! Component: 200  -  total flux cleaned = 0.00062532 Jy
! Total flux subtracted in 200 components = 0.00062532 Jy
! Clean residual min=-0.005435 max=0.006156 Jy/beam
! Clean residual mean=0.000159 rms=0.001742 Jy/beam
! Combined flux in latest and established models = 1.36458 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 168 components and 1.36458 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380368Jy  sigma=0.001397
! Fit after  self-cal, rms=0.380367Jy  sigma=0.001397
! 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.873 mas, bmaj=9.011 mas, bpa=-12.82 degrees
! Estimated noise=1137.57 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.873 x 9.011 at -12.82 degrees (North through East)
! Clean map  min=-0.0063074  max=0.85472 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.380367Jy  sigma=0.001397
! Fit after  self-cal, rms=0.373271Jy  sigma=0.001255
! Inverting map and beam 
! Estimated beam: bmin=2.873 mas, bmaj=9.017 mas, bpa=-12.84 degrees
! Estimated noise=1138.2 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00198228 Jy
! Component: 100  -  total flux cleaned = 0.00198982 Jy
! Component: 150  -  total flux cleaned = 0.00192265 Jy
! Component: 200  -  total flux cleaned = 0.00185991 Jy
! Total flux subtracted in 200 components = 0.00185991 Jy
! Clean residual min=-0.007089 max=0.006158 Jy/beam
! Clean residual mean=-0.000015 rms=0.001565 Jy/beam
! Combined flux in latest and established models = 1.36644 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 183 components and 1.36644 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.373214Jy  sigma=0.001254
! Fit after  self-cal, rms=0.373221Jy  sigma=0.001254
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000691919 Jy
! Component: 100  -  total flux cleaned = 0.000578468 Jy
! Component: 150  -  total flux cleaned = 0.000524388 Jy
! Component: 200  -  total flux cleaned = 0.000423916 Jy
! Total flux subtracted in 200 components = 0.000423916 Jy
! Clean residual min=-0.007012 max=0.006134 Jy/beam
! Clean residual mean=-0.000021 rms=0.001552 Jy/beam
! Combined flux in latest and established models = 1.36687 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 188 components and 1.36687 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.373186Jy  sigma=0.001254
! Fit after  self-cal, rms=0.373192Jy  sigma=0.001254
! 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.373192Jy  sigma=0.001254
! Fit after  self-cal, rms=0.372945Jy  sigma=0.001254
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.263 mas, bmaj=7.687 mas, bpa=-12.04 degrees
! Estimated noise=1765.98 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.607335 Jy
! Component: 100  -  total flux cleaned = 0.865352 Jy
! Component: 150  -  total flux cleaned = 1.00979 Jy
! Component: 200  -  total flux cleaned = 1.10265 Jy
! Total flux subtracted in 200 components = 1.10265 Jy
! Clean residual min=-0.017596 max=0.049904 Jy/beam
! Clean residual mean=0.001136 rms=0.008098 Jy/beam
! Combined flux in latest and established models = 1.10265 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 35 model components to the UV plane model.
! The established model now contains 35 components and 1.10265 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.874 mas, bmaj=9.015 mas, bpa=-12.83 degrees
! Estimated noise=1138.61 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.0983628 Jy
! Component: 100  -  total flux cleaned = 0.155431 Jy
! Component: 150  -  total flux cleaned = 0.190793 Jy
! Component: 200  -  total flux cleaned = 0.213349 Jy
! Total flux subtracted in 200 components = 0.213349 Jy
! Clean residual min=-0.009717 max=0.013957 Jy/beam
! Clean residual mean=0.000792 rms=0.003027 Jy/beam
! Combined flux in latest and established models = 1.316 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 88 components and 1.316 Jy
! Inverting map 
! Added new window around map position (3, 0.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0160822 Jy
! Component: 100  -  total flux cleaned = 0.0276015 Jy
! Component: 150  -  total flux cleaned = 0.0360503 Jy
! Component: 200  -  total flux cleaned = 0.042319 Jy
! Total flux subtracted in 200 components = 0.042319 Jy
! Clean residual min=-0.007609 max=0.006273 Jy/beam
! Clean residual mean=0.000129 rms=0.001724 Jy/beam
! Combined flux in latest and established models = 1.35832 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 134 components and 1.35832 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.607 mas, bmaj=18.21 mas, bpa=-4.608 degrees
! Estimated noise=1467.93 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0070527 Jy
! Component: 100  -  total flux cleaned = 0.0104832 Jy
! Component: 150  -  total flux cleaned = 0.0113862 Jy
! Component: 200  -  total flux cleaned = 0.0116031 Jy
! Total flux subtracted in 200 components = 0.0116031 Jy
! Clean residual min=-0.005662 max=0.005688 Jy/beam
! Clean residual mean=-0.000135 rms=0.001612 Jy/beam
! Combined flux in latest and established models = 1.36992 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.000127415 Jy
! Component: 100  -  total flux cleaned = 0.000182256 Jy
! Component: 150  -  total flux cleaned = 0.000230302 Jy
! Component: 200  -  total flux cleaned = 0.000227996 Jy
! Total flux subtracted in 200 components = 0.000227996 Jy
! Clean residual min=-0.005540 max=0.005571 Jy/beam
! Clean residual mean=-0.000146 rms=0.001583 Jy/beam
! Combined flux in latest and established models = 1.37015 Jy
! Adding 61 model components to the UV plane model.
! The established model now contains 175 components and 1.37015 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.874 mas, bmaj=9.015 mas, bpa=-12.83 degrees
! Estimated noise=1138.61 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -6.2298e-05 Jy
! Component: 100  -  total flux cleaned = 0.000379096 Jy
! Component: 150  -  total flux cleaned = 0.000570314 Jy
! Component: 200  -  total flux cleaned = 0.000483467 Jy
! Total flux subtracted in 200 components = 0.000483467 Jy
! Clean residual min=-0.006878 max=0.005956 Jy/beam
! Clean residual mean=-0.000067 rms=0.001558 Jy/beam
! Combined flux in latest and established models = 1.37064 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 194 components and 1.37064 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.372893Jy  sigma=0.001254
! Fit after  self-cal, rms=0.372904Jy  sigma=0.001254
wmodel J0921-2618_S_2003_05_07_pus_map.mod
! Writing 194 model components to file: J0921-2618_S_2003_05_07_pus_map.mod
wobs J0921-2618_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J0921-2618_S_2003_05_07_pus_uvs.fits
wwins J0921-2618_S_2003_05_07_pus_map.win
! wwins: Wrote 4 windows to J0921-2618_S_2003_05_07_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00121389 Jy
! Component: 100  -  total flux cleaned = -0.00222222 Jy
! Component: 150  -  total flux cleaned = -0.00241626 Jy
! Component: 200  -  total flux cleaned = -0.00260135 Jy
! Component: 250  -  total flux cleaned = -0.00277691 Jy
! Component: 300  -  total flux cleaned = -0.00329092 Jy
! Component: 350  -  total flux cleaned = -0.00362448 Jy
! Component: 400  -  total flux cleaned = -0.00395082 Jy
! Component: 450  -  total flux cleaned = -0.00434977 Jy
! Component: 500  -  total flux cleaned = -0.00466163 Jy
! Component: 550  -  total flux cleaned = -0.00489085 Jy
! Component: 600  -  total flux cleaned = -0.00511625 Jy
! Component: 650  -  total flux cleaned = -0.0055579 Jy
! Component: 700  -  total flux cleaned = -0.00570174 Jy
! Component: 750  -  total flux cleaned = -0.00598628 Jy
! Component: 800  -  total flux cleaned = -0.00619628 Jy
! Component: 850  -  total flux cleaned = -0.00654018 Jy
! Component: 900  -  total flux cleaned = -0.00660756 Jy
! Component: 950  -  total flux cleaned = -0.00680791 Jy
! Component: 1000  -  total flux cleaned = -0.00687366 Jy
! Component: 1050  -  total flux cleaned = -0.00713241 Jy
! Component: 1100  -  total flux cleaned = -0.00706824 Jy
! Component: 1150  -  total flux cleaned = -0.00713169 Jy
! Component: 1200  -  total flux cleaned = -0.00719416 Jy
! Component: 1250  -  total flux cleaned = -0.00731708 Jy
! Component: 1300  -  total flux cleaned = -0.0073174 Jy
! Component: 1350  -  total flux cleaned = -0.00749705 Jy
! Component: 1400  -  total flux cleaned = -0.00761481 Jy
! Component: 1450  -  total flux cleaned = -0.00773163 Jy
! Component: 1500  -  total flux cleaned = -0.00790352 Jy
! Component: 1550  -  total flux cleaned = -0.00795992 Jy
! Component: 1600  -  total flux cleaned = -0.00807149 Jy
! Component: 1650  -  total flux cleaned = -0.00823753 Jy
! Component: 1700  -  total flux cleaned = -0.00834659 Jy
! Component: 1750  -  total flux cleaned = -0.00845486 Jy
! Component: 1800  -  total flux cleaned = -0.00861501 Jy
! Component: 1850  -  total flux cleaned = -0.00877307 Jy
! Component: 1900  -  total flux cleaned = -0.00887801 Jy
! Component: 1950  -  total flux cleaned = -0.00913625 Jy
! Component: 2000  -  total flux cleaned = -0.00923842 Jy
! Total flux subtracted in 2048 components = -0.00944017 Jy
! Clean residual min=-0.003076 max=0.002672 Jy/beam
! Clean residual mean=-0.000005 rms=0.001001 Jy/beam
! Combined flux in latest and established models = 1.36119 Jy
keep
! Adding 116 model components to the UV plane model.
! The established model now contains 310 components and 1.3612 Jy
wmap "J0921-2618_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.874 x 9.015 at -12.83 degrees (North through East)
! Clean map  min=-0.0062414  max=0.86258 Jy/beam
! Writing clean map to FITS file: J0921-2618_S_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.862579 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00100357 
device "J0921-2618_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J0921-2618_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.349034 0.349034 0.698069 1.39614 2.79227 5.58455 11.1691 22.3382 44.6764 89.3528
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.003 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.862 
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.874 x 9.015 at -12.83 degrees (North through East)
! Clean map  min=-0.0062414  max=0.86258 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0921-2618_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J0921-2618_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0921-2618_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 10:06:00 2006