! Started logfile: J0731-2341_S_2004_05_08_yyk_uvs.log on Wed Dec  7 00:07:40 2005
obs J0731-2341_S_2004_05_08_yyk_uve.fits
! Reading UV FITS file: J0731-2341_S_2004_05_08_yyk_uve.fits
! AN table 1: 8 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.777778 visibilities/baseline/integration-bin.
! Found source: J0731-2341
! 
! 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 1433 lines of history.
! 
! Reading 1120 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
![@muppet J0731-2341_S_2004_05_08_yyk]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.04
float dynam
dynam = 6.0
float amp_soltime1
amp_soltime1 = 10
float amp_soltime2
amp_soltime2 = 1
float phase_soltime1
phase_soltime1=10
float phase_soltime2
phase_soltime2=0.5
float phase_soltime
phase_soltime=phase_soltime1
float ampcor_selflim
ampcor_selflim=1.20
float thresh
thresh = 0.10
float win_mult
win_mult = 1.8
float time_av
time_av = 30
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.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.314481 Jy 
startmod ,phase_soltime
! Applying default point source starting model.
! Performing phase self-cal over 10 minute time intervals
! 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 9 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 17 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 21 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.766097Jy  sigma=10.762421
! Fit after  self-cal, rms=0.765867Jy  sigma=10.756999
! 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.38 mas, bmaj=6.56 mas, bpa=-1.453 degrees
! Estimated noise=2.01743 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.219767 Jy
! Component: 100  -  total flux cleaned = 0.307149 Jy
! Total flux subtracted in 100 components = 0.307149 Jy
! Clean residual min=-0.016938 max=0.041814 Jy/beam
! Clean residual mean=-0.000394 rms=0.006610 Jy/beam
! Combined flux in latest and established models = 0.307149 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 20 components and 0.307149 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139158Jy  sigma=1.880488
! Fit after  self-cal, rms=0.137938Jy  sigma=1.872206
! Inverting map 
! Added new window around map position (-3.5, 0.5).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0537812 Jy
! Component: 100  -  total flux cleaned = 0.0833813 Jy
! Total flux subtracted in 100 components = 0.0833813 Jy
! Clean residual min=-0.012604 max=0.015347 Jy/beam
! Clean residual mean=-0.000231 rms=0.004489 Jy/beam
! Combined flux in latest and established models = 0.39053 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 45 components and 0.39053 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.117007Jy  sigma=1.503111
! Fit after  self-cal, rms=0.116515Jy  sigma=1.497860
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-2
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -2.
! 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.909 mas, bmaj=7.775 mas, bpa=-2.362 degrees
! Estimated noise=1.59142 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0296808 Jy
! Component: 100  -  total flux cleaned = 0.0454135 Jy
! Component: 150  -  total flux cleaned = 0.0544469 Jy
! Component: 200  -  total flux cleaned = 0.0596909 Jy
! Total flux subtracted in 200 components = 0.0596909 Jy
! Clean residual min=-0.012751 max=0.021276 Jy/beam
! Clean residual mean=-0.000194 rms=0.005469 Jy/beam
! Combined flux in latest and established models = 0.450221 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 49 model components to the UV plane model.
! The established model now contains 75 components and 0.450221 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.111346Jy  sigma=1.407420
! Fit after  self-cal, rms=0.111053Jy  sigma=1.404019
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
selflims ampcor_selflim
! Selfcal amplitude corrections will be limited to 0.833333 -> 1.2.
! Selfcal phase corrections will not be limited.
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 1.01302
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.88     FD        1.03     HN        0.95     KP        0.98     
!   LA        1.03     MK        0.99     NL        1.05     OV        0.96     
!   PT        1.00*    SC        1.00     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.965669
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.01     HN        1.12     KP        1.05     
!   LA        1.03     MK        1.11     NL        1.05     OV        0.98     
!   PT        1.00*    SC        1.00     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.0021
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.87     HN        1.05     KP        1.05     
!   LA        0.97     MK        1.05     NL        1.12     OV        0.97     
!   PT        1.00*    SC        0.90     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.05313
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.84     FD        0.95     HN        0.97     KP        0.97     
!   LA        1.00*    MK        0.92     NL        0.95     OV        0.85     
!   PT        1.00*    SC        1.05     
! 
! 
! Fit before self-cal, rms=0.111053Jy  sigma=1.404019
! Fit after  self-cal, rms=0.106704Jy  sigma=1.364394
selfcal false, false, phase_soltime
! Performing phase self-cal over 10 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106704Jy  sigma=1.364394
! Fit after  self-cal, rms=0.106701Jy  sigma=1.364173
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.94 mas, bmaj=7.762 mas, bpa=-1.256 degrees
! Estimated noise=1.58214 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000710198 Jy
! Component: 100  -  total flux cleaned = 0.000873723 Jy
! Component: 150  -  total flux cleaned = 0.00113398 Jy
! Component: 200  -  total flux cleaned = 0.00124312 Jy
! Total flux subtracted in 200 components = 0.00124312 Jy
! Clean residual min=-0.012874 max=0.021319 Jy/beam
! Clean residual mean=-0.000191 rms=0.005304 Jy/beam
! Combined flux in latest and established models = 0.451464 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 83 components and 0.451464 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106579Jy  sigma=1.359127
! Fit after  self-cal, rms=0.106562Jy  sigma=1.358942
! Inverting map 
print "************** FINISHED AMPLITUDE GSCALE SELF-CAL **************"
! ************** FINISHED AMPLITUDE GSCALE SELF-CAL ************** 
! 
phase_soltime=phase_soltime2
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106562Jy  sigma=1.358942
! Fit after  self-cal, rms=0.102155Jy  sigma=1.313750
dynam = dynam - 0.5
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 false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0010751 Jy
! Component: 100  -  total flux cleaned = 0.00136662 Jy
! Component: 150  -  total flux cleaned = 0.0014467 Jy
! Component: 200  -  total flux cleaned = 0.00160328 Jy
! Total flux subtracted in 200 components = 0.00160328 Jy
! Clean residual min=-0.012465 max=0.020580 Jy/beam
! Clean residual mean=-0.000191 rms=0.005215 Jy/beam
! Combined flux in latest and established models = 0.453068 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 92 components and 0.453068 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.102106Jy  sigma=1.311872
! Fit after  self-cal, rms=0.101698Jy  sigma=1.308111
! Inverting map 
print "*** FINISHED NATURAL WEIGHTING CLEAN with shorter phase_soltime ***"
! *** FINISHED NATURAL WEIGHTING CLEAN with shorter phase_soltime *** 
! 
dynam = dynam - 0.25
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.94 x 7.762 at -1.256 degrees (North through East)
! Clean map  min=-0.012187  max=0.25891 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true, amp_soltime1
  selfcal false, false, phase_soltime
  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 false,false,phase_soltime
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true, amp_soltime2
  selfcal false, false, phase_soltime
  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 false,false,phase_soltime
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  print "************** FINISHED AMPLITUDE SELF-CAL **************"
  end if
! Performing amp+phase self-cal over 10 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.101698Jy  sigma=1.308111
! Fit after  self-cal, rms=0.097542Jy  sigma=1.245876
! Performing phase self-cal over 0.5 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.097542Jy  sigma=1.245876
! Fit after  self-cal, rms=0.097570Jy  sigma=1.245366
! Inverting map and beam 
! Estimated beam: bmin=2.929 mas, bmaj=7.721 mas, bpa=-1.776 degrees
! Estimated noise=1.55705 mJy/beam.
! Added new window around map position (-14, 2.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.027671 Jy
! Component: 100  -  total flux cleaned = 0.0428545 Jy
! Component: 150  -  total flux cleaned = 0.0520964 Jy
! Component: 200  -  total flux cleaned = 0.0588997 Jy
! Total flux subtracted in 200 components = 0.0588997 Jy
! Clean residual min=-0.008996 max=0.013334 Jy/beam
! Clean residual mean=-0.000065 rms=0.003283 Jy/beam
! Combined flux in latest and established models = 0.511967 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 63 model components to the UV plane model.
! The established model now contains 153 components and 0.511967 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092957Jy  sigma=1.140809
! Fit after  self-cal, rms=0.092722Jy  sigma=1.135824
! Inverting map 
! Performing amp+phase self-cal over 1 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.092722Jy  sigma=1.135824
! Fit after  self-cal, rms=0.088884Jy  sigma=1.071701
! Performing phase self-cal over 0.5 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.088884Jy  sigma=1.071701
! Fit after  self-cal, rms=0.088926Jy  sigma=1.071526
! Inverting map and beam 
! Estimated beam: bmin=2.953 mas, bmaj=7.74 mas, bpa=-1.735 degrees
! Estimated noise=1.54416 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00804133 Jy
! Component: 100  -  total flux cleaned = 0.0111187 Jy
! Component: 150  -  total flux cleaned = 0.0121239 Jy
! Component: 200  -  total flux cleaned = 0.0131489 Jy
! Total flux subtracted in 200 components = 0.0131489 Jy
! Clean residual min=-0.008877 max=0.010663 Jy/beam
! Clean residual mean=-0.000012 rms=0.002760 Jy/beam
! Combined flux in latest and established models = 0.525116 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 170 components and 0.525116 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.088413Jy  sigma=1.058902
! Fit after  self-cal, rms=0.088401Jy  sigma=1.058369
! Inverting map 
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
win_mult = win_mult * 1.4
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=7.191 mas, bmaj=17.01 mas, bpa=2.804 degrees
! Estimated noise=2.0431 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal false,false,phase_soltime
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0070912 Jy
! Component: 100  -  total flux cleaned = 0.00760544 Jy
! Component: 150  -  total flux cleaned = 0.00761808 Jy
! Component: 200  -  total flux cleaned = 0.00724593 Jy
! Total flux subtracted in 200 components = 0.00724593 Jy
! Clean residual min=-0.011024 max=0.018583 Jy/beam
! Clean residual mean=-0.000024 rms=0.004641 Jy/beam
! Combined flux in latest and established models = 0.532362 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 184 components and 0.532362 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.088765Jy  sigma=1.058980
! Fit after  self-cal, rms=0.088726Jy  sigma=1.058134
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.4
print "************** FINISHED TAPERING SELF-CAL CLEAN **************"
! ************** FINISHED TAPERING SELF-CAL CLEAN ************** 
! 
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true,true,true
! clrmod: Cleared the established, tentative and continuum 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.407 mas, bmaj=6.516 mas, bpa=-1.167 degrees
! Estimated noise=1.9801 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.216839 Jy
! Component: 100  -  total flux cleaned = 0.3055 Jy
! Component: 150  -  total flux cleaned = 0.354329 Jy
! Component: 200  -  total flux cleaned = 0.383417 Jy
! Total flux subtracted in 200 components = 0.383417 Jy
! Clean residual min=-0.011652 max=0.013434 Jy/beam
! Clean residual mean=-0.000193 rms=0.003939 Jy/beam
! Combined flux in latest and established models = 0.383417 Jy
uvw 0,-2
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -2.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 41 model components to the UV plane model.
! The established model now contains 41 components and 0.383417 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.953 mas, bmaj=7.74 mas, bpa=-1.735 degrees
! Estimated noise=1.54416 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.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0350497 Jy
! Component: 100  -  total flux cleaned = 0.0599524 Jy
! Component: 150  -  total flux cleaned = 0.0793113 Jy
! Component: 200  -  total flux cleaned = 0.0945761 Jy
! Total flux subtracted in 200 components = 0.0945761 Jy
! Clean residual min=-0.010103 max=0.012509 Jy/beam
! Clean residual mean=-0.000085 rms=0.003444 Jy/beam
! Combined flux in latest and established models = 0.477993 Jy
! Adding 80 model components to the UV plane model.
! The established model now contains 113 components and 0.477993 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=7.191 mas, bmaj=17.01 mas, bpa=2.804 degrees
! Estimated noise=2.0431 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.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0246897 Jy
! Component: 100  -  total flux cleaned = 0.039275 Jy
! Component: 150  -  total flux cleaned = 0.0475796 Jy
! Component: 200  -  total flux cleaned = 0.0503514 Jy
! Total flux subtracted in 200 components = 0.0503514 Jy
! Clean residual min=-0.010933 max=0.018757 Jy/beam
! Clean residual mean=-0.000042 rms=0.004751 Jy/beam
! Combined flux in latest and established models = 0.528344 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 134 components and 0.528345 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.953 mas, bmaj=7.74 mas, bpa=-1.735 degrees
! Estimated noise=1.54416 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000254772 Jy
! Component: 100  -  total flux cleaned = -0.000894322 Jy
! Component: 150  -  total flux cleaned = -0.000923024 Jy
! Component: 200  -  total flux cleaned = -0.000733059 Jy
! Total flux subtracted in 200 components = -0.000733059 Jy
! Clean residual min=-0.009627 max=0.011235 Jy/beam
! Clean residual mean=-0.000010 rms=0.002743 Jy/beam
! Combined flux in latest and established models = 0.527611 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 158 components and 0.527611 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.089164Jy  sigma=1.064161
! Fit after  self-cal, rms=0.089013Jy  sigma=1.062374
wmodel J0731-2341_S_2004_05_08_yyk\_map.mod
! Writing 158 model components to file: J0731-2341_S_2004_05_08_yyk_map.mod
wobs J0731-2341_S_2004_05_08_yyk\_uvs.fits
! Writing UV FITS file: J0731-2341_S_2004_05_08_yyk_uvs.fits
wwins J0731-2341_S_2004_05_08_yyk\_map.win
! wwins: Wrote 3 windows to J0731-2341_S_2004_05_08_yyk_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.00490354 Jy
! Component: 100  -  total flux cleaned = 0.00776486 Jy
! Component: 150  -  total flux cleaned = 0.0104998 Jy
! Component: 200  -  total flux cleaned = 0.013022 Jy
! Component: 250  -  total flux cleaned = 0.014586 Jy
! Component: 300  -  total flux cleaned = 0.0163094 Jy
! Component: 350  -  total flux cleaned = 0.017946 Jy
! Component: 400  -  total flux cleaned = 0.0196155 Jy
! Component: 450  -  total flux cleaned = 0.0208895 Jy
! Component: 500  -  total flux cleaned = 0.0220082 Jy
! Component: 550  -  total flux cleaned = 0.0228889 Jy
! Component: 600  -  total flux cleaned = 0.0236437 Jy
! Component: 650  -  total flux cleaned = 0.0242823 Jy
! Component: 700  -  total flux cleaned = 0.025077 Jy
! Component: 750  -  total flux cleaned = 0.0257671 Jy
! Component: 800  -  total flux cleaned = 0.0266059 Jy
! Component: 850  -  total flux cleaned = 0.0272608 Jy
! Component: 900  -  total flux cleaned = 0.0278998 Jy
! Component: 950  -  total flux cleaned = 0.0282123 Jy
! Component: 1000  -  total flux cleaned = 0.0284426 Jy
! Component: 1050  -  total flux cleaned = 0.0287433 Jy
! Component: 1100  -  total flux cleaned = 0.02889 Jy
! Component: 1150  -  total flux cleaned = 0.0289619 Jy
! Component: 1200  -  total flux cleaned = 0.0291739 Jy
! Component: 1250  -  total flux cleaned = 0.0293113 Jy
! Component: 1300  -  total flux cleaned = 0.0294466 Jy
! Component: 1350  -  total flux cleaned = 0.029446 Jy
! Component: 1400  -  total flux cleaned = 0.029579 Jy
! Component: 1450  -  total flux cleaned = 0.0297743 Jy
! Component: 1500  -  total flux cleaned = 0.0300922 Jy
! Component: 1550  -  total flux cleaned = 0.0300288 Jy
! Component: 1600  -  total flux cleaned = 0.0301528 Jy
! Component: 1650  -  total flux cleaned = 0.0303372 Jy
! Component: 1700  -  total flux cleaned = 0.0303969 Jy
! Component: 1750  -  total flux cleaned = 0.0305752 Jy
! Component: 1800  -  total flux cleaned = 0.0305153 Jy
! Component: 1850  -  total flux cleaned = 0.0306889 Jy
! Component: 1900  -  total flux cleaned = 0.0306879 Jy
! Component: 1950  -  total flux cleaned = 0.0306306 Jy
! Component: 2000  -  total flux cleaned = 0.0305189 Jy
! Total flux subtracted in 2048 components = 0.0305198 Jy
! Clean residual min=-0.002927 max=0.003794 Jy/beam
! Clean residual mean=-0.000011 rms=0.001224 Jy/beam
! Combined flux in latest and established models = 0.558131 Jy
keep
! Adding 169 model components to the UV plane model.
! The established model now contains 327 components and 0.558131 Jy
![Exited script file: muppet]
wmap "J0731-2341_S_2004_05_08_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.953 x 7.74 at -1.735 degrees (North through East)
! Clean map  min=-0.007068  max=0.26124 Jy/beam
! Writing clean map to FITS file: J0731-2341_S_2004_05_08_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.261242 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.0012087 
device "J0731-2341_S_2004_05_08_yyk\_map.eps/VPS"
! Attempting to open device: 'J0731-2341_S_2004_05_08_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.38803 1.38803 2.77606 5.55211 11.1042 22.2085 44.4169 88.8338
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0036 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.261 
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.953 x 7.74 at -1.735 degrees (North through East)
! Clean map  min=-0.007068  max=0.26124 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0731-2341_S_2004_05_08_yyk\_map.gif/gif"
! Attempting to open device: 'J0731-2341_S_2004_05_08_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0731-2341_S_2004_05_08_yyk_uvs.log closed on Wed Dec  7 00:07:44 2005