! Started logfile: J1316-3338_S_2003_09_17_pus_uvs.log on Tue May 22 00:03:31 2007
obs J1316-3338_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1316-3338_S_2003_09_17_pus_uva.fits
! AN table 1: 13 integrations on 120 of 120 possible baselines.
! AN table 2: 24 integrations on 120 of 120 possible baselines.
! AN table 3: 13 integrations on 120 of 120 possible baselines.
! AN table 4: 11 integrations on 120 of 120 possible baselines.
! AN table 5: 126 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0385918 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1316-3338
! 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 3464 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 = 1024 
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 = 1024x1024 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 138 telescope corrections were flagged in sub-array 1.
!  A total of 240 telescope corrections were flagged in sub-array 2.
!  A total of 164 telescope corrections were flagged in sub-array 3.
!  A total of 176 telescope corrections were flagged in sub-array 4.
!  A total of 1818 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  A total of 240 telescope corrections were flagged in sub-array 2.
!  A total of 164 telescope corrections were flagged in sub-array 3.
!  A total of 176 telescope corrections were flagged in sub-array 4.
!  A total of 1818 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  A total of 240 telescope corrections were flagged in sub-array 2.
!  A total of 164 telescope corrections were flagged in sub-array 3.
!  A total of 176 telescope corrections were flagged in sub-array 4.
!  A total of 1818 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 138 telescope corrections were flagged in sub-array 1.
!  A total of 240 telescope corrections were flagged in sub-array 2.
!  A total of 164 telescope corrections were flagged in sub-array 3.
!  A total of 176 telescope corrections were flagged in sub-array 4.
!  A total of 1818 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.765994Jy  sigma=0.004729
! Fit after  self-cal, rms=0.344252Jy  sigma=0.002148
! 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.105 mas, bmaj=12.24 mas, bpa=13.05 degrees
! Estimated noise=3171.11 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.531978 Jy
! Component: 100  -  total flux cleaned = 0.689791 Jy
! Total flux subtracted in 100 components = 0.689791 Jy
! Clean residual min=-0.036198 max=0.080399 Jy/beam
! Clean residual mean=0.001044 rms=0.012543 Jy/beam
! Combined flux in latest and established models = 0.689791 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 19 components and 0.689791 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.324705Jy  sigma=0.001741
! Fit after  self-cal, rms=0.324520Jy  sigma=0.001740
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0968938 Jy
! Component: 100  -  total flux cleaned = 0.157573 Jy
! Total flux subtracted in 100 components = 0.157573 Jy
! Clean residual min=-0.024229 max=0.035222 Jy/beam
! Clean residual mean=0.000508 rms=0.007854 Jy/beam
! Combined flux in latest and established models = 0.847365 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 45 components and 0.847365 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.256531Jy  sigma=0.001356
! Fit after  self-cal, rms=0.256209Jy  sigma=0.001354
! 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.922 mas, bmaj=16.33 mas, bpa=11.61 degrees
! Estimated noise=2167.83 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.0726415 Jy
! Component: 100  -  total flux cleaned = 0.103659 Jy
! Component: 150  -  total flux cleaned = 0.118782 Jy
! Component: 200  -  total flux cleaned = 0.123283 Jy
! Total flux subtracted in 200 components = 0.123283 Jy
! Clean residual min=-0.023321 max=0.033125 Jy/beam
! Clean residual mean=0.000118 rms=0.007402 Jy/beam
! Combined flux in latest and established models = 0.970648 Jy
! Performing phase self-cal
! Adding 62 model components to the UV plane model.
! The established model now contains 99 components and 0.970649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236435Jy  sigma=0.001242
! Fit after  self-cal, rms=0.236094Jy  sigma=0.001241
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.98     GC        1.00*    HN        1.00*    KP        0.94     
!   LA        0.95     MK        1.00*    NL        1.22     NY        1.00*    
!   ON        1.00*    OV        0.93     PT        1.01     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        1.00*    HN        1.00*    KP        0.86     
!   LA        0.90     MK        1.01     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.01     SC        1.00*    
!   TS        1.00*    KK        0.95     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.19     GC        1.00*    HN        1.00*    KP        0.98     
!   LA        1.01     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        0.99     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 198 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.98     GC        1.00*    HN        1.00*    KP        1.00     
!   LA        0.94     MK        1.00*    NL        1.34     NY        1.00*    
!   ON        1.00*    OV        0.83     PT        0.92     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.99     GC        1.00*    HN        1.00*    KP        0.97     
!   LA        0.95     MK        1.05     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.02     PT        0.99     SC        1.00*    
!   TS        1.00*    KK        0.98     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.14     GC        1.00*    HN        1.00*    KP        1.06     
!   LA        0.98     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.03     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 198 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.98     GC        1.00*    HN        1.00*    KP        0.99     
!   LA        0.94     MK        1.00*    NL        1.24     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        1.02     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        1.00*    HN        1.00*    KP        1.00     
!   LA        0.96     MK        1.09     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.01     SC        1.00*    
!   TS        1.00*    KK        0.95     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.05     GC        1.00*    HN        1.00*    KP        1.11     
!   LA        1.03     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    PT        1.01     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 198 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.02     GC        1.00*    HN        1.00*    KP        0.98     
!   LA        0.95     MK        1.00*    NL        1.33     NY        1.00*    
!   ON        1.00*    OV        0.78     PT        0.99     SC        1.00*    
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.01     GC        1.00*    HN        1.00*    KP        0.97     
!   LA        1.01     MK        0.93     NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.06     PT        0.96     SC        1.00*    
!   TS        1.00*    KK        1.01     WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.09     GC        1.00*    HN        1.00*    KP        1.05     
!   LA        1.03     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.00*    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 198 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   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*    
! 
! 
! Fit before self-cal, rms=0.236094Jy  sigma=0.001241
! Fit after  self-cal, rms=0.238175Jy  sigma=0.001187
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.663 mas, bmaj=32.76 mas, bpa=2.518 degrees
! Estimated noise=2703.66 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 (-9.5, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0147365 Jy
! Component: 100  -  total flux cleaned = 0.0151646 Jy
! Component: 150  -  total flux cleaned = 0.0144356 Jy
! Component: 200  -  total flux cleaned = 0.0137855 Jy
! Total flux subtracted in 200 components = 0.0137855 Jy
! Clean residual min=-0.015546 max=0.012098 Jy/beam
! Clean residual mean=-0.000065 rms=0.003548 Jy/beam
! Combined flux in latest and established models = 0.984434 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 126 components and 0.984434 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235462Jy  sigma=0.001175
! Fit after  self-cal, rms=0.235534Jy  sigma=0.001174
! 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.235534Jy  sigma=0.001174
! Fit after  self-cal, rms=0.234321Jy  sigma=0.001172
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=4.648 mas, bmaj=32.67 mas, bpa=2.51 degrees
! Estimated noise=2707.71 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00815246 Jy
! Component: 100  -  total flux cleaned = 0.0081379 Jy
! Component: 150  -  total flux cleaned = 0.00768211 Jy
! Component: 200  -  total flux cleaned = 0.0072735 Jy
! Total flux subtracted in 200 components = 0.0072735 Jy
! Clean residual min=-0.010802 max=0.011236 Jy/beam
! Clean residual mean=0.000068 rms=0.002848 Jy/beam
! Combined flux in latest and established models = 0.991708 Jy
selfcal
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 142 components and 0.991708 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233485Jy  sigma=0.001168
! Fit after  self-cal, rms=0.233412Jy  sigma=0.001168
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.06241e-05 Jy
! Component: 100  -  total flux cleaned = -0.000524604 Jy
! Component: 150  -  total flux cleaned = -0.000690813 Jy
! Component: 200  -  total flux cleaned = -0.000988817 Jy
! Total flux subtracted in 200 components = -0.000988817 Jy
! Clean residual min=-0.009562 max=0.011370 Jy/beam
! Clean residual mean=0.000083 rms=0.002682 Jy/beam
! Combined flux in latest and established models = 0.990719 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 171 components and 0.990719 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233163Jy  sigma=0.001167
! Fit after  self-cal, rms=0.233147Jy  sigma=0.001167
! 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.233147Jy  sigma=0.001167
! Fit after  self-cal, rms=0.232492Jy  sigma=0.001166
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=4.644 mas, bmaj=32.61 mas, bpa=2.508 degrees
! Estimated noise=2709.06 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0051779 Jy
! Component: 100  -  total flux cleaned = 0.00548929 Jy
! Component: 150  -  total flux cleaned = 0.00535914 Jy
! Component: 200  -  total flux cleaned = 0.00511975 Jy
! Total flux subtracted in 200 components = 0.00511975 Jy
! Clean residual min=-0.008183 max=0.010880 Jy/beam
! Clean residual mean=0.000105 rms=0.002454 Jy/beam
! Combined flux in latest and established models = 0.995839 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 197 components and 0.995839 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232276Jy  sigma=0.001165
! Fit after  self-cal, rms=0.232249Jy  sigma=0.001165
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 (123.5, -128).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00667476 Jy
! Component: 100  -  total flux cleaned = 0.00669583 Jy
! Component: 150  -  total flux cleaned = 0.00611664 Jy
! Component: 200  -  total flux cleaned = 0.00599107 Jy
! Total flux subtracted in 200 components = 0.00599107 Jy
! Clean residual min=-0.007561 max=0.009437 Jy/beam
! Clean residual mean=0.000107 rms=0.002250 Jy/beam
! Combined flux in latest and established models = 1.00183 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 231 components and 1.00183 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231843Jy  sigma=0.001163
! Fit after  self-cal, rms=0.231811Jy  sigma=0.001163
! 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.231811Jy  sigma=0.001163
! Fit after  self-cal, rms=0.231714Jy  sigma=0.001163
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=11.52 mas, bmaj=38.53 mas, bpa=12.79 degrees
! Estimated noise=2995.87 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00441098 Jy
! Component: 100  -  total flux cleaned = 0.00500907 Jy
! Component: 150  -  total flux cleaned = 0.00500052 Jy
! Component: 200  -  total flux cleaned = 0.00481834 Jy
! Total flux subtracted in 200 components = 0.00481834 Jy
! Clean residual min=-0.007165 max=0.008755 Jy/beam
! Clean residual mean=0.000109 rms=0.002263 Jy/beam
! Combined flux in latest and established models = 1.00665 Jy
selfcal
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 264 components and 1.00665 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231574Jy  sigma=0.001162
! Fit after  self-cal, rms=0.231569Jy  sigma=0.001162
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.000837894 Jy
! Component: 100  -  total flux cleaned = 0.000670237 Jy
! Component: 150  -  total flux cleaned = 0.000516584 Jy
! Component: 200  -  total flux cleaned = 0.000444939 Jy
! Total flux subtracted in 200 components = 0.00044494 Jy
! Clean residual min=-0.007213 max=0.008529 Jy/beam
! Clean residual mean=0.000068 rms=0.002207 Jy/beam
! Combined flux in latest and established models = 1.00709 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 280 components and 1.00709 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.231513Jy  sigma=0.001162
! Fit after  self-cal, rms=0.231510Jy  sigma=0.001162
! 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=4.641 mas, bmaj=32.58 mas, bpa=2.511 degrees
! Estimated noise=2709.71 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.641 x 32.58 at 2.511 degrees (North through East)
! Clean map  min=-0.013412  max=0.85493 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.231510Jy  sigma=0.001162
! Fit after  self-cal, rms=0.205209Jy  sigma=0.000969
! Inverting map and beam 
! Estimated beam: bmin=4.634 mas, bmaj=32.6 mas, bpa=2.521 degrees
! Estimated noise=2707.44 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00209517 Jy
! Component: 100  -  total flux cleaned = 0.0026559 Jy
! Component: 150  -  total flux cleaned = 0.00274742 Jy
! Component: 200  -  total flux cleaned = 0.00283705 Jy
! Total flux subtracted in 200 components = 0.00283705 Jy
! Clean residual min=-0.007493 max=0.007675 Jy/beam
! Clean residual mean=0.000007 rms=0.001957 Jy/beam
! Combined flux in latest and established models = 1.00993 Jy
! Performing phase self-cal
! Adding 36 model components to the UV plane model.
! The established model now contains 308 components and 1.00993 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205087Jy  sigma=0.000968
! Fit after  self-cal, rms=0.205094Jy  sigma=0.000968
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000222489 Jy
! Component: 100  -  total flux cleaned = 0.000134328 Jy
! Component: 150  -  total flux cleaned = 0.000136971 Jy
! Component: 200  -  total flux cleaned = 5.98114e-05 Jy
! Total flux subtracted in 200 components = 5.98114e-05 Jy
! Clean residual min=-0.007309 max=0.007560 Jy/beam
! Clean residual mean=0.000002 rms=0.001922 Jy/beam
! Combined flux in latest and established models = 1.00999 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 325 components and 1.00999 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.205021Jy  sigma=0.000968
! Fit after  self-cal, rms=0.205026Jy  sigma=0.000968
! 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.205026Jy  sigma=0.000968
! Fit after  self-cal, rms=0.204794Jy  sigma=0.000968
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=3.558 mas, bmaj=30.7 mas, bpa=1.759 degrees
! Estimated noise=3849 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.638302 Jy
! Component: 100  -  total flux cleaned = 0.826649 Jy
! Component: 150  -  total flux cleaned = 0.908501 Jy
! Component: 200  -  total flux cleaned = 0.953248 Jy
! Total flux subtracted in 200 components = 0.953248 Jy
! Clean residual min=-0.022047 max=0.024227 Jy/beam
! Clean residual mean=0.000420 rms=0.006206 Jy/beam
! Combined flux in latest and established models = 0.953248 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 55 model components to the UV plane model.
! The established model now contains 55 components and 0.953247 Jy
! Inverting map and beam 
! Estimated beam: bmin=4.633 mas, bmaj=32.58 mas, bpa=2.521 degrees
! Estimated noise=2706.65 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.0330496 Jy
! Component: 100  -  total flux cleaned = 0.0482281 Jy
! Component: 150  -  total flux cleaned = 0.0537502 Jy
! Component: 200  -  total flux cleaned = 0.0566224 Jy
! Total flux subtracted in 200 components = 0.0566224 Jy
! Clean residual min=-0.009189 max=0.009166 Jy/beam
! Clean residual mean=0.000143 rms=0.002672 Jy/beam
! Combined flux in latest and established models = 1.00987 Jy
! Adding 79 model components to the UV plane model.
! The established model now contains 129 components and 1.00987 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=11.48 mas, bmaj=38.53 mas, bpa=12.8 degrees
! Estimated noise=2997.15 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00225005 Jy
! Component: 100  -  total flux cleaned = 0.00305289 Jy
! Component: 150  -  total flux cleaned = 0.00327596 Jy
! Component: 200  -  total flux cleaned = 0.00306215 Jy
! Total flux subtracted in 200 components = 0.00306215 Jy
! Clean residual min=-0.006723 max=0.006973 Jy/beam
! Clean residual mean=0.000041 rms=0.002231 Jy/beam
! Combined flux in latest and established models = 1.01293 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 = -6.68521e-06 Jy
! Component: 100  -  total flux cleaned = -0.000173393 Jy
! Component: 150  -  total flux cleaned = -0.000171801 Jy
! Component: 200  -  total flux cleaned = -0.000174445 Jy
! Total flux subtracted in 200 components = -0.000174445 Jy
! Clean residual min=-0.006189 max=0.006641 Jy/beam
! Clean residual mean=0.000023 rms=0.002074 Jy/beam
! Combined flux in latest and established models = 1.01276 Jy
! Adding 72 model components to the UV plane model.
! The established model now contains 194 components and 1.01276 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=4.633 mas, bmaj=32.58 mas, bpa=2.521 degrees
! Estimated noise=2706.65 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000248823 Jy
! Component: 100  -  total flux cleaned = 0.000250288 Jy
! Component: 150  -  total flux cleaned = 8.54763e-05 Jy
! Component: 200  -  total flux cleaned = -6.34022e-05 Jy
! Total flux subtracted in 200 components = -6.34022e-05 Jy
! Clean residual min=-0.007746 max=0.007174 Jy/beam
! Clean residual mean=0.000003 rms=0.001960 Jy/beam
! Combined flux in latest and established models = 1.01269 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 220 components and 1.01269 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.204957Jy  sigma=0.000969
! Fit after  self-cal, rms=0.204906Jy  sigma=0.000969
wmodel J1316-3338_S_2003_09_17_pus_map.mod
! Writing 220 model components to file: J1316-3338_S_2003_09_17_pus_map.mod
wobs J1316-3338_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1316-3338_S_2003_09_17_pus_uvs.fits
wwins J1316-3338_S_2003_09_17_pus_map.win
! wwins: Wrote 3 windows to J1316-3338_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=4096  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000583767 Jy
! Component: 100  -  total flux cleaned = -0.000348115 Jy
! Component: 150  -  total flux cleaned = -0.000563216 Jy
! Component: 200  -  total flux cleaned = -0.00105686 Jy
! Component: 250  -  total flux cleaned = -0.00152233 Jy
! Component: 300  -  total flux cleaned = -0.00196347 Jy
! Component: 350  -  total flux cleaned = -0.00239048 Jy
! Component: 400  -  total flux cleaned = -0.00255783 Jy
! Component: 450  -  total flux cleaned = -0.00303568 Jy
! Component: 500  -  total flux cleaned = -0.00326449 Jy
! Component: 550  -  total flux cleaned = -0.00341356 Jy
! Component: 600  -  total flux cleaned = -0.00363047 Jy
! Component: 650  -  total flux cleaned = -0.00390972 Jy
! Component: 700  -  total flux cleaned = -0.00384316 Jy
! Component: 750  -  total flux cleaned = -0.00397609 Jy
! Component: 800  -  total flux cleaned = -0.00384884 Jy
! Component: 850  -  total flux cleaned = -0.00378682 Jy
! Component: 900  -  total flux cleaned = -0.00360409 Jy
! Component: 950  -  total flux cleaned = -0.00354467 Jy
! Component: 1000  -  total flux cleaned = -0.00342812 Jy
! Component: 1050  -  total flux cleaned = -0.00348422 Jy
! Component: 1100  -  total flux cleaned = -0.00342845 Jy
! Component: 1150  -  total flux cleaned = -0.00348304 Jy
! Component: 1200  -  total flux cleaned = -0.0034302 Jy
! Component: 1250  -  total flux cleaned = -0.00353466 Jy
! Component: 1300  -  total flux cleaned = -0.0035345 Jy
! Component: 1350  -  total flux cleaned = -0.0035856 Jy
! Component: 1400  -  total flux cleaned = -0.00363582 Jy
! Component: 1450  -  total flux cleaned = -0.00373259 Jy
! Component: 1500  -  total flux cleaned = -0.00363566 Jy
! Component: 1550  -  total flux cleaned = -0.003683 Jy
! Component: 1600  -  total flux cleaned = -0.00358907 Jy
! Component: 1650  -  total flux cleaned = -0.00354329 Jy
! Component: 1700  -  total flux cleaned = -0.00349795 Jy
! Component: 1750  -  total flux cleaned = -0.00340758 Jy
! Component: 1800  -  total flux cleaned = -0.00331832 Jy
! Component: 1850  -  total flux cleaned = -0.00323027 Jy
! Component: 1900  -  total flux cleaned = -0.00310057 Jy
! Component: 1950  -  total flux cleaned = -0.00310047 Jy
! Component: 2000  -  total flux cleaned = -0.00293115 Jy
! Component: 2050  -  total flux cleaned = -0.00284737 Jy
! Component: 2100  -  total flux cleaned = -0.00272299 Jy
! Component: 2150  -  total flux cleaned = -0.00259995 Jy
! Component: 2200  -  total flux cleaned = -0.00251905 Jy
! Component: 2250  -  total flux cleaned = -0.00239853 Jy
! Component: 2300  -  total flux cleaned = -0.00235906 Jy
! Component: 2350  -  total flux cleaned = -0.00231983 Jy
! Component: 2400  -  total flux cleaned = -0.00231988 Jy
! Component: 2450  -  total flux cleaned = -0.00224284 Jy
! Component: 2500  -  total flux cleaned = -0.00216656 Jy
! Component: 2550  -  total flux cleaned = -0.00212905 Jy
! Component: 2600  -  total flux cleaned = -0.00205438 Jy
! Component: 2650  -  total flux cleaned = -0.00205422 Jy
! Component: 2700  -  total flux cleaned = -0.00194435 Jy
! Component: 2750  -  total flux cleaned = -0.00194461 Jy
! Component: 2800  -  total flux cleaned = -0.00190867 Jy
! Component: 2850  -  total flux cleaned = -0.00180187 Jy
! Component: 2900  -  total flux cleaned = -0.00183705 Jy
! Component: 2950  -  total flux cleaned = -0.00180183 Jy
! Component: 3000  -  total flux cleaned = -0.00173231 Jy
! Component: 3050  -  total flux cleaned = -0.00169822 Jy
! Component: 3100  -  total flux cleaned = -0.00163026 Jy
! Component: 3150  -  total flux cleaned = -0.00163041 Jy
! Component: 3200  -  total flux cleaned = -0.00152972 Jy
! Component: 3250  -  total flux cleaned = -0.00156301 Jy
! Component: 3300  -  total flux cleaned = -0.00152963 Jy
! Component: 3350  -  total flux cleaned = -0.00146396 Jy
! Component: 3400  -  total flux cleaned = -0.00146412 Jy
! Component: 3450  -  total flux cleaned = -0.00146395 Jy
! Component: 3500  -  total flux cleaned = -0.00149619 Jy
! Component: 3550  -  total flux cleaned = -0.00146397 Jy
! Component: 3600  -  total flux cleaned = -0.001432 Jy
! Component: 3650  -  total flux cleaned = -0.00143223 Jy
! Component: 3700  -  total flux cleaned = -0.0015264 Jy
! Component: 3750  -  total flux cleaned = -0.00152611 Jy
! Component: 3800  -  total flux cleaned = -0.00149484 Jy
! Component: 3850  -  total flux cleaned = -0.00146399 Jy
! Component: 3900  -  total flux cleaned = -0.00146396 Jy
! Component: 3950  -  total flux cleaned = -0.00146398 Jy
! Component: 4000  -  total flux cleaned = -0.00143366 Jy
! Component: 4050  -  total flux cleaned = -0.0014032 Jy
! Total flux subtracted in 4096 components = -0.00137294 Jy
! Clean residual min=-0.001739 max=0.001773 Jy/beam
! Clean residual mean=0.000025 rms=0.000608 Jy/beam
! Combined flux in latest and established models = 1.01132 Jy
keep
! Adding 432 model components to the UV plane model.
! The established model now contains 652 components and 1.01132 Jy
wmap "J1316-3338_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.633 x 32.58 at 2.521 degrees (North through East)
! Clean map  min=-0.0084552  max=0.84186 Jy/beam
! Writing clean map to FITS file: J1316-3338_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.841863 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000602176 
device "J1316-3338_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1316-3338_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.214587 0.214587 0.429174 0.858348 1.7167 3.43339 6.86678 13.7336 27.4671 54.9343
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.841 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.633 x 32.58 at 2.521 degrees (North through East)
! Clean map  min=-0.0084552  max=0.84186 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1316-3338_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1316-3338_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1316-3338_S_2003_09_17_pus_uvs.log closed on Tue May 22 00:07:28 2007