! Started logfile: J1947+1248_S_1996_01_02_yyk_uvs.log on Sun Jan  7 19:42:18 2007
obs J1947+1248_S_1996_01_02_yyk_uva.fits
! Reading UV FITS file: J1947+1248_S_1996_01_02_yyk_uva.fits
! AN table 1: 109 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.789602 visibilities/baseline/integration-bin.
! Found source: J1947+1248
! 
! 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 623 lines of history.
! 
! Reading 15492 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 J1947+1248_S_1996_01_02_yyk]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.04
float dynam
dynam = 6.0
float amp_soltime1
amp_soltime1 = 10
float amp_soltime2
amp_soltime2 = 1
float phase_soltime1
phase_soltime1=10
float phase_soltime2
phase_soltime2=0.5
float phase_soltime
phase_soltime=phase_soltime1
float ampcor_selflim
ampcor_selflim=1.20
float thresh
thresh = 0.10
float win_mult
win_mult = 1.8
float time_av
time_av = 30
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.4778 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.724 mas, bmaj=7.272 mas, bpa=-4.061 degrees
! Estimated noise=2508.96 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.171678 Jy
! Component: 100  -  total flux cleaned = 0.196675 Jy
! Total flux subtracted in 100 components = 0.196675 Jy
! Clean residual min=-0.022034 max=0.032062 Jy/beam
! Clean residual mean=-0.000034 rms=0.006071 Jy/beam
! Combined flux in latest and established models = 0.196675 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.196675 Jy
! 
! Correcting IF 1.
!  A total of 138 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 138 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 138 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 156 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.430100Jy  sigma=0.001809
! Fit after  self-cal, rms=0.427447Jy  sigma=0.001795
! Inverting map and beam 
! Estimated beam: bmin=2.724 mas, bmaj=7.272 mas, bpa=-4.061 degrees
! Estimated noise=2509.1 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.505 mas, bmaj=9.396 mas, bpa=-8.998 degrees
! Estimated noise=1236.51 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.0177183 Jy
! Component: 100  -  total flux cleaned = 0.0174293 Jy
! Component: 150  -  total flux cleaned = 0.0176733 Jy
! Component: 200  -  total flux cleaned = 0.0179197 Jy
! Total flux subtracted in 200 components = 0.0179197 Jy
! Clean residual min=-0.014244 max=0.020131 Jy/beam
! Clean residual mean=0.000018 rms=0.004304 Jy/beam
! Combined flux in latest and established models = 0.214594 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 22 components and 0.214594 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.426719Jy  sigma=0.001792
! Fit after  self-cal, rms=0.426720Jy  sigma=0.001792
! 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.505 x 9.396 at -8.998 degrees (North through East)
! Clean map  min=-0.014033  max=0.21047 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.965125
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.25     FD        1.06     HN        1.37     KP        1.05     
!   LA        1.30     MK        0.97     NL        0.75     OV        0.93     
!   PT        0.97     SC        0.72     
! 
! 
! Correcting IF 2.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.898476
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.30     FD        2.15     HN        1.47     KP        0.77     
!   LA        1.04     MK        0.98     NL        0.78     OV        0.92     
!   PT        0.88     SC        0.81     
! 
! 
! Correcting IF 3.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.03986
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.08     HN        1.40     KP        0.77     
!   LA        0.97     MK        0.87     NL        0.83     OV        0.84     
!   PT        1.08     SC        0.82     
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.991937
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.19     FD        1.14     HN        1.28     KP        0.88     
!   LA        0.94     MK        0.98     NL        0.95     OV        0.82     
!   PT        1.13     SC        0.79     
! 
! 
! Fit before self-cal, rms=0.426720Jy  sigma=0.001792
! Fit after  self-cal, rms=0.450578Jy  sigma=0.001776
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.450578Jy  sigma=0.001776
! Fit after  self-cal, rms=0.450688Jy  sigma=0.001776
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.398 mas, bmaj=9.05 mas, bpa=-5.73 degrees
! Estimated noise=1106.68 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.013465 Jy
! Component: 100  -  total flux cleaned = -0.0178827 Jy
! Component: 150  -  total flux cleaned = -0.0190302 Jy
! Component: 200  -  total flux cleaned = -0.0199668 Jy
! Total flux subtracted in 200 components = -0.0199668 Jy
! Clean residual min=-0.007748 max=0.007451 Jy/beam
! Clean residual mean=0.000057 rms=0.002088 Jy/beam
! Combined flux in latest and established models = 0.194627 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 38 components and 0.194627 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.450466Jy  sigma=0.001774
! Fit after  self-cal, rms=0.450468Jy  sigma=0.001774
! 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.450468Jy  sigma=0.001774
! Fit after  self-cal, rms=0.449883Jy  sigma=0.001770
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.000907075 Jy
! Component: 100  -  total flux cleaned = 0.000649632 Jy
! Component: 150  -  total flux cleaned = 0.000343908 Jy
! Component: 200  -  total flux cleaned = 0.000142351 Jy
! Total flux subtracted in 200 components = 0.000142351 Jy
! Clean residual min=-0.007886 max=0.007231 Jy/beam
! Clean residual mean=0.000057 rms=0.002059 Jy/beam
! Combined flux in latest and established models = 0.19477 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 49 components and 0.19477 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.449828Jy  sigma=0.001770
! Fit after  self-cal, rms=0.449625Jy  sigma=0.001769
! 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.398 x 9.05 at -5.73 degrees (North through East)
! Clean map  min=-0.0075414  max=0.19639 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.449625Jy  sigma=0.001769
! Fit after  self-cal, rms=3.821790Jy  sigma=0.001745
! 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=3.821790Jy  sigma=0.001745
! Fit after  self-cal, rms=3.823762Jy  sigma=0.001745
! Inverting map and beam 
! Estimated beam: bmin=3.468 mas, bmaj=8.979 mas, bpa=-5.781 degrees
! Estimated noise=1066.91 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00135216 Jy
! Component: 100  -  total flux cleaned = 0.00155598 Jy
! Component: 150  -  total flux cleaned = 0.00173558 Jy
! Component: 200  -  total flux cleaned = 0.00185716 Jy
! Total flux subtracted in 200 components = 0.00185716 Jy
! Clean residual min=-0.006359 max=0.005190 Jy/beam
! Clean residual mean=0.000005 rms=0.001547 Jy/beam
! Combined flux in latest and established models = 0.196627 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 57 components and 0.196627 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.823743Jy  sigma=0.001744
! Fit after  self-cal, rms=3.824257Jy  sigma=0.001744
! 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=3.824257Jy  sigma=0.001744
! Fit after  self-cal, rms=3.283939Jy  sigma=0.001743
! 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=3.283939Jy  sigma=0.001743
! Fit after  self-cal, rms=3.283201Jy  sigma=0.001742
! Inverting map and beam 
! Estimated beam: bmin=3.461 mas, bmaj=8.956 mas, bpa=-5.781 degrees
! Estimated noise=1075.87 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00242111 Jy
! Component: 100  -  total flux cleaned = 0.002774 Jy
! Component: 150  -  total flux cleaned = 0.00298633 Jy
! Component: 200  -  total flux cleaned = 0.00310134 Jy
! Total flux subtracted in 200 components = 0.00310134 Jy
! Clean residual min=-0.006486 max=0.005368 Jy/beam
! Clean residual mean=0.000004 rms=0.001552 Jy/beam
! Combined flux in latest and established models = 0.199728 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 62 components and 0.199728 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.283197Jy  sigma=0.001742
! Fit after  self-cal, rms=3.282868Jy  sigma=0.001742
! 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=7.559 mas, bmaj=12.84 mas, bpa=-11.44 degrees
! Estimated noise=1311.98 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.000999313 Jy
! Component: 100  -  total flux cleaned = 0.0011813 Jy
! Component: 150  -  total flux cleaned = 0.00132879 Jy
! Component: 200  -  total flux cleaned = 0.00144979 Jy
! Total flux subtracted in 200 components = 0.00144979 Jy
! Clean residual min=-0.006487 max=0.005536 Jy/beam
! Clean residual mean=0.000002 rms=0.001977 Jy/beam
! Combined flux in latest and established models = 0.201178 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 73 components and 0.201178 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.282861Jy  sigma=0.001742
! Fit after  self-cal, rms=3.282800Jy  sigma=0.001742
! 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.655 mas, bmaj=7.002 mas, bpa=-1.014 degrees
! Estimated noise=2339.74 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.175694 Jy
! Component: 100  -  total flux cleaned = 0.199702 Jy
! Component: 150  -  total flux cleaned = 0.202801 Jy
! Component: 200  -  total flux cleaned = 0.203997 Jy
! Total flux subtracted in 200 components = 0.203997 Jy
! Clean residual min=-0.011788 max=0.010647 Jy/beam
! Clean residual mean=-0.000006 rms=0.002973 Jy/beam
! Combined flux in latest and established models = 0.203997 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.203997 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.461 mas, bmaj=8.956 mas, bpa=-5.781 degrees
! Estimated noise=1075.87 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.00362582 Jy
! Component: 100  -  total flux cleaned = -0.00401272 Jy
! Component: 150  -  total flux cleaned = -0.00414048 Jy
! Component: 200  -  total flux cleaned = -0.00431171 Jy
! Total flux subtracted in 200 components = -0.00431171 Jy
! Clean residual min=-0.006410 max=0.005403 Jy/beam
! Clean residual mean=0.000005 rms=0.001562 Jy/beam
! Combined flux in latest and established models = 0.199685 Jy
! Adding 13 model components to the UV plane model.
! The established model now contains 30 components and 0.199685 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.559 mas, bmaj=12.84 mas, bpa=-11.44 degrees
! Estimated noise=1311.98 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.000497207 Jy
! Component: 100  -  total flux cleaned = 0.000590116 Jy
! Component: 150  -  total flux cleaned = 0.000672445 Jy
! Component: 200  -  total flux cleaned = 0.000745145 Jy
! Total flux subtracted in 200 components = 0.000745145 Jy
! Clean residual min=-0.006560 max=0.005647 Jy/beam
! Clean residual mean=0.000006 rms=0.001992 Jy/beam
! Combined flux in latest and established models = 0.20043 Jy
! Adding 11 model components to the UV plane model.
! The established model now contains 40 components and 0.20043 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.461 mas, bmaj=8.956 mas, bpa=-5.781 degrees
! Estimated noise=1075.87 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00066832 Jy
! Component: 100  -  total flux cleaned = -0.000611926 Jy
! Component: 150  -  total flux cleaned = -0.000610325 Jy
! Component: 200  -  total flux cleaned = -0.000610036 Jy
! Total flux subtracted in 200 components = -0.000610036 Jy
! Clean residual min=-0.006454 max=0.005471 Jy/beam
! Clean residual mean=0.000005 rms=0.001556 Jy/beam
! Combined flux in latest and established models = 0.19982 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 41 components and 0.19982 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.282806Jy  sigma=0.001742
! Fit after  self-cal, rms=3.282832Jy  sigma=0.001742
wmodel J1947+1248_S_1996_01_02_yyk\_map.mod
! Writing 41 model components to file: J1947+1248_S_1996_01_02_yyk_map.mod
wobs J1947+1248_S_1996_01_02_yyk\_uvs.fits
! Writing UV FITS file: J1947+1248_S_1996_01_02_yyk_uvs.fits
wwins J1947+1248_S_1996_01_02_yyk\_map.win
! wwins: Wrote 1 windows to J1947+1248_S_1996_01_02_yyk_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00212641 Jy
! Component: 100  -  total flux cleaned = -0.00298984 Jy
! Component: 150  -  total flux cleaned = -0.00361255 Jy
! Component: 200  -  total flux cleaned = -0.00386975 Jy
! Component: 250  -  total flux cleaned = -0.00370631 Jy
! Component: 300  -  total flux cleaned = -0.00354652 Jy
! Component: 350  -  total flux cleaned = -0.0033921 Jy
! Component: 400  -  total flux cleaned = -0.00324307 Jy
! Component: 450  -  total flux cleaned = -0.0032455 Jy
! Component: 500  -  total flux cleaned = -0.00338968 Jy
! Component: 550  -  total flux cleaned = -0.00352875 Jy
! Component: 600  -  total flux cleaned = -0.00373145 Jy
! Component: 650  -  total flux cleaned = -0.00372967 Jy
! Component: 700  -  total flux cleaned = -0.00386003 Jy
! Component: 750  -  total flux cleaned = -0.00411713 Jy
! Component: 800  -  total flux cleaned = -0.00455745 Jy
! Component: 850  -  total flux cleaned = -0.00474195 Jy
! Component: 900  -  total flux cleaned = -0.00480205 Jy
! Component: 950  -  total flux cleaned = -0.00510152 Jy
! Component: 1000  -  total flux cleaned = -0.00516114 Jy
! Component: 1050  -  total flux cleaned = -0.00556938 Jy
! Component: 1100  -  total flux cleaned = -0.0058568 Jy
! Component: 1150  -  total flux cleaned = -0.00630879 Jy
! Component: 1200  -  total flux cleaned = -0.00658724 Jy
! Component: 1250  -  total flux cleaned = -0.00691694 Jy
! Component: 1300  -  total flux cleaned = -0.00713386 Jy
! Component: 1350  -  total flux cleaned = -0.00745514 Jy
! Component: 1400  -  total flux cleaned = -0.00766667 Jy
! Component: 1450  -  total flux cleaned = -0.00777157 Jy
! Component: 1500  -  total flux cleaned = -0.00797915 Jy
! Component: 1550  -  total flux cleaned = -0.00818313 Jy
! Component: 1600  -  total flux cleaned = -0.00838492 Jy
! Component: 1650  -  total flux cleaned = -0.00833473 Jy
! Component: 1700  -  total flux cleaned = -0.00868011 Jy
! Component: 1750  -  total flux cleaned = -0.00877647 Jy
! Component: 1800  -  total flux cleaned = -0.00887304 Jy
! Component: 1850  -  total flux cleaned = -0.00896848 Jy
! Component: 1900  -  total flux cleaned = -0.00915898 Jy
! Component: 1950  -  total flux cleaned = -0.0093474 Jy
! Component: 2000  -  total flux cleaned = -0.00948746 Jy
! Total flux subtracted in 2048 components = -0.00958067 Jy
! Clean residual min=-0.002920 max=0.003024 Jy/beam
! Clean residual mean=0.000003 rms=0.000975 Jy/beam
! Combined flux in latest and established models = 0.190239 Jy
keep
! Adding 148 model components to the UV plane model.
! The established model now contains 189 components and 0.190239 Jy
![Exited script file: muppet]
wmap "J1947+1248_S_1996_01_02_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.461 x 8.956 at -5.781 degrees (North through East)
! Clean map  min=-0.0058734  max=0.19927 Jy/beam
! Writing clean map to FITS file: J1947+1248_S_1996_01_02_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.199268 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000966715 
device "J1947+1248_S_1996_01_02_yyk\_map.eps/VPS"
! Attempting to open device: 'J1947+1248_S_1996_01_02_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.4554 1.4554 2.91079 5.82159 11.6432 23.2864 46.5727 93.1454
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0029 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.199 
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.461 x 8.956 at -5.781 degrees (North through East)
! Clean map  min=-0.0058734  max=0.19927 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1947+1248_S_1996_01_02_yyk\_map.gif/gif"
! Attempting to open device: 'J1947+1248_S_1996_01_02_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1947+1248_S_1996_01_02_yyk_uvs.log closed on Sun Jan  7 19:42:24 2007