! Started logfile: J0038-2459_S_1997_07_02_yyk_uvs.log on Sun Jan  7 15:25:53 2007
obs J0038-2459_S_1997_07_02_yyk_uva.fits
! Reading UV FITS file: J0038-2459_S_1997_07_02_yyk_uva.fits
! AN table 1: 144 integrations on 45 of 45 possible baselines.
! Apparent sampling: 1.73056 visibilities/baseline/integration-bin.
! Found source: J0038-2459
! 
! 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 754 lines of history.
! 
! Reading 44856 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 J0038-2459_S_1997_07_02_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.521299 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.756 mas, bmaj=7.156 mas, bpa=-1.316 degrees
! Estimated noise=1464.55 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.319798 Jy
! Component: 100  -  total flux cleaned = 0.374763 Jy
! Total flux subtracted in 100 components = 0.374763 Jy
! Clean residual min=-0.020389 max=0.035198 Jy/beam
! Clean residual mean=0.000156 rms=0.006697 Jy/beam
! Combined flux in latest and established models = 0.374763 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.374763 Jy
! 
! Correcting IF 1.
!  A total of 276 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 72 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 70 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 72 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.340486Jy  sigma=0.001687
! Fit after  self-cal, rms=0.335688Jy  sigma=0.001678
! Inverting map and beam 
! Estimated beam: bmin=2.756 mas, bmaj=7.156 mas, bpa=-1.316 degrees
! Estimated noise=1464.55 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.646 mas, bmaj=9.674 mas, bpa=-1.027 degrees
! Estimated noise=859.125 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.0430728 Jy
! Component: 100  -  total flux cleaned = 0.0555457 Jy
! Component: 150  -  total flux cleaned = 0.0594325 Jy
! Component: 200  -  total flux cleaned = 0.0598383 Jy
! Total flux subtracted in 200 components = 0.0598383 Jy
! Clean residual min=-0.013445 max=0.018983 Jy/beam
! Clean residual mean=0.000502 rms=0.004809 Jy/beam
! Combined flux in latest and established models = 0.434601 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 20 components and 0.434601 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331874Jy  sigma=0.001657
! Fit after  self-cal, rms=0.331829Jy  sigma=0.001657
! 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.646 x 9.674 at -1.027 degrees (North through East)
! Clean map  min=-0.013128  max=0.38991 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.01248
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.14     HN        1.02     KP        0.89     
!   LA        0.97     MK        0.99     NL        1.00*    OV        1.11     
!   PT        0.94     SC        0.83     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.974869
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.17     HN        1.08     KP        0.94     
!   LA        1.09     MK        1.09     NL        0.97     OV        1.08     
!   PT        0.91     SC        0.91     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.03695
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.07     HN        0.98     KP        0.90     
!   LA        0.79     MK        0.89     NL        0.94     OV        0.99     
!   PT        1.06     SC        1.04     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.984019
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.14     HN        1.23     KP        0.93     
!   LA        0.89     MK        1.04     NL        1.06     OV        0.95     
!   PT        0.90     SC        1.00     
! 
! 
! Fit before self-cal, rms=0.331829Jy  sigma=0.001657
! Fit after  self-cal, rms=0.323662Jy  sigma=0.001636
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.323662Jy  sigma=0.001636
! Fit after  self-cal, rms=0.323673Jy  sigma=0.001636
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.642 mas, bmaj=9.564 mas, bpa=0.01762 degrees
! Estimated noise=851.421 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 (-9.5, 0.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0135837 Jy
! Component: 100  -  total flux cleaned = 0.0144502 Jy
! Component: 150  -  total flux cleaned = 0.0142361 Jy
! Component: 200  -  total flux cleaned = 0.0140486 Jy
! Total flux subtracted in 200 components = 0.0140486 Jy
! Clean residual min=-0.005561 max=0.007123 Jy/beam
! Clean residual mean=0.000154 rms=0.001624 Jy/beam
! Combined flux in latest and established models = 0.44865 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 44 components and 0.44865 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.323052Jy  sigma=0.001632
! Fit after  self-cal, rms=0.322945Jy  sigma=0.001632
! 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.322945Jy  sigma=0.001632
! Fit after  self-cal, rms=0.321529Jy  sigma=0.001625
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.00292844 Jy
! Component: 100  -  total flux cleaned = 0.00309688 Jy
! Component: 150  -  total flux cleaned = 0.00309001 Jy
! Component: 200  -  total flux cleaned = 0.00295268 Jy
! Total flux subtracted in 200 components = 0.00295268 Jy
! Clean residual min=-0.005799 max=0.006409 Jy/beam
! Clean residual mean=0.000137 rms=0.001487 Jy/beam
! Combined flux in latest and established models = 0.451602 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 62 components and 0.451602 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321311Jy  sigma=0.001625
! Fit after  self-cal, rms=0.321133Jy  sigma=0.001624
! 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.642 x 9.564 at 0.01762 degrees (North through East)
! Clean map  min=-0.0058989  max=0.38861 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.321133Jy  sigma=0.001624
! Fit after  self-cal, rms=0.345645Jy  sigma=0.001617
! 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.345645Jy  sigma=0.001617
! Fit after  self-cal, rms=0.345625Jy  sigma=0.001617
! Inverting map and beam 
! Estimated beam: bmin=3.615 mas, bmaj=9.575 mas, bpa=-0.4439 degrees
! Estimated noise=847.255 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00358135 Jy
! Component: 100  -  total flux cleaned = 0.00358363 Jy
! Component: 150  -  total flux cleaned = 0.0036912 Jy
! Component: 200  -  total flux cleaned = 0.00378856 Jy
! Total flux subtracted in 200 components = 0.00378856 Jy
! Clean residual min=-0.004473 max=0.005140 Jy/beam
! Clean residual mean=0.000169 rms=0.001262 Jy/beam
! Combined flux in latest and established models = 0.455391 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 77 components and 0.455391 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.345541Jy  sigma=0.001617
! Fit after  self-cal, rms=0.345528Jy  sigma=0.001617
! 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.345528Jy  sigma=0.001617
! Fit after  self-cal, rms=0.350518Jy  sigma=0.001615
! 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.350518Jy  sigma=0.001615
! Fit after  self-cal, rms=0.350524Jy  sigma=0.001615
! Inverting map and beam 
! Estimated beam: bmin=3.606 mas, bmaj=9.567 mas, bpa=-0.548 degrees
! Estimated noise=847.44 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00195634 Jy
! Component: 100  -  total flux cleaned = 0.00177618 Jy
! Component: 150  -  total flux cleaned = 0.00177301 Jy
! Component: 200  -  total flux cleaned = 0.00170474 Jy
! Total flux subtracted in 200 components = 0.00170474 Jy
! Clean residual min=-0.004291 max=0.004853 Jy/beam
! Clean residual mean=0.000163 rms=0.001198 Jy/beam
! Combined flux in latest and established models = 0.457096 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 82 components and 0.457096 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.350482Jy  sigma=0.001615
! Fit after  self-cal, rms=0.350488Jy  sigma=0.001615
! 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.847 mas, bmaj=21.13 mas, bpa=4.971 degrees
! Estimated noise=1028.72 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.000535782 Jy
! Component: 100  -  total flux cleaned = 0.000726899 Jy
! Component: 150  -  total flux cleaned = 0.000777985 Jy
! Component: 200  -  total flux cleaned = 0.00087006 Jy
! Total flux subtracted in 200 components = 0.00087006 Jy
! Clean residual min=-0.003018 max=0.004571 Jy/beam
! Clean residual mean=0.000269 rms=0.001212 Jy/beam
! Combined flux in latest and established models = 0.457966 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 96 components and 0.457966 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.350479Jy  sigma=0.001615
! Fit after  self-cal, rms=0.350486Jy  sigma=0.001615
! 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.741 mas, bmaj=7.073 mas, bpa=-1.057 degrees
! Estimated noise=1481.1 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.3327 Jy
! Component: 100  -  total flux cleaned = 0.391993 Jy
! Component: 150  -  total flux cleaned = 0.418265 Jy
! Component: 200  -  total flux cleaned = 0.433361 Jy
! Total flux subtracted in 200 components = 0.433361 Jy
! Clean residual min=-0.009657 max=0.008649 Jy/beam
! Clean residual mean=0.000031 rms=0.002391 Jy/beam
! Combined flux in latest and established models = 0.433361 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 17 model components to the UV plane model.
! The established model now contains 17 components and 0.433361 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.606 mas, bmaj=9.567 mas, bpa=-0.548 degrees
! Estimated noise=847.44 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.0125391 Jy
! Component: 100  -  total flux cleaned = 0.0184823 Jy
! Component: 150  -  total flux cleaned = 0.0204932 Jy
! Component: 200  -  total flux cleaned = 0.0211086 Jy
! Total flux subtracted in 200 components = 0.0211086 Jy
! Clean residual min=-0.004509 max=0.005101 Jy/beam
! Clean residual mean=0.000173 rms=0.001246 Jy/beam
! Combined flux in latest and established models = 0.454469 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 36 components and 0.454469 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.847 mas, bmaj=21.13 mas, bpa=4.971 degrees
! Estimated noise=1028.72 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.00148571 Jy
! Component: 100  -  total flux cleaned = 0.00191822 Jy
! Component: 150  -  total flux cleaned = 0.00209216 Jy
! Component: 200  -  total flux cleaned = 0.00225343 Jy
! Total flux subtracted in 200 components = 0.00225343 Jy
! Clean residual min=-0.003176 max=0.004713 Jy/beam
! Clean residual mean=0.000278 rms=0.001212 Jy/beam
! Combined flux in latest and established models = 0.456723 Jy
! Adding 18 model components to the UV plane model.
! The established model now contains 52 components and 0.456723 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.606 mas, bmaj=9.567 mas, bpa=-0.548 degrees
! Estimated noise=847.44 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000486821 Jy
! Component: 100  -  total flux cleaned = -0.000493635 Jy
! Component: 150  -  total flux cleaned = -0.000493476 Jy
! Component: 200  -  total flux cleaned = -0.000337873 Jy
! Total flux subtracted in 200 components = -0.000337873 Jy
! Clean residual min=-0.004196 max=0.004612 Jy/beam
! Clean residual mean=0.000164 rms=0.001180 Jy/beam
! Combined flux in latest and established models = 0.456385 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 68 components and 0.456385 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.350502Jy  sigma=0.001615
! Fit after  self-cal, rms=0.350492Jy  sigma=0.001615
wmodel J0038-2459_S_1997_07_02_yyk\_map.mod
! Writing 68 model components to file: J0038-2459_S_1997_07_02_yyk_map.mod
wobs J0038-2459_S_1997_07_02_yyk\_uvs.fits
! Writing UV FITS file: J0038-2459_S_1997_07_02_yyk_uvs.fits
wwins J0038-2459_S_1997_07_02_yyk\_map.win
! wwins: Wrote 2 windows to J0038-2459_S_1997_07_02_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.00088149 Jy
! Component: 100  -  total flux cleaned = 0.00080687 Jy
! Component: 150  -  total flux cleaned = 0.00066943 Jy
! Component: 200  -  total flux cleaned = 0.000539703 Jy
! Component: 250  -  total flux cleaned = 0.00054311 Jy
! Component: 300  -  total flux cleaned = 0.000544186 Jy
! Component: 350  -  total flux cleaned = 0.000487389 Jy
! Component: 400  -  total flux cleaned = 0.000542788 Jy
! Component: 450  -  total flux cleaned = 0.000704036 Jy
! Component: 500  -  total flux cleaned = 0.000808691 Jy
! Component: 550  -  total flux cleaned = 0.0010141 Jy
! Component: 600  -  total flux cleaned = 0.0010147 Jy
! Component: 650  -  total flux cleaned = 0.00126066 Jy
! Component: 700  -  total flux cleaned = 0.00149931 Jy
! Component: 750  -  total flux cleaned = 0.00154462 Jy
! Component: 800  -  total flux cleaned = 0.00159083 Jy
! Component: 850  -  total flux cleaned = 0.0018181 Jy
! Component: 900  -  total flux cleaned = 0.001951 Jy
! Component: 950  -  total flux cleaned = 0.00203802 Jy
! Component: 1000  -  total flux cleaned = 0.00216709 Jy
! Component: 1050  -  total flux cleaned = 0.00229484 Jy
! Component: 1100  -  total flux cleaned = 0.00233675 Jy
! Component: 1150  -  total flux cleaned = 0.00237814 Jy
! Component: 1200  -  total flux cleaned = 0.00250068 Jy
! Component: 1250  -  total flux cleaned = 0.00266022 Jy
! Component: 1300  -  total flux cleaned = 0.00269942 Jy
! Component: 1350  -  total flux cleaned = 0.00277754 Jy
! Component: 1400  -  total flux cleaned = 0.00285468 Jy
! Component: 1450  -  total flux cleaned = 0.00304347 Jy
! Component: 1500  -  total flux cleaned = 0.00315492 Jy
! Component: 1550  -  total flux cleaned = 0.00319119 Jy
! Component: 1600  -  total flux cleaned = 0.00315483 Jy
! Component: 1650  -  total flux cleaned = 0.00329844 Jy
! Component: 1700  -  total flux cleaned = 0.00329832 Jy
! Component: 1750  -  total flux cleaned = 0.00343876 Jy
! Component: 1800  -  total flux cleaned = 0.00361179 Jy
! Component: 1850  -  total flux cleaned = 0.00371435 Jy
! Component: 1900  -  total flux cleaned = 0.00398474 Jy
! Component: 1950  -  total flux cleaned = 0.00408505 Jy
! Component: 2000  -  total flux cleaned = 0.00424983 Jy
! Total flux subtracted in 2048 components = 0.00444583 Jy
! Clean residual min=-0.002878 max=0.002039 Jy/beam
! Clean residual mean=0.000105 rms=0.000642 Jy/beam
! Combined flux in latest and established models = 0.460831 Jy
keep
! Adding 114 model components to the UV plane model.
! The established model now contains 182 components and 0.460831 Jy
![Exited script file: muppet]
wmap "J0038-2459_S_1997_07_02_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.606 x 9.567 at -0.548 degrees (North through East)
! Clean map  min=-0.0040499  max=0.39174 Jy/beam
! Writing clean map to FITS file: J0038-2459_S_1997_07_02_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.391739 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000644745 
device "J0038-2459_S_1997_07_02_yyk\_map.eps/VPS"
! Attempting to open device: 'J0038-2459_S_1997_07_02_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.493756 0.493756 0.987512 1.97502 3.95005 7.90009 15.8002 31.6004 63.2008
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.391 
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.606 x 9.567 at -0.548 degrees (North through East)
! Clean map  min=-0.0040499  max=0.39174 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0038-2459_S_1997_07_02_yyk\_map.gif/gif"
! Attempting to open device: 'J0038-2459_S_1997_07_02_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0038-2459_S_1997_07_02_yyk_uvs.log closed on Sun Jan  7 15:26:00 2007