! Started logfile: J0922-3959_S_1999_03_08_pus_uvs.log on Tue Jan  8 18:13:27 2008
obs J0922-3959_S_1999_03_08_pus_uva.fits
! Reading UV FITS file: J0922-3959_S_1999_03_08_pus_uva.fits
! AN table 1: 42 integrations on 190 of 190 possible baselines.
! AN table 2: 18 integrations on 190 of 190 possible baselines.
! AN table 3: 9 integrations on 190 of 190 possible baselines.
! AN table 4: 39 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0685673 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0922-3959
! 
! 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 2332 lines of history.
! 
! Reading 5628 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 J0922-3959_S_1999_03_08_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 692 telescope corrections were flagged in sub-array 1.
!  A total of 360 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 492 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 692 telescope corrections were flagged in sub-array 1.
!  A total of 360 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 492 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 649 telescope corrections were flagged in sub-array 1.
!  A total of 360 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 492 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 649 telescope corrections were flagged in sub-array 1.
!  A total of 360 telescope corrections were flagged in sub-array 2.
!  A total of 180 telescope corrections were flagged in sub-array 3.
!  A total of 492 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.680391Jy  sigma=0.004372
! Fit after  self-cal, rms=0.430442Jy  sigma=0.002537
! 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.113 mas, bmaj=4.094 mas, bpa=13.65 degrees
! Estimated noise=2637.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.504728 Jy
! Component: 100  -  total flux cleaned = 0.680194 Jy
! Total flux subtracted in 100 components = 0.680194 Jy
! Clean residual min=-0.039303 max=0.095882 Jy/beam
! Clean residual mean=-0.000242 rms=0.015913 Jy/beam
! Combined flux in latest and established models = 0.680195 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 29 components and 0.680195 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.305255Jy  sigma=0.002085
! Fit after  self-cal, rms=0.305307Jy  sigma=0.002084
! Inverting map 
! Added new window around map position (0.5, -7.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.104038 Jy
! Component: 100  -  total flux cleaned = 0.165268 Jy
! Total flux subtracted in 100 components = 0.165268 Jy
! Clean residual min=-0.024621 max=0.037636 Jy/beam
! Clean residual mean=-0.000141 rms=0.009184 Jy/beam
! Combined flux in latest and established models = 0.845463 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 49 components and 0.845463 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240061Jy  sigma=0.001547
! Fit after  self-cal, rms=0.239537Jy  sigma=0.001543
! 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.947 mas, bmaj=5.778 mas, bpa=9.441 degrees
! Estimated noise=1493.05 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.081669 Jy
! Component: 100  -  total flux cleaned = 0.123732 Jy
! Component: 150  -  total flux cleaned = 0.146879 Jy
! Component: 200  -  total flux cleaned = 0.159631 Jy
! Total flux subtracted in 200 components = 0.159631 Jy
! Clean residual min=-0.019128 max=0.035507 Jy/beam
! Clean residual mean=-0.000215 rms=0.008500 Jy/beam
! Combined flux in latest and established models = 1.00509 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 78 components and 1.00509 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217008Jy  sigma=0.001313
! Fit after  self-cal, rms=0.216544Jy  sigma=0.001310
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.94     GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        0.99     WF        1.05     
!   GN        1.14     HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        1.00*    NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.95     GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00     LA        0.98     NL        1.07     
!   OV        1.00     PT        1.00     SC        1.03     WF        1.00*    
!   GN        1.10     HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        1.05     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.95     GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.04     WF        1.08     
!   GN        1.17     HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        1.00*    NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00     GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.97     LA        0.97     NL        1.14     
!   OV        0.97     PT        0.96     SC        1.08     WF        1.00*    
!   GN        1.10     HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        1.06     NY        1.00*    ON        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.00*    FD        0.92     GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00     WF        1.09     
!   GN        1.08     HH        1.03     KK        1.00*    MC        1.00*    
!   MK        1.00*    NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.94     GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.97     LA        0.99     NL        1.15     
!   OV        0.98     PT        0.93     SC        0.99     WF        1.00*    
!   GN        1.06     HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        0.98     NY        1.00*    ON        1.00*    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        1.00*    FD        0.93     GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.02     WF        1.05     
!   GN        1.04     HH        1.01     KK        1.00*    MC        1.00*    
!   MK        1.00*    NY        1.00*    ON        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HN        0.00*    KP        0.00*    LA        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    WF        0.00*    
!   GN        0.00*    HH        0.00*    KK        0.00*    MC        0.00*    
!   MK        0.00*    NY        0.00*    ON        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.97     GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        0.97     LA        0.94     NL        1.26     
!   OV        0.99     PT        0.91     SC        0.97     WF        1.00*    
!   GN        1.04     HH        1.00*    KK        1.00*    MC        1.00*    
!   MK        0.98     NY        1.00*    ON        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.216544Jy  sigma=0.001310
! Fit after  self-cal, rms=0.217924Jy  sigma=0.001228
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.969 mas, bmaj=5.87 mas, bpa=9.039 degrees
! Estimated noise=1502.41 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.0014042 Jy
! Component: 100  -  total flux cleaned = 0.00180141 Jy
! Component: 150  -  total flux cleaned = 0.00179713 Jy
! Component: 200  -  total flux cleaned = 0.00179845 Jy
! Total flux subtracted in 200 components = 0.00179845 Jy
! Clean residual min=-0.010808 max=0.013949 Jy/beam
! Clean residual mean=0.000101 rms=0.003976 Jy/beam
! Combined flux in latest and established models = 1.00689 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 85 components and 1.00689 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.217730Jy  sigma=0.001227
! Fit after  self-cal, rms=0.218135Jy  sigma=0.001227
! 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.218135Jy  sigma=0.001227
! Fit after  self-cal, rms=0.218695Jy  sigma=0.001227
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.968 mas, bmaj=5.864 mas, bpa=9.001 degrees
! Estimated noise=1505.42 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00175332 Jy
! Component: 100  -  total flux cleaned = 0.00197792 Jy
! Component: 150  -  total flux cleaned = 0.00207525 Jy
! Component: 200  -  total flux cleaned = 0.00207646 Jy
! Total flux subtracted in 200 components = 0.00207646 Jy
! Clean residual min=-0.010686 max=0.014077 Jy/beam
! Clean residual mean=0.000103 rms=0.003949 Jy/beam
! Combined flux in latest and established models = 1.00897 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 86 components and 1.00897 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218537Jy  sigma=0.001226
! Fit after  self-cal, rms=0.218638Jy  sigma=0.001226
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.000175988 Jy
! Component: 100  -  total flux cleaned = 0.000171573 Jy
! Component: 150  -  total flux cleaned = 8.74243e-05 Jy
! Component: 200  -  total flux cleaned = 9.00127e-05 Jy
! Total flux subtracted in 200 components = 9.00127e-05 Jy
! Clean residual min=-0.010395 max=0.013782 Jy/beam
! Clean residual mean=0.000101 rms=0.003939 Jy/beam
! Combined flux in latest and established models = 1.00906 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 88 components and 1.00906 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218541Jy  sigma=0.001226
! Fit after  self-cal, rms=0.218571Jy  sigma=0.001226
! 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.218571Jy  sigma=0.001226
! Fit after  self-cal, rms=0.218786Jy  sigma=0.001226
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.962 mas, bmaj=5.842 mas, bpa=9.136 degrees
! Estimated noise=1508.47 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00233387 Jy
! Component: 100  -  total flux cleaned = 0.00249532 Jy
! Component: 150  -  total flux cleaned = 0.00256872 Jy
! Component: 200  -  total flux cleaned = 0.00257142 Jy
! Total flux subtracted in 200 components = 0.00257142 Jy
! Clean residual min=-0.010389 max=0.013781 Jy/beam
! Clean residual mean=0.000104 rms=0.003918 Jy/beam
! Combined flux in latest and established models = 1.01163 Jy
selfcal
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 90 components and 1.01163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218675Jy  sigma=0.001226
! Fit after  self-cal, rms=0.218705Jy  sigma=0.001225
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.000152496 Jy
! Component: 100  -  total flux cleaned = 0.000150332 Jy
! Component: 150  -  total flux cleaned = 0.0001495 Jy
! Component: 200  -  total flux cleaned = 9.37266e-05 Jy
! Total flux subtracted in 200 components = 9.37266e-05 Jy
! Clean residual min=-0.010328 max=0.013658 Jy/beam
! Clean residual mean=0.000103 rms=0.003913 Jy/beam
! Combined flux in latest and established models = 1.01172 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 90 components and 1.01172 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218654Jy  sigma=0.001225
! Fit after  self-cal, rms=0.218669Jy  sigma=0.001225
! 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.218669Jy  sigma=0.001225
! Fit after  self-cal, rms=0.218834Jy  sigma=0.001225
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.851 mas, bmaj=23.21 mas, bpa=-4.449 degrees
! Estimated noise=1855.26 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00332622 Jy
! Component: 100  -  total flux cleaned = 0.00338819 Jy
! Component: 150  -  total flux cleaned = 0.00349457 Jy
! Component: 200  -  total flux cleaned = 0.00359212 Jy
! Total flux subtracted in 200 components = 0.00359212 Jy
! Clean residual min=-0.013780 max=0.017635 Jy/beam
! Clean residual mean=0.000167 rms=0.006833 Jy/beam
! Combined flux in latest and established models = 1.01532 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 97 components and 1.01532 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218790Jy  sigma=0.001225
! Fit after  self-cal, rms=0.218791Jy  sigma=0.001225
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 = -7.99273e-06 Jy
! Component: 100  -  total flux cleaned = 6.17398e-05 Jy
! Component: 150  -  total flux cleaned = 0.000117307 Jy
! Component: 200  -  total flux cleaned = 0.000161333 Jy
! Total flux subtracted in 200 components = 0.000161333 Jy
! Clean residual min=-0.013657 max=0.017679 Jy/beam
! Clean residual mean=0.000169 rms=0.006824 Jy/beam
! Combined flux in latest and established models = 1.01548 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 99 components and 1.01548 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.218833Jy  sigma=0.001225
! Fit after  self-cal, rms=0.218822Jy  sigma=0.001225
! 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.958 mas, bmaj=5.824 mas, bpa=9.226 degrees
! Estimated noise=1511.02 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.958 x 5.824 at 9.226 degrees (North through East)
! Clean map  min=-0.010102  max=0.62507 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.218822Jy  sigma=0.001225
! Fit after  self-cal, rms=0.231769Jy  sigma=0.001080
! Inverting map and beam 
! Estimated beam: bmin=2.959 mas, bmaj=5.82 mas, bpa=8.882 degrees
! Estimated noise=1510.76 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000201054 Jy
! Component: 100  -  total flux cleaned = -0.000197239 Jy
! Component: 150  -  total flux cleaned = -0.000148076 Jy
! Component: 200  -  total flux cleaned = -0.000152109 Jy
! Total flux subtracted in 200 components = -0.000152109 Jy
! Clean residual min=-0.009816 max=0.012739 Jy/beam
! Clean residual mean=0.000103 rms=0.003855 Jy/beam
! Combined flux in latest and established models = 1.01533 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 100 components and 1.01533 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231707Jy  sigma=0.001080
! Fit after  self-cal, rms=0.231727Jy  sigma=0.001080
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -1.66325e-06 Jy
! Component: 100  -  total flux cleaned = 4.6541e-05 Jy
! Component: 150  -  total flux cleaned = 5.52407e-06 Jy
! Component: 200  -  total flux cleaned = 4.99965e-06 Jy
! Total flux subtracted in 200 components = 4.99965e-06 Jy
! Clean residual min=-0.009814 max=0.012667 Jy/beam
! Clean residual mean=0.000102 rms=0.003853 Jy/beam
! Combined flux in latest and established models = 1.01533 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 101 components and 1.01533 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231682Jy  sigma=0.001080
! Fit after  self-cal, rms=0.231696Jy  sigma=0.001080
! 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.231696Jy  sigma=0.001080
! Fit after  self-cal, rms=0.227454Jy  sigma=0.001080
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.048 mas, bpa=14.26 degrees
! Estimated noise=2710.01 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.518273 Jy
! Component: 100  -  total flux cleaned = 0.704437 Jy
! Component: 150  -  total flux cleaned = 0.811493 Jy
! Component: 200  -  total flux cleaned = 0.87508 Jy
! Total flux subtracted in 200 components = 0.87508 Jy
! Clean residual min=-0.020250 max=0.033650 Jy/beam
! Clean residual mean=-0.000011 rms=0.006741 Jy/beam
! Combined flux in latest and established models = 0.875081 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 46 model components to the UV plane model.
! The established model now contains 46 components and 0.875081 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.955 mas, bmaj=5.801 mas, bpa=9.058 degrees
! Estimated noise=1510.75 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)
! Added new window around map position (-0.5, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0662601 Jy
! Component: 100  -  total flux cleaned = 0.098629 Jy
! Component: 150  -  total flux cleaned = 0.116364 Jy
! Component: 200  -  total flux cleaned = 0.126597 Jy
! Total flux subtracted in 200 components = 0.126597 Jy
! Clean residual min=-0.011508 max=0.012896 Jy/beam
! Clean residual mean=0.000080 rms=0.004062 Jy/beam
! Combined flux in latest and established models = 1.00168 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 105 components and 1.00168 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.85 mas, bmaj=23.21 mas, bpa=-4.526 degrees
! Estimated noise=1855.98 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0101848 Jy
! Component: 100  -  total flux cleaned = 0.0143292 Jy
! Component: 150  -  total flux cleaned = 0.0159939 Jy
! Component: 200  -  total flux cleaned = 0.0161077 Jy
! Total flux subtracted in 200 components = 0.0161077 Jy
! Clean residual min=-0.013694 max=0.018429 Jy/beam
! Clean residual mean=0.000159 rms=0.006700 Jy/beam
! Combined flux in latest and established models = 1.01778 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.00015947 Jy
! Component: 100  -  total flux cleaned = 0.000262971 Jy
! Component: 150  -  total flux cleaned = 0.000362329 Jy
! Component: 200  -  total flux cleaned = 0.000502909 Jy
! Total flux subtracted in 200 components = 0.000502909 Jy
! Clean residual min=-0.013550 max=0.018374 Jy/beam
! Clean residual mean=0.000158 rms=0.006678 Jy/beam
! Combined flux in latest and established models = 1.01829 Jy
! Adding 15 model components to the UV plane model.
! The established model now contains 115 components and 1.01829 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.955 mas, bmaj=5.801 mas, bpa=9.058 degrees
! Estimated noise=1510.75 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00175705 Jy
! Component: 100  -  total flux cleaned = -0.00174505 Jy
! Component: 150  -  total flux cleaned = -0.00181838 Jy
! Component: 200  -  total flux cleaned = -0.00181961 Jy
! Total flux subtracted in 200 components = -0.00181961 Jy
! Clean residual min=-0.009956 max=0.012894 Jy/beam
! Clean residual mean=0.000096 rms=0.003822 Jy/beam
! Combined flux in latest and established models = 1.01647 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 127 components and 1.01647 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227226Jy  sigma=0.001080
! Fit after  self-cal, rms=0.227083Jy  sigma=0.001080
wmodel J0922-3959_S_1999_03_08_pus_map.mod
! Writing 127 model components to file: J0922-3959_S_1999_03_08_pus_map.mod
wobs J0922-3959_S_1999_03_08_pus_uvs.fits
! Writing UV FITS file: J0922-3959_S_1999_03_08_pus_uvs.fits
wwins J0922-3959_S_1999_03_08_pus_map.win
! wwins: Wrote 3 windows to J0922-3959_S_1999_03_08_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.00540577 Jy
! Component: 100  -  total flux cleaned = 0.00979497 Jy
! Component: 150  -  total flux cleaned = 0.0111822 Jy
! Component: 200  -  total flux cleaned = 0.0126333 Jy
! Component: 250  -  total flux cleaned = 0.013834 Jy
! Component: 300  -  total flux cleaned = 0.0153626 Jy
! Component: 350  -  total flux cleaned = 0.0164024 Jy
! Component: 400  -  total flux cleaned = 0.0173798 Jy
! Component: 450  -  total flux cleaned = 0.0178432 Jy
! Component: 500  -  total flux cleaned = 0.0186154 Jy
! Component: 550  -  total flux cleaned = 0.0196589 Jy
! Component: 600  -  total flux cleaned = 0.0203539 Jy
! Component: 650  -  total flux cleaned = 0.0203529 Jy
! Component: 700  -  total flux cleaned = 0.020353 Jy
! Component: 750  -  total flux cleaned = 0.0205294 Jy
! Component: 800  -  total flux cleaned = 0.0203595 Jy
! Component: 850  -  total flux cleaned = 0.0204415 Jy
! Component: 900  -  total flux cleaned = 0.02036 Jy
! Component: 950  -  total flux cleaned = 0.0202832 Jy
! Component: 1000  -  total flux cleaned = 0.0202841 Jy
! Component: 1050  -  total flux cleaned = 0.020285 Jy
! Component: 1100  -  total flux cleaned = 0.0202849 Jy
! Component: 1150  -  total flux cleaned = 0.0205663 Jy
! Component: 1200  -  total flux cleaned = 0.0207044 Jy
! Component: 1250  -  total flux cleaned = 0.0209072 Jy
! Component: 1300  -  total flux cleaned = 0.021041 Jy
! Component: 1350  -  total flux cleaned = 0.0213011 Jy
! Component: 1400  -  total flux cleaned = 0.0215555 Jy
! Component: 1450  -  total flux cleaned = 0.0219313 Jy
! Component: 1500  -  total flux cleaned = 0.022239 Jy
! Component: 1550  -  total flux cleaned = 0.0225414 Jy
! Component: 1600  -  total flux cleaned = 0.0227792 Jy
! Component: 1650  -  total flux cleaned = 0.0229559 Jy
! Component: 1700  -  total flux cleaned = 0.0232459 Jy
! Component: 1750  -  total flux cleaned = 0.023531 Jy
! Component: 1800  -  total flux cleaned = 0.023588 Jy
! Component: 1850  -  total flux cleaned = 0.0237558 Jy
! Component: 1900  -  total flux cleaned = 0.02403 Jy
! Component: 1950  -  total flux cleaned = 0.0242461 Jy
! Component: 2000  -  total flux cleaned = 0.0242995 Jy
! Total flux subtracted in 2048 components = 0.024458 Jy
! Clean residual min=-0.003641 max=0.003315 Jy/beam
! Clean residual mean=-0.000053 rms=0.001058 Jy/beam
! Combined flux in latest and established models = 1.04093 Jy
keep
! Adding 126 model components to the UV plane model.
! The established model now contains 253 components and 1.04093 Jy
![Exited script file: muppet]
wmap "J0922-3959_S_1999_03_08_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.955 x 5.801 at 9.058 degrees (North through East)
! Clean map  min=-0.0049378  max=0.64125 Jy/beam
! Writing clean map to FITS file: J0922-3959_S_1999_03_08_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.641246 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00105576 
device "J0922-3959_S_1999_03_08_pus\_map.eps/VPS"
! Attempting to open device: 'J0922-3959_S_1999_03_08_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.493927 0.493927 0.987854 1.97571 3.95142 7.90283 15.8057 31.6113 63.2226
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0031 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.641 
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.955 x 5.801 at 9.058 degrees (North through East)
! Clean map  min=-0.0049378  max=0.64125 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0922-3959_S_1999_03_08_pus\_map.gif/vgif"
! Attempting to open device: 'J0922-3959_S_1999_03_08_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0922-3959_S_1999_03_08_pus_uvs.log closed on Tue Jan  8 18:13:52 2008