! Started logfile: J0336+3218_X_2006_02_16_yyk_uvs.log on Wed Jul  5 11:15:03 2006
obs J0336+3218_X_2006_02_16_yyk_uva.fits
! Reading UV FITS file: J0336+3218_X_2006_02_16_yyk_uva.fits
! AN table 1: 231 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.805195 visibilities/baseline/integration-bin.
! Found source: J0336+3218
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2424 lines of history.
! 
! Reading 33480 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 J0336+3218_X_2006_02_16_yyk]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.04
float dynam
dynam = 6.0
float amp_soltime1
amp_soltime1 = 10
float amp_soltime2
amp_soltime2 = 1
float phase_soltime1
phase_soltime1=10
float phase_soltime2
phase_soltime2=0.5
float phase_soltime
phase_soltime=phase_soltime1
float ampcor_selflim
ampcor_selflim=1.20
float thresh
thresh = 0.10
float win_mult
win_mult = 1.8
float time_av
time_av = 30
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.200x0.200 milli-arcsec cellsize.
uvav time_av, true
! Averaging into 30 second bins.
! 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
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 1.28575 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=0.7327 mas, bmaj=2.193 mas, bpa=-25.82 degrees
! Estimated noise=1.98567 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 = 1.04397 Jy
! Component: 100  -  total flux cleaned = 1.2596 Jy
! Total flux subtracted in 100 components = 1.2596 Jy
! Clean residual min=-0.073760 max=0.123977 Jy/beam
! Clean residual mean=-0.001601 rms=0.023707 Jy/beam
! Combined flux in latest and established models = 1.2596 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 1.2596 Jy
! 
! Correcting IF 1.
!  A total of 2 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 2 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 2 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 2 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.332801Jy  sigma=5.545552
! Fit after  self-cal, rms=0.332622Jy  sigma=5.505766
! Inverting map and beam 
! Estimated beam: bmin=0.7327 mas, bmaj=2.193 mas, bpa=-25.82 degrees
! Estimated noise=1.98567 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=0.9042 mas, bmaj=2.287 mas, bpa=-25.03 degrees
! Estimated noise=1.41964 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.124882 Jy
! Component: 100  -  total flux cleaned = 0.19329 Jy
! Component: 150  -  total flux cleaned = 0.215254 Jy
! Component: 200  -  total flux cleaned = 0.222797 Jy
! Total flux subtracted in 200 components = 0.222797 Jy
! Clean residual min=-0.073636 max=0.120695 Jy/beam
! Clean residual mean=-0.001733 rms=0.023078 Jy/beam
! Combined flux in latest and established models = 1.4824 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 23 components and 1.4824 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296330Jy  sigma=4.815082
! Fit after  self-cal, rms=0.296471Jy  sigma=4.811413
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9042 x 2.287 at -25.03 degrees (North through East)
! Clean map  min=-0.069032  max=1.2194 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: 0.992719
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.04     HN        0.90     KP        0.94     
!   LA        0.91     MK        1.04     NL        1.35     OV        1.00     
!   PT        0.95     SC        0.96     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.01092
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.05     HN        0.90     KP        0.87     
!   LA        0.88     MK        1.01     NL        1.33     OV        1.00     
!   PT        0.96     SC        0.93     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.99944
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.10     FD        1.09     HN        0.84     KP        0.81     
!   LA        0.90     MK        1.04     NL        1.31     OV        1.03     
!   PT        0.97     SC        0.93     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.986299
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.13     HN        0.87     KP        0.84     
!   LA        0.89     MK        1.06     NL        1.26     OV        1.06     
!   PT        1.04     SC        0.96     
! 
! 
! Fit before self-cal, rms=0.296471Jy  sigma=4.811413
! Fit after  self-cal, rms=0.211821Jy  sigma=3.466866
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.211821Jy  sigma=3.466866
! Fit after  self-cal, rms=0.211785Jy  sigma=3.465377
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9155 mas, bmaj=2.268 mas, bpa=-24.7 degrees
! Estimated noise=1.38512 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 (4.6, -4).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.111588 Jy
! Component: 100  -  total flux cleaned = 0.135427 Jy
! Component: 150  -  total flux cleaned = 0.145272 Jy
! Component: 200  -  total flux cleaned = 0.153654 Jy
! Total flux subtracted in 200 components = 0.153654 Jy
! Clean residual min=-0.020258 max=0.020506 Jy/beam
! Clean residual mean=-0.000076 rms=0.005293 Jy/beam
! Combined flux in latest and established models = 1.63605 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 56 components and 1.63605 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.170575Jy  sigma=2.525702
! Fit after  self-cal, rms=0.170094Jy  sigma=2.515514
! 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.170094Jy  sigma=2.515514
! Fit after  self-cal, rms=0.114213Jy  sigma=1.625286
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.00955913 Jy
! Component: 100  -  total flux cleaned = 0.0126668 Jy
! Component: 150  -  total flux cleaned = 0.0159356 Jy
! Component: 200  -  total flux cleaned = 0.0187658 Jy
! Total flux subtracted in 200 components = 0.0187658 Jy
! Clean residual min=-0.018074 max=0.017288 Jy/beam
! Clean residual mean=0.000010 rms=0.004610 Jy/beam
! Combined flux in latest and established models = 1.65482 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 71 components and 1.65482 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.109455Jy  sigma=1.532463
! Fit after  self-cal, rms=0.104251Jy  sigma=1.453751
! Inverting map 
print "*** FINISHED NATURAL WEIGHTING CLEAN with shorter phase_soltime ***"
! *** FINISHED NATURAL WEIGHTING CLEAN with shorter phase_soltime *** 
! 
dynam = dynam - 0.25
restore
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9155 x 2.268 at -24.7 degrees (North through East)
! Clean map  min=-0.024582  max=1.2157 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.104251Jy  sigma=1.453751
! Fit after  self-cal, rms=0.097422Jy  sigma=1.319224
! 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.097422Jy  sigma=1.319224
! Fit after  self-cal, rms=0.097084Jy  sigma=1.312929
! Inverting map and beam 
! Estimated beam: bmin=0.9217 mas, bmaj=2.276 mas, bpa=-24.55 degrees
! Estimated noise=1.37961 mJy/beam.
! Added new window around map position (-5.8, 3.8).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00679822 Jy
! Component: 100  -  total flux cleaned = 0.0103312 Jy
! Component: 150  -  total flux cleaned = 0.0108004 Jy
! Component: 200  -  total flux cleaned = 0.0111618 Jy
! Total flux subtracted in 200 components = 0.0111618 Jy
! Clean residual min=-0.014133 max=0.012892 Jy/beam
! Clean residual mean=0.000067 rms=0.003167 Jy/beam
! Combined flux in latest and established models = 1.66598 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 88 components and 1.66598 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.090545Jy  sigma=1.181574
! Fit after  self-cal, rms=0.090455Jy  sigma=1.176682
! 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.090455Jy  sigma=1.176682
! Fit after  self-cal, rms=0.088178Jy  sigma=1.140250
! 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.088178Jy  sigma=1.140250
! Fit after  self-cal, rms=0.088184Jy  sigma=1.140189
! Inverting map and beam 
! Estimated beam: bmin=0.9214 mas, bmaj=2.282 mas, bpa=-24.57 degrees
! Estimated noise=1.37845 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00143493 Jy
! Component: 100  -  total flux cleaned = -0.001382 Jy
! Component: 150  -  total flux cleaned = -0.00224463 Jy
! Component: 200  -  total flux cleaned = -0.00302646 Jy
! Total flux subtracted in 200 components = -0.00302646 Jy
! Clean residual min=-0.011567 max=0.010566 Jy/beam
! Clean residual mean=0.000052 rms=0.002559 Jy/beam
! Combined flux in latest and established models = 1.66296 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 110 components and 1.66296 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.085713Jy  sigma=1.090318
! Fit after  self-cal, rms=0.085721Jy  sigma=1.089446
! Inverting map 
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
win_mult = win_mult * 1.4
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.229 mas, bmaj=2.748 mas, bpa=-16.86 degrees
! Estimated noise=1.74188 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 = 5.84699e-05 Jy
! Component: 100  -  total flux cleaned = -0.00190253 Jy
! Component: 150  -  total flux cleaned = -0.0035635 Jy
! Component: 200  -  total flux cleaned = -0.00503403 Jy
! Total flux subtracted in 200 components = -0.00503403 Jy
! Clean residual min=-0.009812 max=0.009118 Jy/beam
! Clean residual mean=0.000093 rms=0.002447 Jy/beam
! Combined flux in latest and established models = 1.65792 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 130 components and 1.65792 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.085441Jy  sigma=1.081697
! Fit after  self-cal, rms=0.085433Jy  sigma=1.081398
! 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=0.7368 mas, bmaj=2.179 mas, bpa=-25.76 degrees
! Estimated noise=1.95299 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 1.03203 Jy
! Component: 100  -  total flux cleaned = 1.24892 Jy
! Component: 150  -  total flux cleaned = 1.36443 Jy
! Component: 200  -  total flux cleaned = 1.43182 Jy
! Total flux subtracted in 200 components = 1.43182 Jy
! Clean residual min=-0.024032 max=0.033926 Jy/beam
! Clean residual mean=-0.000578 rms=0.007817 Jy/beam
! Combined flux in latest and established models = 1.43182 Jy
uvw 0,-2
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -2.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 21 model components to the UV plane model.
! The established model now contains 21 components and 1.43182 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.9214 mas, bmaj=2.282 mas, bpa=-24.57 degrees
! Estimated noise=1.37845 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.0600502 Jy
! Component: 100  -  total flux cleaned = 0.101635 Jy
! Component: 150  -  total flux cleaned = 0.133068 Jy
! Component: 200  -  total flux cleaned = 0.157249 Jy
! Total flux subtracted in 200 components = 0.157249 Jy
! Clean residual min=-0.016847 max=0.018246 Jy/beam
! Clean residual mean=-0.000246 rms=0.004626 Jy/beam
! Combined flux in latest and established models = 1.58907 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 49 components and 1.58907 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.229 mas, bmaj=2.748 mas, bpa=-16.86 degrees
! Estimated noise=1.74188 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.0313353 Jy
! Component: 100  -  total flux cleaned = 0.0459763 Jy
! Component: 150  -  total flux cleaned = 0.0515013 Jy
! Component: 200  -  total flux cleaned = 0.0550522 Jy
! Total flux subtracted in 200 components = 0.0550522 Jy
! Clean residual min=-0.010833 max=0.012626 Jy/beam
! Clean residual mean=-0.000037 rms=0.003411 Jy/beam
! Combined flux in latest and established models = 1.64413 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 77 components and 1.64413 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.9214 mas, bmaj=2.282 mas, bpa=-24.57 degrees
! Estimated noise=1.37845 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00626952 Jy
! Component: 100  -  total flux cleaned = 0.00585469 Jy
! Component: 150  -  total flux cleaned = 0.00512119 Jy
! Component: 200  -  total flux cleaned = 0.00543254 Jy
! Total flux subtracted in 200 components = 0.00543254 Jy
! Clean residual min=-0.012410 max=0.011154 Jy/beam
! Clean residual mean=0.000018 rms=0.002871 Jy/beam
! Combined flux in latest and established models = 1.64956 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 101 components and 1.64956 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.089108Jy  sigma=1.138624
! Fit after  self-cal, rms=0.088966Jy  sigma=1.135065
wmodel J0336+3218_X_2006_02_16_yyk\_map.mod
! Writing 101 model components to file: J0336+3218_X_2006_02_16_yyk_map.mod
wobs J0336+3218_X_2006_02_16_yyk\_uvs.fits
! Writing UV FITS file: J0336+3218_X_2006_02_16_yyk_uvs.fits
wwins J0336+3218_X_2006_02_16_yyk\_map.win
! wwins: Wrote 3 windows to J0336+3218_X_2006_02_16_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.000902032 Jy
! Component: 100  -  total flux cleaned = -0.000347885 Jy
! Component: 150  -  total flux cleaned = -0.000172928 Jy
! Component: 200  -  total flux cleaned = 0.000940812 Jy
! Component: 250  -  total flux cleaned = 0.00230121 Jy
! Component: 300  -  total flux cleaned = 0.00360128 Jy
! Component: 350  -  total flux cleaned = 0.00484685 Jy
! Component: 400  -  total flux cleaned = 0.00577639 Jy
! Component: 450  -  total flux cleaned = 0.00590299 Jy
! Component: 500  -  total flux cleaned = 0.00590522 Jy
! Component: 550  -  total flux cleaned = 0.00590726 Jy
! Component: 600  -  total flux cleaned = 0.00579244 Jy
! Component: 650  -  total flux cleaned = 0.00579538 Jy
! Component: 700  -  total flux cleaned = 0.00590687 Jy
! Component: 750  -  total flux cleaned = 0.0060133 Jy
! Component: 800  -  total flux cleaned = 0.00611322 Jy
! Component: 850  -  total flux cleaned = 0.00611007 Jy
! Component: 900  -  total flux cleaned = 0.0060143 Jy
! Component: 950  -  total flux cleaned = 0.00592156 Jy
! Component: 1000  -  total flux cleaned = 0.00646946 Jy
! Component: 1050  -  total flux cleaned = 0.00655835 Jy
! Component: 1100  -  total flux cleaned = 0.00673345 Jy
! Component: 1150  -  total flux cleaned = 0.00698707 Jy
! Component: 1200  -  total flux cleaned = 0.00690387 Jy
! Component: 1250  -  total flux cleaned = 0.00682453 Jy
! Component: 1300  -  total flux cleaned = 0.00690521 Jy
! Component: 1350  -  total flux cleaned = 0.00713819 Jy
! Component: 1400  -  total flux cleaned = 0.00706269 Jy
! Component: 1450  -  total flux cleaned = 0.00735787 Jy
! Component: 1500  -  total flux cleaned = 0.00742941 Jy
! Component: 1550  -  total flux cleaned = 0.00756905 Jy
! Component: 1600  -  total flux cleaned = 0.0079784 Jy
! Component: 1650  -  total flux cleaned = 0.00804436 Jy
! Component: 1700  -  total flux cleaned = 0.00824192 Jy
! Component: 1750  -  total flux cleaned = 0.00862804 Jy
! Component: 1800  -  total flux cleaned = 0.00869125 Jy
! Component: 1850  -  total flux cleaned = 0.00912537 Jy
! Component: 1900  -  total flux cleaned = 0.00942852 Jy
! Component: 1950  -  total flux cleaned = 0.00960636 Jy
! Component: 2000  -  total flux cleaned = 0.00972302 Jy
! Total flux subtracted in 2048 components = 0.00995224 Jy
! Clean residual min=-0.002932 max=0.003226 Jy/beam
! Clean residual mean=-0.000014 rms=0.001084 Jy/beam
! Combined flux in latest and established models = 1.65951 Jy
keep
! Adding 124 model components to the UV plane model.
! The established model now contains 225 components and 1.65951 Jy
![Exited script file: muppet]
wmap "J0336+3218_X_2006_02_16_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9214 x 2.282 at -24.57 degrees (North through East)
! Clean map  min=-0.0080546  max=1.2153 Jy/beam
! Writing clean map to FITS file: J0336+3218_X_2006_02_16_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.21533 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00108243 
device "J0336+3218_X_2006_02_16_yyk\_map.eps/VPS"
! Attempting to open device: 'J0336+3218_X_2006_02_16_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.267193 0.267193 0.534386 1.06877 2.13754 4.27508 8.55017 17.1003 34.2007 68.4013
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0032 
print "peak=",int(peak_flux*1000)/1000
! peak= 1.215 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9214 x 2.282 at -24.57 degrees (North through East)
! Clean map  min=-0.0080546  max=1.2153 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0336+3218_X_2006_02_16_yyk\_map.gif/gif"
! Attempting to open device: 'J0336+3218_X_2006_02_16_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0336+3218_X_2006_02_16_yyk_uvs.log closed on Wed Jul  5 11:15:34 2006