! Started logfile: J0921-2618_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:33:44 2008
obs J0921-2618_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0921-2618_S_1999_05_10_pus_uva.fits
! AN table 1: 85 integrations on 153 of 153 possible baselines.
! AN table 2: 51 integrations on 153 of 153 possible baselines.
! AN table 3: 79 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0753306 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1998 lines of history.
! 
! Reading 9912 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
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J0921-2618_S_1999_05_10_pus]
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 1210 telescope corrections were flagged in sub-array 1.
!  A total of 580 telescope corrections were flagged in sub-array 2.
!  A total of 1395 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1210 telescope corrections were flagged in sub-array 1.
!  A total of 580 telescope corrections were flagged in sub-array 2.
!  A total of 1395 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1210 telescope corrections were flagged in sub-array 1.
!  A total of 580 telescope corrections were flagged in sub-array 2.
!  A total of 1395 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1225 telescope corrections were flagged in sub-array 1.
!  A total of 580 telescope corrections were flagged in sub-array 2.
!  A total of 1395 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.679435Jy  sigma=0.004340
! Fit after  self-cal, rms=0.499971Jy  sigma=0.003371
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.985 mas, bmaj=4.055 mas, bpa=19.85 degrees
! Estimated noise=1615 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.480902 Jy
! Component: 100  -  total flux cleaned = 0.682185 Jy
! Total flux subtracted in 100 components = 0.682185 Jy
! Clean residual min=-0.030281 max=0.101147 Jy/beam
! Clean residual mean=0.001030 rms=0.012797 Jy/beam
! Combined flux in latest and established models = 0.682185 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 19 components and 0.682185 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.349042Jy  sigma=0.002640
! Fit after  self-cal, rms=0.348944Jy  sigma=0.002639
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.121241 Jy
! Component: 100  -  total flux cleaned = 0.197831 Jy
! Total flux subtracted in 100 components = 0.197831 Jy
! Clean residual min=-0.017923 max=0.050433 Jy/beam
! Clean residual mean=0.000482 rms=0.007369 Jy/beam
! Combined flux in latest and established models = 0.880015 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 44 components and 0.880015 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.273705Jy  sigma=0.001979
! Fit after  self-cal, rms=0.273405Jy  sigma=0.001978
! Inverting map 
! Added new window around map position (-4, 1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0567931 Jy
! Component: 100  -  total flux cleaned = 0.0959049 Jy
! Total flux subtracted in 100 components = 0.0959049 Jy
! Clean residual min=-0.016956 max=0.031180 Jy/beam
! Clean residual mean=0.000204 rms=0.005543 Jy/beam
! Combined flux in latest and established models = 0.97592 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 64 components and 0.97592 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252398Jy  sigma=0.001782
! Fit after  self-cal, rms=0.251722Jy  sigma=0.001778
! 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.628 mas, bmaj=5.24 mas, bpa=16.66 degrees
! Estimated noise=1011.12 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.0553818 Jy
! Component: 100  -  total flux cleaned = 0.0874426 Jy
! Component: 150  -  total flux cleaned = 0.107337 Jy
! Component: 200  -  total flux cleaned = 0.119775 Jy
! Total flux subtracted in 200 components = 0.119775 Jy
! Clean residual min=-0.020363 max=0.023590 Jy/beam
! Clean residual mean=0.000195 rms=0.006033 Jy/beam
! Combined flux in latest and established models = 1.09569 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 93 components and 1.09569 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239926Jy  sigma=0.001670
! Fit after  self-cal, rms=0.239247Jy  sigma=0.001665
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 78 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.97     GC        1.00*    HH        0.81     
!   HN        0.99     KK        1.00*    KP        1.24     LA        0.95     
!   MC        1.00*    MK        1.00*    NL        1.11     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.99     SC        1.08     
!   WF        1.01     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        0.96     GC        1.00*    HH        1.00*    
!   HN        1.01     KK        1.07     KP        0.97     LA        0.95     
!   MC        1.00*    MK        0.91     NL        0.97     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.96     SC        1.11     
!   WF        1.05     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 78 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.96     GC        1.00*    HH        1.10     
!   HN        1.00     KK        1.00*    KP        1.46     LA        0.95     
!   MC        1.00*    MK        1.00*    NL        1.08     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.16     SC        1.11     
!   WF        0.95     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        1.00     GC        1.00*    HH        1.00*    
!   HN        1.03     KK        1.02     KP        0.95     LA        0.93     
!   MC        1.00*    MK        0.98     NL        0.97     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.98     SC        1.10     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 78 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.95     GC        1.00*    HH        1.07     
!   HN        1.00     KK        1.00*    KP        1.27     LA        1.06     
!   MC        1.00*    MK        1.00*    NL        1.13     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.16     SC        1.05     
!   WF        0.97     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00     KP        0.95     LA        0.96     
!   MC        1.00*    MK        0.87     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.92     SC        1.03     
!   WF        0.97     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 63 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.94     GC        1.00*    HH        0.99     
!   HN        0.97     KK        1.00*    KP        1.27     LA        1.24     
!   MC        1.00*    MK        1.00*    NL        1.13     NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.19     SC        1.08     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 18 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        0.97     KK        0.92     KP        0.97     LA        0.96     
!   MC        1.00*    MK        0.95     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.82     SC        1.00     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.239247Jy  sigma=0.001665
! Fit after  self-cal, rms=0.229813Jy  sigma=0.001462
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.631 mas, bmaj=5.372 mas, bpa=15.72 degrees
! Estimated noise=1021.83 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.00809564 Jy
! Component: 100  -  total flux cleaned = 0.00989197 Jy
! Component: 150  -  total flux cleaned = 0.0113524 Jy
! Component: 200  -  total flux cleaned = 0.0123837 Jy
! Total flux subtracted in 200 components = 0.0123837 Jy
! Clean residual min=-0.008087 max=0.009765 Jy/beam
! Clean residual mean=-0.000270 rms=0.002412 Jy/beam
! Combined flux in latest and established models = 1.10808 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 98 components and 1.10808 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.229077Jy  sigma=0.001458
! Fit after  self-cal, rms=0.229155Jy  sigma=0.001457
! 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.229155Jy  sigma=0.001457
! Fit after  self-cal, rms=0.227495Jy  sigma=0.001396
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.619 mas, bmaj=5.364 mas, bpa=16.17 degrees
! Estimated noise=1025.44 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00660034 Jy
! Component: 100  -  total flux cleaned = 0.00841567 Jy
! Component: 150  -  total flux cleaned = 0.00919621 Jy
! Component: 200  -  total flux cleaned = 0.00953311 Jy
! Total flux subtracted in 200 components = 0.00953311 Jy
! Clean residual min=-0.006090 max=0.008580 Jy/beam
! Clean residual mean=0.000117 rms=0.001917 Jy/beam
! Combined flux in latest and established models = 1.11761 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 102 components and 1.11761 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227101Jy  sigma=0.001395
! Fit after  self-cal, rms=0.227097Jy  sigma=0.001395
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 (-9, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00826782 Jy
! Component: 100  -  total flux cleaned = 0.0116539 Jy
! Component: 150  -  total flux cleaned = 0.012067 Jy
! Component: 200  -  total flux cleaned = 0.012415 Jy
! Total flux subtracted in 200 components = 0.012415 Jy
! Clean residual min=-0.006069 max=0.006518 Jy/beam
! Clean residual mean=-0.000145 rms=0.001650 Jy/beam
! Combined flux in latest and established models = 1.13003 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 122 components and 1.13003 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.226669Jy  sigma=0.001393
! Fit after  self-cal, rms=0.226590Jy  sigma=0.001392
! 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.226590Jy  sigma=0.001392
! Fit after  self-cal, rms=0.229303Jy  sigma=0.001391
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.633 mas, bmaj=5.387 mas, bpa=15.79 degrees
! Estimated noise=1031.15 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00631201 Jy
! Component: 100  -  total flux cleaned = 0.0100696 Jy
! Component: 150  -  total flux cleaned = 0.0118612 Jy
! Component: 200  -  total flux cleaned = 0.0126864 Jy
! Total flux subtracted in 200 components = 0.0126864 Jy
! Clean residual min=-0.005437 max=0.006471 Jy/beam
! Clean residual mean=-0.000162 rms=0.001577 Jy/beam
! Combined flux in latest and established models = 1.14271 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 128 components and 1.14271 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228942Jy  sigma=0.001390
! Fit after  self-cal, rms=0.228895Jy  sigma=0.001390
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.00188154 Jy
! Component: 100  -  total flux cleaned = 0.00228822 Jy
! Component: 150  -  total flux cleaned = 0.00251102 Jy
! Component: 200  -  total flux cleaned = 0.00265127 Jy
! Total flux subtracted in 200 components = 0.00265127 Jy
! Clean residual min=-0.005405 max=0.006188 Jy/beam
! Clean residual mean=-0.000217 rms=0.001532 Jy/beam
! Combined flux in latest and established models = 1.14536 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 133 components and 1.14536 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.228803Jy  sigma=0.001390
! Fit after  self-cal, rms=0.228780Jy  sigma=0.001390
! 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.228780Jy  sigma=0.001390
! Fit after  self-cal, rms=0.230446Jy  sigma=0.001389
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.419 mas, bmaj=15.96 mas, bpa=-4.186 degrees
! Estimated noise=1282.62 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00576691 Jy
! Component: 100  -  total flux cleaned = 0.0086627 Jy
! Component: 150  -  total flux cleaned = 0.00918512 Jy
! Component: 200  -  total flux cleaned = 0.00950105 Jy
! Total flux subtracted in 200 components = 0.00950105 Jy
! Clean residual min=-0.006643 max=0.006284 Jy/beam
! Clean residual mean=-0.000483 rms=0.002003 Jy/beam
! Combined flux in latest and established models = 1.15487 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 149 components and 1.15487 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230255Jy  sigma=0.001389
! Fit after  self-cal, rms=0.230257Jy  sigma=0.001389
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.00081453 Jy
! Component: 100  -  total flux cleaned = 0.00114039 Jy
! Component: 150  -  total flux cleaned = 0.00136947 Jy
! Component: 200  -  total flux cleaned = 0.00152857 Jy
! Total flux subtracted in 200 components = 0.00152857 Jy
! Clean residual min=-0.006520 max=0.006189 Jy/beam
! Clean residual mean=-0.000550 rms=0.001939 Jy/beam
! Combined flux in latest and established models = 1.15639 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 153 components and 1.15639 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.230220Jy  sigma=0.001389
! Fit after  self-cal, rms=0.230224Jy  sigma=0.001389
! 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.635 mas, bmaj=5.393 mas, bpa=15.78 degrees
! Estimated noise=1035.15 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.635 x 5.393 at 15.78 degrees (North through East)
! Clean map  min=-0.0049345  max=0.61771 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.230224Jy  sigma=0.001389
! Fit after  self-cal, rms=0.246333Jy  sigma=0.001161
! Inverting map and beam 
! Estimated beam: bmin=2.659 mas, bmaj=5.424 mas, bpa=15.18 degrees
! Estimated noise=1037.62 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00235226 Jy
! Component: 100  -  total flux cleaned = -0.00298229 Jy
! Component: 150  -  total flux cleaned = -0.003053 Jy
! Component: 200  -  total flux cleaned = -0.00305525 Jy
! Total flux subtracted in 200 components = -0.00305525 Jy
! Clean residual min=-0.005190 max=0.004557 Jy/beam
! Clean residual mean=-0.000326 rms=0.001280 Jy/beam
! Combined flux in latest and established models = 1.15334 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 159 components and 1.15334 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246277Jy  sigma=0.001161
! Fit after  self-cal, rms=0.246216Jy  sigma=0.001161
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000196502 Jy
! Component: 100  -  total flux cleaned = -0.000198877 Jy
! Component: 150  -  total flux cleaned = -0.000196353 Jy
! Component: 200  -  total flux cleaned = -8.94429e-05 Jy
! Total flux subtracted in 200 components = -8.94429e-05 Jy
! Clean residual min=-0.005132 max=0.004480 Jy/beam
! Clean residual mean=-0.000324 rms=0.001271 Jy/beam
! Combined flux in latest and established models = 1.15325 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 162 components and 1.15325 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246176Jy  sigma=0.001161
! Fit after  self-cal, rms=0.246139Jy  sigma=0.001161
! 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.246139Jy  sigma=0.001161
! Fit after  self-cal, rms=0.239784Jy  sigma=0.001161
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.021 mas, bmaj=4.341 mas, bpa=17.15 degrees
! Estimated noise=1569.8 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.483908 Jy
! Component: 100  -  total flux cleaned = 0.689681 Jy
! Component: 150  -  total flux cleaned = 0.811597 Jy
! Component: 200  -  total flux cleaned = 0.889948 Jy
! Total flux subtracted in 200 components = 0.889948 Jy
! Clean residual min=-0.015194 max=0.043494 Jy/beam
! Clean residual mean=0.000969 rms=0.006328 Jy/beam
! Combined flux in latest and established models = 0.889948 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 45 model components to the UV plane model.
! The established model now contains 45 components and 0.889948 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.645 mas, bmaj=5.411 mas, bpa=15.64 degrees
! Estimated noise=1036.55 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.0977803 Jy
! Component: 100  -  total flux cleaned = 0.153803 Jy
! Component: 150  -  total flux cleaned = 0.188006 Jy
! Component: 200  -  total flux cleaned = 0.209738 Jy
! Total flux subtracted in 200 components = 0.209738 Jy
! Clean residual min=-0.007207 max=0.014542 Jy/beam
! Clean residual mean=0.000727 rms=0.002760 Jy/beam
! Combined flux in latest and established models = 1.09969 Jy
! Adding 57 model components to the UV plane model.
! The established model now contains 87 components and 1.09969 Jy
! Inverting map 
! Added new window around map position (3.5, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0156357 Jy
! Component: 100  -  total flux cleaned = 0.0261805 Jy
! Component: 150  -  total flux cleaned = 0.0338572 Jy
! Component: 200  -  total flux cleaned = 0.039565 Jy
! Total flux subtracted in 200 components = 0.039565 Jy
! Clean residual min=-0.006080 max=0.005170 Jy/beam
! Clean residual mean=-0.000047 rms=0.001411 Jy/beam
! Combined flux in latest and established models = 1.13925 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 121 components and 1.13925 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.427 mas, bmaj=15.95 mas, bpa=-4.148 degrees
! Estimated noise=1281.82 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00622649 Jy
! Component: 100  -  total flux cleaned = 0.00960102 Jy
! Component: 150  -  total flux cleaned = 0.0115075 Jy
! Component: 200  -  total flux cleaned = 0.0124927 Jy
! Total flux subtracted in 200 components = 0.0124927 Jy
! Clean residual min=-0.005016 max=0.003845 Jy/beam
! Clean residual mean=-0.000628 rms=0.001376 Jy/beam
! Combined flux in latest and established models = 1.15174 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 = 6.53975e-05 Jy
! Component: 100  -  total flux cleaned = 0.0001502 Jy
! Component: 150  -  total flux cleaned = 0.000150867 Jy
! Component: 200  -  total flux cleaned = 0.000174449 Jy
! Total flux subtracted in 200 components = 0.000174449 Jy
! Clean residual min=-0.004967 max=0.003812 Jy/beam
! Clean residual mean=-0.000634 rms=0.001363 Jy/beam
! Combined flux in latest and established models = 1.15192 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 157 components and 1.15192 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.645 mas, bmaj=5.411 mas, bpa=15.64 degrees
! Estimated noise=1036.55 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000110244 Jy
! Component: 100  -  total flux cleaned = -0.00027808 Jy
! Component: 150  -  total flux cleaned = -0.000356993 Jy
! Component: 200  -  total flux cleaned = -0.000431274 Jy
! Total flux subtracted in 200 components = -0.000431274 Jy
! Clean residual min=-0.005559 max=0.004755 Jy/beam
! Clean residual mean=-0.000286 rms=0.001207 Jy/beam
! Combined flux in latest and established models = 1.15149 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 171 components and 1.15149 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.239653Jy  sigma=0.001160
! Fit after  self-cal, rms=0.239504Jy  sigma=0.001160
wmodel J0921-2618_S_1999_05_10_pus_map.mod
! Writing 171 model components to file: J0921-2618_S_1999_05_10_pus_map.mod
wobs J0921-2618_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0921-2618_S_1999_05_10_pus_uvs.fits
wwins J0921-2618_S_1999_05_10_pus_map.win
! wwins: Wrote 4 windows to J0921-2618_S_1999_05_10_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.00192652 Jy
! Component: 100  -  total flux cleaned = -0.00279786 Jy
! Component: 150  -  total flux cleaned = -0.00353695 Jy
! Component: 200  -  total flux cleaned = -0.00410084 Jy
! Component: 250  -  total flux cleaned = -0.00464444 Jy
! Component: 300  -  total flux cleaned = -0.00543104 Jy
! Component: 350  -  total flux cleaned = -0.00600353 Jy
! Component: 400  -  total flux cleaned = -0.00668367 Jy
! Component: 450  -  total flux cleaned = -0.00722625 Jy
! Component: 500  -  total flux cleaned = -0.00769745 Jy
! Component: 550  -  total flux cleaned = -0.00810046 Jy
! Component: 600  -  total flux cleaned = -0.00838189 Jy
! Component: 650  -  total flux cleaned = -0.00849377 Jy
! Component: 700  -  total flux cleaned = -0.00882105 Jy
! Component: 750  -  total flux cleaned = -0.00898176 Jy
! Component: 800  -  total flux cleaned = -0.00929637 Jy
! Component: 850  -  total flux cleaned = -0.00945057 Jy
! Component: 900  -  total flux cleaned = -0.00965285 Jy
! Component: 950  -  total flux cleaned = -0.00980261 Jy
! Component: 1000  -  total flux cleaned = -0.010049 Jy
! Component: 1050  -  total flux cleaned = -0.0102428 Jy
! Component: 1100  -  total flux cleaned = -0.0103858 Jy
! Component: 1150  -  total flux cleaned = -0.0104331 Jy
! Component: 1200  -  total flux cleaned = -0.0105733 Jy
! Component: 1250  -  total flux cleaned = -0.0106655 Jy
! Component: 1300  -  total flux cleaned = -0.0107565 Jy
! Component: 1350  -  total flux cleaned = -0.0108914 Jy
! Component: 1400  -  total flux cleaned = -0.0108913 Jy
! Component: 1450  -  total flux cleaned = -0.0109799 Jy
! Component: 1500  -  total flux cleaned = -0.0111106 Jy
! Component: 1550  -  total flux cleaned = -0.011197 Jy
! Component: 1600  -  total flux cleaned = -0.0113674 Jy
! Component: 1650  -  total flux cleaned = -0.0114938 Jy
! Component: 1700  -  total flux cleaned = -0.0115352 Jy
! Component: 1750  -  total flux cleaned = -0.0116176 Jy
! Component: 1800  -  total flux cleaned = -0.0117409 Jy
! Component: 1850  -  total flux cleaned = -0.0119027 Jy
! Component: 1900  -  total flux cleaned = -0.0119829 Jy
! Component: 1950  -  total flux cleaned = -0.012102 Jy
! Component: 2000  -  total flux cleaned = -0.0121806 Jy
! Total flux subtracted in 2048 components = -0.0122587 Jy
! Clean residual min=-0.002697 max=0.003889 Jy/beam
! Clean residual mean=-0.000067 rms=0.000727 Jy/beam
! Combined flux in latest and established models = 1.13923 Jy
keep
! Adding 135 model components to the UV plane model.
! The established model now contains 306 components and 1.13923 Jy
![Exited script file: muppet]
wmap "J0921-2618_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.645 x 5.411 at 15.64 degrees (North through East)
! Clean map  min=-0.0047277  max=0.63259 Jy/beam
! Writing clean map to FITS file: J0921-2618_S_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.632594 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000726014 
device "J0921-2618_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0921-2618_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.344303 0.344303 0.688606 1.37721 2.75442 5.50885 11.0177 22.0354 44.0708 88.1416
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.632 
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.645 x 5.411 at 15.64 degrees (North through East)
! Clean map  min=-0.0047277  max=0.63259 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0921-2618_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0921-2618_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0921-2618_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:33:53 2008