! Started logfile: J0738+1742_S_1996_05_15_yyk_uvs.log on Sun Jan  7 16:47:46 2007
obs J0738+1742_S_1996_05_15_yyk_uva.fits
! Reading UV FITS file: J0738+1742_S_1996_05_15_yyk_uva.fits
! AN table 1: 109 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.655454 visibilities/baseline/integration-bin.
! Found source: J0738+1742
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.22049e+09        8e+06          1        8e+06
!  02        2  2.23424e+09        8e+06          1        8e+06
!  03        3  2.29424e+09        8e+06          1        8e+06
!  04        4  2.32424e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 617 lines of history.
! 
! Reading 12860 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 J0738+1742_S_1996_05_15_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)= 1.75457 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.835 mas, bmaj=7.636 mas, bpa=-19.51 degrees
! Estimated noise=3098.32 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 = 1.35641 Jy
! Component: 100  -  total flux cleaned = 1.60281 Jy
! Total flux subtracted in 100 components = 1.60281 Jy
! Clean residual min=-0.061209 max=0.073318 Jy/beam
! Clean residual mean=0.001366 rms=0.019791 Jy/beam
! Combined flux in latest and established models = 1.60281 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 1.60281 Jy
! 
! Correcting IF 1.
!  A total of 215 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 216 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 216 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 217 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.588410Jy  sigma=0.001873
! Fit after  self-cal, rms=0.531246Jy  sigma=0.001872
! Inverting map and beam 
! Estimated beam: bmin=2.836 mas, bmaj=7.638 mas, bpa=-19.51 degrees
! Estimated noise=3096.42 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.884 mas, bmaj=8.288 mas, bpa=-16.28 degrees
! Estimated noise=1283.48 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.120727 Jy
! Component: 100  -  total flux cleaned = 0.170575 Jy
! Component: 150  -  total flux cleaned = 0.197751 Jy
! Component: 200  -  total flux cleaned = 0.211357 Jy
! Total flux subtracted in 200 components = 0.211357 Jy
! Clean residual min=-0.061558 max=0.079258 Jy/beam
! Clean residual mean=0.002110 rms=0.023503 Jy/beam
! Combined flux in latest and established models = 1.81417 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 37 components and 1.81417 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.508632Jy  sigma=0.001747
! Fit after  self-cal, rms=0.508033Jy  sigma=0.001746
! 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.884 x 8.288 at -16.28 degrees (North through East)
! Clean map  min=-0.057814  max=1.5873 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.01522
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.11     HN        0.98     KP        1.00*    
!   LA        0.94     MK        1.00     NL        0.90     OV        1.16     
!   PT        0.93     SC        0.85     
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.972461
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.16     HN        1.09     KP        1.00*    
!   LA        1.03     MK        1.04     NL        0.99     OV        1.09     
!   PT        0.90     SC        0.97     
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.0335
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.06     HN        0.96     KP        1.00*    
!   LA        0.77     MK        0.89     NL        0.95     OV        1.04     
!   PT        1.05     SC        1.00     
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.998742
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.07     HN        1.05     KP        1.00*    
!   LA        0.86     MK        1.07     NL        1.06     OV        0.98     
!   PT        0.95     SC        0.96     
! 
! 
! Fit before self-cal, rms=0.508033Jy  sigma=0.001746
! Fit after  self-cal, rms=0.461394Jy  sigma=0.001496
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.461394Jy  sigma=0.001496
! Fit after  self-cal, rms=0.461439Jy  sigma=0.001496
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.884 mas, bmaj=8.243 mas, bpa=-15.34 degrees
! Estimated noise=1283.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)
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0143909 Jy
! Component: 100  -  total flux cleaned = 0.013841 Jy
! Component: 150  -  total flux cleaned = 0.0134339 Jy
! Component: 200  -  total flux cleaned = 0.0134361 Jy
! Total flux subtracted in 200 components = 0.0134361 Jy
! Clean residual min=-0.036631 max=0.068720 Jy/beam
! Clean residual mean=0.000846 rms=0.014479 Jy/beam
! Combined flux in latest and established models = 1.82761 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 48 components and 1.82761 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.460614Jy  sigma=0.001488
! Fit after  self-cal, rms=0.460332Jy  sigma=0.001487
! 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.460332Jy  sigma=0.001487
! Fit after  self-cal, rms=0.449646Jy  sigma=0.001411
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)
! Added new window around map position (9.5, 1).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.075347 Jy
! Component: 100  -  total flux cleaned = 0.107592 Jy
! Component: 150  -  total flux cleaned = 0.118547 Jy
! Component: 200  -  total flux cleaned = 0.124794 Jy
! Total flux subtracted in 200 components = 0.124794 Jy
! Clean residual min=-0.022256 max=0.032403 Jy/beam
! Clean residual mean=0.000381 rms=0.007317 Jy/beam
! Combined flux in latest and established models = 1.9524 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 55 model components to the UV plane model.
! The established model now contains 102 components and 1.9524 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.441474Jy  sigma=0.001339
! Fit after  self-cal, rms=0.440660Jy  sigma=0.001332
! 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.884 x 8.243 at -15.34 degrees (North through East)
! Clean map  min=-0.022329  max=1.6088 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.440660Jy  sigma=0.001332
! Fit after  self-cal, rms=0.426226Jy  sigma=0.001277
! 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.426226Jy  sigma=0.001277
! Fit after  self-cal, rms=0.426242Jy  sigma=0.001276
! Inverting map and beam 
! Estimated beam: bmin=3.868 mas, bmaj=8.202 mas, bpa=-15.18 degrees
! Estimated noise=1274.64 mJy/beam.
! Added new window around map position (-16, 24.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.031575 Jy
! Component: 100  -  total flux cleaned = 0.0478143 Jy
! Component: 150  -  total flux cleaned = 0.0539585 Jy
! Component: 200  -  total flux cleaned = 0.056845 Jy
! Total flux subtracted in 200 components = 0.056845 Jy
! Clean residual min=-0.012714 max=0.011992 Jy/beam
! Clean residual mean=0.000207 rms=0.003626 Jy/beam
! Combined flux in latest and established models = 2.00924 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 132 components and 2.00924 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424254Jy  sigma=0.001260
! Fit after  self-cal, rms=0.424283Jy  sigma=0.001260
! 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.424283Jy  sigma=0.001260
! Fit after  self-cal, rms=0.423428Jy  sigma=0.001255
! 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.423428Jy  sigma=0.001255
! Fit after  self-cal, rms=0.423476Jy  sigma=0.001255
! Inverting map and beam 
! Estimated beam: bmin=3.87 mas, bmaj=8.196 mas, bpa=-15.08 degrees
! Estimated noise=1271.72 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000345341 Jy
! Component: 100  -  total flux cleaned = 0.000973914 Jy
! Component: 150  -  total flux cleaned = 0.00124491 Jy
! Component: 200  -  total flux cleaned = 0.0022561 Jy
! Total flux subtracted in 200 components = 0.0022561 Jy
! Clean residual min=-0.011082 max=0.010578 Jy/beam
! Clean residual mean=0.000166 rms=0.003028 Jy/beam
! Combined flux in latest and established models = 2.0115 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 154 components and 2.0115 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.423037Jy  sigma=0.001253
! Fit after  self-cal, rms=0.423066Jy  sigma=0.001252
! 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.789 mas, bmaj=10.44 mas, bpa=-5.827 degrees
! Estimated noise=1497.82 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.00569485 Jy
! Component: 100  -  total flux cleaned = 0.0080949 Jy
! Component: 150  -  total flux cleaned = 0.0101357 Jy
! Component: 200  -  total flux cleaned = 0.0115185 Jy
! Total flux subtracted in 200 components = 0.0115185 Jy
! Clean residual min=-0.011013 max=0.011311 Jy/beam
! Clean residual mean=0.000230 rms=0.003529 Jy/beam
! Combined flux in latest and established models = 2.02302 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 42 model components to the UV plane model.
! The established model now contains 191 components and 2.02302 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.423002Jy  sigma=0.001252
! Fit after  self-cal, rms=0.423012Jy  sigma=0.001252
! 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.85 mas, bmaj=7.564 mas, bpa=-18.88 degrees
! Estimated noise=3071.91 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 1.34942 Jy
! Component: 100  -  total flux cleaned = 1.58574 Jy
! Component: 150  -  total flux cleaned = 1.68253 Jy
! Component: 200  -  total flux cleaned = 1.74343 Jy
! Total flux subtracted in 200 components = 1.74343 Jy
! Clean residual min=-0.025002 max=0.032043 Jy/beam
! Clean residual mean=0.000544 rms=0.008630 Jy/beam
! Combined flux in latest and established models = 1.74343 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 37 model components to the UV plane model.
! The established model now contains 37 components and 1.74343 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.87 mas, bmaj=8.196 mas, bpa=-15.08 degrees
! Estimated noise=1271.72 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.0738412 Jy
! Component: 100  -  total flux cleaned = 0.120873 Jy
! Component: 150  -  total flux cleaned = 0.155664 Jy
! Component: 200  -  total flux cleaned = 0.182314 Jy
! Total flux subtracted in 200 components = 0.182314 Jy
! Clean residual min=-0.018316 max=0.015089 Jy/beam
! Clean residual mean=0.000604 rms=0.005541 Jy/beam
! Combined flux in latest and established models = 1.92574 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 87 components and 1.92574 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.789 mas, bmaj=10.44 mas, bpa=-5.827 degrees
! Estimated noise=1497.82 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.0307146 Jy
! Component: 100  -  total flux cleaned = 0.0512481 Jy
! Component: 150  -  total flux cleaned = 0.0631172 Jy
! Component: 200  -  total flux cleaned = 0.0708563 Jy
! Total flux subtracted in 200 components = 0.0708563 Jy
! Clean residual min=-0.013603 max=0.013363 Jy/beam
! Clean residual mean=0.000475 rms=0.004472 Jy/beam
! Combined flux in latest and established models = 1.9966 Jy
! Adding 82 model components to the UV plane model.
! The established model now contains 154 components and 1.9966 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.87 mas, bmaj=8.196 mas, bpa=-15.08 degrees
! Estimated noise=1271.72 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0038711 Jy
! Component: 100  -  total flux cleaned = 0.00812664 Jy
! Component: 150  -  total flux cleaned = 0.0109657 Jy
! Component: 200  -  total flux cleaned = 0.0130139 Jy
! Total flux subtracted in 200 components = 0.0130139 Jy
! Clean residual min=-0.008852 max=0.010875 Jy/beam
! Clean residual mean=0.000187 rms=0.002687 Jy/beam
! Combined flux in latest and established models = 2.00961 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 181 components and 2.00961 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.422845Jy  sigma=0.001251
! Fit after  self-cal, rms=0.422808Jy  sigma=0.001251
wmodel J0738+1742_S_1996_05_15_yyk\_map.mod
! Writing 181 model components to file: J0738+1742_S_1996_05_15_yyk_map.mod
wobs J0738+1742_S_1996_05_15_yyk\_uvs.fits
! Writing UV FITS file: J0738+1742_S_1996_05_15_yyk_uvs.fits
wwins J0738+1742_S_1996_05_15_yyk\_map.win
! wwins: Wrote 3 windows to J0738+1742_S_1996_05_15_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.00270219 Jy
! Component: 100  -  total flux cleaned = 0.00300827 Jy
! Component: 150  -  total flux cleaned = 0.0030103 Jy
! Component: 200  -  total flux cleaned = 0.0035084 Jy
! Component: 250  -  total flux cleaned = 0.00374004 Jy
! Component: 300  -  total flux cleaned = 0.00417334 Jy
! Component: 350  -  total flux cleaned = 0.00437114 Jy
! Component: 400  -  total flux cleaned = 0.00408986 Jy
! Component: 450  -  total flux cleaned = 0.00400396 Jy
! Component: 500  -  total flux cleaned = 0.00375133 Jy
! Component: 550  -  total flux cleaned = 0.00359518 Jy
! Component: 600  -  total flux cleaned = 0.00352127 Jy
! Component: 650  -  total flux cleaned = 0.00330439 Jy
! Component: 700  -  total flux cleaned = 0.00288742 Jy
! Component: 750  -  total flux cleaned = 0.00241779 Jy
! Component: 800  -  total flux cleaned = 0.00209431 Jy
! Component: 850  -  total flux cleaned = 0.00178085 Jy
! Component: 900  -  total flux cleaned = 0.00159928 Jy
! Component: 950  -  total flux cleaned = 0.00154205 Jy
! Component: 1000  -  total flux cleaned = 0.00142707 Jy
! Component: 1050  -  total flux cleaned = 0.00137175 Jy
! Component: 1100  -  total flux cleaned = 0.00137314 Jy
! Component: 1150  -  total flux cleaned = 0.00158539 Jy
! Component: 1200  -  total flux cleaned = 0.00189233 Jy
! Component: 1250  -  total flux cleaned = 0.00199193 Jy
! Component: 1300  -  total flux cleaned = 0.00208996 Jy
! Component: 1350  -  total flux cleaned = 0.00223347 Jy
! Component: 1400  -  total flux cleaned = 0.00227953 Jy
! Component: 1450  -  total flux cleaned = 0.00236985 Jy
! Component: 1500  -  total flux cleaned = 0.0023688 Jy
! Component: 1550  -  total flux cleaned = 0.00241163 Jy
! Component: 1600  -  total flux cleaned = 0.00245361 Jy
! Component: 1650  -  total flux cleaned = 0.00249411 Jy
! Component: 1700  -  total flux cleaned = 0.00241181 Jy
! Component: 1750  -  total flux cleaned = 0.00229227 Jy
! Component: 1800  -  total flux cleaned = 0.00233202 Jy
! Component: 1850  -  total flux cleaned = 0.00221584 Jy
! Component: 1900  -  total flux cleaned = 0.00225352 Jy
! Component: 1950  -  total flux cleaned = 0.00210329 Jy
! Component: 2000  -  total flux cleaned = 0.00202964 Jy
! Total flux subtracted in 2048 components = 0.00188477 Jy
! Clean residual min=-0.001971 max=0.001800 Jy/beam
! Clean residual mean=0.000060 rms=0.000703 Jy/beam
! Combined flux in latest and established models = 2.0115 Jy
keep
! Adding 116 model components to the UV plane model.
! The established model now contains 297 components and 2.0115 Jy
![Exited script file: muppet]
wmap "J0738+1742_S_1996_05_15_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.87 x 8.196 at -15.08 degrees (North through East)
! Clean map  min=-0.0077772  max=1.6123 Jy/beam
! Writing clean map to FITS file: J0738+1742_S_1996_05_15_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.61233 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000695709 
device "J0738+1742_S_1996_05_15_yyk\_map.eps/VPS"
! Attempting to open device: 'J0738+1742_S_1996_05_15_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.129448 0.129448 0.258896 0.517792 1.03558 2.07117 4.14234 8.28468 16.5694 33.1387 66.2774
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(peak_flux*1000)/1000
! peak= 1.612 
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.87 x 8.196 at -15.08 degrees (North through East)
! Clean map  min=-0.0077772  max=1.6123 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0738+1742_S_1996_05_15_yyk\_map.gif/gif"
! Attempting to open device: 'J0738+1742_S_1996_05_15_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0738+1742_S_1996_05_15_yyk_uvs.log closed on Sun Jan  7 16:47:53 2007