! Started logfile: J0118-2141_S_1997_08_27_yyk_uvs.log on Sun Jan  7 15:37:16 2007
obs J0118-2141_S_1997_08_27_yyk_uva.fits
! Reading UV FITS file: J0118-2141_S_1997_08_27_yyk_uva.fits
! AN table 1: 150 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.916 visibilities/baseline/integration-bin.
! Found source: J0118-2141
! 
! 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.22447e+09        8e+06          1        8e+06
!  02        2  2.23447e+09        8e+06          1        8e+06
!  03        3  2.29447e+09        8e+06          1        8e+06
!  04        4  2.32447e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 702 lines of history.
! 
! Reading 24732 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 J0118-2141_S_1997_08_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.500x0.500 milli-arcsec cellsize.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.697904 Jy 
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.712 mas, bmaj=6.677 mas, bpa=-2.596 degrees
! Estimated noise=1925.99 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.499047 Jy
! Component: 100  -  total flux cleaned = 0.56904 Jy
! Total flux subtracted in 100 components = 0.56904 Jy
! Clean residual min=-0.025264 max=0.035710 Jy/beam
! Clean residual mean=0.000094 rms=0.008291 Jy/beam
! Combined flux in latest and established models = 0.56904 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.56904 Jy
! 
! Correcting IF 1.
!  A total of 272 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 66 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 72 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 66 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.359905Jy  sigma=0.001242
! Fit after  self-cal, rms=0.356204Jy  sigma=0.001238
! Inverting map and beam 
! Estimated beam: bmin=2.712 mas, bmaj=6.677 mas, bpa=-2.596 degrees
! Estimated noise=1926.51 mJy/beam.
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=3.439 mas, bmaj=8.796 mas, bpa=-5.255 degrees
! Estimated noise=1189.97 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.0290373 Jy
! Component: 100  -  total flux cleaned = 0.0360611 Jy
! Component: 150  -  total flux cleaned = 0.0366058 Jy
! Component: 200  -  total flux cleaned = 0.0369087 Jy
! Total flux subtracted in 200 components = 0.0369087 Jy
! Clean residual min=-0.013642 max=0.023455 Jy/beam
! Clean residual mean=0.000400 rms=0.004504 Jy/beam
! Combined flux in latest and established models = 0.605949 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 22 components and 0.605949 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.353825Jy  sigma=0.001231
! Fit after  self-cal, rms=0.353786Jy  sigma=0.001231
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.439 x 8.796 at -5.255 degrees (North through East)
! Clean map  min=-0.013065  max=0.5904 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 1.02323
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.10     HN        0.93     KP        0.92     
!   LA        0.98     MK        1.01     NL        1.00*    OV        1.09     
!   PT        0.98     SC        0.79     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.986831
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.15     HN        1.04     KP        0.96     
!   LA        1.09     MK        1.06     NL        0.94     OV        1.03     
!   PT        0.95     SC        0.90     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.04344
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.08     HN        0.93     KP        0.91     
!   LA        0.81     MK        0.89     NL        0.94     OV        0.95     
!   PT        1.09     SC        1.02     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.990987
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.13     HN        1.17     KP        0.94     
!   LA        0.90     MK        1.06     NL        1.04     OV        0.93     
!   PT        0.92     SC        1.02     
! 
! 
! Fit before self-cal, rms=0.353786Jy  sigma=0.001231
! Fit after  self-cal, rms=0.339966Jy  sigma=0.001206
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.339966Jy  sigma=0.001206
! Fit after  self-cal, rms=0.339966Jy  sigma=0.001206
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.42 mas, bmaj=8.622 mas, bpa=-4.117 degrees
! Estimated noise=1199.32 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.0113675 Jy
! Component: 100  -  total flux cleaned = 0.0117447 Jy
! Component: 150  -  total flux cleaned = 0.0117496 Jy
! Component: 200  -  total flux cleaned = 0.0117544 Jy
! Total flux subtracted in 200 components = 0.0117544 Jy
! Clean residual min=-0.007047 max=0.008454 Jy/beam
! Clean residual mean=0.000128 rms=0.002165 Jy/beam
! Combined flux in latest and established models = 0.617703 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 35 components and 0.617703 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.339719Jy  sigma=0.001205
! Fit after  self-cal, rms=0.339678Jy  sigma=0.001205
! 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.339678Jy  sigma=0.001205
! Fit after  self-cal, rms=0.336434Jy  sigma=0.001192
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.00176089 Jy
! Component: 100  -  total flux cleaned = 0.00166705 Jy
! Component: 150  -  total flux cleaned = 0.00159044 Jy
! Component: 200  -  total flux cleaned = 0.00152189 Jy
! Total flux subtracted in 200 components = 0.00152189 Jy
! Clean residual min=-0.007229 max=0.008024 Jy/beam
! Clean residual mean=0.000125 rms=0.002104 Jy/beam
! Combined flux in latest and established models = 0.619225 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 42 components and 0.619225 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.336387Jy  sigma=0.001192
! Fit after  self-cal, rms=0.336071Jy  sigma=0.001191
! 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: 3.42 x 8.622 at -4.117 degrees (North through East)
! Clean map  min=-0.0068785  max=0.59981 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.336071Jy  sigma=0.001191
! Fit after  self-cal, rms=0.423574Jy  sigma=0.001178
! 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.423574Jy  sigma=0.001178
! Fit after  self-cal, rms=0.423565Jy  sigma=0.001178
! Inverting map and beam 
! Estimated beam: bmin=3.394 mas, bmaj=8.627 mas, bpa=-3.95 degrees
! Estimated noise=1194.35 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00235093 Jy
! Component: 100  -  total flux cleaned = 0.00235374 Jy
! Component: 150  -  total flux cleaned = 0.00235721 Jy
! Component: 200  -  total flux cleaned = 0.00229209 Jy
! Total flux subtracted in 200 components = 0.00229209 Jy
! Clean residual min=-0.006050 max=0.006478 Jy/beam
! Clean residual mean=0.000141 rms=0.001691 Jy/beam
! Combined flux in latest and established models = 0.621517 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 47 components and 0.621517 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.423509Jy  sigma=0.001177
! Fit after  self-cal, rms=0.423517Jy  sigma=0.001177
! 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.423517Jy  sigma=0.001177
! Fit after  self-cal, rms=0.422276Jy  sigma=0.001175
! 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.422276Jy  sigma=0.001175
! Fit after  self-cal, rms=0.422284Jy  sigma=0.001175
! Inverting map and beam 
! Estimated beam: bmin=3.378 mas, bmaj=8.581 mas, bpa=-3.815 degrees
! Estimated noise=1194.05 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00230706 Jy
! Component: 100  -  total flux cleaned = 0.00237976 Jy
! Component: 150  -  total flux cleaned = 0.00250329 Jy
! Component: 200  -  total flux cleaned = 0.00260345 Jy
! Total flux subtracted in 200 components = 0.00260345 Jy
! Clean residual min=-0.005950 max=0.006404 Jy/beam
! Clean residual mean=0.000144 rms=0.001657 Jy/beam
! Combined flux in latest and established models = 0.62412 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 51 components and 0.624121 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.422250Jy  sigma=0.001175
! Fit after  self-cal, rms=0.422250Jy  sigma=0.001175
! 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=8.319 mas, bmaj=17.58 mas, bpa=4.737 degrees
! Estimated noise=1502.86 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.00199598 Jy
! Component: 100  -  total flux cleaned = 0.0018638 Jy
! Component: 150  -  total flux cleaned = 0.00176676 Jy
! Component: 200  -  total flux cleaned = 0.00169655 Jy
! Total flux subtracted in 200 components = 0.00169655 Jy
! Clean residual min=-0.007969 max=0.008656 Jy/beam
! Clean residual mean=0.000275 rms=0.002463 Jy/beam
! Combined flux in latest and established models = 0.625817 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 61 components and 0.625817 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.422264Jy  sigma=0.001175
! Fit after  self-cal, rms=0.422249Jy  sigma=0.001175
! Inverting map 
uvtaper 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.699 mas, bmaj=6.604 mas, bpa=-1.731 degrees
! Estimated noise=1970.82 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.515013 Jy
! Component: 100  -  total flux cleaned = 0.590242 Jy
! Component: 150  -  total flux cleaned = 0.614218 Jy
! Component: 200  -  total flux cleaned = 0.621163 Jy
! Total flux subtracted in 200 components = 0.621163 Jy
! Clean residual min=-0.009504 max=0.009133 Jy/beam
! Clean residual mean=0.000022 rms=0.002541 Jy/beam
! Combined flux in latest and established models = 0.621163 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 16 model components to the UV plane model.
! The established model now contains 16 components and 0.621163 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.378 mas, bmaj=8.581 mas, bpa=-3.815 degrees
! Estimated noise=1194.05 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)
! Added new window around map position (3.5, -2.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00691639 Jy
! Component: 100  -  total flux cleaned = 0.00744885 Jy
! Component: 150  -  total flux cleaned = 0.00757934 Jy
! Component: 200  -  total flux cleaned = 0.00767676 Jy
! Total flux subtracted in 200 components = 0.00767676 Jy
! Clean residual min=-0.005755 max=0.006216 Jy/beam
! Clean residual mean=0.000120 rms=0.001579 Jy/beam
! Combined flux in latest and established models = 0.62884 Jy
! Adding 22 model components to the UV plane model.
! The established model now contains 38 components and 0.62884 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=8.319 mas, bmaj=17.58 mas, bpa=4.737 degrees
! Estimated noise=1502.86 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.00166984 Jy
! Component: 100  -  total flux cleaned = 0.00140506 Jy
! Component: 150  -  total flux cleaned = 0.00124915 Jy
! Component: 200  -  total flux cleaned = 0.00116266 Jy
! Total flux subtracted in 200 components = 0.00116266 Jy
! Clean residual min=-0.007566 max=0.007116 Jy/beam
! Clean residual mean=0.000228 rms=0.002308 Jy/beam
! Combined flux in latest and established models = 0.630003 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 57 components and 0.630003 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.378 mas, bmaj=8.581 mas, bpa=-3.815 degrees
! Estimated noise=1194.05 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000428695 Jy
! Component: 100  -  total flux cleaned = -0.000422955 Jy
! Component: 150  -  total flux cleaned = -0.00050143 Jy
! Component: 200  -  total flux cleaned = -0.000569405 Jy
! Total flux subtracted in 200 components = -0.000569405 Jy
! Clean residual min=-0.005795 max=0.006177 Jy/beam
! Clean residual mean=0.000117 rms=0.001551 Jy/beam
! Combined flux in latest and established models = 0.629433 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 67 components and 0.629433 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.422204Jy  sigma=0.001175
! Fit after  self-cal, rms=0.422210Jy  sigma=0.001175
wmodel J0118-2141_S_1997_08_27_yyk\_map.mod
! Writing 67 model components to file: J0118-2141_S_1997_08_27_yyk_map.mod
wobs J0118-2141_S_1997_08_27_yyk\_uvs.fits
! Writing UV FITS file: J0118-2141_S_1997_08_27_yyk_uvs.fits
wwins J0118-2141_S_1997_08_27_yyk\_map.win
! wwins: Wrote 2 windows to J0118-2141_S_1997_08_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.00144954 Jy
! Component: 100  -  total flux cleaned = 0.00204252 Jy
! Component: 150  -  total flux cleaned = 0.00221915 Jy
! Component: 200  -  total flux cleaned = 0.00222269 Jy
! Component: 250  -  total flux cleaned = 0.0023742 Jy
! Component: 300  -  total flux cleaned = 0.00287721 Jy
! Component: 350  -  total flux cleaned = 0.00329276 Jy
! Component: 400  -  total flux cleaned = 0.00395555 Jy
! Component: 450  -  total flux cleaned = 0.0045253 Jy
! Component: 500  -  total flux cleaned = 0.00489117 Jy
! Component: 550  -  total flux cleaned = 0.00518441 Jy
! Component: 600  -  total flux cleaned = 0.0054111 Jy
! Component: 650  -  total flux cleaned = 0.00552068 Jy
! Component: 700  -  total flux cleaned = 0.0055212 Jy
! Component: 750  -  total flux cleaned = 0.00562511 Jy
! Component: 800  -  total flux cleaned = 0.00577588 Jy
! Component: 850  -  total flux cleaned = 0.00592279 Jy
! Component: 900  -  total flux cleaned = 0.00606591 Jy
! Component: 950  -  total flux cleaned = 0.00620689 Jy
! Component: 1000  -  total flux cleaned = 0.00629836 Jy
! Component: 1050  -  total flux cleaned = 0.00629893 Jy
! Component: 1100  -  total flux cleaned = 0.00629952 Jy
! Component: 1150  -  total flux cleaned = 0.006257 Jy
! Component: 1200  -  total flux cleaned = 0.00617356 Jy
! Component: 1250  -  total flux cleaned = 0.00629895 Jy
! Component: 1300  -  total flux cleaned = 0.00625867 Jy
! Component: 1350  -  total flux cleaned = 0.00633914 Jy
! Component: 1400  -  total flux cleaned = 0.00625979 Jy
! Component: 1450  -  total flux cleaned = 0.00633748 Jy
! Component: 1500  -  total flux cleaned = 0.0063374 Jy
! Component: 1550  -  total flux cleaned = 0.00637522 Jy
! Component: 1600  -  total flux cleaned = 0.00648569 Jy
! Component: 1650  -  total flux cleaned = 0.00655799 Jy
! Component: 1700  -  total flux cleaned = 0.00655762 Jy
! Component: 1750  -  total flux cleaned = 0.00666303 Jy
! Component: 1800  -  total flux cleaned = 0.00666323 Jy
! Component: 1850  -  total flux cleaned = 0.00669824 Jy
! Component: 1900  -  total flux cleaned = 0.00669879 Jy
! Component: 1950  -  total flux cleaned = 0.00673195 Jy
! Component: 2000  -  total flux cleaned = 0.006699 Jy
! Total flux subtracted in 2048 components = 0.00676348 Jy
! Clean residual min=-0.002037 max=0.001860 Jy/beam
! Clean residual mean=0.000038 rms=0.000653 Jy/beam
! Combined flux in latest and established models = 0.636197 Jy
keep
! Adding 131 model components to the UV plane model.
! The established model now contains 198 components and 0.636197 Jy
![Exited script file: muppet]
wmap "J0118-2141_S_1997_08_27_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.378 x 8.581 at -3.815 degrees (North through East)
! Clean map  min=-0.0054509  max=0.59948 Jy/beam
! Writing clean map to FITS file: J0118-2141_S_1997_08_27_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.599481 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000643545 
device "J0118-2141_S_1997_08_27_yyk\_map.eps/VPS"
! Attempting to open device: 'J0118-2141_S_1997_08_27_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.322051 0.322051 0.644103 1.28821 2.57641 5.15282 10.3056 20.6113 41.2226 82.4452
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.599 
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.378 x 8.581 at -3.815 degrees (North through East)
! Clean map  min=-0.0054509  max=0.59948 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0118-2141_S_1997_08_27_yyk\_map.gif/gif"
! Attempting to open device: 'J0118-2141_S_1997_08_27_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0118-2141_S_1997_08_27_yyk_uvs.log closed on Sun Jan  7 15:37:24 2007