! Started logfile: J1222+0413_X_2006_02_16_yyk_uvs.log on Wed Jul  5 12:12:51 2006
obs J1222+0413_X_2006_02_16_yyk_uva.fits
! Reading UV FITS file: J1222+0413_X_2006_02_16_yyk_uva.fits
! AN table 1: 139 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.943086 visibilities/baseline/integration-bin.
! Found source: J1222+0413
! 
! 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 2421 lines of history.
! 
! Reading 23596 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 J1222+0413_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)= 0.603654 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.7079 mas, bmaj=1.829 mas, bpa=-1.812 degrees
! Estimated noise=2.02513 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.507219 Jy
! Component: 100  -  total flux cleaned = 0.579128 Jy
! Total flux subtracted in 100 components = 0.579128 Jy
! Clean residual min=-0.017206 max=0.017479 Jy/beam
! Clean residual mean=-0.000058 rms=0.004396 Jy/beam
! Combined flux in latest and established models = 0.579129 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.579129 Jy
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.097310Jy  sigma=1.427409
! Fit after  self-cal, rms=0.097226Jy  sigma=1.421227
! Inverting map and beam 
! Estimated beam: bmin=0.7079 mas, bmaj=1.829 mas, bpa=-1.812 degrees
! Estimated noise=2.02513 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.8627 mas, bmaj=2.145 mas, bpa=-1.617 degrees
! Estimated noise=1.62129 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.0298867 Jy
! Component: 100  -  total flux cleaned = 0.0429952 Jy
! Component: 150  -  total flux cleaned = 0.0494796 Jy
! Component: 200  -  total flux cleaned = 0.0522674 Jy
! Total flux subtracted in 200 components = 0.0522674 Jy
! Clean residual min=-0.017564 max=0.011703 Jy/beam
! Clean residual mean=-0.000065 rms=0.003301 Jy/beam
! Combined flux in latest and established models = 0.631396 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 45 model components to the UV plane model.
! The established model now contains 53 components and 0.631396 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.089115Jy  sigma=1.274250
! Fit after  self-cal, rms=0.089135Jy  sigma=1.273892
! 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.8627 x 2.145 at -1.617 degrees (North through East)
! Clean map  min=-0.016312  max=0.58683 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.98825
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.03     HN        1.06     KP        0.98     
!   LA        1.03     MK        1.03     NL        1.01     OV        1.00     
!   PT        1.00     SC        1.03     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.01008
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.04     HN        1.04     KP        0.91     
!   LA        0.95     MK        0.97     NL        1.00     OV        0.96     
!   PT        1.04     SC        1.00     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.01386
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.03     HN        0.93     KP        0.85     
!   LA        0.97     MK        1.03     NL        0.97     OV        0.99     
!   PT        1.04     SC        0.99     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.987407
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.04     HN        0.98     KP        0.88     
!   LA        0.97     MK        1.08     NL        0.98     OV        1.04     
!   PT        1.12     SC        1.00     
! 
! 
! Fit before self-cal, rms=0.089135Jy  sigma=1.273892
! Fit after  self-cal, rms=0.076011Jy  sigma=1.052868
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.076011Jy  sigma=1.052868
! Fit after  self-cal, rms=0.076022Jy  sigma=1.052817
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.8713 mas, bmaj=2.157 mas, bpa=-1.421 degrees
! Estimated noise=1.62097 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.000532602 Jy
! Component: 100  -  total flux cleaned = -0.00067281 Jy
! Component: 150  -  total flux cleaned = -0.000707845 Jy
! Component: 200  -  total flux cleaned = -0.000649057 Jy
! Total flux subtracted in 200 components = -0.000649057 Jy
! Clean residual min=-0.005546 max=0.006561 Jy/beam
! Clean residual mean=-0.000005 rms=0.001506 Jy/beam
! Combined flux in latest and established models = 0.630747 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 60 components and 0.630747 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.075919Jy  sigma=1.051878
! Fit after  self-cal, rms=0.075937Jy  sigma=1.051714
! 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.075937Jy  sigma=1.051714
! Fit after  self-cal, rms=0.073543Jy  sigma=1.005072
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.00049076 Jy
! Component: 100  -  total flux cleaned = 0.000454602 Jy
! Component: 150  -  total flux cleaned = 0.000454064 Jy
! Component: 200  -  total flux cleaned = 0.000430833 Jy
! Total flux subtracted in 200 components = 0.000430833 Jy
! Clean residual min=-0.005459 max=0.006607 Jy/beam
! Clean residual mean=-0.000005 rms=0.001501 Jy/beam
! Combined flux in latest and established models = 0.631178 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 66 components and 0.631178 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.073491Jy  sigma=1.004539
! Fit after  self-cal, rms=0.073165Jy  sigma=0.999832
! 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.8713 x 2.157 at -1.421 degrees (North through East)
! Clean map  min=-0.0052118  max=0.58733 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.073165Jy  sigma=0.999832
! Fit after  self-cal, rms=0.071599Jy  sigma=0.964262
! 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.071599Jy  sigma=0.964262
! Fit after  self-cal, rms=0.071527Jy  sigma=0.963377
! Inverting map and beam 
! Estimated beam: bmin=0.8722 mas, bmaj=2.158 mas, bpa=-1.398 degrees
! Estimated noise=1.6204 mJy/beam.
! Added new window around map position (25, 15).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00692945 Jy
! Component: 100  -  total flux cleaned = 0.00998622 Jy
! Component: 150  -  total flux cleaned = 0.0112853 Jy
! Component: 200  -  total flux cleaned = 0.011878 Jy
! Total flux subtracted in 200 components = 0.011878 Jy
! Clean residual min=-0.004701 max=0.004228 Jy/beam
! Clean residual mean=-0.000003 rms=0.001261 Jy/beam
! Combined flux in latest and established models = 0.643056 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 82 components and 0.643056 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.070995Jy  sigma=0.951204
! Fit after  self-cal, rms=0.070945Jy  sigma=0.950610
! 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.070945Jy  sigma=0.950610
! Fit after  self-cal, rms=0.069557Jy  sigma=0.935208
! 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.069557Jy  sigma=0.935208
! Fit after  self-cal, rms=0.069545Jy  sigma=0.935006
! Inverting map and beam 
! Estimated beam: bmin=0.8733 mas, bmaj=2.161 mas, bpa=-1.387 degrees
! Estimated noise=1.62073 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000799142 Jy
! Component: 100  -  total flux cleaned = 0.00118685 Jy
! Component: 150  -  total flux cleaned = 0.00147991 Jy
! Component: 200  -  total flux cleaned = 0.00174522 Jy
! Total flux subtracted in 200 components = 0.00174522 Jy
! Clean residual min=-0.004843 max=0.004470 Jy/beam
! Clean residual mean=-0.000002 rms=0.001230 Jy/beam
! Combined flux in latest and established models = 0.644801 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 88 components and 0.644801 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.069450Jy  sigma=0.933694
! Fit after  self-cal, rms=0.069449Jy  sigma=0.933547
! 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.18 mas, bmaj=3.412 mas, bpa=-4.304 degrees
! Estimated noise=2.10684 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.00121839 Jy
! Component: 100  -  total flux cleaned = 0.00153268 Jy
! Component: 150  -  total flux cleaned = 0.00164903 Jy
! Component: 200  -  total flux cleaned = 0.00175633 Jy
! Total flux subtracted in 200 components = 0.00175633 Jy
! Clean residual min=-0.005344 max=0.004501 Jy/beam
! Clean residual mean=-0.000002 rms=0.001357 Jy/beam
! Combined flux in latest and established models = 0.646557 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 99 components and 0.646557 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.069433Jy  sigma=0.933674
! Fit after  self-cal, rms=0.069424Jy  sigma=0.933511
! 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.7122 mas, bmaj=1.835 mas, bpa=-1.728 degrees
! Estimated noise=2.03029 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.50879 Jy
! Component: 100  -  total flux cleaned = 0.580076 Jy
! Component: 150  -  total flux cleaned = 0.601857 Jy
! Component: 200  -  total flux cleaned = 0.612142 Jy
! Total flux subtracted in 200 components = 0.612142 Jy
! Clean residual min=-0.007423 max=0.006612 Jy/beam
! Clean residual mean=-0.000008 rms=0.001859 Jy/beam
! Combined flux in latest and established models = 0.612142 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 28 model components to the UV plane model.
! The established model now contains 28 components and 0.612142 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.8733 mas, bmaj=2.161 mas, bpa=-1.387 degrees
! Estimated noise=1.62073 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.0100094 Jy
! Component: 100  -  total flux cleaned = 0.0161297 Jy
! Component: 150  -  total flux cleaned = 0.0205533 Jy
! Component: 200  -  total flux cleaned = 0.0239373 Jy
! Total flux subtracted in 200 components = 0.0239373 Jy
! Clean residual min=-0.004680 max=0.004248 Jy/beam
! Clean residual mean=-0.000004 rms=0.001312 Jy/beam
! Combined flux in latest and established models = 0.636079 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 52 components and 0.636079 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.18 mas, bmaj=3.412 mas, bpa=-4.304 degrees
! Estimated noise=2.10684 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.00403008 Jy
! Component: 100  -  total flux cleaned = 0.00646232 Jy
! Component: 150  -  total flux cleaned = 0.00765475 Jy
! Component: 200  -  total flux cleaned = 0.00832067 Jy
! Total flux subtracted in 200 components = 0.00832067 Jy
! Clean residual min=-0.005100 max=0.004317 Jy/beam
! Clean residual mean=-0.000003 rms=0.001370 Jy/beam
! Combined flux in latest and established models = 0.6444 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 67 components and 0.6444 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.8733 mas, bmaj=2.161 mas, bpa=-1.387 degrees
! Estimated noise=1.62073 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 8.33699e-05 Jy
! Component: 100  -  total flux cleaned = 0.000154471 Jy
! Component: 150  -  total flux cleaned = 0.00021746 Jy
! Component: 200  -  total flux cleaned = 0.00027252 Jy
! Total flux subtracted in 200 components = 0.00027252 Jy
! Clean residual min=-0.004583 max=0.004457 Jy/beam
! Clean residual mean=-0.000002 rms=0.001225 Jy/beam
! Combined flux in latest and established models = 0.644672 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 74 components and 0.644673 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.069498Jy  sigma=0.934293
! Fit after  self-cal, rms=0.069495Jy  sigma=0.934127
wmodel J1222+0413_X_2006_02_16_yyk\_map.mod
! Writing 74 model components to file: J1222+0413_X_2006_02_16_yyk_map.mod
wobs J1222+0413_X_2006_02_16_yyk\_uvs.fits
! Writing UV FITS file: J1222+0413_X_2006_02_16_yyk_uvs.fits
wwins J1222+0413_X_2006_02_16_yyk\_map.win
! wwins: Wrote 2 windows to J1222+0413_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.000990588 Jy
! Component: 100  -  total flux cleaned = -0.0017425 Jy
! Component: 150  -  total flux cleaned = -0.00209465 Jy
! Component: 200  -  total flux cleaned = -0.00222961 Jy
! Component: 250  -  total flux cleaned = -0.00242398 Jy
! Component: 300  -  total flux cleaned = -0.00279659 Jy
! Component: 350  -  total flux cleaned = -0.00297646 Jy
! Component: 400  -  total flux cleaned = -0.00344483 Jy
! Component: 450  -  total flux cleaned = -0.00384129 Jy
! Component: 500  -  total flux cleaned = -0.0040069 Jy
! Component: 550  -  total flux cleaned = -0.00438388 Jy
! Component: 600  -  total flux cleaned = -0.00464567 Jy
! Component: 650  -  total flux cleaned = -0.00479947 Jy
! Component: 700  -  total flux cleaned = -0.00479996 Jy
! Component: 750  -  total flux cleaned = -0.00494761 Jy
! Component: 800  -  total flux cleaned = -0.00499508 Jy
! Component: 850  -  total flux cleaned = -0.00494707 Jy
! Component: 900  -  total flux cleaned = -0.00499304 Jy
! Component: 950  -  total flux cleaned = -0.00499325 Jy
! Component: 1000  -  total flux cleaned = -0.00503815 Jy
! Component: 1050  -  total flux cleaned = -0.00495079 Jy
! Component: 1100  -  total flux cleaned = -0.00499396 Jy
! Component: 1150  -  total flux cleaned = -0.00482602 Jy
! Component: 1200  -  total flux cleaned = -0.00474332 Jy
! Component: 1250  -  total flux cleaned = -0.00482481 Jy
! Component: 1300  -  total flux cleaned = -0.00470371 Jy
! Component: 1350  -  total flux cleaned = -0.00458454 Jy
! Component: 1400  -  total flux cleaned = -0.00458426 Jy
! Component: 1450  -  total flux cleaned = -0.00454497 Jy
! Component: 1500  -  total flux cleaned = -0.00431652 Jy
! Component: 1550  -  total flux cleaned = -0.00439138 Jy
! Component: 1600  -  total flux cleaned = -0.00431687 Jy
! Component: 1650  -  total flux cleaned = -0.00420716 Jy
! Component: 1700  -  total flux cleaned = -0.00402662 Jy
! Component: 1750  -  total flux cleaned = -0.00399099 Jy
! Component: 1800  -  total flux cleaned = -0.00395549 Jy
! Component: 1850  -  total flux cleaned = -0.00388531 Jy
! Component: 1900  -  total flux cleaned = -0.00385073 Jy
! Component: 1950  -  total flux cleaned = -0.00385061 Jy
! Component: 2000  -  total flux cleaned = -0.00378346 Jy
! Total flux subtracted in 2048 components = -0.00385055 Jy
! Clean residual min=-0.002778 max=0.002063 Jy/beam
! Clean residual mean=-0.000004 rms=0.000636 Jy/beam
! Combined flux in latest and established models = 0.640822 Jy
keep
! Adding 118 model components to the UV plane model.
! The established model now contains 192 components and 0.640822 Jy
![Exited script file: muppet]
wmap "J1222+0413_X_2006_02_16_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8733 x 2.161 at -1.387 degrees (North through East)
! Clean map  min=-0.0037805  max=0.58952 Jy/beam
! Writing clean map to FITS file: J1222+0413_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 0.589522 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000629481 
device "J1222+0413_X_2006_02_16_yyk\_map.eps/VPS"
! Attempting to open device: 'J1222+0413_X_2006_02_16_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.320335 0.320335 0.640669 1.28134 2.56268 5.12535 10.2507 20.5014 41.0028 82.0057
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.589 
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.8733 x 2.161 at -1.387 degrees (North through East)
! Clean map  min=-0.0037805  max=0.58952 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1222+0413_X_2006_02_16_yyk\_map.gif/gif"
! Attempting to open device: 'J1222+0413_X_2006_02_16_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1222+0413_X_2006_02_16_yyk_uvs.log closed on Wed Jul  5 12:13:34 2006