! Started logfile: J2018-1109_X_2004_05_27_yyk_uvs.log on Wed Dec  7 00:49:19 2005
obs J2018-1109_X_2004_05_27_yyk_uve.fits
! Reading UV FITS file: J2018-1109_X_2004_05_27_yyk_uve.fits
! AN table 1: 8 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.822222 visibilities/baseline/integration-bin.
! Found source: J2018-1109
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1380 lines of history.
! 
! Reading 1184 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 J2018-1109_X_2004_05_27_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.200x0.200 milli-arcsec cellsize.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.208074 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 12 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 13 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 13 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 13 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.811576Jy  sigma=16.205057
! Fit after  self-cal, rms=0.811305Jy  sigma=16.206533
! 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=0.6829 mas, bmaj=1.787 mas, bpa=-2.914 degrees
! Estimated noise=1.36022 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.15684 Jy
! Component: 100  -  total flux cleaned = 0.202761 Jy
! Total flux subtracted in 100 components = 0.202761 Jy
! Clean residual min=-0.007855 max=0.017323 Jy/beam
! Clean residual mean=-0.000012 rms=0.002358 Jy/beam
! Combined flux in latest and established models = 0.202761 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 15 components and 0.202761 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.063975Jy  sigma=1.229752
! Fit after  self-cal, rms=0.063504Jy  sigma=1.222290
! Inverting map 
! Added new window around map position (0.8, -0.6).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0238785 Jy
! Component: 100  -  total flux cleaned = 0.0361247 Jy
! Total flux subtracted in 100 components = 0.0361247 Jy
! Clean residual min=-0.005880 max=0.005939 Jy/beam
! Clean residual mean=-0.000013 rms=0.001483 Jy/beam
! Combined flux in latest and established models = 0.238886 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 29 components and 0.238886 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.055262Jy  sigma=1.037725
! Fit after  self-cal, rms=0.055078Jy  sigma=1.034611
! 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=0.8718 mas, bmaj=2.145 mas, bpa=-0.3811 degrees
! Estimated noise=1.03337 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.00816859 Jy
! Component: 100  -  total flux cleaned = 0.0109056 Jy
! Component: 150  -  total flux cleaned = 0.0117523 Jy
! Component: 200  -  total flux cleaned = 0.0123391 Jy
! Total flux subtracted in 200 components = 0.0123391 Jy
! Clean residual min=-0.003976 max=0.004890 Jy/beam
! Clean residual mean=-0.000001 rms=0.001190 Jy/beam
! Combined flux in latest and established models = 0.251225 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 38 components and 0.251225 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.054195Jy  sigma=1.015987
! Fit after  self-cal, rms=0.054147Jy  sigma=1.015221
! 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.01296
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.97     HN        1.00     KP        1.00     
!   LA        0.97     MK        1.00     NL        0.98     OV        1.03     
!   PT        0.98     SC        0.97     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.02702
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        0.99     HN        0.99     KP        0.92     
!   LA        0.95     MK        1.00     NL        0.97     OV        1.01     
!   PT        1.01     SC        0.94     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.992289
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        1.11     HN        0.90     KP        0.87     
!   LA        0.99     MK        1.05     NL        1.01     OV        1.00     
!   PT        1.10     SC        1.01     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.973781
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.03     HN        0.98     KP        0.95     
!   LA        0.99     MK        1.01     NL        1.05     OV        1.03     
!   PT        1.12     SC        1.06     
! 
! 
! Fit before self-cal, rms=0.054147Jy  sigma=1.015221
! Fit after  self-cal, rms=0.052315Jy  sigma=0.984764
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.052315Jy  sigma=0.984764
! Fit after  self-cal, rms=0.052313Jy  sigma=0.984724
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8709 mas, bmaj=2.143 mas, bpa=-0.04545 degrees
! Estimated noise=1.03551 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.00220341 Jy
! Component: 100  -  total flux cleaned = 0.00255143 Jy
! Component: 150  -  total flux cleaned = 0.00263534 Jy
! Component: 200  -  total flux cleaned = 0.00266978 Jy
! Total flux subtracted in 200 components = 0.00266978 Jy
! Clean residual min=-0.004072 max=0.004248 Jy/beam
! Clean residual mean=-0.000004 rms=0.001001 Jy/beam
! Combined flux in latest and established models = 0.253895 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 44 components and 0.253894 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.052246Jy  sigma=0.982331
! Fit after  self-cal, rms=0.052230Jy  sigma=0.982147
! 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.052230Jy  sigma=0.982147
! Fit after  self-cal, rms=0.050719Jy  sigma=0.950375
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.000631218 Jy
! Component: 100  -  total flux cleaned = 0.000739223 Jy
! Component: 150  -  total flux cleaned = 0.000770567 Jy
! Component: 200  -  total flux cleaned = 0.00079805 Jy
! Total flux subtracted in 200 components = 0.00079805 Jy
! Clean residual min=-0.004032 max=0.004424 Jy/beam
! Clean residual mean=-0.000004 rms=0.000999 Jy/beam
! Combined flux in latest and established models = 0.254693 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 46 components and 0.254693 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.050702Jy  sigma=0.949650
! Fit after  self-cal, rms=0.050607Jy  sigma=0.947913
! 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: 0.8709 x 2.143 at -0.04545 degrees (North through East)
! Clean map  min=-0.0039113  max=0.18678 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.050607Jy  sigma=0.947913
! Fit after  self-cal, rms=0.050135Jy  sigma=0.924867
! 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.050135Jy  sigma=0.924867
! Fit after  self-cal, rms=0.050124Jy  sigma=0.924709
! Inverting map and beam 
! Estimated beam: bmin=0.8669 mas, bmaj=2.148 mas, bpa=-0.08283 degrees
! Estimated noise=1.03047 mJy/beam.
! Added new window around map position (11, 1.8).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00340791 Jy
! Component: 100  -  total flux cleaned = 0.00394528 Jy
! Component: 150  -  total flux cleaned = 0.00429662 Jy
! Component: 200  -  total flux cleaned = 0.00465068 Jy
! Total flux subtracted in 200 components = 0.00465068 Jy
! Clean residual min=-0.003545 max=0.002894 Jy/beam
! Clean residual mean=-0.000010 rms=0.000859 Jy/beam
! Combined flux in latest and established models = 0.259343 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 63 components and 0.259343 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.049750Jy  sigma=0.918169
! Fit after  self-cal, rms=0.049736Jy  sigma=0.917953
! 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.049736Jy  sigma=0.917953
! Fit after  self-cal, rms=0.049722Jy  sigma=0.912105
! 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.049722Jy  sigma=0.912105
! Fit after  self-cal, rms=0.049726Jy  sigma=0.912077
! Inverting map and beam 
! Estimated beam: bmin=0.8666 mas, bmaj=2.144 mas, bpa=0.333 degrees
! Estimated noise=1.02969 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00120196 Jy
! Component: 100  -  total flux cleaned = 0.00162446 Jy
! Component: 150  -  total flux cleaned = 0.0018117 Jy
! Component: 200  -  total flux cleaned = 0.00194268 Jy
! Total flux subtracted in 200 components = 0.00194268 Jy
! Clean residual min=-0.003617 max=0.002810 Jy/beam
! Clean residual mean=-0.000008 rms=0.000860 Jy/beam
! Combined flux in latest and established models = 0.261286 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 78 components and 0.261286 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.049635Jy  sigma=0.910410
! Fit after  self-cal, rms=0.049633Jy  sigma=0.910364
! Inverting map 
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
win_mult = win_mult * 1.4
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.203 mas, bmaj=4.087 mas, bpa=0.842 degrees
! Estimated noise=1.33299 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.00107168 Jy
! Component: 100  -  total flux cleaned = 0.00147781 Jy
! Component: 150  -  total flux cleaned = 0.00162939 Jy
! Component: 200  -  total flux cleaned = 0.00174024 Jy
! Total flux subtracted in 200 components = 0.00174024 Jy
! Clean residual min=-0.004941 max=0.003591 Jy/beam
! Clean residual mean=-0.000016 rms=0.001176 Jy/beam
! Combined flux in latest and established models = 0.263026 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 89 components and 0.263026 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.049617Jy  sigma=0.910243
! Fit after  self-cal, rms=0.049621Jy  sigma=0.910207
! 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=0.6836 mas, bmaj=1.792 mas, bpa=-2.486 degrees
! Estimated noise=1.35253 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.157971 Jy
! Component: 100  -  total flux cleaned = 0.205548 Jy
! Component: 150  -  total flux cleaned = 0.228049 Jy
! Component: 200  -  total flux cleaned = 0.240252 Jy
! Total flux subtracted in 200 components = 0.240252 Jy
! Clean residual min=-0.004672 max=0.004890 Jy/beam
! Clean residual mean=-0.000011 rms=0.001209 Jy/beam
! Combined flux in latest and established models = 0.240252 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 21 model components to the UV plane model.
! The established model now contains 21 components and 0.240252 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.8666 mas, bmaj=2.144 mas, bpa=0.333 degrees
! Estimated noise=1.02969 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.00892475 Jy
! Component: 100  -  total flux cleaned = 0.0139641 Jy
! Component: 150  -  total flux cleaned = 0.016913 Jy
! Component: 200  -  total flux cleaned = 0.0182841 Jy
! Total flux subtracted in 200 components = 0.0182841 Jy
! Clean residual min=-0.003956 max=0.003082 Jy/beam
! Clean residual mean=-0.000009 rms=0.000900 Jy/beam
! Combined flux in latest and established models = 0.258536 Jy
! Adding 34 model components to the UV plane model.
! The established model now contains 45 components and 0.258536 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.203 mas, bmaj=4.087 mas, bpa=0.842 degrees
! Estimated noise=1.33299 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.00254929 Jy
! Component: 100  -  total flux cleaned = 0.00344245 Jy
! Component: 150  -  total flux cleaned = 0.00397037 Jy
! Component: 200  -  total flux cleaned = 0.00433208 Jy
! Total flux subtracted in 200 components = 0.00433208 Jy
! Clean residual min=-0.005051 max=0.003703 Jy/beam
! Clean residual mean=-0.000017 rms=0.001186 Jy/beam
! Combined flux in latest and established models = 0.262868 Jy
! Adding 17 model components to the UV plane model.
! The established model now contains 60 components and 0.262868 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.8666 mas, bmaj=2.144 mas, bpa=0.333 degrees
! Estimated noise=1.02969 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000538982 Jy
! Component: 100  -  total flux cleaned = -0.000612071 Jy
! Component: 150  -  total flux cleaned = -0.000678105 Jy
! Component: 200  -  total flux cleaned = -0.000680709 Jy
! Total flux subtracted in 200 components = -0.000680709 Jy
! Clean residual min=-0.003682 max=0.003102 Jy/beam
! Clean residual mean=-0.000008 rms=0.000870 Jy/beam
! Combined flux in latest and established models = 0.262187 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 72 components and 0.262187 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.049729Jy  sigma=0.911837
! Fit after  self-cal, rms=0.049718Jy  sigma=0.911595
wmodel J2018-1109_X_2004_05_27_yyk\_map.mod
! Writing 72 model components to file: J2018-1109_X_2004_05_27_yyk_map.mod
wobs J2018-1109_X_2004_05_27_yyk\_uvs.fits
! Writing UV FITS file: J2018-1109_X_2004_05_27_yyk_uvs.fits
wwins J2018-1109_X_2004_05_27_yyk\_map.win
! wwins: Wrote 3 windows to J2018-1109_X_2004_05_27_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.00113722 Jy
! Component: 100  -  total flux cleaned = -0.00147162 Jy
! Component: 150  -  total flux cleaned = -0.00147201 Jy
! Component: 200  -  total flux cleaned = -0.0013715 Jy
! Component: 250  -  total flux cleaned = -0.00117992 Jy
! Component: 300  -  total flux cleaned = -0.000948071 Jy
! Component: 350  -  total flux cleaned = -0.000813131 Jy
! Component: 400  -  total flux cleaned = -0.000547425 Jy
! Component: 450  -  total flux cleaned = -0.000245123 Jy
! Component: 500  -  total flux cleaned = -3.41736e-05 Jy
! Component: 550  -  total flux cleaned = 0.000172168 Jy
! Component: 600  -  total flux cleaned = 0.000413895 Jy
! Component: 650  -  total flux cleaned = 0.000690346 Jy
! Component: 700  -  total flux cleaned = 0.000883307 Jy
! Component: 750  -  total flux cleaned = 0.00114853 Jy
! Component: 800  -  total flux cleaned = 0.00129676 Jy
! Component: 850  -  total flux cleaned = 0.00162392 Jy
! Component: 900  -  total flux cleaned = 0.0016587 Jy
! Component: 950  -  total flux cleaned = 0.00179962 Jy
! Component: 1000  -  total flux cleaned = 0.00197195 Jy
! Component: 1050  -  total flux cleaned = 0.00214188 Jy
! Component: 1100  -  total flux cleaned = 0.00224206 Jy
! Component: 1150  -  total flux cleaned = 0.00227488 Jy
! Component: 1200  -  total flux cleaned = 0.00247036 Jy
! Component: 1250  -  total flux cleaned = 0.00246988 Jy
! Component: 1300  -  total flux cleaned = 0.00250129 Jy
! Component: 1350  -  total flux cleaned = 0.00256441 Jy
! Component: 1400  -  total flux cleaned = 0.0027496 Jy
! Component: 1450  -  total flux cleaned = 0.00287072 Jy
! Component: 1500  -  total flux cleaned = 0.00290099 Jy
! Component: 1550  -  total flux cleaned = 0.00296075 Jy
! Component: 1600  -  total flux cleaned = 0.00313705 Jy
! Component: 1650  -  total flux cleaned = 0.00316667 Jy
! Component: 1700  -  total flux cleaned = 0.00339639 Jy
! Component: 1750  -  total flux cleaned = 0.00353881 Jy
! Component: 1800  -  total flux cleaned = 0.00376325 Jy
! Component: 1850  -  total flux cleaned = 0.00387425 Jy
! Component: 1900  -  total flux cleaned = 0.00401194 Jy
! Component: 1950  -  total flux cleaned = 0.00403931 Jy
! Component: 2000  -  total flux cleaned = 0.00414714 Jy
! Total flux subtracted in 2048 components = 0.00428082 Jy
! Clean residual min=-0.001657 max=0.001840 Jy/beam
! Clean residual mean=-0.000007 rms=0.000504 Jy/beam
! Combined flux in latest and established models = 0.266468 Jy
keep
! Adding 140 model components to the UV plane model.
! The established model now contains 212 components and 0.266468 Jy
![Exited script file: muppet]
wmap "J2018-1109_X_2004_05_27_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8666 x 2.144 at 0.333 degrees (North through East)
! Clean map  min=-0.0029768  max=0.18479 Jy/beam
! Writing clean map to FITS file: J2018-1109_X_2004_05_27_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.184791 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000503455 
device "J2018-1109_X_2004_05_27_yyk\_map.eps/VPS"
! Attempting to open device: 'J2018-1109_X_2004_05_27_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.817337 0.817337 1.63467 3.26935 6.5387 13.0774 26.1548 52.3096
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0015 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.184 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8666 x 2.144 at 0.333 degrees (North through East)
! Clean map  min=-0.0029768  max=0.18479 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2018-1109_X_2004_05_27_yyk\_map.gif/gif"
! Attempting to open device: 'J2018-1109_X_2004_05_27_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2018-1109_X_2004_05_27_yyk_uvs.log closed on Wed Dec  7 00:49:23 2005