! Started logfile: J0748+2400_X_1996_03_13_yyk_uvs.log on Mon Jan  8 03:51:02 2007
obs J0748+2400_X_1996_03_13_yyk_uva.fits
! Reading UV FITS file: J0748+2400_X_1996_03_13_yyk_uva.fits
! AN table 1: 122 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.857195 visibilities/baseline/integration-bin.
! Found source: J0748+2400
! 
! 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 655 lines of history.
! 
! Reading 18824 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 J0748+2400_X_1996_03_13_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.563155 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.744 mas, bmaj=1.742 mas, bpa=-1.413 degrees
! Estimated noise=1087.76 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.4122 Jy
! Component: 100  -  total flux cleaned = 0.516337 Jy
! Total flux subtracted in 100 components = 0.516337 Jy
! Clean residual min=-0.016880 max=0.040947 Jy/beam
! Clean residual mean=-0.000037 rms=0.004960 Jy/beam
! Combined flux in latest and established models = 0.516337 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.516337 Jy
! 
! Correcting IF 1.
!  A total of 111 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 111 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 111 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 111 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.255648Jy  sigma=0.001826
! Fit after  self-cal, rms=0.254224Jy  sigma=0.001817
! Inverting map and beam 
! Estimated beam: bmin=0.744 mas, bmaj=1.742 mas, bpa=-1.414 degrees
! Estimated noise=1088 mJy/beam.
! Added new window around map position (-2.8, 2).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0568699 Jy
! Component: 100  -  total flux cleaned = 0.0902068 Jy
! Total flux subtracted in 100 components = 0.0902068 Jy
! Clean residual min=-0.011127 max=0.016181 Jy/beam
! Clean residual mean=-0.000031 rms=0.002968 Jy/beam
! Combined flux in latest and established models = 0.606544 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 12 components and 0.606544 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242820Jy  sigma=0.001720
! Fit after  self-cal, rms=0.242413Jy  sigma=0.001718
! 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=0.9133 mas, bmaj=2.069 mas, bpa=-3.161 degrees
! Estimated noise=712.943 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 (-1, 0.6).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0374622 Jy
! Component: 100  -  total flux cleaned = 0.0590766 Jy
! Component: 150  -  total flux cleaned = 0.0729308 Jy
! Component: 200  -  total flux cleaned = 0.08225 Jy
! Total flux subtracted in 200 components = 0.08225 Jy
! Clean residual min=-0.007063 max=0.011044 Jy/beam
! Clean residual mean=-0.000060 rms=0.002141 Jy/beam
! Combined flux in latest and established models = 0.688794 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 44 model components to the UV plane model.
! The established model now contains 50 components and 0.688794 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238791Jy  sigma=0.001684
! Fit after  self-cal, rms=0.238517Jy  sigma=0.001683
! 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.9133 x 2.069 at -3.161 degrees (North through East)
! Clean map  min=-0.0067114  max=0.49611 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00483
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00     HN        0.98     KP        0.96     
!   LA        0.99     MK        1.04     NL        1.01     OV        1.01     
!   PT        1.01     SC        0.94     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00765
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     HN        0.99     KP        0.98     
!   LA        0.99     MK        1.00     NL        0.97     OV        1.05     
!   PT        0.99     SC        1.00     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.00146
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.98     HN        0.99     KP        0.95     
!   LA        0.97     MK        1.05     NL        0.98     OV        1.03     
!   PT        0.97     SC        1.02     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.994483
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.01     HN        1.00     KP        0.97     
!   LA        0.97     MK        1.06     NL        1.02     OV        1.03     
!   PT        1.00     SC        0.97     
! 
! 
! Fit before self-cal, rms=0.238517Jy  sigma=0.001683
! Fit after  self-cal, rms=0.238462Jy  sigma=0.001677
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.238462Jy  sigma=0.001677
! Fit after  self-cal, rms=0.238464Jy  sigma=0.001677
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9249 mas, bmaj=2.079 mas, bpa=-2.721 degrees
! Estimated noise=712.129 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 (-5.6, 4.2).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0124335 Jy
! Component: 100  -  total flux cleaned = 0.017797 Jy
! Component: 150  -  total flux cleaned = 0.0190025 Jy
! Component: 200  -  total flux cleaned = 0.0198759 Jy
! Total flux subtracted in 200 components = 0.0198759 Jy
! Clean residual min=-0.005409 max=0.005104 Jy/beam
! Clean residual mean=-0.000009 rms=0.001332 Jy/beam
! Combined flux in latest and established models = 0.70867 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 79 components and 0.70867 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237989Jy  sigma=0.001673
! Fit after  self-cal, rms=0.237964Jy  sigma=0.001673
! 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.237964Jy  sigma=0.001673
! Fit after  self-cal, rms=0.237216Jy  sigma=0.001668
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.00257051 Jy
! Component: 100  -  total flux cleaned = 0.00387517 Jy
! Component: 150  -  total flux cleaned = 0.00489549 Jy
! Component: 200  -  total flux cleaned = 0.00557877 Jy
! Total flux subtracted in 200 components = 0.00557877 Jy
! Clean residual min=-0.005144 max=0.005146 Jy/beam
! Clean residual mean=0.000000 rms=0.001247 Jy/beam
! Combined flux in latest and established models = 0.714249 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 94 components and 0.714249 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.237113Jy  sigma=0.001667
! Fit after  self-cal, rms=0.236952Jy  sigma=0.001666
! 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.9249 x 2.079 at -2.721 degrees (North through East)
! Clean map  min=-0.0047935  max=0.4951 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.236952Jy  sigma=0.001666
! Fit after  self-cal, rms=0.236825Jy  sigma=0.001662
! 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.236825Jy  sigma=0.001662
! Fit after  self-cal, rms=0.236785Jy  sigma=0.001661
! Inverting map and beam 
! Estimated beam: bmin=0.9209 mas, bmaj=2.069 mas, bpa=-3.222 degrees
! Estimated noise=709.049 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00352098 Jy
! Component: 100  -  total flux cleaned = 0.00486249 Jy
! Component: 150  -  total flux cleaned = 0.0059723 Jy
! Component: 200  -  total flux cleaned = 0.00667099 Jy
! Total flux subtracted in 200 components = 0.00667099 Jy
! Clean residual min=-0.003832 max=0.003777 Jy/beam
! Clean residual mean=-0.000004 rms=0.000994 Jy/beam
! Combined flux in latest and established models = 0.72092 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 122 components and 0.72092 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236709Jy  sigma=0.001661
! Fit after  self-cal, rms=0.236690Jy  sigma=0.001661
! 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.236690Jy  sigma=0.001661
! Fit after  self-cal, rms=0.236677Jy  sigma=0.001659
! 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.236677Jy  sigma=0.001659
! Fit after  self-cal, rms=0.236671Jy  sigma=0.001659
! Inverting map and beam 
! Estimated beam: bmin=0.9208 mas, bmaj=2.069 mas, bpa=-3.295 degrees
! Estimated noise=708.859 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00175516 Jy
! Component: 100  -  total flux cleaned = 0.00269929 Jy
! Component: 150  -  total flux cleaned = 0.00337283 Jy
! Component: 200  -  total flux cleaned = 0.00384102 Jy
! Total flux subtracted in 200 components = 0.00384102 Jy
! Clean residual min=-0.003697 max=0.003788 Jy/beam
! Clean residual mean=-0.000002 rms=0.000955 Jy/beam
! Combined flux in latest and established models = 0.724761 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 129 components and 0.724761 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236634Jy  sigma=0.001659
! Fit after  self-cal, rms=0.236627Jy  sigma=0.001659
! Inverting map 
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
win_mult = win_mult * 1.4
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.12 mas, bmaj=2.937 mas, bpa=-4.72 degrees
! Estimated noise=908.234 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.00114209 Jy
! Component: 100  -  total flux cleaned = 0.0014418 Jy
! Component: 150  -  total flux cleaned = 0.00167513 Jy
! Component: 200  -  total flux cleaned = 0.00172517 Jy
! Total flux subtracted in 200 components = 0.00172517 Jy
! Clean residual min=-0.004335 max=0.004258 Jy/beam
! Clean residual mean=0.000006 rms=0.001262 Jy/beam
! Combined flux in latest and established models = 0.726486 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 144 components and 0.726486 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236630Jy  sigma=0.001659
! Fit after  self-cal, rms=0.236625Jy  sigma=0.001659
! 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.7475 mas, bmaj=1.739 mas, bpa=-1.404 degrees
! Estimated noise=1099.75 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.414 Jy
! Component: 100  -  total flux cleaned = 0.521358 Jy
! Component: 150  -  total flux cleaned = 0.5778 Jy
! Component: 200  -  total flux cleaned = 0.612099 Jy
! Total flux subtracted in 200 components = 0.612099 Jy
! Clean residual min=-0.009893 max=0.013560 Jy/beam
! Clean residual mean=-0.000031 rms=0.002535 Jy/beam
! Combined flux in latest and established models = 0.612099 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 20 model components to the UV plane model.
! The established model now contains 20 components and 0.612099 Jy
! Inverting map and beam 
! Estimated beam: bmin=0.9208 mas, bmaj=2.069 mas, bpa=-3.295 degrees
! Estimated noise=708.859 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.0345665 Jy
! Component: 100  -  total flux cleaned = 0.0558174 Jy
! Component: 150  -  total flux cleaned = 0.0707492 Jy
! Component: 200  -  total flux cleaned = 0.0814842 Jy
! Total flux subtracted in 200 components = 0.0814842 Jy
! Clean residual min=-0.005057 max=0.004806 Jy/beam
! Clean residual mean=-0.000043 rms=0.001381 Jy/beam
! Combined flux in latest and established models = 0.693583 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 53 components and 0.693583 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.12 mas, bmaj=2.937 mas, bpa=-4.72 degrees
! Estimated noise=908.234 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.0128934 Jy
! Component: 100  -  total flux cleaned = 0.0206848 Jy
! Component: 150  -  total flux cleaned = 0.0256973 Jy
! Component: 200  -  total flux cleaned = 0.0290511 Jy
! Total flux subtracted in 200 components = 0.0290511 Jy
! Clean residual min=-0.004819 max=0.004385 Jy/beam
! Clean residual mean=-0.000008 rms=0.001316 Jy/beam
! Combined flux in latest and established models = 0.722635 Jy
! Adding 69 model components to the UV plane model.
! The established model now contains 109 components and 0.722634 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=0.9208 mas, bmaj=2.069 mas, bpa=-3.295 degrees
! Estimated noise=708.859 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00240264 Jy
! Component: 100  -  total flux cleaned = 0.00360995 Jy
! Component: 150  -  total flux cleaned = 0.00371384 Jy
! Component: 200  -  total flux cleaned = 0.00371387 Jy
! Total flux subtracted in 200 components = 0.00371387 Jy
! Clean residual min=-0.004295 max=0.003895 Jy/beam
! Clean residual mean=-0.000000 rms=0.000970 Jy/beam
! Combined flux in latest and established models = 0.726348 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 131 components and 0.726348 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.236704Jy  sigma=0.001660
! Fit after  self-cal, rms=0.236684Jy  sigma=0.001659
wmodel J0748+2400_X_1996_03_13_yyk\_map.mod
! Writing 131 model components to file: J0748+2400_X_1996_03_13_yyk_map.mod
wobs J0748+2400_X_1996_03_13_yyk\_uvs.fits
! Writing UV FITS file: J0748+2400_X_1996_03_13_yyk_uvs.fits
wwins J0748+2400_X_1996_03_13_yyk\_map.win
! wwins: Wrote 4 windows to J0748+2400_X_1996_03_13_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.000332508 Jy
! Component: 100  -  total flux cleaned = 0.000665786 Jy
! Component: 150  -  total flux cleaned = 0.0008539 Jy
! Component: 200  -  total flux cleaned = 0.00103209 Jy
! Component: 250  -  total flux cleaned = 0.00114579 Jy
! Component: 300  -  total flux cleaned = 0.00120096 Jy
! Component: 350  -  total flux cleaned = 0.00109491 Jy
! Component: 400  -  total flux cleaned = 0.00104343 Jy
! Component: 450  -  total flux cleaned = 0.000943354 Jy
! Component: 500  -  total flux cleaned = 0.00094466 Jy
! Component: 550  -  total flux cleaned = 0.000849649 Jy
! Component: 600  -  total flux cleaned = 0.000850981 Jy
! Component: 650  -  total flux cleaned = 0.0010365 Jy
! Component: 700  -  total flux cleaned = 0.00117247 Jy
! Component: 750  -  total flux cleaned = 0.00135135 Jy
! Component: 800  -  total flux cleaned = 0.00152651 Jy
! Component: 850  -  total flux cleaned = 0.0015265 Jy
! Component: 900  -  total flux cleaned = 0.00182356 Jy
! Component: 950  -  total flux cleaned = 0.00190659 Jy
! Component: 1000  -  total flux cleaned = 0.00211366 Jy
! Component: 1050  -  total flux cleaned = 0.00243809 Jy
! Component: 1100  -  total flux cleaned = 0.00271856 Jy
! Component: 1150  -  total flux cleaned = 0.00299564 Jy
! Component: 1200  -  total flux cleaned = 0.00330718 Jy
! Component: 1250  -  total flux cleaned = 0.00349882 Jy
! Component: 1300  -  total flux cleaned = 0.00361318 Jy
! Component: 1350  -  total flux cleaned = 0.00387674 Jy
! Component: 1400  -  total flux cleaned = 0.00398781 Jy
! Component: 1450  -  total flux cleaned = 0.0041717 Jy
! Component: 1500  -  total flux cleaned = 0.0042816 Jy
! Component: 1550  -  total flux cleaned = 0.00449741 Jy
! Component: 1600  -  total flux cleaned = 0.004676 Jy
! Component: 1650  -  total flux cleaned = 0.00488762 Jy
! Component: 1700  -  total flux cleaned = 0.00506199 Jy
! Component: 1750  -  total flux cleaned = 0.00516625 Jy
! Component: 1800  -  total flux cleaned = 0.005509 Jy
! Component: 1850  -  total flux cleaned = 0.00557721 Jy
! Component: 1900  -  total flux cleaned = 0.00577952 Jy
! Component: 1950  -  total flux cleaned = 0.005979 Jy
! Component: 2000  -  total flux cleaned = 0.0060787 Jy
! Total flux subtracted in 2048 components = 0.00647153 Jy
! Clean residual min=-0.001778 max=0.002088 Jy/beam
! Clean residual mean=0.000003 rms=0.000625 Jy/beam
! Combined flux in latest and established models = 0.73282 Jy
keep
! Adding 155 model components to the UV plane model.
! The established model now contains 286 components and 0.73282 Jy
![Exited script file: muppet]
wmap "J0748+2400_X_1996_03_13_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9208 x 2.069 at -3.295 degrees (North through East)
! Clean map  min=-0.0034627  max=0.49463 Jy/beam
! Writing clean map to FITS file: J0748+2400_X_1996_03_13_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.494633 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00062676 
device "J0748+2400_X_1996_03_13_yyk\_map.eps/VPS"
! Attempting to open device: 'J0748+2400_X_1996_03_13_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.380136 0.380136 0.760273 1.52055 3.04109 6.08218 12.1644 24.3287 48.6575 97.3149
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.494 
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.9208 x 2.069 at -3.295 degrees (North through East)
! Clean map  min=-0.0034627  max=0.49463 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0748+2400_X_1996_03_13_yyk\_map.gif/gif"
! Attempting to open device: 'J0748+2400_X_1996_03_13_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0748+2400_X_1996_03_13_yyk_uvs.log closed on Mon Jan  8 03:51:12 2007