! Started logfile: J0050-0929_S_2003_09_17_pus_uvs.log on Mon May 21 20:05:10 2007
obs J0050-0929_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0050-0929_S_2003_09_17_pus_uva.fits
! AN table 1: 119 integrations on 120 of 120 possible baselines.
! AN table 2: 147 integrations on 120 of 120 possible baselines.
! AN table 3: 72 integrations on 120 of 120 possible baselines.
! AN table 4: 99 integrations on 120 of 120 possible baselines.
! AN table 5: 132 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0797012 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0050-0929
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1732 lines of history.
! 
! Reading 21768 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 
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 1344 telescope corrections were flagged in sub-array 1.
!  A total of 1790 telescope corrections were flagged in sub-array 2.
!  A total of 918 telescope corrections were flagged in sub-array 3.
!  A total of 1584 telescope corrections were flagged in sub-array 4.
!  A total of 1515 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1344 telescope corrections were flagged in sub-array 1.
!  A total of 1790 telescope corrections were flagged in sub-array 2.
!  A total of 918 telescope corrections were flagged in sub-array 3.
!  A total of 1584 telescope corrections were flagged in sub-array 4.
!  A total of 1515 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1344 telescope corrections were flagged in sub-array 1.
!  A total of 1790 telescope corrections were flagged in sub-array 2.
!  A total of 918 telescope corrections were flagged in sub-array 3.
!  A total of 1584 telescope corrections were flagged in sub-array 4.
!  A total of 1515 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1337 telescope corrections were flagged in sub-array 1.
!  A total of 1790 telescope corrections were flagged in sub-array 2.
!  A total of 918 telescope corrections were flagged in sub-array 3.
!  A total of 1584 telescope corrections were flagged in sub-array 4.
!  A total of 1515 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.766967Jy  sigma=0.005176
! Fit after  self-cal, rms=0.499304Jy  sigma=0.003390
! 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.016 mas, bmaj=7.569 mas, bpa=0.04345 degrees
! Estimated noise=1336.25 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.394517 Jy
! Component: 100  -  total flux cleaned = 0.483556 Jy
! Total flux subtracted in 100 components = 0.483556 Jy
! Clean residual min=-0.012036 max=0.032604 Jy/beam
! Clean residual mean=0.000255 rms=0.003423 Jy/beam
! Combined flux in latest and established models = 0.483556 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.483556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.216459Jy  sigma=0.001308
! Fit after  self-cal, rms=0.216430Jy  sigma=0.001308
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0346747 Jy
! Component: 100  -  total flux cleaned = 0.0531881 Jy
! Total flux subtracted in 100 components = 0.0531881 Jy
! Clean residual min=-0.008904 max=0.013578 Jy/beam
! Clean residual mean=0.000146 rms=0.002478 Jy/beam
! Combined flux in latest and established models = 0.536744 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 29 components and 0.536744 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205565Jy  sigma=0.001217
! Fit after  self-cal, rms=0.205483Jy  sigma=0.001217
! 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.858 mas, bmaj=10.71 mas, bpa=-2.014 degrees
! Estimated noise=724.866 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.024959 Jy
! Component: 100  -  total flux cleaned = 0.0359009 Jy
! Component: 150  -  total flux cleaned = 0.041431 Jy
! Component: 200  -  total flux cleaned = 0.0442571 Jy
! Total flux subtracted in 200 components = 0.0442571 Jy
! Clean residual min=-0.006648 max=0.008932 Jy/beam
! Clean residual mean=0.000568 rms=0.002294 Jy/beam
! Combined flux in latest and established models = 0.581002 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 53 components and 0.581002 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203145Jy  sigma=0.001192
! Fit after  self-cal, rms=0.203062Jy  sigma=0.001192
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.01     GC        1.12     HN        1.03     KP        0.96     
!   LA        1.01     MK        0.97     NL        1.06     NY        1.00*    
!   ON        1.00*    OV        0.92     PT        1.00     SC        0.95     
!   TS        0.98     KK        1.05     WZ        1.00*    WF        0.94     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.03     GC        1.03     HN        0.97     KP        0.96     
!   LA        0.98     MK        1.03     NL        1.06     NY        1.00*    
!   ON        1.00*    OV        1.11     PT        0.99     SC        1.12     
!   TS        1.01     KK        0.97     WZ        1.00*    WF        0.93     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.91     GC        1.03     HN        1.00*    KP        0.91     
!   LA        0.95     MK        0.98     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.04     PT        0.95     SC        1.00*    
!   TS        1.00*    KK        1.09     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 162 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.99     GC        1.00*    HN        0.99     KP        0.93     
!   LA        0.98     MK        1.00*    NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.07     PT        0.98     SC        0.95     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.04     
! 
! 
! Correcting IF 2.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.02     GC        1.07     HN        0.95     KP        1.06     
!   LA        0.99     MK        1.04     NL        1.06     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.97     SC        0.94     
!   TS        1.05     KK        0.98     WZ        1.00*    WF        0.96     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.05     GC        1.03     HN        1.09     KP        1.10     
!   LA        0.98     MK        1.08     NL        1.03     NY        1.00*    
!   ON        1.00*    OV        1.04     PT        0.97     SC        1.11     
!   TS        1.00     KK        0.95     WZ        1.00*    WF        1.04     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.94     GC        0.97     HN        1.00*    KP        0.99     
!   LA        0.94     MK        1.07     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.91     SC        1.00*    
!   TS        1.00*    KK        0.98     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 162 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.97     GC        1.00*    HN        1.03     KP        1.03     
!   LA        1.02     MK        1.00*    NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.95     SC        1.01     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.98     
! 
! 
! Correcting IF 3.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.98     GC        1.10     HN        0.99     KP        1.03     
!   LA        0.99     MK        1.01     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        1.04     SC        0.98     
!   TS        1.07     KK        0.99     WZ        1.00*    WF        1.00     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.04     GC        1.04     HN        1.02     KP        1.09     
!   LA        0.99     MK        1.03     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.10     PT        1.02     SC        0.93     
!   TS        1.00     KK        0.97     WZ        1.00*    WF        0.98     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.90     GC        1.07     HN        1.00*    KP        1.00     
!   LA        0.93     MK        1.01     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.97     SC        1.00*    
!   TS        1.00*    KK        1.00     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 162 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.96     GC        1.00*    HN        1.07     KP        1.01     
!   LA        0.95     MK        1.00*    NL        0.96     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        1.00     SC        1.00     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.08     
! 
! 
! Correcting IF 4.
!  A total of 54 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.99     GC        1.12     HN        1.17     KP        1.05     
!   LA        0.98     MK        0.96     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.96     SC        0.94     
!   TS        1.09     KK        1.02     WZ        1.00*    WF        0.92     
! 
!  A total of 57 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.02     GC        1.13     HN        1.15     KP        1.04     
!   LA        1.03     MK        0.96     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.13     PT        0.97     SC        0.94     
!   TS        0.99     KK        1.01     WZ        1.00*    WF        1.15     
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.90     GC        1.01     HN        1.00*    KP        1.00     
!   LA        0.94     MK        0.98     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.95     SC        1.00*    
!   TS        1.00*    KK        1.02     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 162 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.97     GC        1.00*    HN        0.93     KP        1.02     
!   LA        0.97     MK        1.00*    NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        0.95     SC        0.97     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.05     
! 
! 
! Fit before self-cal, rms=0.203062Jy  sigma=0.001192
! Fit after  self-cal, rms=0.198665Jy  sigma=0.001172
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.823 mas, bmaj=10.71 mas, bpa=-1.955 degrees
! Estimated noise=739.087 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.0030636 Jy
! Component: 100  -  total flux cleaned = -0.00378106 Jy
! Component: 150  -  total flux cleaned = -0.00392709 Jy
! Component: 200  -  total flux cleaned = -0.00409386 Jy
! Total flux subtracted in 200 components = -0.00409386 Jy
! Clean residual min=-0.004956 max=0.007611 Jy/beam
! Clean residual mean=0.000318 rms=0.001630 Jy/beam
! Combined flux in latest and established models = 0.576908 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 61 components and 0.576908 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198589Jy  sigma=0.001171
! Fit after  self-cal, rms=0.198685Jy  sigma=0.001171
! 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.198685Jy  sigma=0.001171
! Fit after  self-cal, rms=0.199174Jy  sigma=0.001160
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.823 mas, bmaj=10.73 mas, bpa=-1.986 degrees
! Estimated noise=738.996 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000797022 Jy
! Component: 100  -  total flux cleaned = -0.000747823 Jy
! Component: 150  -  total flux cleaned = -0.000706663 Jy
! Component: 200  -  total flux cleaned = -0.000707221 Jy
! Total flux subtracted in 200 components = -0.000707221 Jy
! Clean residual min=-0.004485 max=0.006829 Jy/beam
! Clean residual mean=0.000134 rms=0.001366 Jy/beam
! Combined flux in latest and established models = 0.5762 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 66 components and 0.5762 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.199144Jy  sigma=0.001160
! Fit after  self-cal, rms=0.199204Jy  sigma=0.001160
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 (4, 28).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00671867 Jy
! Component: 100  -  total flux cleaned = 0.0102592 Jy
! Component: 150  -  total flux cleaned = 0.0117918 Jy
! Component: 200  -  total flux cleaned = 0.0121658 Jy
! Total flux subtracted in 200 components = 0.0121658 Jy
! Clean residual min=-0.004217 max=0.003702 Jy/beam
! Clean residual mean=-0.000104 rms=0.001005 Jy/beam
! Combined flux in latest and established models = 0.588366 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 98 components and 0.588367 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198942Jy  sigma=0.001158
! Fit after  self-cal, rms=0.198926Jy  sigma=0.001158
! 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.198926Jy  sigma=0.001158
! Fit after  self-cal, rms=0.198826Jy  sigma=0.001155
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.826 mas, bmaj=10.74 mas, bpa=-2.022 degrees
! Estimated noise=738.314 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00169754 Jy
! Component: 100  -  total flux cleaned = 0.00190463 Jy
! Component: 150  -  total flux cleaned = 0.00196282 Jy
! Component: 200  -  total flux cleaned = 0.00206705 Jy
! Total flux subtracted in 200 components = 0.00206705 Jy
! Clean residual min=-0.004113 max=0.003950 Jy/beam
! Clean residual mean=-0.000096 rms=0.000941 Jy/beam
! Combined flux in latest and established models = 0.590434 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 108 components and 0.590434 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198770Jy  sigma=0.001155
! Fit after  self-cal, rms=0.198788Jy  sigma=0.001155
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.000514869 Jy
! Component: 100  -  total flux cleaned = 0.000464828 Jy
! Component: 150  -  total flux cleaned = 0.000464111 Jy
! Component: 200  -  total flux cleaned = 0.000464952 Jy
! Total flux subtracted in 200 components = 0.000464952 Jy
! Clean residual min=-0.004100 max=0.003941 Jy/beam
! Clean residual mean=-0.000106 rms=0.000931 Jy/beam
! Combined flux in latest and established models = 0.590898 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 112 components and 0.590899 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198763Jy  sigma=0.001155
! Fit after  self-cal, rms=0.198765Jy  sigma=0.001155
! 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.198765Jy  sigma=0.001155
! Fit after  self-cal, rms=0.198689Jy  sigma=0.001155
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.849 mas, bmaj=16.69 mas, bpa=-9.621 degrees
! Estimated noise=940.877 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00166422 Jy
! Component: 100  -  total flux cleaned = 0.0019906 Jy
! Component: 150  -  total flux cleaned = 0.00219805 Jy
! Component: 200  -  total flux cleaned = 0.00229422 Jy
! Total flux subtracted in 200 components = 0.00229422 Jy
! Clean residual min=-0.004258 max=0.003588 Jy/beam
! Clean residual mean=-0.000266 rms=0.001173 Jy/beam
! Combined flux in latest and established models = 0.593193 Jy
selfcal
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 123 components and 0.593193 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198675Jy  sigma=0.001155
! Fit after  self-cal, rms=0.198671Jy  sigma=0.001155
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.000419995 Jy
! Component: 100  -  total flux cleaned = 0.000448398 Jy
! Component: 150  -  total flux cleaned = 0.000475712 Jy
! Component: 200  -  total flux cleaned = 0.000501325 Jy
! Total flux subtracted in 200 components = 0.000501325 Jy
! Clean residual min=-0.004223 max=0.003543 Jy/beam
! Clean residual mean=-0.000284 rms=0.001155 Jy/beam
! Combined flux in latest and established models = 0.593694 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 124 components and 0.593694 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.198665Jy  sigma=0.001155
! Fit after  self-cal, rms=0.198664Jy  sigma=0.001155
! 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.829 mas, bmaj=10.74 mas, bpa=-2.04 degrees
! Estimated noise=738.062 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.829 x 10.74 at -2.04 degrees (North through East)
! Clean map  min=-0.0036827  max=0.53423 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.198664Jy  sigma=0.001155
! Fit after  self-cal, rms=0.196931Jy  sigma=0.001029
! Inverting map and beam 
! Estimated beam: bmin=2.829 mas, bmaj=10.74 mas, bpa=-2.035 degrees
! Estimated noise=738.261 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000843304 Jy
! Component: 100  -  total flux cleaned = -0.000932171 Jy
! Component: 150  -  total flux cleaned = -0.000973047 Jy
! Component: 200  -  total flux cleaned = -0.00101041 Jy
! Total flux subtracted in 200 components = -0.00101041 Jy
! Clean residual min=-0.003402 max=0.003952 Jy/beam
! Clean residual mean=-0.000138 rms=0.000875 Jy/beam
! Combined flux in latest and established models = 0.592684 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 137 components and 0.592684 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196909Jy  sigma=0.001029
! Fit after  self-cal, rms=0.196914Jy  sigma=0.001029
! Inverting map 
! Added new window around map position (27, 26.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0032523 Jy
! Component: 100  -  total flux cleaned = 0.00352574 Jy
! Component: 150  -  total flux cleaned = 0.00352404 Jy
! Component: 200  -  total flux cleaned = 0.0036127 Jy
! Total flux subtracted in 200 components = 0.0036127 Jy
! Clean residual min=-0.003469 max=0.002398 Jy/beam
! Clean residual mean=-0.000193 rms=0.000801 Jy/beam
! Combined flux in latest and established models = 0.596297 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 159 components and 0.596297 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196856Jy  sigma=0.001029
! Fit after  self-cal, rms=0.196851Jy  sigma=0.001029
! 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.196851Jy  sigma=0.001029
! Fit after  self-cal, rms=0.196935Jy  sigma=0.001029
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.028 mas, bmaj=7.682 mas, bpa=-0.02493 degrees
! Estimated noise=1312.6 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.400655 Jy
! Component: 100  -  total flux cleaned = 0.489619 Jy
! Component: 150  -  total flux cleaned = 0.521528 Jy
! Component: 200  -  total flux cleaned = 0.537221 Jy
! Total flux subtracted in 200 components = 0.537221 Jy
! Clean residual min=-0.006322 max=0.007768 Jy/beam
! Clean residual mean=0.000137 rms=0.001698 Jy/beam
! Combined flux in latest and established models = 0.537221 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 18 model components to the UV plane model.
! The established model now contains 18 components and 0.537221 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.832 mas, bmaj=10.75 mas, bpa=-2.049 degrees
! Estimated noise=737.601 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.0200931 Jy
! Component: 100  -  total flux cleaned = 0.0304 Jy
! Component: 150  -  total flux cleaned = 0.0368893 Jy
! Component: 200  -  total flux cleaned = 0.0417653 Jy
! Total flux subtracted in 200 components = 0.0417653 Jy
! Clean residual min=-0.003756 max=0.004267 Jy/beam
! Clean residual mean=0.000158 rms=0.001152 Jy/beam
! Combined flux in latest and established models = 0.578986 Jy
! Adding 66 model components to the UV plane model.
! The established model now contains 78 components and 0.578986 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=8.856 mas, bmaj=16.69 mas, bpa=-9.614 degrees
! Estimated noise=939.123 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00570931 Jy
! Component: 100  -  total flux cleaned = 0.00938264 Jy
! Component: 150  -  total flux cleaned = 0.0120456 Jy
! Component: 200  -  total flux cleaned = 0.0139934 Jy
! Total flux subtracted in 200 components = 0.0139934 Jy
! Clean residual min=-0.004124 max=0.002465 Jy/beam
! Clean residual mean=-0.000224 rms=0.001090 Jy/beam
! Combined flux in latest and established models = 0.59298 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.00077505 Jy
! Component: 100  -  total flux cleaned = 0.00140105 Jy
! Component: 150  -  total flux cleaned = 0.00168875 Jy
! Component: 200  -  total flux cleaned = 0.00184045 Jy
! Total flux subtracted in 200 components = 0.00184045 Jy
! Clean residual min=-0.004124 max=0.002216 Jy/beam
! Clean residual mean=-0.000303 rms=0.001015 Jy/beam
! Combined flux in latest and established models = 0.59482 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 125 components and 0.59482 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.832 mas, bmaj=10.75 mas, bpa=-2.049 degrees
! Estimated noise=737.601 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000107387 Jy
! Component: 100  -  total flux cleaned = 0.000173348 Jy
! Component: 150  -  total flux cleaned = 0.000174619 Jy
! Component: 200  -  total flux cleaned = 0.000222864 Jy
! Total flux subtracted in 200 components = 0.000222864 Jy
! Clean residual min=-0.003394 max=0.002407 Jy/beam
! Clean residual mean=-0.000157 rms=0.000803 Jy/beam
! Combined flux in latest and established models = 0.595043 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 145 components and 0.595043 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.196925Jy  sigma=0.001029
! Fit after  self-cal, rms=0.196926Jy  sigma=0.001029
wmodel J0050-0929_S_2003_09_17_pus_map.mod
! Writing 145 model components to file: J0050-0929_S_2003_09_17_pus_map.mod
wobs J0050-0929_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0050-0929_S_2003_09_17_pus_uvs.fits
wwins J0050-0929_S_2003_09_17_pus_map.win
! wwins: Wrote 3 windows to J0050-0929_S_2003_09_17_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.0014874 Jy
! Component: 100  -  total flux cleaned = -0.00276045 Jy
! Component: 150  -  total flux cleaned = -0.00379493 Jy
! Component: 200  -  total flux cleaned = -0.00419448 Jy
! Component: 250  -  total flux cleaned = -0.00436436 Jy
! Component: 300  -  total flux cleaned = -0.00452595 Jy
! Component: 350  -  total flux cleaned = -0.00476002 Jy
! Component: 400  -  total flux cleaned = -0.00487434 Jy
! Component: 450  -  total flux cleaned = -0.00491238 Jy
! Component: 500  -  total flux cleaned = -0.00502145 Jy
! Component: 550  -  total flux cleaned = -0.0051274 Jy
! Component: 600  -  total flux cleaned = -0.00519706 Jy
! Component: 650  -  total flux cleaned = -0.00526606 Jy
! Component: 700  -  total flux cleaned = -0.00536767 Jy
! Component: 750  -  total flux cleaned = -0.0054011 Jy
! Component: 800  -  total flux cleaned = -0.00546723 Jy
! Component: 850  -  total flux cleaned = -0.00553278 Jy
! Component: 900  -  total flux cleaned = -0.00569293 Jy
! Component: 950  -  total flux cleaned = -0.00572447 Jy
! Component: 1000  -  total flux cleaned = -0.00584908 Jy
! Component: 1050  -  total flux cleaned = -0.00594139 Jy
! Component: 1100  -  total flux cleaned = -0.00609354 Jy
! Component: 1150  -  total flux cleaned = -0.00618378 Jy
! Component: 1200  -  total flux cleaned = -0.00627305 Jy
! Component: 1250  -  total flux cleaned = -0.00642048 Jy
! Component: 1300  -  total flux cleaned = -0.0064789 Jy
! Component: 1350  -  total flux cleaned = -0.00662313 Jy
! Component: 1400  -  total flux cleaned = -0.00670852 Jy
! Component: 1450  -  total flux cleaned = -0.00679331 Jy
! Component: 1500  -  total flux cleaned = -0.00690519 Jy
! Component: 1550  -  total flux cleaned = -0.00701593 Jy
! Component: 1600  -  total flux cleaned = -0.00715298 Jy
! Component: 1650  -  total flux cleaned = -0.00718013 Jy
! Component: 1700  -  total flux cleaned = -0.00726107 Jy
! Component: 1750  -  total flux cleaned = -0.00739424 Jy
! Component: 1800  -  total flux cleaned = -0.00742044 Jy
! Component: 1850  -  total flux cleaned = -0.00749929 Jy
! Component: 1900  -  total flux cleaned = -0.00755151 Jy
! Component: 1950  -  total flux cleaned = -0.00762893 Jy
! Component: 2000  -  total flux cleaned = -0.00770556 Jy
! Total flux subtracted in 2048 components = -0.00773109 Jy
! Clean residual min=-0.001401 max=0.001423 Jy/beam
! Clean residual mean=-0.000054 rms=0.000532 Jy/beam
! Combined flux in latest and established models = 0.587312 Jy
keep
! Adding 141 model components to the UV plane model.
! The established model now contains 286 components and 0.587312 Jy
wmap "J0050-0929_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.832 x 10.75 at -2.049 degrees (North through East)
! Clean map  min=-0.0026832  max=0.53506 Jy/beam
! Writing clean map to FITS file: J0050-0929_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.535064 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000533459 
device "J0050-0929_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0050-0929_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.299101 0.299101 0.598201 1.1964 2.3928 4.78561 9.57122 19.1424 38.2849 76.5697
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0016 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.535 
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.832 x 10.75 at -2.049 degrees (North through East)
! Clean map  min=-0.0026832  max=0.53506 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0050-0929_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0050-0929_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0050-0929_S_2003_09_17_pus_uvs.log closed on Mon May 21 20:07:12 2007