! Started logfile: J2138-2439_S_1997_07_02_yyk_uvs.log on Sun Jan  7 20:00:55 2007
obs J2138-2439_S_1997_07_02_yyk_uva.fits
! Reading UV FITS file: J2138-2439_S_1997_07_02_yyk_uva.fits
! AN table 1: 142 integrations on 45 of 45 possible baselines.
! Apparent sampling: 1.20047 visibilities/baseline/integration-bin.
! Found source: J2138-2439
! 
! 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 754 lines of history.
! 
! Reading 30684 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 J2138-2439_S_1997_07_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.690007 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.716 mas, bmaj=7.717 mas, bpa=-5.55 degrees
! Estimated noise=1608.83 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.501837 Jy
! Component: 100  -  total flux cleaned = 0.575673 Jy
! Total flux subtracted in 100 components = 0.575673 Jy
! Clean residual min=-0.017707 max=0.022280 Jy/beam
! Clean residual mean=0.000081 rms=0.005336 Jy/beam
! Combined flux in latest and established models = 0.575673 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.575673 Jy
! 
! Correcting IF 1.
!  A total of 366 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 234 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 233 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 233 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.352056Jy  sigma=0.001574
! Fit after  self-cal, rms=0.351873Jy  sigma=0.001573
! Inverting map and beam 
! Estimated beam: bmin=2.716 mas, bmaj=7.717 mas, bpa=-5.551 degrees
! Estimated noise=1608.84 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.39 mas, bmaj=9.417 mas, bpa=-6.07 degrees
! Estimated noise=1056.44 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.0035634 Jy
! Component: 100  -  total flux cleaned = 0.00245137 Jy
! Component: 150  -  total flux cleaned = 0.00162811 Jy
! Component: 200  -  total flux cleaned = 0.00131421 Jy
! Total flux subtracted in 200 components = 0.00131421 Jy
! Clean residual min=-0.015816 max=0.017814 Jy/beam
! Clean residual mean=0.000037 rms=0.004688 Jy/beam
! Combined flux in latest and established models = 0.576987 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 15 components and 0.576987 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.350014Jy  sigma=0.001568
! Fit after  self-cal, rms=0.350006Jy  sigma=0.001568
! 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.39 x 9.417 at -6.07 degrees (North through East)
! Clean map  min=-0.01535  max=0.57912 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: 1.02767
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.09     HN        0.89     KP        0.90     
!   LA        0.99     MK        1.01     NL        1.00*    OV        1.09     
!   PT        0.96     SC        0.83     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.990101
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.04     FD        1.15     HN        0.99     KP        0.96     
!   LA        1.09     MK        1.03     NL        0.97     OV        1.03     
!   PT        0.94     SC        0.89     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 1.03626
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.09     HN        0.92     KP        0.93     
!   LA        0.82     MK        0.89     NL        0.97     OV        0.94     
!   PT        1.09     SC        1.02     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.985814
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.15     HN        1.16     KP        0.94     
!   LA        0.91     MK        1.05     NL        1.05     OV        0.98     
!   PT        0.92     SC        1.01     
! 
! 
! Fit before self-cal, rms=0.350006Jy  sigma=0.001568
! Fit after  self-cal, rms=0.337965Jy  sigma=0.001537
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.337965Jy  sigma=0.001537
! Fit after  self-cal, rms=0.337962Jy  sigma=0.001537
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.343 mas, bmaj=9.201 mas, bpa=-4.964 degrees
! Estimated noise=1059.55 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.0106041 Jy
! Component: 100  -  total flux cleaned = 0.0117273 Jy
! Component: 150  -  total flux cleaned = 0.0118909 Jy
! Component: 200  -  total flux cleaned = 0.0120113 Jy
! Total flux subtracted in 200 components = 0.0120113 Jy
! Clean residual min=-0.006734 max=0.006717 Jy/beam
! Clean residual mean=0.000014 rms=0.001772 Jy/beam
! Combined flux in latest and established models = 0.588998 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 26 components and 0.588998 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.337678Jy  sigma=0.001535
! Fit after  self-cal, rms=0.337672Jy  sigma=0.001535
! 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.337672Jy  sigma=0.001535
! Fit after  self-cal, rms=0.334812Jy  sigma=0.001520
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.0017887 Jy
! Component: 100  -  total flux cleaned = 0.00190264 Jy
! Component: 150  -  total flux cleaned = 0.00181484 Jy
! Component: 200  -  total flux cleaned = 0.00173431 Jy
! Total flux subtracted in 200 components = 0.00173431 Jy
! Clean residual min=-0.006483 max=0.006441 Jy/beam
! Clean residual mean=0.000018 rms=0.001740 Jy/beam
! Combined flux in latest and established models = 0.590732 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 36 components and 0.590732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.334738Jy  sigma=0.001520
! Fit after  self-cal, rms=0.334474Jy  sigma=0.001518
! 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.343 x 9.201 at -4.964 degrees (North through East)
! Clean map  min=-0.0061046  max=0.58713 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.334474Jy  sigma=0.001518
! Fit after  self-cal, rms=0.331201Jy  sigma=0.001512
! 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.331201Jy  sigma=0.001512
! Fit after  self-cal, rms=0.331181Jy  sigma=0.001512
! Inverting map and beam 
! Estimated beam: bmin=3.323 mas, bmaj=9.173 mas, bpa=-5.016 degrees
! Estimated noise=1056.54 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00220517 Jy
! Component: 100  -  total flux cleaned = 0.00249131 Jy
! Component: 150  -  total flux cleaned = 0.00265459 Jy
! Component: 200  -  total flux cleaned = 0.00272415 Jy
! Total flux subtracted in 200 components = 0.00272415 Jy
! Clean residual min=-0.005393 max=0.005516 Jy/beam
! Clean residual mean=0.000011 rms=0.001566 Jy/beam
! Combined flux in latest and established models = 0.593457 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 48 components and 0.593457 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331132Jy  sigma=0.001511
! Fit after  self-cal, rms=0.331137Jy  sigma=0.001511
! 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.331137Jy  sigma=0.001511
! Fit after  self-cal, rms=0.331763Jy  sigma=0.001509
! 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.331763Jy  sigma=0.001509
! Fit after  self-cal, rms=0.331777Jy  sigma=0.001509
! Inverting map and beam 
! Estimated beam: bmin=3.312 mas, bmaj=9.152 mas, bpa=-4.985 degrees
! Estimated noise=1057.16 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00188789 Jy
! Component: 100  -  total flux cleaned = 0.00216342 Jy
! Component: 150  -  total flux cleaned = 0.00222318 Jy
! Component: 200  -  total flux cleaned = 0.00232363 Jy
! Total flux subtracted in 200 components = 0.00232363 Jy
! Clean residual min=-0.005308 max=0.005259 Jy/beam
! Clean residual mean=0.000001 rms=0.001538 Jy/beam
! Combined flux in latest and established models = 0.59578 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 54 components and 0.59578 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331754Jy  sigma=0.001509
! Fit after  self-cal, rms=0.331766Jy  sigma=0.001509
! 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=8.053 mas, bmaj=19.32 mas, bpa=-0.9291 degrees
! Estimated noise=1333.13 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.000311778 Jy
! Component: 100  -  total flux cleaned = 0.000380854 Jy
! Component: 150  -  total flux cleaned = 0.000380781 Jy
! Component: 200  -  total flux cleaned = 0.000407292 Jy
! Total flux subtracted in 200 components = 0.000407292 Jy
! Clean residual min=-0.005338 max=0.004640 Jy/beam
! Clean residual mean=-0.000007 rms=0.001893 Jy/beam
! Combined flux in latest and established models = 0.596187 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 60 components and 0.596187 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331765Jy  sigma=0.001509
! Fit after  self-cal, rms=0.331771Jy  sigma=0.001509
! 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.692 mas, bmaj=7.643 mas, bpa=-4.95 degrees
! Estimated noise=1596.05 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.499502 Jy
! Component: 100  -  total flux cleaned = 0.572153 Jy
! Component: 150  -  total flux cleaned = 0.585 Jy
! Component: 200  -  total flux cleaned = 0.587444 Jy
! Total flux subtracted in 200 components = 0.587444 Jy
! Clean residual min=-0.010049 max=0.009611 Jy/beam
! Clean residual mean=0.000028 rms=0.002654 Jy/beam
! Combined flux in latest and established models = 0.587444 Jy
uvw 0,-2
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -2.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 21 model components to the UV plane model.
! The established model now contains 21 components and 0.587444 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.312 mas, bmaj=9.152 mas, bpa=-4.985 degrees
! Estimated noise=1057.16 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.00837347 Jy
! Component: 100  -  total flux cleaned = 0.00858715 Jy
! Component: 150  -  total flux cleaned = 0.00878032 Jy
! Component: 200  -  total flux cleaned = 0.00894849 Jy
! Total flux subtracted in 200 components = 0.00894849 Jy
! Clean residual min=-0.005554 max=0.005892 Jy/beam
! Clean residual mean=0.000001 rms=0.001636 Jy/beam
! Combined flux in latest and established models = 0.596393 Jy
! Adding 14 model components to the UV plane model.
! The established model now contains 29 components and 0.596393 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=8.053 mas, bmaj=19.32 mas, bpa=-0.9291 degrees
! Estimated noise=1333.13 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.000848817 Jy
! Component: 100  -  total flux cleaned = 0.000933402 Jy
! Component: 150  -  total flux cleaned = 0.000861513 Jy
! Component: 200  -  total flux cleaned = 0.000797941 Jy
! Total flux subtracted in 200 components = 0.000797941 Jy
! Clean residual min=-0.005522 max=0.004735 Jy/beam
! Clean residual mean=-0.000011 rms=0.001905 Jy/beam
! Combined flux in latest and established models = 0.597191 Jy
! Adding 8 model components to the UV plane model.
! The established model now contains 33 components and 0.597191 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.312 mas, bmaj=9.152 mas, bpa=-4.985 degrees
! Estimated noise=1057.16 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000219391 Jy
! Component: 100  -  total flux cleaned = -0.000111597 Jy
! Component: 150  -  total flux cleaned = -0.000212396 Jy
! Component: 200  -  total flux cleaned = -0.000298276 Jy
! Total flux subtracted in 200 components = -0.000298276 Jy
! Clean residual min=-0.005352 max=0.005598 Jy/beam
! Clean residual mean=-0.000002 rms=0.001572 Jy/beam
! Combined flux in latest and established models = 0.596892 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 48 components and 0.596892 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331830Jy  sigma=0.001509
! Fit after  self-cal, rms=0.331836Jy  sigma=0.001509
wmodel J2138-2439_S_1997_07_02_yyk\_map.mod
! Writing 48 model components to file: J2138-2439_S_1997_07_02_yyk_map.mod
wobs J2138-2439_S_1997_07_02_yyk\_uvs.fits
! Writing UV FITS file: J2138-2439_S_1997_07_02_yyk_uvs.fits
wwins J2138-2439_S_1997_07_02_yyk\_map.win
! wwins: Wrote 1 windows to J2138-2439_S_1997_07_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.000182507 Jy
! Component: 100  -  total flux cleaned = -0.00054997 Jy
! Component: 150  -  total flux cleaned = -0.000978281 Jy
! Component: 200  -  total flux cleaned = -0.00130473 Jy
! Component: 250  -  total flux cleaned = -0.00145938 Jy
! Component: 300  -  total flux cleaned = -0.00153284 Jy
! Component: 350  -  total flux cleaned = -0.00188743 Jy
! Component: 400  -  total flux cleaned = -0.00222676 Jy
! Component: 450  -  total flux cleaned = -0.002423 Jy
! Component: 500  -  total flux cleaned = -0.0026142 Jy
! Component: 550  -  total flux cleaned = -0.00273625 Jy
! Component: 600  -  total flux cleaned = -0.00285416 Jy
! Component: 650  -  total flux cleaned = -0.00320123 Jy
! Component: 700  -  total flux cleaned = -0.00342791 Jy
! Component: 750  -  total flux cleaned = -0.0037599 Jy
! Component: 800  -  total flux cleaned = -0.00403001 Jy
! Component: 850  -  total flux cleaned = -0.00408385 Jy
! Component: 900  -  total flux cleaned = -0.00444836 Jy
! Component: 950  -  total flux cleaned = -0.00465151 Jy
! Component: 1000  -  total flux cleaned = -0.00460155 Jy
! Component: 1050  -  total flux cleaned = -0.00484746 Jy
! Component: 1100  -  total flux cleaned = -0.00489568 Jy
! Component: 1150  -  total flux cleaned = -0.0050384 Jy
! Component: 1200  -  total flux cleaned = -0.00508577 Jy
! Component: 1250  -  total flux cleaned = -0.00508638 Jy
! Component: 1300  -  total flux cleaned = -0.0052683 Jy
! Component: 1350  -  total flux cleaned = -0.00526801 Jy
! Component: 1400  -  total flux cleaned = -0.00535641 Jy
! Component: 1450  -  total flux cleaned = -0.0054857 Jy
! Component: 1500  -  total flux cleaned = -0.00561284 Jy
! Component: 1550  -  total flux cleaned = -0.0056961 Jy
! Component: 1600  -  total flux cleaned = -0.00569527 Jy
! Component: 1650  -  total flux cleaned = -0.00565454 Jy
! Component: 1700  -  total flux cleaned = -0.00569541 Jy
! Component: 1750  -  total flux cleaned = -0.00585439 Jy
! Component: 1800  -  total flux cleaned = -0.00585434 Jy
! Component: 1850  -  total flux cleaned = -0.0058926 Jy
! Component: 1900  -  total flux cleaned = -0.0059687 Jy
! Component: 1950  -  total flux cleaned = -0.00596804 Jy
! Component: 2000  -  total flux cleaned = -0.00604217 Jy
! Total flux subtracted in 2048 components = -0.00604225 Jy
! Clean residual min=-0.001928 max=0.001836 Jy/beam
! Clean residual mean=0.000015 rms=0.000740 Jy/beam
! Combined flux in latest and established models = 0.59085 Jy
keep
! Adding 125 model components to the UV plane model.
! The established model now contains 173 components and 0.59085 Jy
![Exited script file: muppet]
wmap "J2138-2439_S_1997_07_02_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.312 x 9.152 at -4.985 degrees (North through East)
! Clean map  min=-0.0043548  max=0.58214 Jy/beam
! Writing clean map to FITS file: J2138-2439_S_1997_07_02_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.582143 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000738303 
device "J2138-2439_S_1997_07_02_yyk\_map.eps/VPS"
! Attempting to open device: 'J2138-2439_S_1997_07_02_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.380475 0.380475 0.760951 1.5219 3.0438 6.0876 12.1752 24.3504 48.7008 97.4017
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.582 
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.312 x 9.152 at -4.985 degrees (North through East)
! Clean map  min=-0.0043548  max=0.58214 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2138-2439_S_1997_07_02_yyk\_map.gif/gif"
! Attempting to open device: 'J2138-2439_S_1997_07_02_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2138-2439_S_1997_07_02_yyk_uvs.log closed on Sun Jan  7 20:01:02 2007