! Started logfile: J0921-2618_S_1999_12_20_pus_uvs.log on Thu Dec 20 15:04:04 2007
obs J0921-2618_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0921-2618_S_1999_12_20_pus_uva.fits
! AN table 1: 58 integrations on 190 of 190 possible baselines.
! AN table 2: 114 integrations on 190 of 190 possible baselines.
! AN table 3: 109 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0608728 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 2298 lines of history.
! 
! Reading 13000 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_12_20_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 852 telescope corrections were flagged in sub-array 1.
!  A total of 1796 telescope corrections were flagged in sub-array 2.
!  A total of 1960 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 852 telescope corrections were flagged in sub-array 1.
!  A total of 1796 telescope corrections were flagged in sub-array 2.
!  A total of 1960 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 853 telescope corrections were flagged in sub-array 1.
!  A total of 1796 telescope corrections were flagged in sub-array 2.
!  A total of 1960 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 852 telescope corrections were flagged in sub-array 1.
!  A total of 1796 telescope corrections were flagged in sub-array 2.
!  A total of 1960 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.912337Jy  sigma=0.006442
! Fit after  self-cal, rms=0.558770Jy  sigma=0.003478
! 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.233 mas, bmaj=5.392 mas, bpa=5.663 degrees
! Estimated noise=1575.33 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.430403 Jy
! Component: 100  -  total flux cleaned = 0.617555 Jy
! Total flux subtracted in 100 components = 0.617555 Jy
! Clean residual min=-0.026248 max=0.093462 Jy/beam
! Clean residual mean=0.000485 rms=0.010552 Jy/beam
! Combined flux in latest and established models = 0.617556 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 18 components and 0.617556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.433835Jy  sigma=0.002527
! Fit after  self-cal, rms=0.433667Jy  sigma=0.002525
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.111357 Jy
! Component: 100  -  total flux cleaned = 0.181486 Jy
! Total flux subtracted in 100 components = 0.181486 Jy
! Clean residual min=-0.016560 max=0.045646 Jy/beam
! Clean residual mean=0.000228 rms=0.006455 Jy/beam
! Combined flux in latest and established models = 0.799042 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 42 components and 0.799042 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375580Jy  sigma=0.001870
! Fit after  self-cal, rms=0.375378Jy  sigma=0.001869
! Inverting map 
! Added new window around map position (-4, 3).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0535318 Jy
! Component: 100  -  total flux cleaned = 0.0930557 Jy
! Total flux subtracted in 100 components = 0.0930557 Jy
! Clean residual min=-0.014975 max=0.027745 Jy/beam
! Clean residual mean=0.000098 rms=0.004946 Jy/beam
! Combined flux in latest and established models = 0.892098 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 67 components and 0.892098 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.357143Jy  sigma=0.001633
! Fit after  self-cal, rms=0.357007Jy  sigma=0.001631
! 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.962 mas, bmaj=8.294 mas, bpa=-8.905 degrees
! Estimated noise=875.336 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.0713309 Jy
! Component: 100  -  total flux cleaned = 0.1147 Jy
! Component: 150  -  total flux cleaned = 0.142039 Jy
! Component: 200  -  total flux cleaned = 0.159347 Jy
! Total flux subtracted in 200 components = 0.159347 Jy
! Clean residual min=-0.021184 max=0.019529 Jy/beam
! Clean residual mean=-0.001713 rms=0.005438 Jy/beam
! Combined flux in latest and established models = 1.05144 Jy
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 105 components and 1.05144 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.342638Jy  sigma=0.001423
! Fit after  self-cal, rms=0.342268Jy  sigma=0.001418
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.96     GC        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00     KP        0.94     LA        0.98     
!   MC        1.00*    MK        1.04     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        1.01     SC        1.03     TS        1.00*    
!   WF        0.98     WZ        1.00*    GN        0.92     NL        1.00     
! 
!  A total of 78 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.08     KK        1.05     KP        0.91     LA        0.99     
!   MC        1.00*    MK        1.07     NY        1.00*    ON        1.00*    
!   OV        1.04     PT        0.99     SC        1.10     TS        1.00*    
!   WF        0.99     WZ        1.00*    GN        1.05     NL        1.09     
! 
!  A total of 147 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.17     GC        1.00*    HH        0.78     
!   HN        1.11     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.03     TS        1.00*    
!   WF        1.03     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.01     GC        1.00*    HH        1.00*    
!   HN        1.07     KK        1.01     KP        0.99     LA        0.94     
!   MC        1.00*    MK        1.01     NY        1.00*    ON        1.00*    
!   OV        0.96     PT        0.98     SC        0.94     TS        1.00*    
!   WF        1.00     WZ        1.00*    GN        0.93     NL        1.00     
! 
!  A total of 78 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.02     GC        1.00*    HH        1.00*    
!   HN        1.14     KK        0.96     KP        0.98     LA        0.98     
!   MC        1.00*    MK        1.00     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        0.96     SC        1.14     TS        1.00*    
!   WF        1.01     WZ        1.00*    GN        1.02     NL        1.09     
! 
!  A total of 147 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.18     GC        1.00*    HH        0.70     
!   HN        1.26     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        0.95     TS        1.00*    
!   WF        0.98     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00     KP        0.99     LA        0.99     
!   MC        1.00*    MK        0.99     NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.96     SC        0.92     TS        1.00*    
!   WF        0.98     WZ        1.00*    GN        0.96     NL        0.97     
! 
!  A total of 78 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.02     GC        1.00*    HH        1.00*    
!   HN        1.04     KK        0.99     KP        0.98     LA        1.02     
!   MC        1.00*    MK        0.98     NY        1.00*    ON        1.00*    
!   OV        1.03     PT        0.85     SC        1.07     TS        1.00*    
!   WF        0.95     WZ        1.00*    GN        1.05     NL        1.05     
! 
!  A total of 147 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.19     GC        1.00*    HH        0.95     
!   HN        1.30     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        0.96     TS        1.00*    
!   WF        0.97     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.06     KK        1.04     KP        0.97     LA        0.99     
!   MC        1.00*    MK        0.96     NY        1.00*    ON        1.00*    
!   OV        0.96     PT        1.00     SC        0.92     TS        1.00*    
!   WF        1.01     WZ        1.00*    GN        0.97     NL        0.95     
! 
!  A total of 78 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.06     KK        1.03     KP        0.98     LA        1.03     
!   MC        1.00*    MK        0.98     NY        1.00*    ON        1.00*    
!   OV        0.97     PT        0.87     SC        1.07     TS        1.00*    
!   WF        1.00     WZ        1.00*    GN        1.01     NL        1.04     
! 
!  A total of 147 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.11     GC        1.00*    HH        1.25     
!   HN        1.12     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.01     TS        1.00*    
!   WF        0.91     WZ        1.00*    GN        1.00*    NL        1.00*    
! 
! 
! Fit before self-cal, rms=0.342268Jy  sigma=0.001418
! Fit after  self-cal, rms=0.332675Jy  sigma=0.001367
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.981 mas, bmaj=8.33 mas, bpa=-8.553 degrees
! Estimated noise=894.436 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.00762602 Jy
! Component: 100  -  total flux cleaned = 0.00877064 Jy
! Component: 150  -  total flux cleaned = 0.00916207 Jy
! Component: 200  -  total flux cleaned = 0.00927345 Jy
! Total flux subtracted in 200 components = 0.00927345 Jy
! Clean residual min=-0.008324 max=0.009990 Jy/beam
! Clean residual mean=-0.000213 rms=0.002779 Jy/beam
! Combined flux in latest and established models = 1.06072 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 107 components and 1.06072 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332494Jy  sigma=0.001364
! Fit after  self-cal, rms=0.332544Jy  sigma=0.001364
! 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.332544Jy  sigma=0.001364
! Fit after  self-cal, rms=0.329469Jy  sigma=0.001301
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.98 mas, bmaj=8.263 mas, bpa=-8.389 degrees
! Estimated noise=896.349 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00222706 Jy
! Component: 100  -  total flux cleaned = 0.00223187 Jy
! Component: 150  -  total flux cleaned = 0.00222961 Jy
! Component: 200  -  total flux cleaned = 0.0022299 Jy
! Total flux subtracted in 200 components = 0.0022299 Jy
! Clean residual min=-0.006125 max=0.007373 Jy/beam
! Clean residual mean=-0.000022 rms=0.001688 Jy/beam
! Combined flux in latest and established models = 1.06295 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 109 components and 1.06295 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329421Jy  sigma=0.001300
! Fit after  self-cal, rms=0.329433Jy  sigma=0.001300
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, 10.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0066352 Jy
! Component: 100  -  total flux cleaned = 0.0072624 Jy
! Component: 150  -  total flux cleaned = 0.00737563 Jy
! Component: 200  -  total flux cleaned = 0.00727557 Jy
! Total flux subtracted in 200 components = 0.00727557 Jy
! Clean residual min=-0.006291 max=0.006238 Jy/beam
! Clean residual mean=-0.000113 rms=0.001584 Jy/beam
! Combined flux in latest and established models = 1.07022 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 128 components and 1.07022 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329270Jy  sigma=0.001298
! Fit after  self-cal, rms=0.329279Jy  sigma=0.001298
! 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.329279Jy  sigma=0.001298
! Fit after  self-cal, rms=0.329479Jy  sigma=0.001297
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.979 mas, bmaj=8.257 mas, bpa=-8.356 degrees
! Estimated noise=896.97 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00356738 Jy
! Component: 100  -  total flux cleaned = 0.00459072 Jy
! Component: 150  -  total flux cleaned = 0.00481545 Jy
! Component: 200  -  total flux cleaned = 0.00496059 Jy
! Total flux subtracted in 200 components = 0.00496059 Jy
! Clean residual min=-0.006170 max=0.006006 Jy/beam
! Clean residual mean=-0.000096 rms=0.001538 Jy/beam
! Combined flux in latest and established models = 1.07518 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 131 components and 1.07518 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329413Jy  sigma=0.001297
! Fit after  self-cal, rms=0.329422Jy  sigma=0.001297
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.000579001 Jy
! Component: 100  -  total flux cleaned = 0.000648284 Jy
! Component: 150  -  total flux cleaned = 0.000648091 Jy
! Component: 200  -  total flux cleaned = 0.000648038 Jy
! Total flux subtracted in 200 components = 0.000648038 Jy
! Clean residual min=-0.006156 max=0.005897 Jy/beam
! Clean residual mean=-0.000104 rms=0.001528 Jy/beam
! Combined flux in latest and established models = 1.07583 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 135 components and 1.07583 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329398Jy  sigma=0.001297
! Fit after  self-cal, rms=0.329401Jy  sigma=0.001297
! 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.329401Jy  sigma=0.001297
! Fit after  self-cal, rms=0.329851Jy  sigma=0.001296
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.478 mas, bmaj=18.77 mas, bpa=-3.57 degrees
! Estimated noise=1134.38 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00218562 Jy
! Component: 100  -  total flux cleaned = 0.00274735 Jy
! Component: 150  -  total flux cleaned = 0.0031804 Jy
! Component: 200  -  total flux cleaned = 0.00347262 Jy
! Total flux subtracted in 200 components = 0.00347262 Jy
! Clean residual min=-0.006400 max=0.005740 Jy/beam
! Clean residual mean=-0.000173 rms=0.002074 Jy/beam
! Combined flux in latest and established models = 1.0793 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 152 components and 1.0793 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329837Jy  sigma=0.001296
! Fit after  self-cal, rms=0.329834Jy  sigma=0.001296
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 = -6.18234e-05 Jy
! Component: 100  -  total flux cleaned = 0.000128585 Jy
! Component: 150  -  total flux cleaned = 0.000172455 Jy
! Component: 200  -  total flux cleaned = 0.00021135 Jy
! Total flux subtracted in 200 components = 0.00021135 Jy
! Clean residual min=-0.006449 max=0.005525 Jy/beam
! Clean residual mean=-0.000176 rms=0.002055 Jy/beam
! Combined flux in latest and established models = 1.07952 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 160 components and 1.07952 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.329835Jy  sigma=0.001296
! Fit after  self-cal, rms=0.329835Jy  sigma=0.001296
! 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.979 mas, bmaj=8.239 mas, bpa=-8.301 degrees
! Estimated noise=898.295 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.979 x 8.239 at -8.301 degrees (North through East)
! Clean map  min=-0.0060112  max=0.62172 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.329835Jy  sigma=0.001296
! Fit after  self-cal, rms=0.317705Jy  sigma=0.001162
! Inverting map and beam 
! Estimated beam: bmin=2.976 mas, bmaj=8.184 mas, bpa=-8.264 degrees
! Estimated noise=896.435 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000273647 Jy
! Component: 100  -  total flux cleaned = 0.000268439 Jy
! Component: 150  -  total flux cleaned = 0.000193086 Jy
! Component: 200  -  total flux cleaned = 0.000258246 Jy
! Total flux subtracted in 200 components = 0.000258246 Jy
! Clean residual min=-0.003895 max=0.004890 Jy/beam
! Clean residual mean=-0.000006 rms=0.001148 Jy/beam
! Combined flux in latest and established models = 1.07977 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 170 components and 1.07977 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317676Jy  sigma=0.001161
! Fit after  self-cal, rms=0.317676Jy  sigma=0.001161
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000130304 Jy
! Component: 100  -  total flux cleaned = 0.000194428 Jy
! Component: 150  -  total flux cleaned = 0.000197464 Jy
! Component: 200  -  total flux cleaned = 0.0001956 Jy
! Total flux subtracted in 200 components = 0.0001956 Jy
! Clean residual min=-0.003782 max=0.004866 Jy/beam
! Clean residual mean=-0.000008 rms=0.001137 Jy/beam
! Combined flux in latest and established models = 1.07997 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 174 components and 1.07997 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.317660Jy  sigma=0.001161
! Fit after  self-cal, rms=0.317659Jy  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.317659Jy  sigma=0.001161
! Fit after  self-cal, rms=0.318768Jy  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.254 mas, bmaj=5.224 mas, bpa=6.383 degrees
! Estimated noise=1592.2 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.434895 Jy
! Component: 100  -  total flux cleaned = 0.623048 Jy
! Component: 150  -  total flux cleaned = 0.733888 Jy
! Component: 200  -  total flux cleaned = 0.8055 Jy
! Total flux subtracted in 200 components = 0.8055 Jy
! Clean residual min=-0.016586 max=0.039834 Jy/beam
! Clean residual mean=0.000409 rms=0.005615 Jy/beam
! Combined flux in latest and established models = 0.8055 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 36 model components to the UV plane model.
! The established model now contains 36 components and 0.8055 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.977 mas, bmaj=8.194 mas, bpa=-8.28 degrees
! Estimated noise=896.434 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.104822 Jy
! Component: 100  -  total flux cleaned = 0.165087 Jy
! Component: 150  -  total flux cleaned = 0.201823 Jy
! Component: 200  -  total flux cleaned = 0.225038 Jy
! Total flux subtracted in 200 components = 0.225038 Jy
! Clean residual min=-0.005186 max=0.015792 Jy/beam
! Clean residual mean=0.000636 rms=0.002804 Jy/beam
! Combined flux in latest and established models = 1.03054 Jy
! Adding 77 model components to the UV plane model.
! The established model now contains 102 components and 1.03054 Jy
! Inverting map 
! Added new window around map position (3.5, -2.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0163846 Jy
! Component: 100  -  total flux cleaned = 0.0270242 Jy
! Component: 150  -  total flux cleaned = 0.0343839 Jy
! Component: 200  -  total flux cleaned = 0.0397049 Jy
! Total flux subtracted in 200 components = 0.0397049 Jy
! Clean residual min=-0.003784 max=0.004957 Jy/beam
! Clean residual mean=0.000119 rms=0.001234 Jy/beam
! Combined flux in latest and established models = 1.07024 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 148 components and 1.07024 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.463 mas, bmaj=18.76 mas, bpa=-3.669 degrees
! Estimated noise=1134.22 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00636564 Jy
! Component: 100  -  total flux cleaned = 0.00965315 Jy
! Component: 150  -  total flux cleaned = 0.0111093 Jy
! Component: 200  -  total flux cleaned = 0.0113777 Jy
! Total flux subtracted in 200 components = 0.0113777 Jy
! Clean residual min=-0.003673 max=0.003298 Jy/beam
! Clean residual mean=-0.000060 rms=0.001228 Jy/beam
! Combined flux in latest and established models = 1.08162 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.00012072 Jy
! Component: 100  -  total flux cleaned = 0.000178024 Jy
! Component: 150  -  total flux cleaned = 0.000281165 Jy
! Component: 200  -  total flux cleaned = 0.000280635 Jy
! Total flux subtracted in 200 components = 0.000280635 Jy
! Clean residual min=-0.003516 max=0.003200 Jy/beam
! Clean residual mean=-0.000065 rms=0.001189 Jy/beam
! Combined flux in latest and established models = 1.0819 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 182 components and 1.0819 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.977 mas, bmaj=8.194 mas, bpa=-8.28 degrees
! Estimated noise=896.434 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000336763 Jy
! Component: 100  -  total flux cleaned = -0.000543236 Jy
! Component: 150  -  total flux cleaned = -0.000732044 Jy
! Component: 200  -  total flux cleaned = -0.000849448 Jy
! Total flux subtracted in 200 components = -0.000849448 Jy
! Clean residual min=-0.003964 max=0.003686 Jy/beam
! Clean residual mean=-0.000017 rms=0.001055 Jy/beam
! Combined flux in latest and established models = 1.08105 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 204 components and 1.08105 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.318491Jy  sigma=0.001160
! Fit after  self-cal, rms=0.318440Jy  sigma=0.001159
wmodel J0921-2618_S_1999_12_20_pus_map.mod
! Writing 204 model components to file: J0921-2618_S_1999_12_20_pus_map.mod
wobs J0921-2618_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0921-2618_S_1999_12_20_pus_uvs.fits
wwins J0921-2618_S_1999_12_20_pus_map.win
! wwins: Wrote 4 windows to J0921-2618_S_1999_12_20_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.000356133 Jy
! Component: 100  -  total flux cleaned = -0.000601191 Jy
! Component: 150  -  total flux cleaned = -0.00106907 Jy
! Component: 200  -  total flux cleaned = -0.00140851 Jy
! Component: 250  -  total flux cleaned = -0.00157379 Jy
! Component: 300  -  total flux cleaned = -0.00157277 Jy
! Component: 350  -  total flux cleaned = -0.00157166 Jy
! Component: 400  -  total flux cleaned = -0.00157063 Jy
! Component: 450  -  total flux cleaned = -0.00162085 Jy
! Component: 500  -  total flux cleaned = -0.00152191 Jy
! Component: 550  -  total flux cleaned = -0.00161966 Jy
! Component: 600  -  total flux cleaned = -0.00166761 Jy
! Component: 650  -  total flux cleaned = -0.00166766 Jy
! Component: 700  -  total flux cleaned = -0.00157462 Jy
! Component: 750  -  total flux cleaned = -0.00166674 Jy
! Component: 800  -  total flux cleaned = -0.00162081 Jy
! Component: 850  -  total flux cleaned = -0.00157545 Jy
! Component: 900  -  total flux cleaned = -0.00153145 Jy
! Component: 950  -  total flux cleaned = -0.00157584 Jy
! Component: 1000  -  total flux cleaned = -0.00161964 Jy
! Component: 1050  -  total flux cleaned = -0.00161973 Jy
! Component: 1100  -  total flux cleaned = -0.00174739 Jy
! Component: 1150  -  total flux cleaned = -0.00170434 Jy
! Component: 1200  -  total flux cleaned = -0.00170437 Jy
! Component: 1250  -  total flux cleaned = -0.00170419 Jy
! Component: 1300  -  total flux cleaned = -0.00174536 Jy
! Component: 1350  -  total flux cleaned = -0.00174535 Jy
! Component: 1400  -  total flux cleaned = -0.00170493 Jy
! Component: 1450  -  total flux cleaned = -0.00174525 Jy
! Component: 1500  -  total flux cleaned = -0.0017853 Jy
! Component: 1550  -  total flux cleaned = -0.00182458 Jy
! Component: 1600  -  total flux cleaned = -0.00170692 Jy
! Component: 1650  -  total flux cleaned = -0.00174593 Jy
! Component: 1700  -  total flux cleaned = -0.00170734 Jy
! Component: 1750  -  total flux cleaned = -0.00170724 Jy
! Component: 1800  -  total flux cleaned = -0.00170723 Jy
! Component: 1850  -  total flux cleaned = -0.001707 Jy
! Component: 1900  -  total flux cleaned = -0.00163209 Jy
! Component: 1950  -  total flux cleaned = -0.00163214 Jy
! Component: 2000  -  total flux cleaned = -0.00163254 Jy
! Total flux subtracted in 2048 components = -0.00163243 Jy
! Clean residual min=-0.002055 max=0.002332 Jy/beam
! Clean residual mean=0.000000 rms=0.000762 Jy/beam
! Combined flux in latest and established models = 1.07942 Jy
keep
! Adding 129 model components to the UV plane model.
! The established model now contains 333 components and 1.07942 Jy
![Exited script file: muppet]
wmap "J0921-2618_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.977 x 8.194 at -8.28 degrees (North through East)
! Clean map  min=-0.0031864  max=0.63194 Jy/beam
! Writing clean map to FITS file: J0921-2618_S_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.631939 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000761838 
device "J0921-2618_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0921-2618_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.361667 0.361667 0.723333 1.44667 2.89333 5.78666 11.5733 23.1467 46.2933 92.5866
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.631 
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.977 x 8.194 at -8.28 degrees (North through East)
! Clean map  min=-0.0031864  max=0.63194 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0921-2618_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0921-2618_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0921-2618_S_1999_12_20_pus_uvs.log closed on Thu Dec 20 15:04:30 2007