! Started logfile: J0050-0929_S_1999_12_20_pus_uvs.log on Wed Dec 19 17:37:35 2007
obs J0050-0929_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0050-0929_S_1999_12_20_pus_uva.fits
! AN table 1: 95 integrations on 190 of 190 possible baselines.
! AN table 2: 25 integrations on 190 of 190 possible baselines.
! AN table 3: 113 integrations on 190 of 190 possible baselines.
! AN table 4: 80 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0544476 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0050-0929
! 
! 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 2283 lines of history.
! 
! Reading 12952 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 J0050-0929_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 1714 telescope corrections were flagged in sub-array 1.
!  A total of 488 telescope corrections were flagged in sub-array 2.
!  A total of 2007 telescope corrections were flagged in sub-array 3.
!  A total of 1184 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1714 telescope corrections were flagged in sub-array 1.
!  A total of 488 telescope corrections were flagged in sub-array 2.
!  A total of 2007 telescope corrections were flagged in sub-array 3.
!  A total of 1184 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1714 telescope corrections were flagged in sub-array 1.
!  A total of 488 telescope corrections were flagged in sub-array 2.
!  A total of 2007 telescope corrections were flagged in sub-array 3.
!  A total of 1184 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1714 telescope corrections were flagged in sub-array 1.
!  A total of 488 telescope corrections were flagged in sub-array 2.
!  A total of 2007 telescope corrections were flagged in sub-array 3.
!  A total of 1184 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.872537Jy  sigma=0.006263
! Fit after  self-cal, rms=0.451141Jy  sigma=0.002830
! 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.038 mas, bmaj=4.629 mas, bpa=3.873 degrees
! Estimated noise=1307.61 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.506787 Jy
! Component: 100  -  total flux cleaned = 0.624674 Jy
! Total flux subtracted in 100 components = 0.624674 Jy
! Clean residual min=-0.031198 max=0.046676 Jy/beam
! Clean residual mean=-0.000017 rms=0.007818 Jy/beam
! Combined flux in latest and established models = 0.624674 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.624674 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308696Jy  sigma=0.001640
! Fit after  self-cal, rms=0.308666Jy  sigma=0.001640
! 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.389 mas, bmaj=4.953 mas, bpa=3.275 degrees
! Estimated noise=932.943 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.0583338 Jy
! Component: 100  -  total flux cleaned = 0.0829509 Jy
! Component: 150  -  total flux cleaned = 0.095811 Jy
! Component: 200  -  total flux cleaned = 0.103059 Jy
! Total flux subtracted in 200 components = 0.103059 Jy
! Clean residual min=-0.018284 max=0.018163 Jy/beam
! Clean residual mean=0.000309 rms=0.004421 Jy/beam
! Combined flux in latest and established models = 0.727733 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 24 components and 0.727733 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299660Jy  sigma=0.001527
! Fit after  self-cal, rms=0.299591Jy  sigma=0.001527
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.10     GC        0.92     HH        1.00*    
!   HN        1.00*    KK        0.86     KP        1.03     LA        1.08     
!   MC        1.00*    MK        0.96     NY        1.00*    ON        1.00*    
!   OV        1.01     PT        1.07     SC        1.00*    TS        1.00     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.96     GC        2.30     HH        1.00*    
!   HN        1.02     KK        1.03     KP        0.96     LA        0.97     
!   MC        1.00*    MK        1.01     NY        1.00*    ON        1.00*    
!   OV        0.95     PT        1.01     SC        0.87     TS        1.00*    
!   WF        0.98     WZ        1.00*    GN        1.02     NL        1.00     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.01     
!   HN        0.94     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.22     MK        1.00*    NY        1.00*    ON        1.07     
!   OV        1.00*    PT        1.00*    SC        0.94     TS        1.00*    
!   WF        0.94     WZ        1.00     GN        1.00     NL        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.15     GC        0.93     HH        1.00*    
!   HN        1.00*    KK        0.91     KP        1.00     LA        1.05     
!   MC        1.00*    MK        0.98     NY        1.00*    ON        1.00*    
!   OV        0.97     PT        1.02     SC        1.00*    TS        0.98     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.01     GC        2.33     HH        1.00*    
!   HN        1.08     KK        1.00     KP        1.00     LA        0.97     
!   MC        1.00*    MK        0.99     NY        1.00*    ON        1.00*    
!   OV        0.93     PT        0.97     SC        0.87     TS        1.00*    
!   WF        0.94     WZ        1.00*    GN        1.02     NL        0.97     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.07     
!   HN        0.98     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.92     MK        1.00*    NY        1.00*    ON        1.01     
!   OV        1.00*    PT        1.00*    SC        0.96     TS        1.00*    
!   WF        0.95     WZ        1.04     GN        0.98     NL        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.13     GC        0.89     HH        1.00*    
!   HN        1.00*    KK        0.92     KP        1.02     LA        1.10     
!   MC        1.00*    MK        0.98     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        0.98     SC        1.00*    TS        0.93     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.97     GC        2.21     HH        1.00*    
!   HN        1.01     KK        1.05     KP        0.96     LA        0.99     
!   MC        1.00*    MK        0.99     NY        1.00*    ON        1.00*    
!   OV        0.98     PT        0.97     SC        0.89     TS        1.00*    
!   WF        1.01     WZ        1.00*    GN        1.06     NL        0.98     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.98     
!   HN        0.99     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.47     MK        1.00*    NY        1.00*    ON        0.90     
!   OV        1.00*    PT        1.00*    SC        1.02     TS        1.00*    
!   WF        0.96     WZ        1.09     GN        1.02     NL        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        1.09     GC        0.88     HH        1.00*    
!   HN        1.00*    KK        0.93     KP        1.00     LA        1.06     
!   MC        1.00*    MK        0.96     NY        1.00*    ON        1.00*    
!   OV        0.98     PT        1.07     SC        1.00*    TS        1.00     
!   WF        1.00*    WZ        1.00*    GN        1.00*    NL        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NY        0.00*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    GN        0.00*    NL        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.89     FD        0.96     GC        2.26     HH        1.00*    
!   HN        1.06     KK        1.06     KP        0.97     LA        1.00     
!   MC        1.00*    MK        1.00     NY        1.00*    ON        1.00*    
!   OV        0.92     PT        1.15     SC        0.89     TS        1.00*    
!   WF        0.99     WZ        1.00*    GN        1.00     NL        0.96     
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.04     
!   HN        0.98     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.40     MK        1.00*    NY        1.00*    ON        1.01     
!   OV        1.00*    PT        1.00*    SC        0.96     TS        1.00*    
!   WF        1.01     WZ        1.04     GN        1.00     NL        1.00*    
! 
! 
! Fit before self-cal, rms=0.299591Jy  sigma=0.001527
! Fit after  self-cal, rms=0.268089Jy  sigma=0.001355
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.4 mas, bmaj=5.087 mas, bpa=2.49 degrees
! Estimated noise=947.186 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.00249091 Jy
! Component: 100  -  total flux cleaned = -0.00226512 Jy
! Component: 150  -  total flux cleaned = -0.00227243 Jy
! Component: 200  -  total flux cleaned = -0.0022714 Jy
! Total flux subtracted in 200 components = -0.0022714 Jy
! Clean residual min=-0.006128 max=0.007118 Jy/beam
! Clean residual mean=0.000204 rms=0.001630 Jy/beam
! Combined flux in latest and established models = 0.725461 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 36 components and 0.725461 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.267649Jy  sigma=0.001352
! Fit after  self-cal, rms=0.270956Jy  sigma=0.001342
! 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.270956Jy  sigma=0.001342
! Fit after  self-cal, rms=0.270381Jy  sigma=0.001339
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.396 mas, bmaj=5.086 mas, bpa=2.314 degrees
! Estimated noise=945.827 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00245587 Jy
! Component: 100  -  total flux cleaned = -0.00228252 Jy
! Component: 150  -  total flux cleaned = -0.0022829 Jy
! Component: 200  -  total flux cleaned = -0.002285 Jy
! Total flux subtracted in 200 components = -0.002285 Jy
! Clean residual min=-0.006179 max=0.006746 Jy/beam
! Clean residual mean=0.000208 rms=0.001555 Jy/beam
! Combined flux in latest and established models = 0.723176 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 37 components and 0.723176 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270128Jy  sigma=0.001336
! Fit after  self-cal, rms=0.270733Jy  sigma=0.001336
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 (3.5, 16.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00401165 Jy
! Component: 100  -  total flux cleaned = 0.00529372 Jy
! Component: 150  -  total flux cleaned = 0.00659889 Jy
! Component: 200  -  total flux cleaned = 0.00754785 Jy
! Total flux subtracted in 200 components = 0.00754785 Jy
! Clean residual min=-0.005950 max=0.004851 Jy/beam
! Clean residual mean=0.000052 rms=0.001439 Jy/beam
! Combined flux in latest and established models = 0.730724 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 53 components and 0.730724 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270515Jy  sigma=0.001334
! Fit after  self-cal, rms=0.270529Jy  sigma=0.001334
! 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.270529Jy  sigma=0.001334
! Fit after  self-cal, rms=0.270321Jy  sigma=0.001333
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.394 mas, bmaj=5.082 mas, bpa=2.173 degrees
! Estimated noise=944.578 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00226517 Jy
! Component: 100  -  total flux cleaned = -0.0020094 Jy
! Component: 150  -  total flux cleaned = -0.00181416 Jy
! Component: 200  -  total flux cleaned = -0.00163617 Jy
! Total flux subtracted in 200 components = -0.00163617 Jy
! Clean residual min=-0.005465 max=0.004786 Jy/beam
! Clean residual mean=0.000170 rms=0.001377 Jy/beam
! Combined flux in latest and established models = 0.729088 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 57 components and 0.729088 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270191Jy  sigma=0.001332
! Fit after  self-cal, rms=0.270282Jy  sigma=0.001332
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.00017905 Jy
! Component: 100  -  total flux cleaned = 0.000248383 Jy
! Component: 150  -  total flux cleaned = 0.000311877 Jy
! Component: 200  -  total flux cleaned = 0.00037079 Jy
! Total flux subtracted in 200 components = 0.00037079 Jy
! Clean residual min=-0.005365 max=0.004742 Jy/beam
! Clean residual mean=0.000158 rms=0.001370 Jy/beam
! Combined flux in latest and established models = 0.729459 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 63 components and 0.729459 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270242Jy  sigma=0.001332
! Fit after  self-cal, rms=0.270251Jy  sigma=0.001332
! 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.270251Jy  sigma=0.001332
! Fit after  self-cal, rms=0.270225Jy  sigma=0.001332
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.55 mas, bmaj=11.59 mas, bpa=-0.7826 degrees
! Estimated noise=1254.31 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00158218 Jy
! Component: 100  -  total flux cleaned = 0.00168671 Jy
! Component: 150  -  total flux cleaned = 0.00177632 Jy
! Component: 200  -  total flux cleaned = 0.00185811 Jy
! Total flux subtracted in 200 components = 0.00185811 Jy
! Clean residual min=-0.004594 max=0.005983 Jy/beam
! Clean residual mean=0.000398 rms=0.001680 Jy/beam
! Combined flux in latest and established models = 0.731317 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 70 components and 0.731317 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270215Jy  sigma=0.001332
! Fit after  self-cal, rms=0.270219Jy  sigma=0.001331
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 = -2.25433e-05 Jy
! Component: 100  -  total flux cleaned = 5.07271e-05 Jy
! Component: 150  -  total flux cleaned = 8.29479e-05 Jy
! Component: 200  -  total flux cleaned = 0.000114831 Jy
! Total flux subtracted in 200 components = 0.000114831 Jy
! Clean residual min=-0.004595 max=0.005959 Jy/beam
! Clean residual mean=0.000390 rms=0.001673 Jy/beam
! Combined flux in latest and established models = 0.731432 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 72 components and 0.731432 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270213Jy  sigma=0.001331
! Fit after  self-cal, rms=0.270200Jy  sigma=0.001331
! 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.393 mas, bmaj=5.081 mas, bpa=2.07 degrees
! Estimated noise=943.775 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.393 x 5.081 at 2.07 degrees (North through East)
! Clean map  min=-0.0073036  max=0.64041 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.270200Jy  sigma=0.001331
! Fit after  self-cal, rms=1.571401Jy  sigma=0.001161
! Inverting map and beam 
! Estimated beam: bmin=2.392 mas, bmaj=5.082 mas, bpa=2.105 degrees
! Estimated noise=944.684 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0014319 Jy
! Component: 100  -  total flux cleaned = -0.00135435 Jy
! Component: 150  -  total flux cleaned = -0.00141711 Jy
! Component: 200  -  total flux cleaned = -0.00147414 Jy
! Total flux subtracted in 200 components = -0.00147414 Jy
! Clean residual min=-0.004533 max=0.004874 Jy/beam
! Clean residual mean=0.000200 rms=0.001198 Jy/beam
! Combined flux in latest and established models = 0.729958 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 77 components and 0.729958 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.571403Jy  sigma=0.001161
! Fit after  self-cal, rms=1.571407Jy  sigma=0.001161
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000136169 Jy
! Component: 100  -  total flux cleaned = 8.33536e-05 Jy
! Component: 150  -  total flux cleaned = 3.52303e-05 Jy
! Component: 200  -  total flux cleaned = 3.58516e-05 Jy
! Total flux subtracted in 200 components = 3.58516e-05 Jy
! Clean residual min=-0.004476 max=0.004913 Jy/beam
! Clean residual mean=0.000199 rms=0.001194 Jy/beam
! Combined flux in latest and established models = 0.729994 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 82 components and 0.729994 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.571410Jy  sigma=0.001161
! Fit after  self-cal, rms=1.571405Jy  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=1.571405Jy  sigma=0.001161
! Fit after  self-cal, rms=2.557402Jy  sigma=0.001160
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.01 mas, bmaj=4.865 mas, bpa=2.638 degrees
! Estimated noise=1312.57 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.510225 Jy
! Component: 100  -  total flux cleaned = 0.622103 Jy
! Component: 150  -  total flux cleaned = 0.657984 Jy
! Component: 200  -  total flux cleaned = 0.676699 Jy
! Total flux subtracted in 200 components = 0.676699 Jy
! Clean residual min=-0.007534 max=0.010374 Jy/beam
! Clean residual mean=0.000059 rms=0.002006 Jy/beam
! Combined flux in latest and established models = 0.676699 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 25 model components to the UV plane model.
! The established model now contains 25 components and 0.676699 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.392 mas, bmaj=5.079 mas, bpa=2.1 degrees
! Estimated noise=944.249 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.0181211 Jy
! Component: 100  -  total flux cleaned = 0.0281456 Jy
! Component: 150  -  total flux cleaned = 0.0349927 Jy
! Component: 200  -  total flux cleaned = 0.0398952 Jy
! Total flux subtracted in 200 components = 0.0398952 Jy
! Clean residual min=-0.004257 max=0.005095 Jy/beam
! Clean residual mean=0.000434 rms=0.001287 Jy/beam
! Combined flux in latest and established models = 0.716594 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 56 components and 0.716594 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.545 mas, bmaj=11.61 mas, bpa=-0.8507 degrees
! Estimated noise=1254.73 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00743504 Jy
! Component: 100  -  total flux cleaned = 0.0110548 Jy
! Component: 150  -  total flux cleaned = 0.0124064 Jy
! Component: 200  -  total flux cleaned = 0.0129413 Jy
! Total flux subtracted in 200 components = 0.0129413 Jy
! Clean residual min=-0.004528 max=0.005574 Jy/beam
! Clean residual mean=0.000526 rms=0.001471 Jy/beam
! Combined flux in latest and established models = 0.729535 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.000382505 Jy
! Component: 100  -  total flux cleaned = 0.000705057 Jy
! Component: 150  -  total flux cleaned = 0.000941468 Jy
! Component: 200  -  total flux cleaned = 0.00101435 Jy
! Total flux subtracted in 200 components = 0.00101435 Jy
! Clean residual min=-0.004419 max=0.005594 Jy/beam
! Clean residual mean=0.000479 rms=0.001456 Jy/beam
! Combined flux in latest and established models = 0.73055 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 85 components and 0.73055 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.392 mas, bmaj=5.079 mas, bpa=2.1 degrees
! Estimated noise=944.249 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00157719 Jy
! Component: 100  -  total flux cleaned = -0.00182096 Jy
! Component: 150  -  total flux cleaned = -0.001958 Jy
! Component: 200  -  total flux cleaned = -0.00207953 Jy
! Total flux subtracted in 200 components = -0.00207953 Jy
! Clean residual min=-0.004032 max=0.004949 Jy/beam
! Clean residual mean=0.000220 rms=0.001180 Jy/beam
! Combined flux in latest and established models = 0.72847 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 100 components and 0.72847 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=2.557452Jy  sigma=0.001160
! Fit after  self-cal, rms=2.557424Jy  sigma=0.001160
wmodel J0050-0929_S_1999_12_20_pus_map.mod
! Writing 100 model components to file: J0050-0929_S_1999_12_20_pus_map.mod
wobs J0050-0929_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0050-0929_S_1999_12_20_pus_uvs.fits
wwins J0050-0929_S_1999_12_20_pus_map.win
! wwins: Wrote 2 windows to J0050-0929_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.00166103 Jy
! Component: 100  -  total flux cleaned = 0.00188512 Jy
! Component: 150  -  total flux cleaned = 0.00231539 Jy
! Component: 200  -  total flux cleaned = 0.00286482 Jy
! Component: 250  -  total flux cleaned = 0.00319725 Jy
! Component: 300  -  total flux cleaned = 0.00352067 Jy
! Component: 350  -  total flux cleaned = 0.00389782 Jy
! Component: 400  -  total flux cleaned = 0.00426666 Jy
! Component: 450  -  total flux cleaned = 0.00444835 Jy
! Component: 500  -  total flux cleaned = 0.00474511 Jy
! Component: 550  -  total flux cleaned = 0.00497699 Jy
! Component: 600  -  total flux cleaned = 0.00514818 Jy
! Component: 650  -  total flux cleaned = 0.00531625 Jy
! Component: 700  -  total flux cleaned = 0.00548195 Jy
! Component: 750  -  total flux cleaned = 0.00559146 Jy
! Component: 800  -  total flux cleaned = 0.005807 Jy
! Component: 850  -  total flux cleaned = 0.00591307 Jy
! Component: 900  -  total flux cleaned = 0.00607066 Jy
! Component: 950  -  total flux cleaned = 0.00627745 Jy
! Component: 1000  -  total flux cleaned = 0.00637956 Jy
! Component: 1050  -  total flux cleaned = 0.00648065 Jy
! Component: 1100  -  total flux cleaned = 0.00667989 Jy
! Component: 1150  -  total flux cleaned = 0.00672888 Jy
! Component: 1200  -  total flux cleaned = 0.00692466 Jy
! Component: 1250  -  total flux cleaned = 0.0071175 Jy
! Component: 1300  -  total flux cleaned = 0.00716489 Jy
! Component: 1350  -  total flux cleaned = 0.00730714 Jy
! Component: 1400  -  total flux cleaned = 0.0075407 Jy
! Component: 1450  -  total flux cleaned = 0.00763289 Jy
! Component: 1500  -  total flux cleaned = 0.00777022 Jy
! Component: 1550  -  total flux cleaned = 0.00795126 Jy
! Component: 1600  -  total flux cleaned = 0.00808539 Jy
! Component: 1650  -  total flux cleaned = 0.00817434 Jy
! Component: 1700  -  total flux cleaned = 0.00835044 Jy
! Component: 1750  -  total flux cleaned = 0.0084812 Jy
! Component: 1800  -  total flux cleaned = 0.00869631 Jy
! Component: 1850  -  total flux cleaned = 0.00886638 Jy
! Component: 1900  -  total flux cleaned = 0.00899274 Jy
! Component: 1950  -  total flux cleaned = 0.00915979 Jy
! Component: 2000  -  total flux cleaned = 0.00932517 Jy
! Total flux subtracted in 2048 components = 0.0094887 Jy
! Clean residual min=-0.002567 max=0.002350 Jy/beam
! Clean residual mean=0.000053 rms=0.000779 Jy/beam
! Combined flux in latest and established models = 0.737959 Jy
keep
! Adding 137 model components to the UV plane model.
! The established model now contains 237 components and 0.737959 Jy
![Exited script file: muppet]
wmap "J0050-0929_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.392 x 5.079 at 2.1 degrees (North through East)
! Clean map  min=-0.0034316  max=0.64992 Jy/beam
! Writing clean map to FITS file: J0050-0929_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.649923 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000777407 
device "J0050-0929_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0050-0929_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.358845 0.358845 0.717691 1.43538 2.87076 5.74152 11.483 22.9661 45.9322 91.8644
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0023 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.649 
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.392 x 5.079 at 2.1 degrees (North through East)
! Clean map  min=-0.0034316  max=0.64992 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0050-0929_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0050-0929_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0050-0929_S_1999_12_20_pus_uvs.log closed on Wed Dec 19 17:37:46 2007