! Started logfile: J2238+1242_X_1996_01_02_yyk_uvs.log on Mon Jan  8 10:41:04 2007
obs J2238+1242_X_1996_01_02_yyk_uva.fits
! Reading UV FITS file: J2238+1242_X_1996_01_02_yyk_uva.fits
! AN table 1: 93 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.408124 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J2238+1242
! 
! 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.15049e+09        4e+06          1        4e+06
!  02        2  8.23236e+09        4e+06          1        4e+06
!  03        3  8.41236e+09        4e+06          1        4e+06
!  04        4  8.55236e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 627 lines of history.
! 
! Reading 6832 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 J2238+1242_X_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.200x0.200 milli-arcsec cellsize.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 0.411347 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.6214 mas, bmaj=1.942 mas, bpa=-3.206 degrees
! Estimated noise=2086.03 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.192376 Jy
! Component: 100  -  total flux cleaned = 0.226675 Jy
! Total flux subtracted in 100 components = 0.226675 Jy
! Clean residual min=-0.021046 max=0.020453 Jy/beam
! Clean residual mean=0.000022 rms=0.005112 Jy/beam
! Combined flux in latest and established models = 0.226675 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.226675 Jy
! 
! Correcting IF 1.
!  A total of 337 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 337 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 337 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 337 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.344139Jy  sigma=0.001811
! Fit after  self-cal, rms=0.343516Jy  sigma=0.001810
! Inverting map and beam 
! Estimated beam: bmin=0.6214 mas, bmaj=1.942 mas, bpa=-3.215 degrees
! Estimated noise=2086.38 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.7493 mas, bmaj=2.249 mas, bpa=-2.299 degrees
! Estimated noise=1373.65 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.0204914 Jy
! Component: 100  -  total flux cleaned = 0.0230157 Jy
! Component: 150  -  total flux cleaned = 0.0237533 Jy
! Component: 200  -  total flux cleaned = 0.0235476 Jy
! Total flux subtracted in 200 components = 0.0235476 Jy
! Clean residual min=-0.013590 max=0.014512 Jy/beam
! Clean residual mean=0.000007 rms=0.003988 Jy/beam
! Combined flux in latest and established models = 0.250222 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 12 components and 0.250222 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.343621Jy  sigma=0.001803
! Fit after  self-cal, rms=0.343603Jy  sigma=0.001803
! 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.7493 x 2.249 at -2.299 degrees (North through East)
! Clean map  min=-0.01269  max=0.23875 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.834374
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.18     HN        1.10     KP        0.88     
!   LA        2.90     MK        0.94     NL        0.98     OV        0.96     
!   PT        1.13     SC        0.92     
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.929487
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.21     HN        1.26     KP        0.89     
!   LA        1.45     MK        0.99     NL        0.92     OV        0.96     
!   PT        1.06     SC        1.03     
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.80542
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.86     HN        1.27     KP        0.94     
!   LA        2.24     MK        1.01     NL        0.86     OV        0.97     
!   PT        1.22     SC        1.04     
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.932652
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.27     HN        1.35     KP        0.89     
!   LA        1.22     MK        0.93     NL        0.95     OV        0.95     
!   PT        1.14     SC        1.01     
! 
! 
! Fit before self-cal, rms=0.343603Jy  sigma=0.001803
! Fit after  self-cal, rms=0.360910Jy  sigma=0.001867
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.360910Jy  sigma=0.001867
! Fit after  self-cal, rms=0.361059Jy  sigma=0.001867
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7518 mas, bmaj=2.254 mas, bpa=-1.818 degrees
! Estimated noise=1020.46 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.0532656 Jy
! Component: 100  -  total flux cleaned = -0.0606108 Jy
! Component: 150  -  total flux cleaned = -0.061539 Jy
! Component: 200  -  total flux cleaned = -0.0617494 Jy
! Total flux subtracted in 200 components = -0.0617494 Jy
! Clean residual min=-0.007208 max=0.006985 Jy/beam
! Clean residual mean=-0.000015 rms=0.001855 Jy/beam
! Combined flux in latest and established models = 0.188473 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 18 components and 0.188473 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356493Jy  sigma=0.001794
! Fit after  self-cal, rms=0.356484Jy  sigma=0.001794
! 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.356484Jy  sigma=0.001794
! Fit after  self-cal, rms=0.356123Jy  sigma=0.001790
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.000675346 Jy
! Component: 100  -  total flux cleaned = 0.000629251 Jy
! Component: 150  -  total flux cleaned = 0.00054998 Jy
! Component: 200  -  total flux cleaned = 0.000546286 Jy
! Total flux subtracted in 200 components = 0.000546286 Jy
! Clean residual min=-0.007023 max=0.006710 Jy/beam
! Clean residual mean=-0.000014 rms=0.001823 Jy/beam
! Combined flux in latest and established models = 0.189019 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 27 components and 0.189019 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356128Jy  sigma=0.001789
! Fit after  self-cal, rms=0.356084Jy  sigma=0.001789
! 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.7518 x 2.254 at -1.818 degrees (North through East)
! Clean map  min=-0.0066633  max=0.17872 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.356084Jy  sigma=0.001789
! Fit after  self-cal, rms=0.380117Jy  sigma=0.001772
! 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.380117Jy  sigma=0.001772
! Fit after  self-cal, rms=0.380153Jy  sigma=0.001772
! Inverting map and beam 
! Estimated beam: bmin=0.7456 mas, bmaj=2.267 mas, bpa=-1.769 degrees
! Estimated noise=1006.65 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00049059 Jy
! Component: 100  -  total flux cleaned = 0.00024998 Jy
! Component: 150  -  total flux cleaned = 4.5033e-05 Jy
! Component: 200  -  total flux cleaned = -2.4891e-06 Jy
! Total flux subtracted in 200 components = -2.4891e-06 Jy
! Clean residual min=-0.007070 max=0.006301 Jy/beam
! Clean residual mean=-0.000014 rms=0.001564 Jy/beam
! Combined flux in latest and established models = 0.189017 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 29 components and 0.189017 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380138Jy  sigma=0.001772
! Fit after  self-cal, rms=0.380214Jy  sigma=0.001772
! 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.380214Jy  sigma=0.001772
! Fit after  self-cal, rms=3.286701Jy  sigma=0.001773
! 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.286701Jy  sigma=0.001773
! Fit after  self-cal, rms=3.285057Jy  sigma=0.001773
! Inverting map and beam 
! Estimated beam: bmin=0.7474 mas, bmaj=2.272 mas, bpa=-1.679 degrees
! Estimated noise=1017.75 mJy/beam.
! Added new window around map position (1.6, -2).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00657774 Jy
! Component: 100  -  total flux cleaned = 0.00856318 Jy
! Component: 150  -  total flux cleaned = 0.0090381 Jy
! Component: 200  -  total flux cleaned = 0.00929189 Jy
! Total flux subtracted in 200 components = 0.00929189 Jy
! Clean residual min=-0.006345 max=0.005133 Jy/beam
! Clean residual mean=-0.000007 rms=0.001370 Jy/beam
! Combined flux in latest and established models = 0.198309 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 46 components and 0.198309 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.285084Jy  sigma=0.001771
! Fit after  self-cal, rms=3.285376Jy  sigma=0.001771
! 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=1.69 mas, bmaj=4.092 mas, bpa=-10.54 degrees
! Estimated noise=1449.62 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.00231048 Jy
! Component: 100  -  total flux cleaned = 0.00255765 Jy
! Component: 150  -  total flux cleaned = 0.00271112 Jy
! Component: 200  -  total flux cleaned = 0.00267765 Jy
! Total flux subtracted in 200 components = 0.00267765 Jy
! Clean residual min=-0.006765 max=0.006672 Jy/beam
! Clean residual mean=-0.000009 rms=0.001903 Jy/beam
! Combined flux in latest and established models = 0.200986 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 59 components and 0.200986 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.285399Jy  sigma=0.001771
! Fit after  self-cal, rms=3.285928Jy  sigma=0.001771
! 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.6174 mas, bmaj=1.952 mas, bpa=-1.7 degrees
! Estimated noise=1728.2 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.156422 Jy
! Component: 100  -  total flux cleaned = 0.182809 Jy
! Component: 150  -  total flux cleaned = 0.193208 Jy
! Component: 200  -  total flux cleaned = 0.199465 Jy
! Total flux subtracted in 200 components = 0.199465 Jy
! Clean residual min=-0.012021 max=0.009774 Jy/beam
! Clean residual mean=-0.000002 rms=0.002963 Jy/beam
! Combined flux in latest and established models = 0.199465 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 16 model components to the UV plane model.
! The established model now contains 16 components and 0.199465 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.7474 mas, bmaj=2.272 mas, bpa=-1.679 degrees
! Estimated noise=1017.75 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.00284501 Jy
! Component: 100  -  total flux cleaned = 0.00255702 Jy
! Component: 150  -  total flux cleaned = 0.00234257 Jy
! Component: 200  -  total flux cleaned = 0.00198105 Jy
! Total flux subtracted in 200 components = 0.00198105 Jy
! Clean residual min=-0.006155 max=0.005318 Jy/beam
! Clean residual mean=-0.000004 rms=0.001365 Jy/beam
! Combined flux in latest and established models = 0.201446 Jy
! Adding 19 model components to the UV plane model.
! The established model now contains 33 components and 0.201446 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=1.69 mas, bmaj=4.092 mas, bpa=-10.54 degrees
! Estimated noise=1449.62 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.000539056 Jy
! Component: 100  -  total flux cleaned = 0.000382554 Jy
! Component: 150  -  total flux cleaned = 0.000286549 Jy
! Component: 200  -  total flux cleaned = 0.000195215 Jy
! Total flux subtracted in 200 components = 0.000195215 Jy
! Clean residual min=-0.006527 max=0.006754 Jy/beam
! Clean residual mean=-0.000006 rms=0.001912 Jy/beam
! Combined flux in latest and established models = 0.201642 Jy
! Adding 17 model components to the UV plane model.
! The established model now contains 47 components and 0.201642 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.7474 mas, bmaj=2.272 mas, bpa=-1.679 degrees
! Estimated noise=1017.75 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -9.41501e-05 Jy
! Component: 100  -  total flux cleaned = -0.000391455 Jy
! Component: 150  -  total flux cleaned = -0.00076269 Jy
! Component: 200  -  total flux cleaned = -0.00114934 Jy
! Total flux subtracted in 200 components = -0.00114934 Jy
! Clean residual min=-0.006332 max=0.005143 Jy/beam
! Clean residual mean=-0.000005 rms=0.001333 Jy/beam
! Combined flux in latest and established models = 0.200492 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 60 components and 0.200492 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.285926Jy  sigma=0.001771
! Fit after  self-cal, rms=3.286155Jy  sigma=0.001771
wmodel J2238+1242_X_1996_01_02_yyk\_map.mod
! Writing 60 model components to file: J2238+1242_X_1996_01_02_yyk_map.mod
wobs J2238+1242_X_1996_01_02_yyk\_uvs.fits
! Writing UV FITS file: J2238+1242_X_1996_01_02_yyk_uvs.fits
wwins J2238+1242_X_1996_01_02_yyk\_map.win
! wwins: Wrote 2 windows to J2238+1242_X_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.00128962 Jy
! Component: 100  -  total flux cleaned = -0.00136946 Jy
! Component: 150  -  total flux cleaned = -0.00152634 Jy
! Component: 200  -  total flux cleaned = -0.00174265 Jy
! Component: 250  -  total flux cleaned = -0.00201775 Jy
! Component: 300  -  total flux cleaned = -0.00261544 Jy
! Component: 350  -  total flux cleaned = -0.00351156 Jy
! Component: 400  -  total flux cleaned = -0.00431663 Jy
! Component: 450  -  total flux cleaned = -0.00491988 Jy
! Component: 500  -  total flux cleaned = -0.00539196 Jy
! Component: 550  -  total flux cleaned = -0.00585219 Jy
! Component: 600  -  total flux cleaned = -0.00613387 Jy
! Component: 650  -  total flux cleaned = -0.00640863 Jy
! Component: 700  -  total flux cleaned = -0.00667796 Jy
! Component: 750  -  total flux cleaned = -0.00704866 Jy
! Component: 800  -  total flux cleaned = -0.00736106 Jy
! Component: 850  -  total flux cleaned = -0.00746316 Jy
! Component: 900  -  total flux cleaned = -0.00771419 Jy
! Component: 950  -  total flux cleaned = -0.00761555 Jy
! Component: 1000  -  total flux cleaned = -0.00756774 Jy
! Component: 1050  -  total flux cleaned = -0.00747306 Jy
! Component: 1100  -  total flux cleaned = -0.00737931 Jy
! Component: 1150  -  total flux cleaned = -0.00724182 Jy
! Component: 1200  -  total flux cleaned = -0.00719687 Jy
! Component: 1250  -  total flux cleaned = -0.00719657 Jy
! Component: 1300  -  total flux cleaned = -0.00692939 Jy
! Component: 1350  -  total flux cleaned = -0.00684205 Jy
! Component: 1400  -  total flux cleaned = -0.00679904 Jy
! Component: 1450  -  total flux cleaned = -0.00675605 Jy
! Component: 1500  -  total flux cleaned = -0.00679848 Jy
! Component: 1550  -  total flux cleaned = -0.00667267 Jy
! Component: 1600  -  total flux cleaned = -0.00679811 Jy
! Component: 1650  -  total flux cleaned = -0.00688062 Jy
! Component: 1700  -  total flux cleaned = -0.00692229 Jy
! Component: 1750  -  total flux cleaned = -0.00716538 Jy
! Component: 1800  -  total flux cleaned = -0.00724548 Jy
! Component: 1850  -  total flux cleaned = -0.00736527 Jy
! Component: 1900  -  total flux cleaned = -0.00748294 Jy
! Component: 1950  -  total flux cleaned = -0.0075996 Jy
! Component: 2000  -  total flux cleaned = -0.00759995 Jy
! Total flux subtracted in 2048 components = -0.00771498 Jy
! Clean residual min=-0.002575 max=0.002025 Jy/beam
! Clean residual mean=-0.000003 rms=0.000721 Jy/beam
! Combined flux in latest and established models = 0.192777 Jy
keep
! Adding 135 model components to the UV plane model.
! The established model now contains 195 components and 0.192777 Jy
![Exited script file: muppet]
wmap "J2238+1242_X_1996_01_02_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7474 x 2.272 at -1.679 degrees (North through East)
! Clean map  min=-0.0048799  max=0.18254 Jy/beam
! Writing clean map to FITS file: J2238+1242_X_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.182536 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000722515 
device "J2238+1242_X_1996_01_02_yyk\_map.eps/VPS"
! Attempting to open device: 'J2238+1242_X_1996_01_02_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.18746 1.18746 2.37493 4.74985 9.49971 18.9994 37.9988 75.9977
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.182 
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.7474 x 2.272 at -1.679 degrees (North through East)
! Clean map  min=-0.0048799  max=0.18254 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2238+1242_X_1996_01_02_yyk\_map.gif/gif"
! Attempting to open device: 'J2238+1242_X_1996_01_02_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2238+1242_X_1996_01_02_yyk_uvs.log closed on Mon Jan  8 10:41:09 2007