! Started logfile: J0921-2618_S_2000_12_04_pus_uvs.log on Wed Oct 17 17:03:07 2007
obs J0921-2618_S_2000_12_04_pus_uva.fits
! Reading UV FITS file: J0921-2618_S_2000_12_04_pus_uva.fits
! AN table 1: 48 integrations on 190 of 190 possible baselines.
! AN table 2: 39 integrations on 190 of 190 possible baselines.
! AN table 3: 80 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0975418 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 2169 lines of history.
! 
! Reading 12380 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_2000_12_04_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 589 telescope corrections were flagged in sub-array 1.
!  A total of 551 telescope corrections were flagged in sub-array 2.
!  A total of 1291 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 589 telescope corrections were flagged in sub-array 1.
!  A total of 551 telescope corrections were flagged in sub-array 2.
!  A total of 1291 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 589 telescope corrections were flagged in sub-array 1.
!  A total of 551 telescope corrections were flagged in sub-array 2.
!  A total of 1291 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 589 telescope corrections were flagged in sub-array 1.
!  A total of 551 telescope corrections were flagged in sub-array 2.
!  A total of 1291 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.737024Jy  sigma=0.005916
! Fit after  self-cal, rms=0.600654Jy  sigma=0.004808
! 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.133 mas, bmaj=4.647 mas, bpa=13.82 degrees
! Estimated noise=1575.51 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.42045 Jy
! Component: 100  -  total flux cleaned = 0.60926 Jy
! Total flux subtracted in 100 components = 0.60926 Jy
! Clean residual min=-0.031209 max=0.095806 Jy/beam
! Clean residual mean=0.001435 rms=0.011922 Jy/beam
! Combined flux in latest and established models = 0.60926 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 19 components and 0.60926 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.514899Jy  sigma=0.004185
! Fit after  self-cal, rms=0.514649Jy  sigma=0.004182
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.119351 Jy
! Component: 100  -  total flux cleaned = 0.19819 Jy
! Total flux subtracted in 100 components = 0.19819 Jy
! Clean residual min=-0.022737 max=0.057215 Jy/beam
! Clean residual mean=0.000807 rms=0.007315 Jy/beam
! Combined flux in latest and established models = 0.80745 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 39 components and 0.80745 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.454238Jy  sigma=0.003658
! Fit after  self-cal, rms=0.454035Jy  sigma=0.003656
! Inverting map 
! Added new window around map position (-3.5, 1.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0625476 Jy
! Component: 100  -  total flux cleaned = 0.105985 Jy
! Total flux subtracted in 100 components = 0.105985 Jy
! Clean residual min=-0.019982 max=0.028028 Jy/beam
! Clean residual mean=0.000468 rms=0.005443 Jy/beam
! Combined flux in latest and established models = 0.913434 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 59 components and 0.913435 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.435684Jy  sigma=0.003494
! Fit after  self-cal, rms=0.435440Jy  sigma=0.003492
! 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=3.183 mas, bmaj=7.658 mas, bpa=-2.305 degrees
! Estimated noise=805.528 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.0686756 Jy
! Component: 100  -  total flux cleaned = 0.10794 Jy
! Component: 150  -  total flux cleaned = 0.131142 Jy
! Component: 200  -  total flux cleaned = 0.144894 Jy
! Total flux subtracted in 200 components = 0.144894 Jy
! Clean residual min=-0.016637 max=0.018163 Jy/beam
! Clean residual mean=0.000203 rms=0.004901 Jy/beam
! Combined flux in latest and established models = 1.05833 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 86 components and 1.05833 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.425037Jy  sigma=0.003397
! Fit after  self-cal, rms=0.424728Jy  sigma=0.003395
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.13     KK        0.99     KP        0.95     
!   LA        1.03     MA        1.00*    MC        1.00*    MK        1.09     
!   NL        1.04     NY        1.00*    OV        0.99     PT        0.98     
!   SC        1.02     TS        1.00*    WF        0.90     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.96     KP        1.01     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        1.10     
!   NL        1.04     NY        1.00*    OV        1.00*    PT        0.99     
!   SC        1.07     TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.99     GC        1.00*    GG        1.00*    
!   HH        0.97     HN        1.05     KK        1.00*    KP        1.05     
!   LA        1.05     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.10     NY        1.00*    OV        1.05     PT        1.02     
!   SC        1.01     TS        1.00*    WF        1.07     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.00     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.11     KK        0.97     KP        0.96     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.07     
!   NL        1.00     NY        1.00*    OV        0.96     PT        0.99     
!   SC        0.99     TS        1.00*    WF        1.07     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.07     FD        1.01     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.97     KP        1.00     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.09     
!   NL        1.00     NY        1.00*    OV        1.00*    PT        1.00     
!   SC        1.00     TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.99     GC        1.00*    GG        1.00*    
!   HH        0.84     HN        1.02     KK        1.00*    KP        1.01     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.06     NY        1.00*    OV        1.01     PT        1.03     
!   SC        0.99     TS        1.00*    WF        1.00     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.10     FD        0.81     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        0.72     KK        0.91     KP        0.92     
!   LA        1.14     MA        1.00*    MC        1.00*    MK        1.00     
!   NL        0.86     NY        1.00*    OV        1.06     PT        0.99     
!   SC        1.82     TS        1.00*    WF        1.08     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.91     FD        0.98     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.86     KP        1.08     
!   LA        1.02     MA        1.00*    MC        1.00*    MK        1.06     
!   NL        0.96     NY        1.00*    OV        1.00*    PT        0.95     
!   SC        1.05     TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.86     GC        1.00*    GG        1.00*    
!   HH        1.39     HN        1.11     KK        1.00*    KP        1.01     
!   LA        0.77     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.03     NY        1.00*    OV        1.22     PT        0.75     
!   SC        0.96     TS        1.00*    WF        0.99     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.03     KK        1.00     KP        0.97     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        0.94     
!   NL        1.00     NY        1.00*    OV        0.97     PT        1.00     
!   SC        0.97     TS        1.00*    WF        1.01     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.99     FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        0.88     KP        0.98     
!   LA        0.99     MA        1.00*    MC        1.00*    MK        0.95     
!   NL        1.02     NY        1.00*    OV        1.00*    PT        1.11     
!   SC        0.90     TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.97     GC        1.00*    GG        1.00*    
!   HH        1.75     HN        1.01     KK        1.00*    KP        0.97     
!   LA        0.98     MA        1.00*    MC        1.00*    MK        1.00*    
!   NL        1.05     NY        1.00*    OV        1.03     PT        0.95     
!   SC        1.00     TS        1.00*    WF        0.97     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.424728Jy  sigma=0.003395
! Fit after  self-cal, rms=0.372060Jy  sigma=0.003351
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.203 mas, bmaj=7.947 mas, bpa=-3.118 degrees
! Estimated noise=805.31 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.00703825 Jy
! Component: 100  -  total flux cleaned = 0.0077414 Jy
! Component: 150  -  total flux cleaned = 0.00827788 Jy
! Component: 200  -  total flux cleaned = 0.00861566 Jy
! Total flux subtracted in 200 components = 0.00861566 Jy
! Clean residual min=-0.011880 max=0.013351 Jy/beam
! Clean residual mean=0.000696 rms=0.003634 Jy/beam
! Combined flux in latest and established models = 1.06694 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 100 components and 1.06694 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.371764Jy  sigma=0.003350
! Fit after  self-cal, rms=0.373602Jy  sigma=0.003346
! 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.373602Jy  sigma=0.003346
! Fit after  self-cal, rms=0.371480Jy  sigma=0.003334
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.201 mas, bmaj=7.899 mas, bpa=-3 degrees
! Estimated noise=806.194 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00317886 Jy
! Component: 100  -  total flux cleaned = 0.00353553 Jy
! Component: 150  -  total flux cleaned = 0.00384208 Jy
! Component: 200  -  total flux cleaned = 0.00411353 Jy
! Total flux subtracted in 200 components = 0.00411353 Jy
! Clean residual min=-0.010404 max=0.014181 Jy/beam
! Clean residual mean=0.000930 rms=0.003370 Jy/beam
! Combined flux in latest and established models = 1.07106 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 104 components and 1.07106 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.371347Jy  sigma=0.003334
! Fit after  self-cal, rms=0.371929Jy  sigma=0.003334
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.000579509 Jy
! Component: 100  -  total flux cleaned = 0.000751815 Jy
! Component: 150  -  total flux cleaned = 0.000985392 Jy
! Component: 200  -  total flux cleaned = 0.00120102 Jy
! Total flux subtracted in 200 components = 0.00120102 Jy
! Clean residual min=-0.010358 max=0.013888 Jy/beam
! Clean residual mean=0.000910 rms=0.003358 Jy/beam
! Combined flux in latest and established models = 1.07226 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 108 components and 1.07226 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.371873Jy  sigma=0.003334
! Fit after  self-cal, rms=0.371869Jy  sigma=0.003334
! 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.371869Jy  sigma=0.003334
! Fit after  self-cal, rms=0.372069Jy  sigma=0.003333
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.198 mas, bmaj=7.858 mas, bpa=-2.863 degrees
! Estimated noise=805.851 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00161189 Jy
! Component: 100  -  total flux cleaned = 0.0018554 Jy
! Component: 150  -  total flux cleaned = 0.002069 Jy
! Component: 200  -  total flux cleaned = 0.0022639 Jy
! Total flux subtracted in 200 components = 0.0022639 Jy
! Clean residual min=-0.010354 max=0.014388 Jy/beam
! Clean residual mean=0.000877 rms=0.003355 Jy/beam
! Combined flux in latest and established models = 1.07452 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 109 components and 1.07452 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.372009Jy  sigma=0.003333
! Fit after  self-cal, rms=0.372113Jy  sigma=0.003333
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.000344762 Jy
! Component: 100  -  total flux cleaned = 0.000547385 Jy
! Component: 150  -  total flux cleaned = 0.000731348 Jy
! Component: 200  -  total flux cleaned = 0.000898823 Jy
! Total flux subtracted in 200 components = 0.000898823 Jy
! Clean residual min=-0.010308 max=0.014246 Jy/beam
! Clean residual mean=0.000862 rms=0.003341 Jy/beam
! Combined flux in latest and established models = 1.07542 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 111 components and 1.07542 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.372079Jy  sigma=0.003333
! Fit after  self-cal, rms=0.372081Jy  sigma=0.003333
! Inverting map 
! Added new window around map position (-22.5, 21.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0111215 Jy
! Component: 100  -  total flux cleaned = 0.013291 Jy
! Component: 150  -  total flux cleaned = 0.0146842 Jy
! Component: 200  -  total flux cleaned = 0.0154106 Jy
! Total flux subtracted in 200 components = 0.0154106 Jy
! Clean residual min=-0.009390 max=0.011853 Jy/beam
! Clean residual mean=0.000575 rms=0.002896 Jy/beam
! Combined flux in latest and established models = 1.09083 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 146 components and 1.09083 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.371693Jy  sigma=0.003328
! Fit after  self-cal, rms=0.372360Jy  sigma=0.003326
! 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.372360Jy  sigma=0.003326
! Fit after  self-cal, rms=0.373215Jy  sigma=0.003325
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.744 mas, bmaj=16.68 mas, bpa=0.2348 degrees
! Estimated noise=1010.64 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0118118 Jy
! Component: 100  -  total flux cleaned = 0.0179274 Jy
! Component: 150  -  total flux cleaned = 0.0187604 Jy
! Component: 200  -  total flux cleaned = 0.0190349 Jy
! Total flux subtracted in 200 components = 0.0190349 Jy
! Clean residual min=-0.009255 max=0.013351 Jy/beam
! Clean residual mean=0.000847 rms=0.003477 Jy/beam
! Combined flux in latest and established models = 1.10987 Jy
selfcal
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 173 components and 1.10987 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.373104Jy  sigma=0.003324
! Fit after  self-cal, rms=0.373484Jy  sigma=0.003323
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.00310657 Jy
! Component: 100  -  total flux cleaned = 0.00361432 Jy
! Component: 150  -  total flux cleaned = 0.00383503 Jy
! Component: 200  -  total flux cleaned = 0.00412991 Jy
! Total flux subtracted in 200 components = 0.00412992 Jy
! Clean residual min=-0.008957 max=0.012830 Jy/beam
! Clean residual mean=0.000702 rms=0.003324 Jy/beam
! Combined flux in latest and established models = 1.114 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 178 components and 1.114 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.373493Jy  sigma=0.003323
! Fit after  self-cal, rms=0.373458Jy  sigma=0.003323
! 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=3.195 mas, bmaj=7.817 mas, bpa=-2.641 degrees
! Estimated noise=807.441 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.195 x 7.817 at -2.641 degrees (North through East)
! Clean map  min=-0.011503  max=0.636 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.373458Jy  sigma=0.003323
! Fit after  self-cal, rms=6.878589Jy  sigma=0.002941
! Inverting map and beam 
! Estimated beam: bmin=3.201 mas, bmaj=7.791 mas, bpa=-2.243 degrees
! Estimated noise=817.108 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00517044 Jy
! Component: 100  -  total flux cleaned = 0.00623286 Jy
! Component: 150  -  total flux cleaned = 0.00700266 Jy
! Component: 200  -  total flux cleaned = 0.00733883 Jy
! Total flux subtracted in 200 components = 0.00733883 Jy
! Clean residual min=-0.007445 max=0.010569 Jy/beam
! Clean residual mean=0.000505 rms=0.002544 Jy/beam
! Combined flux in latest and established models = 1.12134 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 188 components and 1.12134 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.878529Jy  sigma=0.002941
! Fit after  self-cal, rms=6.878499Jy  sigma=0.002941
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00137498 Jy
! Component: 100  -  total flux cleaned = 0.00147991 Jy
! Component: 150  -  total flux cleaned = 0.0014809 Jy
! Component: 200  -  total flux cleaned = 0.00165253 Jy
! Total flux subtracted in 200 components = 0.00165253 Jy
! Clean residual min=-0.007342 max=0.010363 Jy/beam
! Clean residual mean=0.000475 rms=0.002517 Jy/beam
! Combined flux in latest and established models = 1.12299 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 192 components and 1.12299 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.878479Jy  sigma=0.002940
! Fit after  self-cal, rms=6.878461Jy  sigma=0.002940
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=6.878461Jy  sigma=0.002940
! Fit after  self-cal, rms=12.060752Jy  sigma=0.002940
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.086 mas, bmaj=4.529 mas, bpa=15.95 degrees
! Estimated noise=1608.65 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.421972 Jy
! Component: 100  -  total flux cleaned = 0.615266 Jy
! Component: 150  -  total flux cleaned = 0.734777 Jy
! Component: 200  -  total flux cleaned = 0.815411 Jy
! Total flux subtracted in 200 components = 0.815411 Jy
! Clean residual min=-0.020533 max=0.044602 Jy/beam
! Clean residual mean=0.001074 rms=0.006601 Jy/beam
! Combined flux in latest and established models = 0.81541 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 37 model components to the UV plane model.
! The established model now contains 37 components and 0.81541 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.2 mas, bmaj=7.757 mas, bpa=-2.004 degrees
! Estimated noise=819.534 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.115185 Jy
! Component: 100  -  total flux cleaned = 0.177717 Jy
! Component: 150  -  total flux cleaned = 0.214713 Jy
! Component: 200  -  total flux cleaned = 0.23979 Jy
! Total flux subtracted in 200 components = 0.23979 Jy
! Clean residual min=-0.008901 max=0.020982 Jy/beam
! Clean residual mean=0.001838 rms=0.004031 Jy/beam
! Combined flux in latest and established models = 1.0552 Jy
! Adding 58 model components to the UV plane model.
! The established model now contains 88 components and 1.0552 Jy
! Inverting map 
! Added new window around map position (4, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0204874 Jy
! Component: 100  -  total flux cleaned = 0.0344617 Jy
! Component: 150  -  total flux cleaned = 0.0448655 Jy
! Component: 200  -  total flux cleaned = 0.0527136 Jy
! Total flux subtracted in 200 components = 0.0527136 Jy
! Clean residual min=-0.007688 max=0.014319 Jy/beam
! Clean residual mean=0.000881 rms=0.002762 Jy/beam
! Combined flux in latest and established models = 1.10791 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 120 components and 1.10791 Jy
! Inverting map 
! Added new window around map position (-8.5, 6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0127149 Jy
! Component: 100  -  total flux cleaned = 0.0179907 Jy
! Component: 150  -  total flux cleaned = 0.0211398 Jy
! Component: 200  -  total flux cleaned = 0.0237822 Jy
! Total flux subtracted in 200 components = 0.0237822 Jy
! Clean residual min=-0.007384 max=0.009462 Jy/beam
! Clean residual mean=0.000444 rms=0.002339 Jy/beam
! Combined flux in latest and established models = 1.1317 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 155 components and 1.1317 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.725 mas, bmaj=16.67 mas, bpa=0.3256 degrees
! Estimated noise=1023.32 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00491609 Jy
! Component: 100  -  total flux cleaned = 0.00623822 Jy
! Component: 150  -  total flux cleaned = 0.00667695 Jy
! Component: 200  -  total flux cleaned = 0.00715463 Jy
! Total flux subtracted in 200 components = 0.00715463 Jy
! Clean residual min=-0.008663 max=0.011054 Jy/beam
! Clean residual mean=0.000628 rms=0.003147 Jy/beam
! Combined flux in latest and established models = 1.13885 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.000255093 Jy
! Component: 100  -  total flux cleaned = 0.00041409 Jy
! Component: 150  -  total flux cleaned = 0.000413015 Jy
! Component: 200  -  total flux cleaned = 0.000342614 Jy
! Total flux subtracted in 200 components = 0.000342614 Jy
! Clean residual min=-0.008665 max=0.010969 Jy/beam
! Clean residual mean=0.000615 rms=0.003133 Jy/beam
! Combined flux in latest and established models = 1.13919 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 189 components and 1.13919 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.2 mas, bmaj=7.757 mas, bpa=-2.004 degrees
! Estimated noise=819.534 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00142291 Jy
! Component: 100  -  total flux cleaned = -0.00129899 Jy
! Component: 150  -  total flux cleaned = -0.00108558 Jy
! Component: 200  -  total flux cleaned = -0.00108561 Jy
! Total flux subtracted in 200 components = -0.00108561 Jy
! Clean residual min=-0.006879 max=0.008939 Jy/beam
! Clean residual mean=0.000325 rms=0.002275 Jy/beam
! Combined flux in latest and established models = 1.13811 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 206 components and 1.13811 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=12.060405Jy  sigma=0.002937
! Fit after  self-cal, rms=12.060229Jy  sigma=0.002936
wmodel J0921-2618_S_2000_12_04_pus_map.mod
! Writing 206 model components to file: J0921-2618_S_2000_12_04_pus_map.mod
wobs J0921-2618_S_2000_12_04_pus_uvs.fits
! Writing UV FITS file: J0921-2618_S_2000_12_04_pus_uvs.fits
wwins J0921-2618_S_2000_12_04_pus_map.win
! wwins: Wrote 5 windows to J0921-2618_S_2000_12_04_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.00380543 Jy
! Component: 100  -  total flux cleaned = 0.00609664 Jy
! Component: 150  -  total flux cleaned = 0.00783003 Jy
! Component: 200  -  total flux cleaned = 0.00932948 Jy
! Component: 250  -  total flux cleaned = 0.0103984 Jy
! Component: 300  -  total flux cleaned = 0.0116467 Jy
! Component: 350  -  total flux cleaned = 0.0120819 Jy
! Component: 400  -  total flux cleaned = 0.0121868 Jy
! Component: 450  -  total flux cleaned = 0.0122913 Jy
! Component: 500  -  total flux cleaned = 0.0124927 Jy
! Component: 550  -  total flux cleaned = 0.0125922 Jy
! Component: 600  -  total flux cleaned = 0.0126885 Jy
! Component: 650  -  total flux cleaned = 0.0126892 Jy
! Component: 700  -  total flux cleaned = 0.0126902 Jy
! Component: 750  -  total flux cleaned = 0.0128648 Jy
! Component: 800  -  total flux cleaned = 0.0128641 Jy
! Component: 850  -  total flux cleaned = 0.0127796 Jy
! Component: 900  -  total flux cleaned = 0.0126974 Jy
! Component: 950  -  total flux cleaned = 0.0127794 Jy
! Component: 1000  -  total flux cleaned = 0.012858 Jy
! Component: 1050  -  total flux cleaned = 0.0130149 Jy
! Component: 1100  -  total flux cleaned = 0.0130924 Jy
! Component: 1150  -  total flux cleaned = 0.0133206 Jy
! Component: 1200  -  total flux cleaned = 0.0133958 Jy
! Component: 1250  -  total flux cleaned = 0.0135436 Jy
! Component: 1300  -  total flux cleaned = 0.01369 Jy
! Component: 1350  -  total flux cleaned = 0.0138335 Jy
! Component: 1400  -  total flux cleaned = 0.0139753 Jy
! Component: 1450  -  total flux cleaned = 0.0140447 Jy
! Component: 1500  -  total flux cleaned = 0.0141129 Jy
! Component: 1550  -  total flux cleaned = 0.0141134 Jy
! Component: 1600  -  total flux cleaned = 0.0141812 Jy
! Component: 1650  -  total flux cleaned = 0.0141145 Jy
! Component: 1700  -  total flux cleaned = 0.0142468 Jy
! Component: 1750  -  total flux cleaned = 0.0141813 Jy
! Component: 1800  -  total flux cleaned = 0.0141817 Jy
! Component: 1850  -  total flux cleaned = 0.0140544 Jy
! Component: 1900  -  total flux cleaned = 0.0141179 Jy
! Component: 1950  -  total flux cleaned = 0.0140557 Jy
! Component: 2000  -  total flux cleaned = 0.0141178 Jy
! Total flux subtracted in 2048 components = 0.0141169 Jy
! Clean residual min=-0.004175 max=0.004010 Jy/beam
! Clean residual mean=0.000034 rms=0.001322 Jy/beam
! Combined flux in latest and established models = 1.15222 Jy
keep
! Adding 125 model components to the UV plane model.
! The established model now contains 331 components and 1.15222 Jy
![Exited script file: muppet]
wmap "J0921-2618_S_2000_12_04_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.2 x 7.757 at -2.004 degrees (North through East)
! Clean map  min=-0.0072116  max=0.65597 Jy/beam
! Writing clean map to FITS file: J0921-2618_S_2000_12_04_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.655969 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00132603 
device "J0921-2618_S_2000_12_04_pus\_map.eps/VPS"
! Attempting to open device: 'J0921-2618_S_2000_12_04_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.606445 0.606445 1.21289 2.42578 4.85156 9.70312 19.4062 38.8125 77.6249
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0039 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.655 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.2 x 7.757 at -2.004 degrees (North through East)
! Clean map  min=-0.0072116  max=0.65597 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0921-2618_S_2000_12_04_pus\_map.gif/vgif"
! Attempting to open device: 'J0921-2618_S_2000_12_04_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0921-2618_S_2000_12_04_pus_uvs.log closed on Wed Oct 17 17:03:17 2007