! Started logfile: J1823+7938_S_1997_08_27_yyk_uvs.log on Sun Jan  7 19:29:36 2007
obs J1823+7938_S_1997_08_27_yyk_uva.fits
! Reading UV FITS file: J1823+7938_S_1997_08_27_yyk_uva.fits
! AN table 1: 149 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.935421 visibilities/baseline/integration-bin.
! Found source: J1823+7938
! 
! 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.22447e+09        8e+06          1        8e+06
!  02        2  2.23447e+09        8e+06          1        8e+06
!  03        3  2.29447e+09        8e+06          1        8e+06
!  04        4  2.32447e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 703 lines of history.
! 
! Reading 25088 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 J1823+7938_S_1997_08_27_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.504578 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.473 mas, bmaj=6.448 mas, bpa=-89.92 degrees
! Estimated noise=2316.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.192761 Jy
! Component: 100  -  total flux cleaned = 0.250535 Jy
! Total flux subtracted in 100 components = 0.250535 Jy
! Clean residual min=-0.039397 max=0.093591 Jy/beam
! Clean residual mean=-0.000014 rms=0.011335 Jy/beam
! Combined flux in latest and established models = 0.250535 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 25 components and 0.250535 Jy
! 
! Correcting IF 1.
!  A total of 201 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 55 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 55 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 55 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.434030Jy  sigma=0.001608
! Fit after  self-cal, rms=0.433712Jy  sigma=0.001605
! Inverting map and beam 
! Estimated beam: bmin=2.473 mas, bmaj=6.448 mas, bpa=-89.92 degrees
! Estimated noise=2316.72 mJy/beam.
! Added new window around map position (-9.5, -5).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.102314 Jy
! Component: 100  -  total flux cleaned = 0.141623 Jy
! Total flux subtracted in 100 components = 0.141623 Jy
! Clean residual min=-0.028133 max=0.066433 Jy/beam
! Clean residual mean=0.000032 rms=0.007914 Jy/beam
! Combined flux in latest and established models = 0.392158 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 34 components and 0.392158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.413052Jy  sigma=0.001511
! Fit after  self-cal, rms=0.408108Jy  sigma=0.001486
! Inverting map 
! Added new window around map position (-13.5, -7.5).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0583326 Jy
! Component: 100  -  total flux cleaned = 0.0801751 Jy
! Total flux subtracted in 100 components = 0.0801751 Jy
! Clean residual min=-0.018765 max=0.032855 Jy/beam
! Clean residual mean=0.000050 rms=0.004911 Jy/beam
! Combined flux in latest and established models = 0.472333 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 44 components and 0.472333 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.401689Jy  sigma=0.001458
! Fit after  self-cal, rms=0.400458Jy  sigma=0.001452
! Inverting map 
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.356 mas, bmaj=7.807 mas, bpa=89.06 degrees
! Estimated noise=1112.67 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.0232343 Jy
! Component: 100  -  total flux cleaned = 0.0273584 Jy
! Component: 150  -  total flux cleaned = 0.0285985 Jy
! Component: 200  -  total flux cleaned = 0.0286127 Jy
! Total flux subtracted in 200 components = 0.0286127 Jy
! Clean residual min=-0.012084 max=0.018959 Jy/beam
! Clean residual mean=0.000151 rms=0.003251 Jy/beam
! Combined flux in latest and established models = 0.500945 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 61 components and 0.500945 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.399216Jy  sigma=0.001448
! Fit after  self-cal, rms=0.399034Jy  sigma=0.001447
! 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.356 x 7.807 at 89.06 degrees (North through East)
! Clean map  min=-0.011087  max=0.20637 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.987408
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.05     HN        1.07     KP        0.90     
!   LA        0.99     MK        1.03     NL        1.00*    OV        1.16     
!   PT        0.98     SC        0.93     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.975105
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        1.10     HN        1.01     KP        1.00     
!   LA        1.06     MK        1.07     NL        0.96     OV        1.23     
!   PT        0.95     SC        0.80     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.0696
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.03     HN        0.94     KP        0.88     
!   LA        0.81     MK        0.84     NL        0.93     OV        0.93     
!   PT        1.08     SC        0.96     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.997002
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.09     HN        1.14     KP        0.96     
!   LA        0.85     MK        1.05     NL        0.98     OV        1.07     
!   PT        0.94     SC        0.91     
! 
! 
! Fit before self-cal, rms=0.399034Jy  sigma=0.001447
! Fit after  self-cal, rms=0.386992Jy  sigma=0.001440
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.386992Jy  sigma=0.001440
! Fit after  self-cal, rms=0.386989Jy  sigma=0.001440
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.317 mas, bmaj=7.8 mas, bpa=89.19 degrees
! Estimated noise=1119.64 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.00167537 Jy
! Component: 100  -  total flux cleaned = 0.00184989 Jy
! Component: 150  -  total flux cleaned = 0.00186217 Jy
! Component: 200  -  total flux cleaned = 0.00159233 Jy
! Total flux subtracted in 200 components = 0.00159233 Jy
! Clean residual min=-0.007689 max=0.009018 Jy/beam
! Clean residual mean=0.000033 rms=0.002338 Jy/beam
! Combined flux in latest and established models = 0.502538 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 72 components and 0.502538 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.386802Jy  sigma=0.001439
! Fit after  self-cal, rms=0.386762Jy  sigma=0.001439
! 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.386762Jy  sigma=0.001439
! Fit after  self-cal, rms=0.383643Jy  sigma=0.001428
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.00301541 Jy
! Component: 100  -  total flux cleaned = 0.00355449 Jy
! Component: 150  -  total flux cleaned = 0.00370279 Jy
! Component: 200  -  total flux cleaned = 0.00356746 Jy
! Total flux subtracted in 200 components = 0.00356746 Jy
! Clean residual min=-0.008351 max=0.007759 Jy/beam
! Clean residual mean=0.000012 rms=0.002275 Jy/beam
! Combined flux in latest and established models = 0.506105 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 85 components and 0.506105 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.383505Jy  sigma=0.001428
! Fit after  self-cal, rms=0.383217Jy  sigma=0.001427
! 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.317 x 7.8 at 89.19 degrees (North through East)
! Clean map  min=-0.0080608  max=0.20766 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.383217Jy  sigma=0.001427
! Fit after  self-cal, rms=0.516428Jy  sigma=0.001418
! 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.516428Jy  sigma=0.001418
! Fit after  self-cal, rms=0.516476Jy  sigma=0.001417
! Inverting map and beam 
! Estimated beam: bmin=3.298 mas, bmaj=7.626 mas, bpa=88.3 degrees
! Estimated noise=1104.78 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00262169 Jy
! Component: 100  -  total flux cleaned = 0.0026316 Jy
! Component: 150  -  total flux cleaned = 0.00252926 Jy
! Component: 200  -  total flux cleaned = 0.00243941 Jy
! Total flux subtracted in 200 components = 0.00243941 Jy
! Clean residual min=-0.005374 max=0.005864 Jy/beam
! Clean residual mean=0.000001 rms=0.001547 Jy/beam
! Combined flux in latest and established models = 0.508545 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 95 components and 0.508545 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.516426Jy  sigma=0.001417
! Fit after  self-cal, rms=0.516438Jy  sigma=0.001417
! 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.516438Jy  sigma=0.001417
! Fit after  self-cal, rms=0.604830Jy  sigma=0.001415
! 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.604830Jy  sigma=0.001415
! Fit after  self-cal, rms=0.604848Jy  sigma=0.001415
! Inverting map and beam 
! Estimated beam: bmin=3.298 mas, bmaj=7.65 mas, bpa=88.07 degrees
! Estimated noise=1105 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00229303 Jy
! Component: 100  -  total flux cleaned = 0.00228689 Jy
! Component: 150  -  total flux cleaned = 0.00237078 Jy
! Component: 200  -  total flux cleaned = 0.00237061 Jy
! Total flux subtracted in 200 components = 0.00237061 Jy
! Clean residual min=-0.005219 max=0.005596 Jy/beam
! Clean residual mean=0.000005 rms=0.001482 Jy/beam
! Combined flux in latest and established models = 0.510915 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 100 components and 0.510915 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.604833Jy  sigma=0.001415
! Fit after  self-cal, rms=0.604841Jy  sigma=0.001415
! 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.923 mas, bmaj=12.14 mas, bpa=81.98 degrees
! Estimated noise=1410.45 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.00114722 Jy
! Component: 100  -  total flux cleaned = -0.00114338 Jy
! Component: 150  -  total flux cleaned = -0.00126865 Jy
! Component: 200  -  total flux cleaned = -0.00137664 Jy
! Total flux subtracted in 200 components = -0.00137664 Jy
! Clean residual min=-0.004184 max=0.004933 Jy/beam
! Clean residual mean=0.000013 rms=0.001271 Jy/beam
! Combined flux in latest and established models = 0.509539 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 107 components and 0.509538 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.604850Jy  sigma=0.001415
! Fit after  self-cal, rms=0.604845Jy  sigma=0.001415
! 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.426 mas, bmaj=6.303 mas, bpa=89.46 degrees
! Estimated noise=2335.15 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.232228 Jy
! Component: 100  -  total flux cleaned = 0.339738 Jy
! Component: 150  -  total flux cleaned = 0.397074 Jy
! Component: 200  -  total flux cleaned = 0.430183 Jy
! Total flux subtracted in 200 components = 0.430183 Jy
! Clean residual min=-0.011733 max=0.015628 Jy/beam
! Clean residual mean=-0.000046 rms=0.003485 Jy/beam
! Combined flux in latest and established models = 0.430183 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 34 model components to the UV plane model.
! The established model now contains 34 components and 0.430183 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.298 mas, bmaj=7.65 mas, bpa=88.07 degrees
! Estimated noise=1105 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.0337502 Jy
! Component: 100  -  total flux cleaned = 0.0529035 Jy
! Component: 150  -  total flux cleaned = 0.0644449 Jy
! Component: 200  -  total flux cleaned = 0.0715192 Jy
! Total flux subtracted in 200 components = 0.0715192 Jy
! Clean residual min=-0.005444 max=0.005418 Jy/beam
! Clean residual mean=-0.000004 rms=0.001545 Jy/beam
! Combined flux in latest and established models = 0.501702 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 81 components and 0.501702 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.923 mas, bmaj=12.14 mas, bpa=81.98 degrees
! Estimated noise=1410.45 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.00663825 Jy
! Component: 100  -  total flux cleaned = 0.00724185 Jy
! Component: 150  -  total flux cleaned = 0.00767897 Jy
! Component: 200  -  total flux cleaned = 0.00761216 Jy
! Total flux subtracted in 200 components = 0.00761216 Jy
! Clean residual min=-0.004033 max=0.004492 Jy/beam
! Clean residual mean=0.000005 rms=0.001278 Jy/beam
! Combined flux in latest and established models = 0.509315 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 90 components and 0.509315 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.298 mas, bmaj=7.65 mas, bpa=88.07 degrees
! Estimated noise=1105 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000260679 Jy
! Component: 100  -  total flux cleaned = 0.000263689 Jy
! Component: 150  -  total flux cleaned = 0.000351372 Jy
! Component: 200  -  total flux cleaned = 0.000490898 Jy
! Total flux subtracted in 200 components = 0.000490898 Jy
! Clean residual min=-0.005250 max=0.005500 Jy/beam
! Clean residual mean=0.000003 rms=0.001438 Jy/beam
! Combined flux in latest and established models = 0.509805 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 106 components and 0.509806 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.604863Jy  sigma=0.001415
! Fit after  self-cal, rms=0.604871Jy  sigma=0.001415
wmodel J1823+7938_S_1997_08_27_yyk\_map.mod
! Writing 106 model components to file: J1823+7938_S_1997_08_27_yyk_map.mod
wobs J1823+7938_S_1997_08_27_yyk\_uvs.fits
! Writing UV FITS file: J1823+7938_S_1997_08_27_yyk_uvs.fits
wwins J1823+7938_S_1997_08_27_yyk\_map.win
! wwins: Wrote 3 windows to J1823+7938_S_1997_08_27_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.000780848 Jy
! Component: 100  -  total flux cleaned = 0.00147125 Jy
! Component: 150  -  total flux cleaned = 0.00196123 Jy
! Component: 200  -  total flux cleaned = 0.00227222 Jy
! Component: 250  -  total flux cleaned = 0.00242401 Jy
! Component: 300  -  total flux cleaned = 0.00257004 Jy
! Component: 350  -  total flux cleaned = 0.00249888 Jy
! Component: 400  -  total flux cleaned = 0.00250096 Jy
! Component: 450  -  total flux cleaned = 0.00263589 Jy
! Component: 500  -  total flux cleaned = 0.00270006 Jy
! Component: 550  -  total flux cleaned = 0.00276316 Jy
! Component: 600  -  total flux cleaned = 0.00301407 Jy
! Component: 650  -  total flux cleaned = 0.00325944 Jy
! Component: 700  -  total flux cleaned = 0.00349934 Jy
! Component: 750  -  total flux cleaned = 0.00355882 Jy
! Component: 800  -  total flux cleaned = 0.00379045 Jy
! Component: 850  -  total flux cleaned = 0.00390377 Jy
! Component: 900  -  total flux cleaned = 0.00390436 Jy
! Component: 950  -  total flux cleaned = 0.00401557 Jy
! Component: 1000  -  total flux cleaned = 0.00423124 Jy
! Component: 1050  -  total flux cleaned = 0.00412459 Jy
! Component: 1100  -  total flux cleaned = 0.00438584 Jy
! Component: 1150  -  total flux cleaned = 0.00433429 Jy
! Component: 1200  -  total flux cleaned = 0.00443635 Jy
! Component: 1250  -  total flux cleaned = 0.00458648 Jy
! Component: 1300  -  total flux cleaned = 0.00473415 Jy
! Component: 1350  -  total flux cleaned = 0.00492799 Jy
! Component: 1400  -  total flux cleaned = 0.00497542 Jy
! Component: 1450  -  total flux cleaned = 0.00516429 Jy
! Component: 1500  -  total flux cleaned = 0.00525696 Jy
! Component: 1550  -  total flux cleaned = 0.00539451 Jy
! Component: 1600  -  total flux cleaned = 0.00548554 Jy
! Component: 1650  -  total flux cleaned = 0.00557573 Jy
! Component: 1700  -  total flux cleaned = 0.00579763 Jy
! Component: 1750  -  total flux cleaned = 0.0060154 Jy
! Component: 1800  -  total flux cleaned = 0.00618766 Jy
! Component: 1850  -  total flux cleaned = 0.0063999 Jy
! Component: 1900  -  total flux cleaned = 0.00660979 Jy
! Component: 1950  -  total flux cleaned = 0.00669183 Jy
! Component: 2000  -  total flux cleaned = 0.00689716 Jy
! Total flux subtracted in 2048 components = 0.00697851 Jy
! Clean residual min=-0.002076 max=0.002021 Jy/beam
! Clean residual mean=0.000005 rms=0.000843 Jy/beam
! Combined flux in latest and established models = 0.516784 Jy
keep
! Adding 152 model components to the UV plane model.
! The established model now contains 258 components and 0.516784 Jy
![Exited script file: muppet]
wmap "J1823+7938_S_1997_08_27_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.298 x 7.65 at 88.07 degrees (North through East)
! Clean map  min=-0.0037342  max=0.2096 Jy/beam
! Writing clean map to FITS file: J1823+7938_S_1997_08_27_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.2096 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000848714 
device "J1823+7938_S_1997_08_27_yyk\_map.eps/VPS"
! Attempting to open device: 'J1823+7938_S_1997_08_27_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.21476 1.21476 2.42952 4.85904 9.71808 19.4362 38.8723 77.7447
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0025 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.209 
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.298 x 7.65 at 88.07 degrees (North through East)
! Clean map  min=-0.0037342  max=0.2096 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1823+7938_S_1997_08_27_yyk\_map.gif/gif"
! Attempting to open device: 'J1823+7938_S_1997_08_27_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1823+7938_S_1997_08_27_yyk_uvs.log closed on Sun Jan  7 19:29:44 2007