! Started logfile: J2314-3138_S_2003_06_18_pus_uvs.log on Wed Jan 24 01:23:26 2007
obs J2314-3138_S_2003_06_18_pus_uva.fits
! Reading UV FITS file: J2314-3138_S_2003_06_18_pus_uva.fits
! AN table 1: 105 integrations on 153 of 153 possible baselines.
! AN table 2: 209 integrations on 153 of 153 possible baselines.
! AN table 3: 222 integrations on 153 of 153 possible baselines.
! AN table 4: 139 integrations on 153 of 153 possible baselines.
! AN table 5: 31 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.102927 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2314-3138
! 
! 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 2425 lines of history.
! 
! Reading 44472 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
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 1492 telescope corrections were flagged in sub-array 1.
!  A total of 2310 telescope corrections were flagged in sub-array 2.
!  A total of 2930 telescope corrections were flagged in sub-array 3.
!  A total of 2281 telescope corrections were flagged in sub-array 4.
!  A total of 445 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 1492 telescope corrections were flagged in sub-array 1.
!  A total of 2310 telescope corrections were flagged in sub-array 2.
!  A total of 2982 telescope corrections were flagged in sub-array 3.
!  A total of 2281 telescope corrections were flagged in sub-array 4.
!  A total of 445 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 1492 telescope corrections were flagged in sub-array 1.
!  A total of 2310 telescope corrections were flagged in sub-array 2.
!  A total of 2982 telescope corrections were flagged in sub-array 3.
!  A total of 2281 telescope corrections were flagged in sub-array 4.
!  A total of 445 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 1492 telescope corrections were flagged in sub-array 1.
!  A total of 2310 telescope corrections were flagged in sub-array 2.
!  A total of 2982 telescope corrections were flagged in sub-array 3.
!  A total of 2281 telescope corrections were flagged in sub-array 4.
!  A total of 445 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.760621Jy  sigma=0.006171
! Fit after  self-cal, rms=0.574765Jy  sigma=0.004979
! 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.575 mas, bmaj=5.129 mas, bpa=-2.158 degrees
! Estimated noise=951.403 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.351653 Jy
! Component: 100  -  total flux cleaned = 0.436037 Jy
! Total flux subtracted in 100 components = 0.436037 Jy
! Clean residual min=-0.014717 max=0.033194 Jy/beam
! Clean residual mean=0.000037 rms=0.004356 Jy/beam
! Combined flux in latest and established models = 0.436037 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.436037 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259758Jy  sigma=0.001903
! Fit after  self-cal, rms=0.259945Jy  sigma=0.001903
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0371453 Jy
! Component: 100  -  total flux cleaned = 0.0568436 Jy
! Total flux subtracted in 100 components = 0.0568436 Jy
! Clean residual min=-0.011754 max=0.019815 Jy/beam
! Clean residual mean=-0.000004 rms=0.003422 Jy/beam
! Combined flux in latest and established models = 0.49288 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 15 components and 0.49288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.252054Jy  sigma=0.001797
! Fit after  self-cal, rms=0.252117Jy  sigma=0.001796
! 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.507 mas, bmaj=9.884 mas, bpa=-6.5 degrees
! Estimated noise=389.093 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.0228512 Jy
! Component: 100  -  total flux cleaned = 0.0343675 Jy
! Component: 150  -  total flux cleaned = 0.0402068 Jy
! Component: 200  -  total flux cleaned = 0.0425314 Jy
! Total flux subtracted in 200 components = 0.0425314 Jy
! Clean residual min=-0.008036 max=0.018446 Jy/beam
! Clean residual mean=0.000050 rms=0.003312 Jy/beam
! Combined flux in latest and established models = 0.535412 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 22 components and 0.535412 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.250609Jy  sigma=0.001769
! Fit after  self-cal, rms=0.250738Jy  sigma=0.001769
! Inverting map 
! Added new window around map position (-7, 0).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0171625 Jy
! Component: 100  -  total flux cleaned = 0.0222551 Jy
! Component: 150  -  total flux cleaned = 0.0225137 Jy
! Component: 200  -  total flux cleaned = 0.0220635 Jy
! Total flux subtracted in 200 components = 0.0220635 Jy
! Clean residual min=-0.008470 max=0.013566 Jy/beam
! Clean residual mean=-0.000325 rms=0.002469 Jy/beam
! Combined flux in latest and established models = 0.557475 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 51 components and 0.557475 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.249317Jy  sigma=0.001756
! Fit after  self-cal, rms=0.249150Jy  sigma=0.001754
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        0.89     GG        1.00*    HN        1.20     
!   KK        0.93     KP        0.82     LA        0.97     MA        1.00*    
!   MK        0.99     NL        0.95     ON        1.00*    OV        0.92     
!   PT        0.95     SC        0.95     TC        0.92     TS        1.08     
!   WF        0.84     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.97     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        0.94     LA        1.00     MA        1.00*    
!   MK        1.00*    NL        1.16     ON        1.00*    OV        1.08     
!   PT        1.00     SC        0.90     TC        1.00*    TS        1.00*    
!   WF        1.05     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        0.95     GG        1.00*    HN        1.00*    
!   KK        0.96     KP        0.91     LA        0.95     MA        1.00*    
!   MK        0.95     NL        1.06     ON        1.00*    OV        1.01     
!   PT        0.96     SC        1.00*    TC        1.33     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 135 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.07     FD        0.95     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        0.92     LA        0.93     MA        1.00*    
!   MK        1.00*    NL        1.14     ON        1.00*    OV        1.04     
!   PT        1.04     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.27     
!   KK        1.00*    KP        1.00*    LA        1.03     MA        1.00*    
!   MK        1.00*    NL        0.95     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        0.96     TC        1.00*    TS        1.00*    
!   WF        0.96     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     GG        1.00*    HN        1.23     
!   KK        0.94     KP        0.92     LA        0.94     MA        1.00*    
!   MK        1.05     NL        0.91     ON        1.00*    OV        0.89     
!   PT        0.96     SC        0.93     TC        0.88     TS        1.10     
!   WF        1.21     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.97     GG        1.00*    HN        1.11     
!   KK        1.00*    KP        1.02     LA        1.00     MA        1.00*    
!   MK        1.00*    NL        1.14     ON        1.00*    OV        1.00     
!   PT        1.01     SC        0.92     TC        1.00*    TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.95     GG        1.00*    HN        1.00*    
!   KK        1.01     KP        1.00     LA        1.00     MA        1.00*    
!   MK        1.00     NL        1.00     ON        1.00*    OV        0.93     
!   PT        0.97     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 135 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        0.93     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.03     LA        0.97     MA        1.00*    
!   MK        1.00*    NL        1.05     ON        1.00*    OV        0.99     
!   PT        1.00     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.41     
!   KK        1.00*    KP        1.00*    LA        0.96     MA        1.00*    
!   MK        1.00*    NL        0.94     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        0.95     TC        1.00*    TS        1.00*    
!   WF        1.01     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        0.95     GG        1.00*    HN        1.32     
!   KK        0.99     KP        0.95     LA        0.94     MA        1.00*    
!   MK        1.04     NL        0.93     ON        1.00*    OV        1.05     
!   PT        0.97     SC        1.08     TC        1.08     TS        1.13     
!   WF        0.71     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00     GG        1.00*    HN        1.16     
!   KK        1.00*    KP        1.00     LA        0.96     MA        1.00*    
!   MK        1.00*    NL        1.12     ON        1.00*    OV        1.07     
!   PT        1.03     SC        1.09     TC        1.00*    TS        1.00*    
!   WF        1.00     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.96     GG        1.00*    HN        1.00*    
!   KK        0.99     KP        1.00     LA        0.95     MA        1.00*    
!   MK        0.97     NL        1.04     ON        1.00*    OV        1.06     
!   PT        1.00     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 135 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.02     FD        0.94     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.04     LA        0.95     MA        1.00*    
!   MK        1.00*    NL        1.09     ON        1.00*    OV        1.10     
!   PT        1.05     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.36     
!   KK        1.00*    KP        1.00*    LA        0.98     MA        1.00*    
!   MK        1.00*    NL        0.98     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.12     TC        1.00*    TS        1.00*    
!   WF        0.97     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 33 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.92     GG        1.00*    HN        1.12     
!   KK        0.98     KP        0.96     LA        0.98     MA        1.00*    
!   MK        0.96     NL        1.02     ON        1.00*    OV        0.99     
!   PT        1.02     SC        1.14     TC        0.80     TS        1.14     
!   WF        0.84     WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.98     GG        1.00*    HN        0.95     
!   KK        1.00*    KP        1.04     LA        1.00     MA        1.00*    
!   MK        1.00*    NL        1.14     ON        1.00*    OV        1.04     
!   PT        1.07     SC        1.07     TC        1.00*    TS        1.00*    
!   WF        1.01     WZ        1.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.97     GG        1.00*    HN        1.00*    
!   KK        1.01     KP        1.01     LA        0.98     MA        1.00*    
!   MK        0.94     NL        1.10     ON        1.00*    OV        0.98     
!   PT        1.05     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 135 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.95     GG        1.00*    HN        1.00*    
!   KK        1.00*    KP        1.02     LA        0.95     MA        1.00*    
!   MK        1.00*    NL        1.15     ON        1.00*    OV        1.02     
!   PT        1.10     SC        1.00*    TC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.00*    FD        1.00*    GG        1.00*    HN        1.29     
!   KK        1.00*    KP        1.00*    LA        1.02     MA        1.00*    
!   MK        1.00*    NL        0.96     ON        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.11     TC        1.00*    TS        1.00*    
!   WF        1.00     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.249150Jy  sigma=0.001754
! Fit after  self-cal, rms=0.246289Jy  sigma=0.001719
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.512 mas, bmaj=10.34 mas, bpa=-6.597 degrees
! Estimated noise=393.639 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.00285461 Jy
! Component: 100  -  total flux cleaned = 0.00205342 Jy
! Component: 150  -  total flux cleaned = 0.00125759 Jy
! Component: 200  -  total flux cleaned = 0.000587167 Jy
! Total flux subtracted in 200 components = 0.000587167 Jy
! Clean residual min=-0.003793 max=0.003545 Jy/beam
! Clean residual mean=-0.000023 rms=0.000977 Jy/beam
! Combined flux in latest and established models = 0.558063 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 69 components and 0.558062 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.246114Jy  sigma=0.001717
! Fit after  self-cal, rms=0.246212Jy  sigma=0.001716
! 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.246212Jy  sigma=0.001716
! Fit after  self-cal, rms=0.247715Jy  sigma=0.001715
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.512 mas, bmaj=10.33 mas, bpa=-6.597 degrees
! Estimated noise=394.38 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00129711 Jy
! Component: 100  -  total flux cleaned = 0.000847583 Jy
! Component: 150  -  total flux cleaned = 0.000289793 Jy
! Component: 200  -  total flux cleaned = -0.000156535 Jy
! Total flux subtracted in 200 components = -0.000156535 Jy
! Clean residual min=-0.003042 max=0.003479 Jy/beam
! Clean residual mean=0.000041 rms=0.000867 Jy/beam
! Combined flux in latest and established models = 0.557906 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 77 components and 0.557906 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247634Jy  sigma=0.001714
! Fit after  self-cal, rms=0.247616Jy  sigma=0.001714
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 7.67804e-05 Jy
! Component: 100  -  total flux cleaned = -0.000135792 Jy
! Component: 150  -  total flux cleaned = -0.000314173 Jy
! Component: 200  -  total flux cleaned = -0.00039436 Jy
! Total flux subtracted in 200 components = -0.00039436 Jy
! Clean residual min=-0.002950 max=0.003151 Jy/beam
! Clean residual mean=0.000046 rms=0.000842 Jy/beam
! Combined flux in latest and established models = 0.557512 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 87 components and 0.557512 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247588Jy  sigma=0.001714
! Fit after  self-cal, rms=0.247572Jy  sigma=0.001714
! 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.247572Jy  sigma=0.001714
! Fit after  self-cal, rms=0.247808Jy  sigma=0.001708
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.512 mas, bmaj=10.33 mas, bpa=-6.603 degrees
! Estimated noise=394.722 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000322838 Jy
! Component: 100  -  total flux cleaned = -0.000394556 Jy
! Component: 150  -  total flux cleaned = -0.000339666 Jy
! Component: 200  -  total flux cleaned = -0.000340345 Jy
! Total flux subtracted in 200 components = -0.000340345 Jy
! Clean residual min=-0.003126 max=0.002107 Jy/beam
! Clean residual mean=0.000043 rms=0.000687 Jy/beam
! Combined flux in latest and established models = 0.557171 Jy
selfcal
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 98 components and 0.557171 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247764Jy  sigma=0.001708
! Fit after  self-cal, rms=0.247780Jy  sigma=0.001708
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.000141387 Jy
! Component: 100  -  total flux cleaned = -9.30736e-05 Jy
! Component: 150  -  total flux cleaned = -5.23657e-05 Jy
! Component: 200  -  total flux cleaned = -5.28635e-05 Jy
! Total flux subtracted in 200 components = -5.28635e-05 Jy
! Clean residual min=-0.003067 max=0.002106 Jy/beam
! Clean residual mean=0.000047 rms=0.000668 Jy/beam
! Combined flux in latest and established models = 0.557118 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 102 components and 0.557118 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247755Jy  sigma=0.001708
! Fit after  self-cal, rms=0.247749Jy  sigma=0.001708
! 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.247749Jy  sigma=0.001708
! Fit after  self-cal, rms=0.248017Jy  sigma=0.001708
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.993 mas, bmaj=19.72 mas, bpa=-3.285 degrees
! Estimated noise=471.796 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 8.22145e-05 Jy
! Component: 100  -  total flux cleaned = 3.27902e-05 Jy
! Component: 150  -  total flux cleaned = 3.55876e-05 Jy
! Component: 200  -  total flux cleaned = 9.81557e-05 Jy
! Total flux subtracted in 200 components = 9.81557e-05 Jy
! Clean residual min=-0.002588 max=0.002064 Jy/beam
! Clean residual mean=0.000052 rms=0.000718 Jy/beam
! Combined flux in latest and established models = 0.557216 Jy
selfcal
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 131 components and 0.557216 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248003Jy  sigma=0.001708
! Fit after  self-cal, rms=0.248000Jy  sigma=0.001708
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 = -4.42466e-05 Jy
! Component: 100  -  total flux cleaned = -1.97393e-05 Jy
! Component: 150  -  total flux cleaned = 2.90041e-05 Jy
! Component: 200  -  total flux cleaned = 9.60812e-05 Jy
! Total flux subtracted in 200 components = 9.60812e-05 Jy
! Clean residual min=-0.002527 max=0.001973 Jy/beam
! Clean residual mean=0.000051 rms=0.000693 Jy/beam
! Combined flux in latest and established models = 0.557312 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 142 components and 0.557312 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.247992Jy  sigma=0.001708
! Fit after  self-cal, rms=0.247985Jy  sigma=0.001708
! 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.513 mas, bmaj=10.32 mas, bpa=-6.592 degrees
! Estimated noise=394.968 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.513 x 10.32 at -6.592 degrees (North through East)
! Clean map  min=-0.0029503  max=0.46872 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
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.565 mas, bmaj=5.303 mas, bpa=-2.324 degrees
! Estimated noise=964.99 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.354259 Jy
! Component: 100  -  total flux cleaned = 0.441758 Jy
! Component: 150  -  total flux cleaned = 0.478851 Jy
! Component: 200  -  total flux cleaned = 0.500123 Jy
! Total flux subtracted in 200 components = 0.500123 Jy
! Clean residual min=-0.007300 max=0.011697 Jy/beam
! Clean residual mean=0.000043 rms=0.002108 Jy/beam
! Combined flux in latest and established models = 0.500123 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 23 model components to the UV plane model.
! The established model now contains 23 components and 0.500123 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.513 mas, bmaj=10.32 mas, bpa=-6.592 degrees
! Estimated noise=394.968 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.0245176 Jy
! Component: 100  -  total flux cleaned = 0.0374954 Jy
! Component: 150  -  total flux cleaned = 0.0451365 Jy
! Component: 200  -  total flux cleaned = 0.0498168 Jy
! Total flux subtracted in 200 components = 0.0498168 Jy
! Clean residual min=-0.002809 max=0.003504 Jy/beam
! Clean residual mean=0.000148 rms=0.000838 Jy/beam
! Combined flux in latest and established models = 0.54994 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 64 components and 0.54994 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.993 mas, bmaj=19.72 mas, bpa=-3.285 degrees
! Estimated noise=471.796 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00405081 Jy
! Component: 100  -  total flux cleaned = 0.00546043 Jy
! Component: 150  -  total flux cleaned = 0.00572566 Jy
! Component: 200  -  total flux cleaned = 0.00588751 Jy
! Total flux subtracted in 200 components = 0.00588751 Jy
! Clean residual min=-0.002338 max=0.002033 Jy/beam
! Clean residual mean=0.000097 rms=0.000711 Jy/beam
! Combined flux in latest and established models = 0.555828 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 = 9.65375e-05 Jy
! Component: 100  -  total flux cleaned = 0.0001249 Jy
! Component: 150  -  total flux cleaned = 0.000171868 Jy
! Component: 200  -  total flux cleaned = 0.000192454 Jy
! Total flux subtracted in 200 components = 0.000192454 Jy
! Clean residual min=-0.002338 max=0.002012 Jy/beam
! Clean residual mean=0.000091 rms=0.000691 Jy/beam
! Combined flux in latest and established models = 0.55602 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 91 components and 0.55602 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.513 mas, bmaj=10.32 mas, bpa=-6.592 degrees
! Estimated noise=394.968 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000501267 Jy
! Component: 100  -  total flux cleaned = -0.000456491 Jy
! Component: 150  -  total flux cleaned = -0.000495827 Jy
! Component: 200  -  total flux cleaned = -0.000494015 Jy
! Total flux subtracted in 200 components = -0.000494015 Jy
! Clean residual min=-0.002592 max=0.002311 Jy/beam
! Clean residual mean=0.000055 rms=0.000663 Jy/beam
! Combined flux in latest and established models = 0.555526 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 102 components and 0.555526 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.248008Jy  sigma=0.001708
! Fit after  self-cal, rms=0.247908Jy  sigma=0.001708
wmodel J2314-3138_S_2003_06_18_pus_map.mod
! Writing 102 model components to file: J2314-3138_S_2003_06_18_pus_map.mod
wobs J2314-3138_S_2003_06_18_pus_uvs.fits
! Writing UV FITS file: J2314-3138_S_2003_06_18_pus_uvs.fits
wwins J2314-3138_S_2003_06_18_pus_map.win
! wwins: Wrote 2 windows to J2314-3138_S_2003_06_18_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.000624218 Jy
! Component: 100  -  total flux cleaned = -0.000819631 Jy
! Component: 150  -  total flux cleaned = -0.000930362 Jy
! Component: 200  -  total flux cleaned = -0.00093098 Jy
! Component: 250  -  total flux cleaned = -0.000798437 Jy
! Component: 300  -  total flux cleaned = -0.000669955 Jy
! Component: 350  -  total flux cleaned = -0.000575056 Jy
! Component: 400  -  total flux cleaned = -0.000482096 Jy
! Component: 450  -  total flux cleaned = -0.000391551 Jy
! Component: 500  -  total flux cleaned = -0.000332346 Jy
! Component: 550  -  total flux cleaned = -0.000245826 Jy
! Component: 600  -  total flux cleaned = -0.000188818 Jy
! Component: 650  -  total flux cleaned = -0.000132756 Jy
! Component: 700  -  total flux cleaned = -2.32966e-05 Jy
! Component: 750  -  total flux cleaned = 3.4389e-06 Jy
! Component: 800  -  total flux cleaned = 3.04419e-05 Jy
! Component: 850  -  total flux cleaned = 0.000161328 Jy
! Component: 900  -  total flux cleaned = 0.00021312 Jy
! Component: 950  -  total flux cleaned = 0.000314856 Jy
! Component: 1000  -  total flux cleaned = 0.000364882 Jy
! Component: 1050  -  total flux cleaned = 0.000439133 Jy
! Component: 1100  -  total flux cleaned = 0.000536693 Jy
! Component: 1150  -  total flux cleaned = 0.000560653 Jy
! Component: 1200  -  total flux cleaned = 0.000608368 Jy
! Component: 1250  -  total flux cleaned = 0.000585013 Jy
! Component: 1300  -  total flux cleaned = 0.00063184 Jy
! Component: 1350  -  total flux cleaned = 0.000701009 Jy
! Component: 1400  -  total flux cleaned = 0.000723576 Jy
! Component: 1450  -  total flux cleaned = 0.000791215 Jy
! Component: 1500  -  total flux cleaned = 0.000813635 Jy
! Component: 1550  -  total flux cleaned = 0.000835873 Jy
! Component: 1600  -  total flux cleaned = 0.000879738 Jy
! Component: 1650  -  total flux cleaned = 0.000901451 Jy
! Component: 1700  -  total flux cleaned = 0.000923134 Jy
! Component: 1750  -  total flux cleaned = 0.000987147 Jy
! Component: 1800  -  total flux cleaned = 0.00102918 Jy
! Component: 1850  -  total flux cleaned = 0.0010291 Jy
! Component: 1900  -  total flux cleaned = 0.00104987 Jy
! Component: 1950  -  total flux cleaned = 0.00107045 Jy
! Component: 2000  -  total flux cleaned = 0.00111146 Jy
! Total flux subtracted in 2048 components = 0.00115207 Jy
! Clean residual min=-0.001061 max=0.001409 Jy/beam
! Clean residual mean=0.000025 rms=0.000421 Jy/beam
! Combined flux in latest and established models = 0.556678 Jy
keep
! Adding 114 model components to the UV plane model.
! The established model now contains 216 components and 0.556678 Jy
wmap "J2314-3138_S_2003_06_18_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.513 x 10.32 at -6.592 degrees (North through East)
! Clean map  min=-0.0025062  max=0.47229 Jy/beam
! Writing clean map to FITS file: J2314-3138_S_2003_06_18_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.472288 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000421116 
device "J2314-3138_S_2003_06_18_pus\_map.eps/VPS"
! Attempting to open device: 'J2314-3138_S_2003_06_18_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.267495 0.267495 0.53499 1.06998 2.13996 4.27992 8.55985 17.1197 34.2394 68.4788
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0012 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.472 
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.513 x 10.32 at -6.592 degrees (North through East)
! Clean map  min=-0.0025062  max=0.47229 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2314-3138_S_2003_06_18_pus\_map.gif/vgif"
! Attempting to open device: 'J2314-3138_S_2003_06_18_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J2314-3138_S_2003_06_18_pus_uvs.log closed on Wed Jan 24 01:28:48 2007