! Started logfile: J0730-1141_S_2003_05_07_pus_uvs.log on Sun Dec 24 09:49:56 2006
obs J0730-1141_S_2003_05_07_pus_uva.fits
! Reading UV FITS file: J0730-1141_S_2003_05_07_pus_uva.fits
! AN table 1: 46 integrations on 171 of 171 possible baselines.
! AN table 2: 60 integrations on 171 of 171 possible baselines.
! AN table 3: 14 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.189864 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0730-1141
! 
! 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 1680 lines of history.
! 
! Reading 15584 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
float field_size
field_size = 512
float field_cell
field_cell = 0.5
float taper_size
taper_size = 20.
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 525 telescope corrections were flagged in sub-array 1.
!  A total of 676 telescope corrections were flagged in sub-array 2.
!  A total of 242 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 525 telescope corrections were flagged in sub-array 1.
!  A total of 676 telescope corrections were flagged in sub-array 2.
!  A total of 239 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 525 telescope corrections were flagged in sub-array 1.
!  A total of 676 telescope corrections were flagged in sub-array 2.
!  A total of 239 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 525 telescope corrections were flagged in sub-array 1.
!  A total of 676 telescope corrections were flagged in sub-array 2.
!  A total of 242 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=2.330209Jy  sigma=0.016833
! Fit after  self-cal, rms=1.899765Jy  sigma=0.014294
! 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=1.929 mas, bmaj=4.367 mas, bpa=-3.545 degrees
! Estimated noise=1708.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 = 2.12643 Jy
! Component: 100  -  total flux cleaned = 2.66974 Jy
! Total flux subtracted in 100 components = 2.66974 Jy
! Clean residual min=-0.072694 max=0.236008 Jy/beam
! Clean residual mean=-0.000831 rms=0.025705 Jy/beam
! Combined flux in latest and established models = 2.66974 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 2.66974 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.664142Jy  sigma=0.004301
! Fit after  self-cal, rms=0.664212Jy  sigma=0.004300
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.261331 Jy
! Component: 100  -  total flux cleaned = 0.403585 Jy
! Total flux subtracted in 100 components = 0.403585 Jy
! Clean residual min=-0.054994 max=0.072480 Jy/beam
! Clean residual mean=-0.000464 rms=0.014435 Jy/beam
! Combined flux in latest and established models = 3.07332 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 17 components and 3.07332 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.548122Jy  sigma=0.002832
! Fit after  self-cal, rms=0.548064Jy  sigma=0.002831
! 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.283 mas, bmaj=5.992 mas, bpa=-6.192 degrees
! Estimated noise=885.654 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.118392 Jy
! Component: 100  -  total flux cleaned = 0.17436 Jy
! Component: 150  -  total flux cleaned = 0.203634 Jy
! Component: 200  -  total flux cleaned = 0.219146 Jy
! Total flux subtracted in 200 components = 0.219146 Jy
! Clean residual min=-0.040082 max=0.056291 Jy/beam
! Clean residual mean=-0.000263 rms=0.011272 Jy/beam
! Combined flux in latest and established models = 3.29247 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 31 components and 3.29247 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.533416Jy  sigma=0.002530
! Fit after  self-cal, rms=0.533116Jy  sigma=0.002529
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.99     GG        1.00*    HN        0.92     
!   KK        1.00     KP        0.98     LA        1.03     MA        1.00*    
!   MC        1.00*    MK        1.01     NL        1.00*    ON        1.00*    
!   OV        0.86     PT        1.01     SC        0.88     TC        1.07     
!   TS        1.00*    WF        1.03     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        0.99     GG        1.00*    HN        0.98     
!   KK        1.00*    KP        1.00     LA        1.05     MA        0.99     
!   MC        1.08     MK        1.00*    NL        0.97     ON        1.00*    
!   OV        0.87     PT        1.03     SC        0.96     TC        1.07     
!   TS        1.00*    WF        1.07     WZ        1.01     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        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*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.04     GG        1.00*    HN        0.99     
!   KK        1.05     KP        0.97     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        1.02     NL        1.00*    ON        1.00*    
!   OV        0.96     PT        0.99     SC        0.89     TC        1.08     
!   TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.16     FD        1.04     GG        1.00*    HN        1.02     
!   KK        1.00*    KP        1.01     LA        1.01     MA        1.08     
!   MC        1.10     MK        1.00*    NL        1.00     ON        1.00*    
!   OV        0.95     PT        1.03     SC        0.97     TC        1.09     
!   TS        1.00*    WF        1.06     WZ        0.98     
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        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*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.99     GG        1.00*    HN        1.00     
!   KK        1.01     KP        0.98     LA        0.98     MA        1.00*    
!   MC        1.00*    MK        0.98     NL        1.00*    ON        1.00*    
!   OV        0.92     PT        1.01     SC        1.02     TC        0.96     
!   TS        1.00*    WF        1.02     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.11     FD        0.98     GG        1.00*    HN        1.04     
!   KK        1.00*    KP        1.02     LA        1.00     MA        1.06     
!   MC        0.96     MK        1.00*    NL        1.02     ON        1.00*    
!   OV        1.00     PT        1.05     SC        1.10     TC        0.96     
!   TS        1.00*    WF        1.05     WZ        1.02     
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        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*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GG        1.00*    HN        0.93     
!   KK        1.02     KP        0.95     LA        1.00     MA        1.00*    
!   MC        1.00*    MK        1.02     NL        1.00*    ON        1.00*    
!   OV        0.86     PT        0.97     SC        1.02     TC        0.97     
!   TS        1.00*    WF        1.01     WZ        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.11     FD        1.00     GG        1.00*    HN        0.96     
!   KK        1.00*    KP        0.98     LA        1.01     MA        1.05     
!   MC        1.36     MK        1.00*    NL        0.95     ON        1.00*    
!   OV        0.97     PT        1.00     SC        1.10     TC        0.97     
!   TS        1.00*    WF        1.04     WZ        0.96     
! 
!  A total of 24 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GG        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*    ON        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.533116Jy  sigma=0.002529
! Fit after  self-cal, rms=0.467846Jy  sigma=0.001887
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.323 mas, bmaj=6.117 mas, bpa=-6.042 degrees
! Estimated noise=888.581 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 (-6.5, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00761603 Jy
! Component: 100  -  total flux cleaned = 0.00961601 Jy
! Component: 150  -  total flux cleaned = 0.0111797 Jy
! Component: 200  -  total flux cleaned = 0.0132371 Jy
! Total flux subtracted in 200 components = 0.0132371 Jy
! Clean residual min=-0.019440 max=0.020053 Jy/beam
! Clean residual mean=0.000668 rms=0.005401 Jy/beam
! Combined flux in latest and established models = 3.3057 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 55 components and 3.3057 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.462404Jy  sigma=0.001839
! Fit after  self-cal, rms=0.462013Jy  sigma=0.001835
! 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.462013Jy  sigma=0.001835
! Fit after  self-cal, rms=0.460276Jy  sigma=0.001827
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.334 mas, bmaj=6.108 mas, bpa=-6.077 degrees
! Estimated noise=887.936 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000361074 Jy
! Component: 100  -  total flux cleaned = 0.00271777 Jy
! Component: 150  -  total flux cleaned = 0.00570076 Jy
! Component: 200  -  total flux cleaned = 0.00773514 Jy
! Total flux subtracted in 200 components = 0.00773514 Jy
! Clean residual min=-0.016508 max=0.017235 Jy/beam
! Clean residual mean=0.000460 rms=0.004594 Jy/beam
! Combined flux in latest and established models = 3.31344 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 67 components and 3.31344 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.457553Jy  sigma=0.001805
! Fit after  self-cal, rms=0.457402Jy  sigma=0.001803
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.00555233 Jy
! Component: 100  -  total flux cleaned = 0.00810647 Jy
! Component: 150  -  total flux cleaned = 0.00922507 Jy
! Component: 200  -  total flux cleaned = 0.0105391 Jy
! Total flux subtracted in 200 components = 0.0105391 Jy
! Clean residual min=-0.015605 max=0.016404 Jy/beam
! Clean residual mean=0.000433 rms=0.004354 Jy/beam
! Combined flux in latest and established models = 3.32398 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 79 components and 3.32398 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.456421Jy  sigma=0.001797
! Fit after  self-cal, rms=0.456347Jy  sigma=0.001796
! 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.456347Jy  sigma=0.001796
! Fit after  self-cal, rms=0.455921Jy  sigma=0.001789
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.344 mas, bmaj=6.101 mas, bpa=-6.105 degrees
! Estimated noise=888.362 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00262868 Jy
! Component: 100  -  total flux cleaned = -0.000292202 Jy
! Component: 150  -  total flux cleaned = 0.00125966 Jy
! Component: 200  -  total flux cleaned = 0.00261486 Jy
! Total flux subtracted in 200 components = 0.00261486 Jy
! Clean residual min=-0.013420 max=0.015126 Jy/beam
! Clean residual mean=0.000275 rms=0.003860 Jy/beam
! Combined flux in latest and established models = 3.32659 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 82 components and 3.32659 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.454765Jy  sigma=0.001780
! Fit after  self-cal, rms=0.454722Jy  sigma=0.001779
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.00292556 Jy
! Component: 100  -  total flux cleaned = 0.00437538 Jy
! Component: 150  -  total flux cleaned = 0.00537293 Jy
! Component: 200  -  total flux cleaned = 0.00602875 Jy
! Total flux subtracted in 200 components = 0.00602875 Jy
! Clean residual min=-0.012810 max=0.014538 Jy/beam
! Clean residual mean=0.000260 rms=0.003729 Jy/beam
! Combined flux in latest and established models = 3.33262 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 86 components and 3.33262 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.454266Jy  sigma=0.001776
! Fit after  self-cal, rms=0.454235Jy  sigma=0.001776
! 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.454235Jy  sigma=0.001776
! Fit after  self-cal, rms=0.454843Jy  sigma=0.001773
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.468 mas, bmaj=15.32 mas, bpa=-10.43 degrees
! Estimated noise=1084.96 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0096152 Jy
! Component: 100  -  total flux cleaned = 0.0105355 Jy
! Component: 150  -  total flux cleaned = 0.0110113 Jy
! Component: 200  -  total flux cleaned = 0.0111299 Jy
! Total flux subtracted in 200 components = 0.0111299 Jy
! Clean residual min=-0.013321 max=0.016904 Jy/beam
! Clean residual mean=0.000381 rms=0.005610 Jy/beam
! Combined flux in latest and established models = 3.34375 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 102 components and 3.34375 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.454822Jy  sigma=0.001772
! Fit after  self-cal, rms=0.454790Jy  sigma=0.001772
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.00149631 Jy
! Component: 100  -  total flux cleaned = 0.00206505 Jy
! Component: 150  -  total flux cleaned = 0.00216768 Jy
! Component: 200  -  total flux cleaned = 0.00217495 Jy
! Total flux subtracted in 200 components = 0.00217495 Jy
! Clean residual min=-0.013202 max=0.016591 Jy/beam
! Clean residual mean=0.000365 rms=0.005506 Jy/beam
! Combined flux in latest and established models = 3.34593 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 112 components and 3.34593 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.454751Jy  sigma=0.001772
! Fit after  self-cal, rms=0.454739Jy  sigma=0.001771
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=2.352 mas, bmaj=6.098 mas, bpa=-6.119 degrees
! Estimated noise=888.891 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.352 x 6.098 at -6.119 degrees (North through East)
! Clean map  min=-0.012534  max=2.8152 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.454739Jy  sigma=0.001771
! Fit after  self-cal, rms=0.424943Jy  sigma=0.001209
! Inverting map and beam 
! Estimated beam: bmin=2.352 mas, bmaj=6.099 mas, bpa=-6.108 degrees
! Estimated noise=887.771 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00474141 Jy
! Component: 100  -  total flux cleaned = -0.00655117 Jy
! Component: 150  -  total flux cleaned = -0.00754857 Jy
! Component: 200  -  total flux cleaned = -0.00818657 Jy
! Total flux subtracted in 200 components = -0.00818658 Jy
! Clean residual min=-0.009130 max=0.010128 Jy/beam
! Clean residual mean=0.000248 rms=0.002186 Jy/beam
! Combined flux in latest and established models = 3.33774 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 123 components and 3.33774 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424456Jy  sigma=0.001205
! Fit after  self-cal, rms=0.424432Jy  sigma=0.001204
! Inverting map 
! Added new window around map position (-18, 13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00796579 Jy
! Component: 100  -  total flux cleaned = 0.00845639 Jy
! Component: 150  -  total flux cleaned = 0.00889109 Jy
! Component: 200  -  total flux cleaned = 0.00947792 Jy
! Total flux subtracted in 200 components = 0.00947792 Jy
! Clean residual min=-0.007908 max=0.007710 Jy/beam
! Clean residual mean=0.000192 rms=0.001873 Jy/beam
! Combined flux in latest and established models = 3.34722 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 141 components and 3.34722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.423931Jy  sigma=0.001201
! Fit after  self-cal, rms=0.423931Jy  sigma=0.001200
! 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.423931Jy  sigma=0.001200
! Fit after  self-cal, rms=0.424479Jy  sigma=0.001199
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=1.979 mas, bmaj=4.43 mas, bpa=-2.716 degrees
! Estimated noise=1657.58 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.14518 Jy
! Component: 100  -  total flux cleaned = 2.6527 Jy
! Component: 150  -  total flux cleaned = 2.88175 Jy
! Component: 200  -  total flux cleaned = 3.00544 Jy
! Total flux subtracted in 200 components = 3.00544 Jy
! Clean residual min=-0.023041 max=0.060221 Jy/beam
! Clean residual mean=-0.000194 rms=0.008135 Jy/beam
! Combined flux in latest and established models = 3.00544 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 21 model components to the UV plane model.
! The established model now contains 21 components and 3.00544 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.355 mas, bmaj=6.099 mas, bpa=-6.107 degrees
! Estimated noise=887.483 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.125129 Jy
! Component: 100  -  total flux cleaned = 0.193961 Jy
! Component: 150  -  total flux cleaned = 0.235635 Jy
! Component: 200  -  total flux cleaned = 0.263352 Jy
! Total flux subtracted in 200 components = 0.263352 Jy
! Clean residual min=-0.009427 max=0.020216 Jy/beam
! Clean residual mean=0.000429 rms=0.003763 Jy/beam
! Combined flux in latest and established models = 3.2688 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 72 components and 3.2688 Jy
! Inverting map 
! Added new window around map position (-1.5, 10).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0212504 Jy
! Component: 100  -  total flux cleaned = 0.0363993 Jy
! Component: 150  -  total flux cleaned = 0.0479951 Jy
! Component: 200  -  total flux cleaned = 0.0570904 Jy
! Total flux subtracted in 200 components = 0.0570904 Jy
! Clean residual min=-0.005772 max=0.008910 Jy/beam
! Clean residual mean=0.000258 rms=0.001904 Jy/beam
! Combined flux in latest and established models = 3.32589 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 110 components and 3.32589 Jy
! Inverting map 
! Added new window around map position (-13, 14).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00866323 Jy
! Component: 100  -  total flux cleaned = 0.014491 Jy
! Component: 150  -  total flux cleaned = 0.0190162 Jy
! Component: 200  -  total flux cleaned = 0.0215349 Jy
! Total flux subtracted in 200 components = 0.0215349 Jy
! Clean residual min=-0.005415 max=0.006229 Jy/beam
! Clean residual mean=0.000190 rms=0.001564 Jy/beam
! Combined flux in latest and established models = 3.34742 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 131 components and 3.34742 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.47 mas, bmaj=15.33 mas, bpa=-10.45 degrees
! Estimated noise=1082.63 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00397878 Jy
! Component: 100  -  total flux cleaned = 0.00624819 Jy
! Component: 150  -  total flux cleaned = 0.00670004 Jy
! Component: 200  -  total flux cleaned = 0.00697894 Jy
! Total flux subtracted in 200 components = 0.00697894 Jy
! Clean residual min=-0.006339 max=0.006498 Jy/beam
! Clean residual mean=0.000385 rms=0.002167 Jy/beam
! Combined flux in latest and established models = 3.3544 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.000200146 Jy
! Component: 100  -  total flux cleaned = 0.000382917 Jy
! Component: 150  -  total flux cleaned = 0.000552077 Jy
! Component: 200  -  total flux cleaned = 0.000593749 Jy
! Total flux subtracted in 200 components = 0.000593749 Jy
! Clean residual min=-0.006232 max=0.006508 Jy/beam
! Clean residual mean=0.000380 rms=0.002153 Jy/beam
! Combined flux in latest and established models = 3.35499 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 150 components and 3.35499 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.355 mas, bmaj=6.099 mas, bpa=-6.107 degrees
! Estimated noise=887.483 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00226458 Jy
! Component: 100  -  total flux cleaned = -0.00215029 Jy
! Component: 150  -  total flux cleaned = -0.00203786 Jy
! Component: 200  -  total flux cleaned = -0.00193215 Jy
! Total flux subtracted in 200 components = -0.00193215 Jy
! Clean residual min=-0.005415 max=0.005760 Jy/beam
! Clean residual mean=0.000167 rms=0.001510 Jy/beam
! Combined flux in latest and established models = 3.35306 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 162 components and 3.35306 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424160Jy  sigma=0.001192
! Fit after  self-cal, rms=0.423848Jy  sigma=0.001191
wmodel J0730-1141_S_2003_05_07_pus_map.mod
! Writing 162 model components to file: J0730-1141_S_2003_05_07_pus_map.mod
wobs J0730-1141_S_2003_05_07_pus_uvs.fits
! Writing UV FITS file: J0730-1141_S_2003_05_07_pus_uvs.fits
wwins J0730-1141_S_2003_05_07_pus_map.win
! wwins: Wrote 5 windows to J0730-1141_S_2003_05_07_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.00105366 Jy
! Component: 100  -  total flux cleaned = 0.000688124 Jy
! Component: 150  -  total flux cleaned = 0.000601515 Jy
! Component: 200  -  total flux cleaned = 0.000759798 Jy
! Component: 250  -  total flux cleaned = 0.00122712 Jy
! Component: 300  -  total flux cleaned = 0.00152853 Jy
! Component: 350  -  total flux cleaned = 0.00189655 Jy
! Component: 400  -  total flux cleaned = 0.00240054 Jy
! Component: 450  -  total flux cleaned = 0.00296564 Jy
! Component: 500  -  total flux cleaned = 0.00372859 Jy
! Component: 550  -  total flux cleaned = 0.0042066 Jy
! Component: 600  -  total flux cleaned = 0.00487871 Jy
! Component: 650  -  total flux cleaned = 0.00534253 Jy
! Component: 700  -  total flux cleaned = 0.00612595 Jy
! Component: 750  -  total flux cleaned = 0.0065777 Jy
! Component: 800  -  total flux cleaned = 0.0072157 Jy
! Component: 850  -  total flux cleaned = 0.00778233 Jy
! Component: 900  -  total flux cleaned = 0.00815589 Jy
! Component: 950  -  total flux cleaned = 0.00858751 Jy
! Component: 1000  -  total flux cleaned = 0.00913571 Jy
! Component: 1050  -  total flux cleaned = 0.0096784 Jy
! Component: 1100  -  total flux cleaned = 0.0100963 Jy
! Component: 1150  -  total flux cleaned = 0.0105696 Jy
! Component: 1200  -  total flux cleaned = 0.0110971 Jy
! Component: 1250  -  total flux cleaned = 0.0115617 Jy
! Component: 1300  -  total flux cleaned = 0.0120219 Jy
! Component: 1350  -  total flux cleaned = 0.0124207 Jy
! Component: 1400  -  total flux cleaned = 0.0128161 Jy
! Component: 1450  -  total flux cleaned = 0.0132637 Jy
! Component: 1500  -  total flux cleaned = 0.0137072 Jy
! Component: 1550  -  total flux cleaned = 0.013872 Jy
! Component: 1600  -  total flux cleaned = 0.0143632 Jy
! Component: 1650  -  total flux cleaned = 0.0147423 Jy
! Component: 1700  -  total flux cleaned = 0.0150647 Jy
! Component: 1750  -  total flux cleaned = 0.0153843 Jy
! Component: 1800  -  total flux cleaned = 0.015649 Jy
! Component: 1850  -  total flux cleaned = 0.0159114 Jy
! Component: 1900  -  total flux cleaned = 0.0163806 Jy
! Component: 1950  -  total flux cleaned = 0.0165874 Jy
! Component: 2000  -  total flux cleaned = 0.0170496 Jy
! Total flux subtracted in 2048 components = 0.0172535 Jy
! Clean residual min=-0.002744 max=0.002894 Jy/beam
! Clean residual mean=0.000145 rms=0.000967 Jy/beam
! Combined flux in latest and established models = 3.37031 Jy
keep
! Adding 140 model components to the UV plane model.
! The established model now contains 302 components and 3.37031 Jy
wmap "J0730-1141_S_2003_05_07_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.355 x 6.099 at -6.107 degrees (North through East)
! Clean map  min=-0.0046123  max=2.8192 Jy/beam
! Writing clean map to FITS file: J0730-1141_S_2003_05_07_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.81915 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000970254 
device "J0730-1141_S_2003_05_07_pus\_map.eps/VPS"
! Attempting to open device: 'J0730-1141_S_2003_05_07_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.10325 0.10325 0.206499 0.412998 0.825997 1.65199 3.30399 6.60798 13.216 26.4319 52.8638
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.819 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.355 x 6.099 at -6.107 degrees (North through East)
! Clean map  min=-0.0046123  max=2.8192 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0730-1141_S_2003_05_07_pus\_map.gif/vgif"
! Attempting to open device: 'J0730-1141_S_2003_05_07_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0730-1141_S_2003_05_07_pus_uvs.log closed on Sun Dec 24 09:51:06 2006