! Started logfile: J0457-2324_S_2001_10_29_pus_uvs.log on Thu Feb 28 11:16:52 2008
obs J0457-2324_S_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0457-2324_S_2001_10_29_pus_uva.fits
! AN table 1: 48 integrations on 153 of 153 possible baselines.
! AN table 2: 111 integrations on 153 of 153 possible baselines.
! AN table 3: 49 integrations on 153 of 153 possible baselines.
! AN table 4: 10 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.0599928 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0457-2324
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2608 lines of history.
! 
! Reading 8004 visibilities.
select I
! Polarization I is unavailable.
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
![@muppet J0457-2324_S_2001_10_29_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 793 telescope corrections were flagged in sub-array 1.
!  A total of 1813 telescope corrections were flagged in sub-array 2.
!  A total of 535 telescope corrections were flagged in sub-array 3.
!  A total of 180 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 800 telescope corrections were flagged in sub-array 1.
!  A total of 1813 telescope corrections were flagged in sub-array 2.
!  A total of 535 telescope corrections were flagged in sub-array 3.
!  A total of 180 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 740 telescope corrections were flagged in sub-array 1.
!  A total of 1677 telescope corrections were flagged in sub-array 2.
!  A total of 535 telescope corrections were flagged in sub-array 3.
!  A total of 180 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 834 telescope corrections were flagged in sub-array 1.
!  A total of 1826 telescope corrections were flagged in sub-array 2.
!  A total of 535 telescope corrections were flagged in sub-array 3.
!  A total of 180 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.968291Jy  sigma=0.007299
! Fit after  self-cal, rms=0.494036Jy  sigma=0.003784
! 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.371 mas, bmaj=4.664 mas, bpa=9.598 degrees
! Estimated noise=2386.44 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 = 1.06708 Jy
! Component: 100  -  total flux cleaned = 1.31494 Jy
! Total flux subtracted in 100 components = 1.31494 Jy
! Clean residual min=-0.033301 max=0.083396 Jy/beam
! Clean residual mean=0.000985 rms=0.011875 Jy/beam
! Combined flux in latest and established models = 1.31494 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.31494 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258584Jy  sigma=0.001849
! Fit after  self-cal, rms=0.258575Jy  sigma=0.001849
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0875276 Jy
! Component: 100  -  total flux cleaned = 0.133494 Jy
! Total flux subtracted in 100 components = 0.133494 Jy
! Clean residual min=-0.022406 max=0.029781 Jy/beam
! Clean residual mean=0.000665 rms=0.007297 Jy/beam
! Combined flux in latest and established models = 1.44844 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 26 components and 1.44844 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211173Jy  sigma=0.001425
! Fit after  self-cal, rms=0.211130Jy  sigma=0.001424
! 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.038 mas, bmaj=7.829 mas, bpa=-6.37 degrees
! Estimated noise=1140.58 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.0493467 Jy
! Component: 100  -  total flux cleaned = 0.0712244 Jy
! Component: 150  -  total flux cleaned = 0.0819982 Jy
! Component: 200  -  total flux cleaned = 0.0874309 Jy
! Total flux subtracted in 200 components = 0.0874309 Jy
! Clean residual min=-0.014213 max=0.020287 Jy/beam
! Clean residual mean=0.001615 rms=0.005188 Jy/beam
! Combined flux in latest and established models = 1.53587 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 46 components and 1.53587 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.201793Jy  sigma=0.001326
! Fit after  self-cal, rms=0.201750Jy  sigma=0.001326
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 51 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.96     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.33     MC        1.00     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.15     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        1.05     
!   HN        0.97     KK        1.00*    KP        0.87     LA        1.03     
!   MA        1.00*    MC        1.07     MK        1.00*    NL        1.03     
!   OV        1.06     PT        1.04     SC        1.02     TS        1.00*    
!   WF        0.95     WZ        1.17     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.03     KP        0.98     LA        0.98     
!   MA        1.00*    MC        1.00*    MK        1.02     NL        1.01     
!   OV        0.98     PT        0.98     SC        1.02     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 60 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        1.16     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        1.61     MC        0.91     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.15     
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.12     FD        1.00*    GG        1.00*    HH        0.98     
!   HN        1.00     KK        1.00*    KP        0.97     LA        1.00     
!   MA        1.00*    MC        0.96     MK        1.00*    NL        1.03     
!   OV        1.10     PT        1.00     SC        1.01     TS        1.00*    
!   WF        1.04     WZ        1.10     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        1.02     KP        0.99     LA        0.95     
!   MA        1.00*    MC        1.00*    MK        1.03     NL        1.01     
!   OV        1.01     PT        0.97     SC        1.00     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 84 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GG        1.00*    HH        0.90     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.99     MC        0.99     MK        1.00*    NL        1.00*    
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.18     
! 
!  A total of 135 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.10     FD        1.00*    GG        1.00*    HH        0.99     
!   HN        0.98     KK        1.00*    KP        1.02     LA        0.99     
!   MA        1.13     MC        1.01     MK        1.00*    NL        1.01     
!   OV        1.07     PT        1.07     SC        1.01     TS        1.00*    
!   WF        0.98     WZ        1.08     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.99     KP        1.01     LA        0.95     
!   MA        1.00*    MC        1.00*    MK        0.97     NL        0.99     
!   OV        1.04     PT        0.98     SC        1.07     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 30 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        1.00*    GG        1.00*    HH        1.04     
!   HN        0.99     KK        1.00*    KP        0.98     LA        1.02     
!   MA        1.00*    MC        1.00*    MK        1.00*    NL        1.03     
!   OV        1.02     PT        1.03     SC        1.00     TS        1.00*    
!   WF        0.99     WZ        1.11     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.97     KP        0.99     LA        0.95     
!   MA        1.00*    MC        1.00*    MK        1.00     NL        1.03     
!   OV        0.97     PT        0.98     SC        0.99     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GG        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TS        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.201750Jy  sigma=0.001326
! Fit after  self-cal, rms=0.187780Jy  sigma=0.001210
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.127 mas, bmaj=8.34 mas, bpa=-7.369 degrees
! Estimated noise=1163.3 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.00343892 Jy
! Component: 100  -  total flux cleaned = 0.0033764 Jy
! Component: 150  -  total flux cleaned = 0.00315054 Jy
! Component: 200  -  total flux cleaned = 0.0031009 Jy
! Total flux subtracted in 200 components = 0.0031009 Jy
! Clean residual min=-0.006044 max=0.006378 Jy/beam
! Clean residual mean=0.000225 rms=0.001852 Jy/beam
! Combined flux in latest and established models = 1.53897 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 49 components and 1.53897 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.187676Jy  sigma=0.001209
! Fit after  self-cal, rms=0.187709Jy  sigma=0.001209
! 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.187709Jy  sigma=0.001209
! Fit after  self-cal, rms=0.186755Jy  sigma=0.001202
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.133 mas, bmaj=8.348 mas, bpa=-7.464 degrees
! Estimated noise=1163.94 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000103977 Jy
! Component: 100  -  total flux cleaned = 2.73671e-05 Jy
! Component: 150  -  total flux cleaned = -9.88515e-05 Jy
! Component: 200  -  total flux cleaned = -9.91889e-05 Jy
! Total flux subtracted in 200 components = -9.91889e-05 Jy
! Clean residual min=-0.005386 max=0.006032 Jy/beam
! Clean residual mean=0.000073 rms=0.001613 Jy/beam
! Combined flux in latest and established models = 1.53887 Jy
selfcal
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 55 components and 1.53887 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186685Jy  sigma=0.001202
! Fit after  self-cal, rms=0.186667Jy  sigma=0.001201
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 = -9.887e-05 Jy
! Component: 100  -  total flux cleaned = 1.99897e-05 Jy
! Component: 150  -  total flux cleaned = 2.02297e-05 Jy
! Component: 200  -  total flux cleaned = 1.9393e-05 Jy
! Total flux subtracted in 200 components = 1.9393e-05 Jy
! Clean residual min=-0.005381 max=0.005782 Jy/beam
! Clean residual mean=0.000073 rms=0.001585 Jy/beam
! Combined flux in latest and established models = 1.53889 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 56 components and 1.53889 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186615Jy  sigma=0.001201
! Fit after  self-cal, rms=0.186587Jy  sigma=0.001201
! 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.186587Jy  sigma=0.001201
! Fit after  self-cal, rms=0.186513Jy  sigma=0.001201
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=3.133 mas, bmaj=8.342 mas, bpa=-7.461 degrees
! Estimated noise=1163.86 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -8.51113e-05 Jy
! Component: 100  -  total flux cleaned = -2.87071e-05 Jy
! Component: 150  -  total flux cleaned = -3.02928e-05 Jy
! Component: 200  -  total flux cleaned = -3.29703e-05 Jy
! Total flux subtracted in 200 components = -3.29703e-05 Jy
! Clean residual min=-0.005439 max=0.005628 Jy/beam
! Clean residual mean=0.000077 rms=0.001568 Jy/beam
! Combined flux in latest and established models = 1.53886 Jy
selfcal
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 57 components and 1.53886 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186468Jy  sigma=0.001201
! Fit after  self-cal, rms=0.186446Jy  sigma=0.001201
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 = -9.56612e-05 Jy
! Component: 100  -  total flux cleaned = -8.85156e-06 Jy
! Component: 150  -  total flux cleaned = -6.11996e-06 Jy
! Component: 200  -  total flux cleaned = -6.61476e-06 Jy
! Total flux subtracted in 200 components = -6.61476e-06 Jy
! Clean residual min=-0.005436 max=0.005435 Jy/beam
! Clean residual mean=0.000077 rms=0.001551 Jy/beam
! Combined flux in latest and established models = 1.53885 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 57 components and 1.53885 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186412Jy  sigma=0.001201
! Fit after  self-cal, rms=0.186396Jy  sigma=0.001201
! 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.186396Jy  sigma=0.001201
! Fit after  self-cal, rms=0.186346Jy  sigma=0.001200
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.066 mas, bmaj=16.72 mas, bpa=1.085 degrees
! Estimated noise=1502.14 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00174847 Jy
! Component: 100  -  total flux cleaned = 0.00175175 Jy
! Component: 150  -  total flux cleaned = 0.00175565 Jy
! Component: 200  -  total flux cleaned = 0.00175906 Jy
! Total flux subtracted in 200 components = 0.00175906 Jy
! Clean residual min=-0.004802 max=0.005599 Jy/beam
! Clean residual mean=0.000107 rms=0.001721 Jy/beam
! Combined flux in latest and established models = 1.54061 Jy
selfcal
! Performing phase self-cal
! Adding 2 model components to the UV plane model.
! The established model now contains 57 components and 1.54061 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186361Jy  sigma=0.001201
! Fit after  self-cal, rms=0.186292Jy  sigma=0.001200
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 = 1.23727e-05 Jy
! Component: 100  -  total flux cleaned = 1.27664e-05 Jy
! Component: 150  -  total flux cleaned = 1.05191e-05 Jy
! Component: 200  -  total flux cleaned = 8.72237e-06 Jy
! Total flux subtracted in 200 components = 8.72237e-06 Jy
! Clean residual min=-0.004868 max=0.005568 Jy/beam
! Clean residual mean=0.000106 rms=0.001714 Jy/beam
! Combined flux in latest and established models = 1.54062 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 60 components and 1.54062 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186313Jy  sigma=0.001200
! Fit after  self-cal, rms=0.186271Jy  sigma=0.001200
! 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.133 mas, bmaj=8.336 mas, bpa=-7.46 degrees
! Estimated noise=1163.85 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.133 x 8.336 at -7.46 degrees (North through East)
! Clean map  min=-0.0050827  max=1.4416 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.186271Jy  sigma=0.001200
! Fit after  self-cal, rms=0.170741Jy  sigma=0.001074
! Inverting map and beam 
! Estimated beam: bmin=3.132 mas, bmaj=8.332 mas, bpa=-7.465 degrees
! Estimated noise=1163.86 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000891475 Jy
! Component: 100  -  total flux cleaned = -0.00081081 Jy
! Component: 150  -  total flux cleaned = -0.000775299 Jy
! Component: 200  -  total flux cleaned = -0.000811683 Jy
! Total flux subtracted in 200 components = -0.000811683 Jy
! Clean residual min=-0.005067 max=0.005276 Jy/beam
! Clean residual mean=0.000098 rms=0.001479 Jy/beam
! Combined flux in latest and established models = 1.53981 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 63 components and 1.53981 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170709Jy  sigma=0.001074
! Fit after  self-cal, rms=0.170709Jy  sigma=0.001074
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000234514 Jy
! Component: 100  -  total flux cleaned = -0.000161616 Jy
! Component: 150  -  total flux cleaned = -9.47725e-05 Jy
! Component: 200  -  total flux cleaned = -6.36083e-05 Jy
! Total flux subtracted in 200 components = -6.36083e-05 Jy
! Clean residual min=-0.005051 max=0.005244 Jy/beam
! Clean residual mean=0.000099 rms=0.001479 Jy/beam
! Combined flux in latest and established models = 1.53974 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 67 components and 1.53974 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170685Jy  sigma=0.001074
! Fit after  self-cal, rms=0.170686Jy  sigma=0.001074
! 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.170686Jy  sigma=0.001074
! Fit after  self-cal, rms=0.170614Jy  sigma=0.001074
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.461 mas, bmaj=4.627 mas, bpa=8.866 degrees
! Estimated noise=2567.74 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.09427 Jy
! Component: 100  -  total flux cleaned = 1.34581 Jy
! Component: 150  -  total flux cleaned = 1.4326 Jy
! Component: 200  -  total flux cleaned = 1.47779 Jy
! Total flux subtracted in 200 components = 1.47779 Jy
! Clean residual min=-0.014079 max=0.022313 Jy/beam
! Clean residual mean=0.000223 rms=0.004412 Jy/beam
! Combined flux in latest and established models = 1.47779 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 29 model components to the UV plane model.
! The established model now contains 29 components and 1.47779 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.133 mas, bmaj=8.328 mas, bpa=-7.466 degrees
! Estimated noise=1163.63 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.0331175 Jy
! Component: 100  -  total flux cleaned = 0.0481013 Jy
! Component: 150  -  total flux cleaned = 0.0554514 Jy
! Component: 200  -  total flux cleaned = 0.0591881 Jy
! Total flux subtracted in 200 components = 0.0591881 Jy
! Clean residual min=-0.005613 max=0.005987 Jy/beam
! Clean residual mean=0.000133 rms=0.001565 Jy/beam
! Combined flux in latest and established models = 1.53698 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 46 components and 1.53698 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.065 mas, bmaj=16.72 mas, bpa=1.063 degrees
! Estimated noise=1502.4 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00341293 Jy
! Component: 100  -  total flux cleaned = 0.00341243 Jy
! Component: 150  -  total flux cleaned = 0.00348881 Jy
! Component: 200  -  total flux cleaned = 0.00361081 Jy
! Total flux subtracted in 200 components = 0.00361081 Jy
! Clean residual min=-0.004865 max=0.005484 Jy/beam
! Clean residual mean=0.000167 rms=0.001707 Jy/beam
! Combined flux in latest and established models = 1.54059 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 = 4.94742e-05 Jy
! Component: 100  -  total flux cleaned = 0.000133415 Jy
! Component: 150  -  total flux cleaned = 0.000243627 Jy
! Component: 200  -  total flux cleaned = 0.000337752 Jy
! Total flux subtracted in 200 components = 0.000337752 Jy
! Clean residual min=-0.004766 max=0.005449 Jy/beam
! Clean residual mean=0.000154 rms=0.001678 Jy/beam
! Combined flux in latest and established models = 1.54093 Jy
! Adding 4 model components to the UV plane model.
! The established model now contains 49 components and 1.54093 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.133 mas, bmaj=8.328 mas, bpa=-7.466 degrees
! Estimated noise=1163.63 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00135986 Jy
! Component: 100  -  total flux cleaned = -0.00137026 Jy
! Component: 150  -  total flux cleaned = -0.00136964 Jy
! Component: 200  -  total flux cleaned = -0.00132052 Jy
! Total flux subtracted in 200 components = -0.00132052 Jy
! Clean residual min=-0.005159 max=0.005036 Jy/beam
! Clean residual mean=0.000090 rms=0.001473 Jy/beam
! Combined flux in latest and established models = 1.53961 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 54 components and 1.53961 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170687Jy  sigma=0.001074
! Fit after  self-cal, rms=0.170671Jy  sigma=0.001074
wmodel J0457-2324_S_2001_10_29_pus_map.mod
! Writing 54 model components to file: J0457-2324_S_2001_10_29_pus_map.mod
wobs J0457-2324_S_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0457-2324_S_2001_10_29_pus_uvs.fits
wwins J0457-2324_S_2001_10_29_pus_map.win
! wwins: Wrote 1 windows to J0457-2324_S_2001_10_29_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000122614 Jy
! Component: 100  -  total flux cleaned = 0.000565312 Jy
! Component: 150  -  total flux cleaned = 0.00105683 Jy
! Component: 200  -  total flux cleaned = 0.00160102 Jy
! Component: 250  -  total flux cleaned = 0.00189596 Jy
! Component: 300  -  total flux cleaned = 0.00246444 Jy
! Component: 350  -  total flux cleaned = 0.00287677 Jy
! Component: 400  -  total flux cleaned = 0.00314438 Jy
! Component: 450  -  total flux cleaned = 0.00353388 Jy
! Component: 500  -  total flux cleaned = 0.00397314 Jy
! Component: 550  -  total flux cleaned = 0.00415521 Jy
! Component: 600  -  total flux cleaned = 0.00433396 Jy
! Component: 650  -  total flux cleaned = 0.0045088 Jy
! Component: 700  -  total flux cleaned = 0.00456572 Jy
! Component: 750  -  total flux cleaned = 0.00473436 Jy
! Component: 800  -  total flux cleaned = 0.00489822 Jy
! Component: 850  -  total flux cleaned = 0.00500587 Jy
! Component: 900  -  total flux cleaned = 0.00511114 Jy
! Component: 950  -  total flux cleaned = 0.00521497 Jy
! Component: 1000  -  total flux cleaned = 0.00541685 Jy
! Component: 1050  -  total flux cleaned = 0.00546589 Jy
! Component: 1100  -  total flux cleaned = 0.00546551 Jy
! Component: 1150  -  total flux cleaned = 0.00575354 Jy
! Component: 1200  -  total flux cleaned = 0.00580063 Jy
! Component: 1250  -  total flux cleaned = 0.00584727 Jy
! Component: 1300  -  total flux cleaned = 0.00607657 Jy
! Component: 1350  -  total flux cleaned = 0.00607599 Jy
! Component: 1400  -  total flux cleaned = 0.00620974 Jy
! Component: 1450  -  total flux cleaned = 0.00634241 Jy
! Component: 1500  -  total flux cleaned = 0.0064726 Jy
! Component: 1550  -  total flux cleaned = 0.00647226 Jy
! Component: 1600  -  total flux cleaned = 0.0065995 Jy
! Component: 1650  -  total flux cleaned = 0.00664179 Jy
! Component: 1700  -  total flux cleaned = 0.00668318 Jy
! Component: 1750  -  total flux cleaned = 0.00676514 Jy
! Component: 1800  -  total flux cleaned = 0.00672399 Jy
! Component: 1850  -  total flux cleaned = 0.00680372 Jy
! Component: 1900  -  total flux cleaned = 0.00672413 Jy
! Component: 1950  -  total flux cleaned = 0.00672443 Jy
! Component: 2000  -  total flux cleaned = 0.00680242 Jy
! Total flux subtracted in 2048 components = 0.00676399 Jy
! Clean residual min=-0.002066 max=0.002247 Jy/beam
! Clean residual mean=0.000011 rms=0.000759 Jy/beam
! Combined flux in latest and established models = 1.54637 Jy
keep
! Adding 122 model components to the UV plane model.
! The established model now contains 176 components and 1.54637 Jy
![Exited script file: muppet]
wmap "J0457-2324_S_2001_10_29_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.133 x 8.328 at -7.466 degrees (North through East)
! Clean map  min=-0.0049195  max=1.4431 Jy/beam
! Writing clean map to FITS file: J0457-2324_S_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.44308 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00076095 
device "J0457-2324_S_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0457-2324_S_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.158193 0.158193 0.316387 0.632774 1.26555 2.5311 5.06219 10.1244 20.2488 40.4975 80.995
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.443 
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.133 x 8.328 at -7.466 degrees (North through East)
! Clean map  min=-0.0049195  max=1.4431 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0457-2324_S_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0457-2324_S_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0457-2324_S_2001_10_29_pus_uvs.log closed on Thu Feb 28 11:17:00 2008