! Started logfile: J0038+1227_S_1996_03_13_yyk_uvs.log on Sun Jan  7 15:25:28 2007
obs J0038+1227_S_1996_03_13_yyk_uva.fits
! Reading UV FITS file: J0038+1227_S_1996_03_13_yyk_uva.fits
! AN table 1: 111 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.837638 visibilities/baseline/integration-bin.
! Found source: J0038+1227
! 
! 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.22049e+09        4e+06          1        4e+06
!  02        2  2.23236e+09        4e+06          1        4e+06
!  03        3  2.29236e+09        4e+06          1        4e+06
!  04        4  2.32236e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 656 lines of history.
! 
! Reading 16736 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+1227_S_1996_03_13_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.489541 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.687 mas, bmaj=6.819 mas, bpa=-6.471 degrees
! Estimated noise=1705.47 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.0699486 Jy
! Component: 100  -  total flux cleaned = 0.0918302 Jy
! Total flux subtracted in 100 components = 0.0918302 Jy
! Clean residual min=-0.013748 max=0.019777 Jy/beam
! Clean residual mean=0.000194 rms=0.004421 Jy/beam
! Combined flux in latest and established models = 0.0918302 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 0.0918302 Jy
! 
! Correcting IF 1.
!  A total of 107 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 107 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 122 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 122 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.481994Jy  sigma=0.002169
! Fit after  self-cal, rms=0.480914Jy  sigma=0.002163
! Inverting map and beam 
! Estimated beam: bmin=2.687 mas, bmaj=6.819 mas, bpa=-6.471 degrees
! Estimated noise=1705.58 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.438 mas, bmaj=8.041 mas, bpa=-7.943 degrees
! Estimated noise=1084.77 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.0131167 Jy
! Component: 100  -  total flux cleaned = 0.0169333 Jy
! Component: 150  -  total flux cleaned = 0.0182204 Jy
! Component: 200  -  total flux cleaned = 0.0192637 Jy
! Total flux subtracted in 200 components = 0.0192637 Jy
! Clean residual min=-0.015638 max=0.020463 Jy/beam
! Clean residual mean=0.000337 rms=0.004603 Jy/beam
! Combined flux in latest and established models = 0.111094 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 23 components and 0.111094 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.480427Jy  sigma=0.002161
! Fit after  self-cal, rms=0.480386Jy  sigma=0.002161
! 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.438 x 8.041 at -7.943 degrees (North through East)
! Clean map  min=-0.015802  max=0.079201 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
! 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
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.480386Jy  sigma=0.002161
! Fit after  self-cal, rms=0.480386Jy  sigma=0.002161
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.480386Jy  sigma=0.002161
! Fit after  self-cal, rms=0.480385Jy  sigma=0.002161
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.438 mas, bmaj=8.041 mas, bpa=-7.943 degrees
! Estimated noise=1084.77 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.000925274 Jy
! Component: 100  -  total flux cleaned = 0.00158269 Jy
! Component: 150  -  total flux cleaned = 0.00186823 Jy
! Component: 200  -  total flux cleaned = 0.00212106 Jy
! Total flux subtracted in 200 components = 0.00212106 Jy
! Clean residual min=-0.015962 max=0.020095 Jy/beam
! Clean residual mean=0.000339 rms=0.004533 Jy/beam
! Combined flux in latest and established models = 0.113215 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 31 components and 0.113215 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.480291Jy  sigma=0.002160
! Fit after  self-cal, rms=0.480253Jy  sigma=0.002160
! 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.480253Jy  sigma=0.002160
! Fit after  self-cal, rms=0.479122Jy  sigma=0.002153
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)
! Added new window around map position (-8, 14.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0233909 Jy
! Component: 100  -  total flux cleaned = 0.037242 Jy
! Component: 150  -  total flux cleaned = 0.0443709 Jy
! Component: 200  -  total flux cleaned = 0.0505506 Jy
! Total flux subtracted in 200 components = 0.0505506 Jy
! Clean residual min=-0.011375 max=0.015065 Jy/beam
! Clean residual mean=0.000235 rms=0.003707 Jy/beam
! Combined flux in latest and established models = 0.163766 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 44 model components to the UV plane model.
! The established model now contains 72 components and 0.163766 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.477923Jy  sigma=0.002148
! Fit after  self-cal, rms=0.477433Jy  sigma=0.002146
! 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.438 x 8.041 at -7.943 degrees (North through East)
! Clean map  min=-0.011909  max=0.086475 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
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.694 mas, bmaj=10.9 mas, bpa=-2.806 degrees
! Estimated noise=1347.45 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.0174354 Jy
! Component: 100  -  total flux cleaned = 0.0264682 Jy
! Component: 150  -  total flux cleaned = 0.0313461 Jy
! Component: 200  -  total flux cleaned = 0.0347977 Jy
! Total flux subtracted in 200 components = 0.0347977 Jy
! Clean residual min=-0.013561 max=0.020479 Jy/beam
! Clean residual mean=0.000428 rms=0.005012 Jy/beam
! Combined flux in latest and established models = 0.198563 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 46 model components to the UV plane model.
! The established model now contains 112 components and 0.198563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.477176Jy  sigma=0.002145
! Fit after  self-cal, rms=0.476921Jy  sigma=0.002144
! 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.687 mas, bmaj=6.819 mas, bpa=-6.471 degrees
! Estimated noise=1705.58 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.083817 Jy
! Component: 100  -  total flux cleaned = 0.113236 Jy
! Component: 150  -  total flux cleaned = 0.132844 Jy
! Component: 200  -  total flux cleaned = 0.145863 Jy
! Total flux subtracted in 200 components = 0.145863 Jy
! Clean residual min=-0.014180 max=0.015290 Jy/beam
! Clean residual mean=0.000168 rms=0.003954 Jy/beam
! Combined flux in latest and established models = 0.145863 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 38 model components to the UV plane model.
! The established model now contains 38 components and 0.145863 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.438 mas, bmaj=8.041 mas, bpa=-7.943 degrees
! Estimated noise=1084.77 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.0139425 Jy
! Component: 100  -  total flux cleaned = 0.022007 Jy
! Component: 150  -  total flux cleaned = 0.028096 Jy
! Component: 200  -  total flux cleaned = 0.0320022 Jy
! Total flux subtracted in 200 components = 0.0320022 Jy
! Clean residual min=-0.010884 max=0.014649 Jy/beam
! Clean residual mean=0.000248 rms=0.003433 Jy/beam
! Combined flux in latest and established models = 0.177865 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 72 components and 0.177865 Jy
! Inverting map 
! Added new window around map position (-17.5, 33).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0175882 Jy
! Component: 100  -  total flux cleaned = 0.0272172 Jy
! Component: 150  -  total flux cleaned = 0.0347495 Jy
! Component: 200  -  total flux cleaned = 0.0410563 Jy
! Total flux subtracted in 200 components = 0.0410563 Jy
! Clean residual min=-0.009570 max=0.010368 Jy/beam
! Clean residual mean=0.000202 rms=0.002849 Jy/beam
! Combined flux in latest and established models = 0.218921 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 110 components and 0.218921 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.694 mas, bmaj=10.9 mas, bpa=-2.806 degrees
! Estimated noise=1347.45 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.00902641 Jy
! Component: 100  -  total flux cleaned = 0.0156423 Jy
! Component: 150  -  total flux cleaned = 0.0207698 Jy
! Component: 200  -  total flux cleaned = 0.0229735 Jy
! Total flux subtracted in 200 components = 0.0229735 Jy
! Clean residual min=-0.009400 max=0.013396 Jy/beam
! Clean residual mean=0.000349 rms=0.003537 Jy/beam
! Combined flux in latest and established models = 0.241894 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 144 components and 0.241894 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.438 mas, bmaj=8.041 mas, bpa=-7.943 degrees
! Estimated noise=1084.77 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000532626 Jy
! Component: 100  -  total flux cleaned = 0.001755 Jy
! Component: 150  -  total flux cleaned = 0.00312701 Jy
! Component: 200  -  total flux cleaned = 0.00450022 Jy
! Total flux subtracted in 200 components = 0.00450022 Jy
! Clean residual min=-0.008694 max=0.009920 Jy/beam
! Clean residual mean=0.000163 rms=0.002720 Jy/beam
! Combined flux in latest and established models = 0.246395 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 161 components and 0.246395 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.476213Jy  sigma=0.002139
! Fit after  self-cal, rms=0.476006Jy  sigma=0.002139
wmodel J0038+1227_S_1996_03_13_yyk\_map.mod
! Writing 161 model components to file: J0038+1227_S_1996_03_13_yyk_map.mod
wobs J0038+1227_S_1996_03_13_yyk\_uvs.fits
! Writing UV FITS file: J0038+1227_S_1996_03_13_yyk_uvs.fits
wwins J0038+1227_S_1996_03_13_yyk\_map.win
! wwins: Wrote 3 windows to J0038+1227_S_1996_03_13_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.00260119 Jy
! Component: 100  -  total flux cleaned = 0.00459597 Jy
! Component: 150  -  total flux cleaned = 0.00601277 Jy
! Component: 200  -  total flux cleaned = 0.00706519 Jy
! Component: 250  -  total flux cleaned = 0.00822155 Jy
! Component: 300  -  total flux cleaned = 0.00920289 Jy
! Component: 350  -  total flux cleaned = 0.0104319 Jy
! Component: 400  -  total flux cleaned = 0.0113609 Jy
! Component: 450  -  total flux cleaned = 0.0118797 Jy
! Component: 500  -  total flux cleaned = 0.0126385 Jy
! Component: 550  -  total flux cleaned = 0.0130075 Jy
! Component: 600  -  total flux cleaned = 0.0133708 Jy
! Component: 650  -  total flux cleaned = 0.0136078 Jy
! Component: 700  -  total flux cleaned = 0.014189 Jy
! Component: 750  -  total flux cleaned = 0.0146473 Jy
! Component: 800  -  total flux cleaned = 0.0154372 Jy
! Component: 850  -  total flux cleaned = 0.0162124 Jy
! Component: 900  -  total flux cleaned = 0.0170835 Jy
! Component: 950  -  total flux cleaned = 0.0177261 Jy
! Component: 1000  -  total flux cleaned = 0.0180433 Jy
! Component: 1050  -  total flux cleaned = 0.018877 Jy
! Component: 1100  -  total flux cleaned = 0.0196983 Jy
! Component: 1150  -  total flux cleaned = 0.0202029 Jy
! Component: 1200  -  total flux cleaned = 0.0207008 Jy
! Component: 1250  -  total flux cleaned = 0.021291 Jy
! Component: 1300  -  total flux cleaned = 0.0219682 Jy
! Component: 1350  -  total flux cleaned = 0.0224449 Jy
! Component: 1400  -  total flux cleaned = 0.0228212 Jy
! Component: 1450  -  total flux cleaned = 0.0230075 Jy
! Component: 1500  -  total flux cleaned = 0.0233739 Jy
! Component: 1550  -  total flux cleaned = 0.0234642 Jy
! Component: 1600  -  total flux cleaned = 0.0236434 Jy
! Component: 1650  -  total flux cleaned = 0.0236427 Jy
! Component: 1700  -  total flux cleaned = 0.0238184 Jy
! Component: 1750  -  total flux cleaned = 0.0239031 Jy
! Component: 1800  -  total flux cleaned = 0.0239891 Jy
! Component: 1850  -  total flux cleaned = 0.0243273 Jy
! Component: 1900  -  total flux cleaned = 0.02441 Jy
! Component: 1950  -  total flux cleaned = 0.0247412 Jy
! Component: 2000  -  total flux cleaned = 0.0250678 Jy
! Total flux subtracted in 2048 components = 0.0257147 Jy
! Clean residual min=-0.005029 max=0.004416 Jy/beam
! Clean residual mean=0.000050 rms=0.001664 Jy/beam
! Combined flux in latest and established models = 0.272109 Jy
keep
! Adding 138 model components to the UV plane model.
! The established model now contains 299 components and 0.272109 Jy
![Exited script file: muppet]
wmap "J0038+1227_S_1996_03_13_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.438 x 8.041 at -7.943 degrees (North through East)
! Clean map  min=-0.0083386  max=0.088984 Jy/beam
! Writing clean map to FITS file: J0038+1227_S_1996_03_13_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.0889836 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00166561 
device "J0038+1227_S_1996_03_13_yyk\_map.eps/VPS"
! Attempting to open device: 'J0038+1227_S_1996_03_13_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -5.61544 5.61544 11.2309 22.4618 44.9235 89.8471
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0049 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.088 
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.438 x 8.041 at -7.943 degrees (North through East)
! Clean map  min=-0.0083386  max=0.088984 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0038+1227_S_1996_03_13_yyk\_map.gif/gif"
! Attempting to open device: 'J0038+1227_S_1996_03_13_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0038+1227_S_1996_03_13_yyk_uvs.log closed on Sun Jan  7 15:25:34 2007