! Started logfile: J0042+1009_S_1995_07_15_yyk_uvs.log on Sun Jan  7 15:26:58 2007
obs J0042+1009_S_1995_07_15_yyk_uva.fits
! Reading UV FITS file: J0042+1009_S_1995_07_15_yyk_uva.fits
! AN table 1: 124 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.896774 visibilities/baseline/integration-bin.
! Found source: J0042+1009
! 
! 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 793 lines of history.
! 
! Reading 20016 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 J0042+1009_S_1995_07_15_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.47749 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.771 mas, bmaj=6.799 mas, bpa=-8.824 degrees
! Estimated noise=1272.06 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.242615 Jy
! Component: 100  -  total flux cleaned = 0.282873 Jy
! Total flux subtracted in 100 components = 0.282873 Jy
! Clean residual min=-0.013330 max=0.012297 Jy/beam
! Clean residual mean=0.000061 rms=0.003115 Jy/beam
! Combined flux in latest and established models = 0.282873 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.282873 Jy
! 
! Correcting IF 1.
!  A total of 73 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 92 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 73 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 73 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.381219Jy  sigma=0.001723
! Fit after  self-cal, rms=0.381042Jy  sigma=0.001722
! Inverting map and beam 
! Estimated beam: bmin=2.771 mas, bmaj=6.799 mas, bpa=-8.824 degrees
! Estimated noise=1272.29 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.485 mas, bmaj=8.345 mas, bpa=-12.4 degrees
! Estimated noise=983.807 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.0145986 Jy
! Component: 100  -  total flux cleaned = 0.0143082 Jy
! Component: 150  -  total flux cleaned = 0.0145078 Jy
! Component: 200  -  total flux cleaned = 0.0144966 Jy
! Total flux subtracted in 200 components = 0.0144966 Jy
! Clean residual min=-0.009085 max=0.009440 Jy/beam
! Clean residual mean=0.000117 rms=0.002380 Jy/beam
! Combined flux in latest and established models = 0.29737 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 21 components and 0.29737 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380523Jy  sigma=0.001719
! Fit after  self-cal, rms=0.380515Jy  sigma=0.001719
! 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.485 x 8.345 at -12.4 degrees (North through East)
! Clean map  min=-0.0090674  max=0.2807 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.01299
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.02     HN        1.18     KP        0.89     
!   LA        0.98     MK        0.97     NL        0.93     OV        1.14     
!   PT        0.96     SC        0.82     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.993746
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.11     HN        1.11     KP        0.87     
!   LA        1.04     MK        1.02     NL        0.94     OV        1.06     
!   PT        1.01     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.02777
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.91     FD        1.10     HN        1.06     KP        0.90     
!   LA        0.87     MK        0.91     NL        0.98     OV        0.98     
!   PT        1.06     SC        0.97     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.002
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.13     HN        1.09     KP        0.91     
!   LA        0.92     MK        1.03     NL        1.03     OV        1.02     
!   PT        0.94     SC        0.94     
! 
! 
! Fit before self-cal, rms=0.380515Jy  sigma=0.001719
! Fit after  self-cal, rms=0.381721Jy  sigma=0.001713
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.381721Jy  sigma=0.001713
! Fit after  self-cal, rms=0.381723Jy  sigma=0.001713
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.458 mas, bmaj=8.081 mas, bpa=-11.09 degrees
! Estimated noise=990.247 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.00529001 Jy
! Component: 100  -  total flux cleaned = 0.00573951 Jy
! Component: 150  -  total flux cleaned = 0.00574048 Jy
! Component: 200  -  total flux cleaned = 0.00565804 Jy
! Total flux subtracted in 200 components = 0.00565804 Jy
! Clean residual min=-0.006521 max=0.006371 Jy/beam
! Clean residual mean=0.000075 rms=0.001673 Jy/beam
! Combined flux in latest and established models = 0.303028 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 33 components and 0.303028 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381692Jy  sigma=0.001712
! Fit after  self-cal, rms=0.381692Jy  sigma=0.001712
! 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.381692Jy  sigma=0.001712
! Fit after  self-cal, rms=0.380895Jy  sigma=0.001708
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.000601176 Jy
! Component: 100  -  total flux cleaned = 0.000525116 Jy
! Component: 150  -  total flux cleaned = 0.000530701 Jy
! Component: 200  -  total flux cleaned = 0.000469613 Jy
! Total flux subtracted in 200 components = 0.000469613 Jy
! Clean residual min=-0.006310 max=0.006701 Jy/beam
! Clean residual mean=0.000074 rms=0.001657 Jy/beam
! Combined flux in latest and established models = 0.303498 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 37 components and 0.303498 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380878Jy  sigma=0.001708
! Fit after  self-cal, rms=0.380578Jy  sigma=0.001707
! 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.458 x 8.081 at -11.09 degrees (North through East)
! Clean map  min=-0.0061464  max=0.28551 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.380578Jy  sigma=0.001707
! Fit after  self-cal, rms=0.434049Jy  sigma=0.001704
! 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.434049Jy  sigma=0.001704
! Fit after  self-cal, rms=0.433868Jy  sigma=0.001704
! Inverting map and beam 
! Estimated beam: bmin=3.441 mas, bmaj=8.027 mas, bpa=-10.86 degrees
! Estimated noise=984.959 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000742927 Jy
! Component: 100  -  total flux cleaned = 0.000617692 Jy
! Component: 150  -  total flux cleaned = 0.000510121 Jy
! Component: 200  -  total flux cleaned = 0.000511618 Jy
! Total flux subtracted in 200 components = 0.000511618 Jy
! Clean residual min=-0.005691 max=0.005734 Jy/beam
! Clean residual mean=0.000060 rms=0.001524 Jy/beam
! Combined flux in latest and established models = 0.304009 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 43 components and 0.304009 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.433848Jy  sigma=0.001704
! Fit after  self-cal, rms=0.433760Jy  sigma=0.001704
! 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.433760Jy  sigma=0.001704
! Fit after  self-cal, rms=0.434383Jy  sigma=0.001703
! 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.434383Jy  sigma=0.001703
! Fit after  self-cal, rms=0.434317Jy  sigma=0.001703
! Inverting map and beam 
! Estimated beam: bmin=3.429 mas, bmaj=8 mas, bpa=-10.71 degrees
! Estimated noise=986.498 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00124746 Jy
! Component: 100  -  total flux cleaned = 0.00143866 Jy
! Component: 150  -  total flux cleaned = 0.00143965 Jy
! Component: 200  -  total flux cleaned = 0.00143949 Jy
! Total flux subtracted in 200 components = 0.00143949 Jy
! Clean residual min=-0.005623 max=0.005570 Jy/beam
! Clean residual mean=0.000060 rms=0.001511 Jy/beam
! Combined flux in latest and established models = 0.305449 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.305449 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434307Jy  sigma=0.001703
! Fit after  self-cal, rms=0.434295Jy  sigma=0.001703
! 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.206 mas, bmaj=11.43 mas, bpa=1.004 degrees
! Estimated noise=1234 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.000825368 Jy
! Component: 100  -  total flux cleaned = 0.000619088 Jy
! Component: 150  -  total flux cleaned = 0.000524461 Jy
! Component: 200  -  total flux cleaned = 0.000525472 Jy
! Total flux subtracted in 200 components = 0.000525472 Jy
! Clean residual min=-0.006030 max=0.006358 Jy/beam
! Clean residual mean=0.000125 rms=0.001955 Jy/beam
! Combined flux in latest and established models = 0.305974 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 53 components and 0.305974 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434296Jy  sigma=0.001703
! Fit after  self-cal, rms=0.434301Jy  sigma=0.001703
! 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.742 mas, bmaj=6.678 mas, bpa=-7.57 degrees
! Estimated noise=1274.78 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.244397 Jy
! Component: 100  -  total flux cleaned = 0.287233 Jy
! Component: 150  -  total flux cleaned = 0.30308 Jy
! Component: 200  -  total flux cleaned = 0.30527 Jy
! Total flux subtracted in 200 components = 0.30527 Jy
! Clean residual min=-0.008125 max=0.007406 Jy/beam
! Clean residual mean=0.000021 rms=0.002126 Jy/beam
! Combined flux in latest and established models = 0.30527 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 18 model components to the UV plane model.
! The established model now contains 18 components and 0.30527 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.429 mas, bmaj=8 mas, bpa=-10.71 degrees
! Estimated noise=986.498 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.000201501 Jy
! Component: 100  -  total flux cleaned = 0.000195064 Jy
! Component: 150  -  total flux cleaned = 9.46961e-05 Jy
! Component: 200  -  total flux cleaned = 7.99578e-06 Jy
! Total flux subtracted in 200 components = 7.99578e-06 Jy
! Clean residual min=-0.005674 max=0.005323 Jy/beam
! Clean residual mean=0.000060 rms=0.001536 Jy/beam
! Combined flux in latest and established models = 0.305278 Jy
! Adding 16 model components to the UV plane model.
! The established model now contains 26 components and 0.305278 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.206 mas, bmaj=11.43 mas, bpa=1.004 degrees
! Estimated noise=1234 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.00107297 Jy
! Component: 100  -  total flux cleaned = 0.000807021 Jy
! Component: 150  -  total flux cleaned = 0.000622674 Jy
! Component: 200  -  total flux cleaned = 0.000493202 Jy
! Total flux subtracted in 200 components = 0.000493202 Jy
! Clean residual min=-0.005996 max=0.006318 Jy/beam
! Clean residual mean=0.000127 rms=0.001958 Jy/beam
! Combined flux in latest and established models = 0.305772 Jy
! Adding 9 model components to the UV plane model.
! The established model now contains 31 components and 0.305772 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.429 mas, bmaj=8 mas, bpa=-10.71 degrees
! Estimated noise=986.498 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000844307 Jy
! Component: 100  -  total flux cleaned = -0.00067161 Jy
! Component: 150  -  total flux cleaned = -0.00074127 Jy
! Component: 200  -  total flux cleaned = -0.000799794 Jy
! Total flux subtracted in 200 components = -0.000799794 Jy
! Clean residual min=-0.005636 max=0.005445 Jy/beam
! Clean residual mean=0.000061 rms=0.001511 Jy/beam
! Combined flux in latest and established models = 0.304972 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 40 components and 0.304972 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434312Jy  sigma=0.001703
! Fit after  self-cal, rms=0.434329Jy  sigma=0.001703
wmodel J0042+1009_S_1995_07_15_yyk\_map.mod
! Writing 40 model components to file: J0042+1009_S_1995_07_15_yyk_map.mod
wobs J0042+1009_S_1995_07_15_yyk\_uvs.fits
! Writing UV FITS file: J0042+1009_S_1995_07_15_yyk_uvs.fits
wwins J0042+1009_S_1995_07_15_yyk\_map.win
! wwins: Wrote 1 windows to J0042+1009_S_1995_07_15_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.000445986 Jy
! Component: 100  -  total flux cleaned = 0.000986796 Jy
! Component: 150  -  total flux cleaned = 0.00132002 Jy
! Component: 200  -  total flux cleaned = 0.0018791 Jy
! Component: 250  -  total flux cleaned = 0.00234002 Jy
! Component: 300  -  total flux cleaned = 0.00286142 Jy
! Component: 350  -  total flux cleaned = 0.00329709 Jy
! Component: 400  -  total flux cleaned = 0.00393458 Jy
! Component: 450  -  total flux cleaned = 0.00448603 Jy
! Component: 500  -  total flux cleaned = 0.00508979 Jy
! Component: 550  -  total flux cleaned = 0.00548196 Jy
! Component: 600  -  total flux cleaned = 0.00573891 Jy
! Component: 650  -  total flux cleaned = 0.00611733 Jy
! Component: 700  -  total flux cleaned = 0.00630301 Jy
! Component: 750  -  total flux cleaned = 0.00666816 Jy
! Component: 800  -  total flux cleaned = 0.00702609 Jy
! Component: 850  -  total flux cleaned = 0.00708564 Jy
! Component: 900  -  total flux cleaned = 0.00725965 Jy
! Component: 950  -  total flux cleaned = 0.00743017 Jy
! Component: 1000  -  total flux cleaned = 0.00748559 Jy
! Component: 1050  -  total flux cleaned = 0.00754139 Jy
! Component: 1100  -  total flux cleaned = 0.00770446 Jy
! Component: 1150  -  total flux cleaned = 0.00775799 Jy
! Component: 1200  -  total flux cleaned = 0.00786387 Jy
! Component: 1250  -  total flux cleaned = 0.00781219 Jy
! Component: 1300  -  total flux cleaned = 0.00796743 Jy
! Component: 1350  -  total flux cleaned = 0.00806864 Jy
! Component: 1400  -  total flux cleaned = 0.00806676 Jy
! Component: 1450  -  total flux cleaned = 0.0079673 Jy
! Component: 1500  -  total flux cleaned = 0.00806434 Jy
! Component: 1550  -  total flux cleaned = 0.00796616 Jy
! Component: 1600  -  total flux cleaned = 0.00791862 Jy
! Component: 1650  -  total flux cleaned = 0.00810851 Jy
! Component: 1700  -  total flux cleaned = 0.0081552 Jy
! Component: 1750  -  total flux cleaned = 0.00829376 Jy
! Component: 1800  -  total flux cleaned = 0.00829378 Jy
! Component: 1850  -  total flux cleaned = 0.00847545 Jy
! Component: 1900  -  total flux cleaned = 0.00856482 Jy
! Component: 1950  -  total flux cleaned = 0.00869781 Jy
! Component: 2000  -  total flux cleaned = 0.00869751 Jy
! Total flux subtracted in 2048 components = 0.00869823 Jy
! Clean residual min=-0.002880 max=0.003334 Jy/beam
! Clean residual mean=0.000041 rms=0.000907 Jy/beam
! Combined flux in latest and established models = 0.31367 Jy
keep
! Adding 126 model components to the UV plane model.
! The established model now contains 166 components and 0.31367 Jy
![Exited script file: muppet]
wmap "J0042+1009_S_1995_07_15_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.429 x 8 at -10.71 degrees (North through East)
! Clean map  min=-0.0054548  max=0.28567 Jy/beam
! Writing clean map to FITS file: J0042+1009_S_1995_07_15_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.285672 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000906487 
device "J0042+1009_S_1995_07_15_yyk\_map.eps/VPS"
! Attempting to open device: 'J0042+1009_S_1995_07_15_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.951953 0.951953 1.90391 3.80781 7.61562 15.2312 30.4625 60.925
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0027 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.285 
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.429 x 8 at -10.71 degrees (North through East)
! Clean map  min=-0.0054548  max=0.28567 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0042+1009_S_1995_07_15_yyk\_map.gif/gif"
! Attempting to open device: 'J0042+1009_S_1995_07_15_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0042+1009_S_1995_07_15_yyk_uvs.log closed on Sun Jan  7 15:27:04 2007