! Started logfile: J1316-3338_S_2001_10_29_pus_uvs.log on Wed Feb 27 15:22:24 2008
obs J1316-3338_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J1316-3338_S_2001_10_29_pus_uva.fits
! AN table 1: 50 integrations on 153 of 153 possible baselines.
! AN table 2: 110 integrations on 153 of 153 possible baselines.
! AN table 3: 69 integrations on 153 of 153 possible baselines.
! AN table 4: 21 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0406013 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1316-3338
! 
! 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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2604 lines of history.
! 
! Reading 6212 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 J1316-3338_S_2001_10_29_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 820 telescope corrections were flagged in sub-array 1.
!  A total of 1758 telescope corrections were flagged in sub-array 2.
!  A total of 964 telescope corrections were flagged in sub-array 3.
!  A total of 234 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 820 telescope corrections were flagged in sub-array 1.
!  A total of 1821 telescope corrections were flagged in sub-array 2.
!  A total of 964 telescope corrections were flagged in sub-array 3.
!  A total of 234 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 820 telescope corrections were flagged in sub-array 1.
!  A total of 1758 telescope corrections were flagged in sub-array 2.
!  A total of 964 telescope corrections were flagged in sub-array 3.
!  A total of 234 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 900 telescope corrections were flagged in sub-array 1.
!  A total of 1947 telescope corrections were flagged in sub-array 2.
!  A total of 964 telescope corrections were flagged in sub-array 3.
!  A total of 234 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.960514Jy  sigma=0.006283
! Fit after  self-cal, rms=0.351316Jy  sigma=0.002099
! 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.343 mas, bmaj=4.866 mas, bpa=10.51 degrees
! Estimated noise=2466.6 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.651498 Jy
! Component: 100  -  total flux cleaned = 0.81703 Jy
! Total flux subtracted in 100 components = 0.81703 Jy
! Clean residual min=-0.050138 max=0.104374 Jy/beam
! Clean residual mean=0.000218 rms=0.016063 Jy/beam
! Combined flux in latest and established models = 0.81703 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.81703 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.325788Jy  sigma=0.002075
! Fit after  self-cal, rms=0.325465Jy  sigma=0.002075
! Inverting map 
! Added new window around map position (4, 6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.101602 Jy
! Component: 100  -  total flux cleaned = 0.159655 Jy
! Total flux subtracted in 100 components = 0.159655 Jy
! Clean residual min=-0.045613 max=0.079033 Jy/beam
! Clean residual mean=-0.000125 rms=0.012509 Jy/beam
! Combined flux in latest and established models = 0.976685 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 15 components and 0.976685 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.298010Jy  sigma=0.001804
! Fit after  self-cal, rms=0.296167Jy  sigma=0.001789
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.253 mas, bmaj=6.334 mas, bpa=2.173 degrees
! Estimated noise=1436.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)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0428467 Jy
! Component: 100  -  total flux cleaned = 0.0504658 Jy
! Component: 150  -  total flux cleaned = 0.0512255 Jy
! Component: 200  -  total flux cleaned = 0.0525869 Jy
! Total flux subtracted in 200 components = 0.0525869 Jy
! Clean residual min=-0.044641 max=0.064439 Jy/beam
! Clean residual mean=-0.000414 rms=0.013052 Jy/beam
! Combined flux in latest and established models = 1.02927 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 30 components and 1.02927 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.290775Jy  sigma=0.001726
! Fit after  self-cal, rms=0.290317Jy  sigma=0.001725
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.93     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        2.71     MC        1.08     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        3.88     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 162 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.90     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.92     MC        0.93     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.15     
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        0.90     LA        1.02     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.10     
!   OV        1.18     PT        0.95     SC        1.00     TS        1.00*    
!   WF        0.73     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.92     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.86     LA        0.94     
!   MA        1.00*    MC        1.00*    MK        0.96     NL        1.05     
!   OV        0.93     PT        0.92     SC        1.01     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.92     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.78     MC        0.95     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        3.55     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 159 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.10     KK        1.00*    KP        1.00     LA        1.01     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.12     
!   OV        1.25     PT        0.93     SC        0.97     TS        1.00*    
!   WF        0.94     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.83     LA        0.92     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        1.07     
!   OV        0.97     PT        0.93     SC        1.00     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.95     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.00     MC        0.99     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        3.91     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 162 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.91     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.92     MC        1.06     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.29     
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.10     KK        1.00*    KP        0.93     LA        0.93     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.11     
!   OV        1.20     PT        0.98     SC        0.99     TS        1.00*    
!   WF        0.93     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.94     LA        0.92     
!   MA        1.00*    MC        1.00*    MK        0.93     NL        1.11     
!   OV        0.96     PT        0.93     SC        1.04     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.08     KK        1.00*    KP        0.93     LA        1.00     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.13     
!   OV        1.17     PT        0.97     SC        1.04     TS        1.00*    
!   WF        0.94     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.96     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.00*    KP        0.90     LA        0.96     
!   MA        1.00*    MC        1.00*    MK        0.95     NL        1.09     
!   OV        0.94     PT        0.96     SC        1.03     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.290317Jy  sigma=0.001725
! Fit after  self-cal, rms=0.380236Jy  sigma=0.001448
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.408 mas, bmaj=7.581 mas, bpa=-3.437 degrees
! Estimated noise=1520.19 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.0200876 Jy
! Component: 100  -  total flux cleaned = -0.0194632 Jy
! Component: 150  -  total flux cleaned = -0.0184149 Jy
! Component: 200  -  total flux cleaned = -0.017994 Jy
! Total flux subtracted in 200 components = -0.017994 Jy
! Clean residual min=-0.022862 max=0.040259 Jy/beam
! Clean residual mean=0.000553 rms=0.008394 Jy/beam
! Combined flux in latest and established models = 1.01128 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 43 components and 1.01128 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.377262Jy  sigma=0.001419
! Fit after  self-cal, rms=0.386498Jy  sigma=0.001412
! Inverting map 
! Added new window around map position (-4.5, -1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0391135 Jy
! Component: 100  -  total flux cleaned = 0.0392055 Jy
! Component: 150  -  total flux cleaned = 0.037956 Jy
! Component: 200  -  total flux cleaned = 0.0358247 Jy
! Total flux subtracted in 200 components = 0.0358247 Jy
! Clean residual min=-0.018849 max=0.023733 Jy/beam
! Clean residual mean=0.000281 rms=0.006360 Jy/beam
! Combined flux in latest and established models = 1.0471 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 62 components and 1.0471 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382044Jy  sigma=0.001358
! Fit after  self-cal, rms=0.381385Jy  sigma=0.001349
! 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.381385Jy  sigma=0.001349
! Fit after  self-cal, rms=0.412606Jy  sigma=0.001344
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.387 mas, bmaj=7.541 mas, bpa=-3.462 degrees
! Estimated noise=1517.22 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00857416 Jy
! Component: 100  -  total flux cleaned = 0.00912655 Jy
! Component: 150  -  total flux cleaned = 0.00878684 Jy
! Component: 200  -  total flux cleaned = 0.00790043 Jy
! Total flux subtracted in 200 components = 0.00790043 Jy
! Clean residual min=-0.015075 max=0.018358 Jy/beam
! Clean residual mean=0.000093 rms=0.005291 Jy/beam
! Combined flux in latest and established models = 1.055 Jy
selfcal
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 79 components and 1.055 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.411423Jy  sigma=0.001328
! Fit after  self-cal, rms=0.412001Jy  sigma=0.001325
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.000380785 Jy
! Component: 100  -  total flux cleaned = -0.000378128 Jy
! Component: 150  -  total flux cleaned = -0.000375256 Jy
! Component: 200  -  total flux cleaned = -0.000165724 Jy
! Total flux subtracted in 200 components = -0.000165724 Jy
! Clean residual min=-0.012939 max=0.017124 Jy/beam
! Clean residual mean=0.000092 rms=0.004980 Jy/beam
! Combined flux in latest and established models = 1.05484 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 95 components and 1.05484 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.411612Jy  sigma=0.001320
! Fit after  self-cal, rms=0.411599Jy  sigma=0.001318
! 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.411599Jy  sigma=0.001318
! Fit after  self-cal, rms=0.428504Jy  sigma=0.001317
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.381 mas, bmaj=7.53 mas, bpa=-3.486 degrees
! Estimated noise=1511.47 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00122477 Jy
! Component: 100  -  total flux cleaned = 0.00118908 Jy
! Component: 150  -  total flux cleaned = 0.0013414 Jy
! Component: 200  -  total flux cleaned = 0.00163199 Jy
! Total flux subtracted in 200 components = 0.00163199 Jy
! Clean residual min=-0.011820 max=0.016473 Jy/beam
! Clean residual mean=0.000012 rms=0.004691 Jy/beam
! Combined flux in latest and established models = 1.05647 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 115 components and 1.05647 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.428335Jy  sigma=0.001314
! Fit after  self-cal, rms=0.428429Jy  sigma=0.001313
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 = 5.68254e-05 Jy
! Component: 100  -  total flux cleaned = 5.31753e-05 Jy
! Component: 150  -  total flux cleaned = 0.000277509 Jy
! Component: 200  -  total flux cleaned = 0.000279986 Jy
! Total flux subtracted in 200 components = 0.000279986 Jy
! Clean residual min=-0.011231 max=0.016734 Jy/beam
! Clean residual mean=0.000009 rms=0.004629 Jy/beam
! Combined flux in latest and established models = 1.05675 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 130 components and 1.05675 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.428339Jy  sigma=0.001312
! Fit after  self-cal, rms=0.428400Jy  sigma=0.001311
! 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.428400Jy  sigma=0.001311
! Fit after  self-cal, rms=0.436895Jy  sigma=0.001311
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.607 mas, bmaj=20.44 mas, bpa=-5.544 degrees
! Estimated noise=1871.44 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000513946 Jy
! Component: 100  -  total flux cleaned = -0.00127821 Jy
! Component: 150  -  total flux cleaned = -0.00197942 Jy
! Component: 200  -  total flux cleaned = -0.00226677 Jy
! Total flux subtracted in 200 components = -0.00226677 Jy
! Clean residual min=-0.014443 max=0.025467 Jy/beam
! Clean residual mean=0.000035 rms=0.007752 Jy/beam
! Combined flux in latest and established models = 1.05448 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 136 components and 1.05448 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.436808Jy  sigma=0.001310
! Fit after  self-cal, rms=0.436954Jy  sigma=0.001310
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.000109827 Jy
! Component: 100  -  total flux cleaned = -0.000292314 Jy
! Component: 150  -  total flux cleaned = -0.000369465 Jy
! Component: 200  -  total flux cleaned = -0.000505443 Jy
! Total flux subtracted in 200 components = -0.000505443 Jy
! Clean residual min=-0.014721 max=0.025714 Jy/beam
! Clean residual mean=0.000043 rms=0.007741 Jy/beam
! Combined flux in latest and established models = 1.05398 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 153 components and 1.05398 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.436942Jy  sigma=0.001310
! Fit after  self-cal, rms=0.436913Jy  sigma=0.001310
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=3.379 mas, bmaj=7.519 mas, bpa=-3.468 degrees
! Estimated noise=1509.14 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.379 x 7.519 at -3.468 degrees (North through East)
! Clean map  min=-0.026078  max=0.85148 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.436913Jy  sigma=0.001310
! Fit after  self-cal, rms=1.913771Jy  sigma=0.001152
! Inverting map and beam 
! Estimated beam: bmin=3.377 mas, bmaj=7.495 mas, bpa=-3.461 degrees
! Estimated noise=1507.1 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00124084 Jy
! Component: 100  -  total flux cleaned = -0.00124193 Jy
! Component: 150  -  total flux cleaned = -0.00134745 Jy
! Component: 200  -  total flux cleaned = -0.00143722 Jy
! Total flux subtracted in 200 components = -0.00143722 Jy
! Clean residual min=-0.011252 max=0.015654 Jy/beam
! Clean residual mean=-0.000035 rms=0.004366 Jy/beam
! Combined flux in latest and established models = 1.05254 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 163 components and 1.05254 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.913731Jy  sigma=0.001151
! Fit after  self-cal, rms=1.913740Jy  sigma=0.001151
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -4.86153e-06 Jy
! Component: 100  -  total flux cleaned = -8.01135e-05 Jy
! Component: 150  -  total flux cleaned = -0.00015234 Jy
! Component: 200  -  total flux cleaned = -0.000218181 Jy
! Total flux subtracted in 200 components = -0.000218181 Jy
! Clean residual min=-0.011015 max=0.015767 Jy/beam
! Clean residual mean=-0.000034 rms=0.004363 Jy/beam
! Combined flux in latest and established models = 1.05232 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 167 components and 1.05232 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=1.913683Jy  sigma=0.001151
! Fit after  self-cal, rms=1.913684Jy  sigma=0.001151
! 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.913684Jy  sigma=0.001151
! Fit after  self-cal, rms=3.414885Jy  sigma=0.001151
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.526 mas, bmaj=4.987 mas, bpa=7.37 degrees
! Estimated noise=2746.33 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.656222 Jy
! Component: 100  -  total flux cleaned = 0.820055 Jy
! Component: 150  -  total flux cleaned = 0.902963 Jy
! Component: 200  -  total flux cleaned = 0.956229 Jy
! Total flux subtracted in 200 components = 0.956229 Jy
! Clean residual min=-0.022222 max=0.029002 Jy/beam
! Clean residual mean=0.000118 rms=0.007017 Jy/beam
! Combined flux in latest and established models = 0.956229 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 27 model components to the UV plane model.
! The established model now contains 27 components and 0.956229 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.376 mas, bmaj=7.48 mas, bpa=-3.4 degrees
! Estimated noise=1506.53 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.0500466 Jy
! Component: 100  -  total flux cleaned = 0.0775681 Jy
! Component: 150  -  total flux cleaned = 0.0882547 Jy
! Component: 200  -  total flux cleaned = 0.0909433 Jy
! Total flux subtracted in 200 components = 0.0909433 Jy
! Clean residual min=-0.012205 max=0.017696 Jy/beam
! Clean residual mean=-0.000004 rms=0.005031 Jy/beam
! Combined flux in latest and established models = 1.04717 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 56 components and 1.04717 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.614 mas, bmaj=20.45 mas, bpa=-5.482 degrees
! Estimated noise=1869.9 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00332857 Jy
! Component: 100  -  total flux cleaned = 0.00419583 Jy
! Component: 150  -  total flux cleaned = 0.00488556 Jy
! Component: 200  -  total flux cleaned = 0.00488922 Jy
! Total flux subtracted in 200 components = 0.00488922 Jy
! Clean residual min=-0.015684 max=0.024778 Jy/beam
! Clean residual mean=-0.000087 rms=0.007732 Jy/beam
! Combined flux in latest and established models = 1.05206 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.000488723 Jy
! Component: 100  -  total flux cleaned = -0.000486647 Jy
! Component: 150  -  total flux cleaned = -0.000695506 Jy
! Component: 200  -  total flux cleaned = -0.000888943 Jy
! Total flux subtracted in 200 components = -0.000888943 Jy
! Clean residual min=-0.014646 max=0.024806 Jy/beam
! Clean residual mean=-0.000067 rms=0.007585 Jy/beam
! Combined flux in latest and established models = 1.05117 Jy
! Adding 46 model components to the UV plane model.
! The established model now contains 98 components and 1.05117 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.376 mas, bmaj=7.48 mas, bpa=-3.4 degrees
! Estimated noise=1506.53 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000463614 Jy
! Component: 100  -  total flux cleaned = 0.000873073 Jy
! Component: 150  -  total flux cleaned = 0.000876147 Jy
! Component: 200  -  total flux cleaned = 0.00104155 Jy
! Total flux subtracted in 200 components = 0.00104155 Jy
! Clean residual min=-0.010568 max=0.017461 Jy/beam
! Clean residual mean=-0.000033 rms=0.004418 Jy/beam
! Combined flux in latest and established models = 1.05221 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 111 components and 1.05221 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.418939Jy  sigma=0.001155
! Fit after  self-cal, rms=3.418921Jy  sigma=0.001153
wmodel J1316-3338_S_2001_10_29_pus_map.mod
! Writing 111 model components to file: J1316-3338_S_2001_10_29_pus_map.mod
wobs J1316-3338_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J1316-3338_S_2001_10_29_pus_uvs.fits
wwins J1316-3338_S_2001_10_29_pus_map.win
! wwins: Wrote 3 windows to J1316-3338_S_2001_10_29_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.00719729 Jy
! Component: 100  -  total flux cleaned = 0.0130007 Jy
! Component: 150  -  total flux cleaned = 0.0178046 Jy
! Component: 200  -  total flux cleaned = 0.01994 Jy
! Component: 250  -  total flux cleaned = 0.0215833 Jy
! Component: 300  -  total flux cleaned = 0.022965 Jy
! Component: 350  -  total flux cleaned = 0.02445 Jy
! Component: 400  -  total flux cleaned = 0.0257175 Jy
! Component: 450  -  total flux cleaned = 0.0267824 Jy
! Component: 500  -  total flux cleaned = 0.0278102 Jy
! Component: 550  -  total flux cleaned = 0.0288023 Jy
! Component: 600  -  total flux cleaned = 0.0294875 Jy
! Component: 650  -  total flux cleaned = 0.0300214 Jy
! Component: 700  -  total flux cleaned = 0.0304115 Jy
! Component: 750  -  total flux cleaned = 0.0304149 Jy
! Component: 800  -  total flux cleaned = 0.0306589 Jy
! Component: 850  -  total flux cleaned = 0.0304216 Jy
! Component: 900  -  total flux cleaned = 0.0303055 Jy
! Component: 950  -  total flux cleaned = 0.0299675 Jy
! Component: 1000  -  total flux cleaned = 0.0298592 Jy
! Component: 1050  -  total flux cleaned = 0.0297514 Jy
! Component: 1100  -  total flux cleaned = 0.0297498 Jy
! Component: 1150  -  total flux cleaned = 0.0295374 Jy
! Component: 1200  -  total flux cleaned = 0.0293315 Jy
! Component: 1250  -  total flux cleaned = 0.0292309 Jy
! Component: 1300  -  total flux cleaned = 0.0292325 Jy
! Component: 1350  -  total flux cleaned = 0.0290354 Jy
! Component: 1400  -  total flux cleaned = 0.0290361 Jy
! Component: 1450  -  total flux cleaned = 0.0290358 Jy
! Component: 1500  -  total flux cleaned = 0.0287539 Jy
! Component: 1550  -  total flux cleaned = 0.0285686 Jy
! Component: 1600  -  total flux cleaned = 0.0283868 Jy
! Component: 1650  -  total flux cleaned = 0.0282968 Jy
! Component: 1700  -  total flux cleaned = 0.0281193 Jy
! Component: 1750  -  total flux cleaned = 0.027857 Jy
! Component: 1800  -  total flux cleaned = 0.0278569 Jy
! Component: 1850  -  total flux cleaned = 0.0276875 Jy
! Component: 1900  -  total flux cleaned = 0.0276034 Jy
! Component: 1950  -  total flux cleaned = 0.0272739 Jy
! Component: 2000  -  total flux cleaned = 0.0271933 Jy
! Total flux subtracted in 2048 components = 0.0269529 Jy
! Clean residual min=-0.004619 max=0.005879 Jy/beam
! Clean residual mean=-0.000044 rms=0.001933 Jy/beam
! Combined flux in latest and established models = 1.07917 Jy
keep
! Adding 151 model components to the UV plane model.
! The established model now contains 262 components and 1.07917 Jy
![Exited script file: muppet]
wmap "J1316-3338_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.376 x 7.48 at -3.4 degrees (North through East)
! Clean map  min=-0.015713  max=0.88082 Jy/beam
! Writing clean map to FITS file: J1316-3338_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.880817 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00207359 
device "J1316-3338_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J1316-3338_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.706252 0.706252 1.4125 2.82501 5.65001 11.3 22.6001 45.2001 90.4002
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0062 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.88 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.376 x 7.48 at -3.4 degrees (North through East)
! Clean map  min=-0.015713  max=0.88082 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1316-3338_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J1316-3338_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1316-3338_S_2001_10_29_pus_uvs.log closed on Wed Feb 27 15:22:33 2008