! Started logfile: J1513+2338_S_1996_03_13_yyk_uvs.log on Sun Jan  7 18:43:49 2007
obs J1513+2338_S_1996_03_13_yyk_uva.fits
! Reading UV FITS file: J1513+2338_S_1996_03_13_yyk_uva.fits
! AN table 1: 116 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.861494 visibilities/baseline/integration-bin.
! Found source: J1513+2338
! 
! 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        4e+06          1        4e+06
!  02        2  2.23236e+09        4e+06          1        4e+06
!  03        3  2.29236e+09        4e+06          1        4e+06
!  04        4  2.32236e+09        4e+06          1        4e+06
! 
! Polarization(s): RR
! 
! Read 655 lines of history.
! 
! Reading 17988 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 J1513+2338_S_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.500x0.500 milli-arcsec cellsize.
phase_soltime=phase_soltime1
print "uvstat(rms)=",uvstat(rms),"Jy"
! uvstat(rms)= 1.04749 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.918 mas, bmaj=7.268 mas, bpa=-4.554 degrees
! Estimated noise=1586.98 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.724653 Jy
! Component: 100  -  total flux cleaned = 0.904999 Jy
! Total flux subtracted in 100 components = 0.904999 Jy
! Clean residual min=-0.057044 max=0.104096 Jy/beam
! Clean residual mean=0.000481 rms=0.022388 Jy/beam
! Combined flux in latest and established models = 0.904999 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.904999 Jy
! 
! Correcting IF 1.
!  A total of 97 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 97 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 97 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 97 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.564111Jy  sigma=0.002938
! Fit after  self-cal, rms=0.562330Jy  sigma=0.002927
! Inverting map and beam 
! Estimated beam: bmin=2.918 mas, bmaj=7.268 mas, bpa=-4.553 degrees
! Estimated noise=1587.73 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.651 mas, bmaj=8.311 mas, bpa=-6.706 degrees
! Estimated noise=954.933 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.0759334 Jy
! Component: 100  -  total flux cleaned = 0.11046 Jy
! Component: 150  -  total flux cleaned = 0.12609 Jy
! Component: 200  -  total flux cleaned = 0.127267 Jy
! Total flux subtracted in 200 components = 0.127267 Jy
! Clean residual min=-0.060037 max=0.126492 Jy/beam
! Clean residual mean=0.000973 rms=0.029057 Jy/beam
! Combined flux in latest and established models = 1.03227 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 21 components and 1.03227 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.555395Jy  sigma=0.002886
! Fit after  self-cal, rms=0.555450Jy  sigma=0.002885
! 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.651 x 8.311 at -6.706 degrees (North through East)
! Clean map  min=-0.059221  max=0.8255 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.85093
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        0.97     HN        0.97     KP        0.80     
!   LA        0.83     MK        0.95     NL        0.85     OV        3.85     
!   PT        0.85     SC        0.77     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.822076
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        1.06     HN        1.06     KP        0.82     
!   LA        0.93     MK        1.01     NL        0.88     OV        3.77     
!   PT        0.83     SC        0.81     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.857227
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.92     FD        0.98     HN        0.95     KP        0.85     
!   LA        0.71     MK        0.91     NL        0.91     OV        3.51     
!   PT        1.00     SC        0.94     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 0.833085
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.02     HN        1.01     KP        0.91     
!   LA        0.80     MK        1.04     NL        0.99     OV        3.48     
!   PT        0.88     SC        0.92     
! 
! 
! Fit before self-cal, rms=0.555450Jy  sigma=0.002885
! Fit after  self-cal, rms=0.759797Jy  sigma=0.003091
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.759797Jy  sigma=0.003091
! Fit after  self-cal, rms=0.759870Jy  sigma=0.003091
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.642 mas, bmaj=8.095 mas, bpa=-5.387 degrees
! Estimated noise=625.927 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.223258 Jy
! Component: 100  -  total flux cleaned = -0.273409 Jy
! Component: 150  -  total flux cleaned = -0.279339 Jy
! Component: 200  -  total flux cleaned = -0.280834 Jy
! Total flux subtracted in 200 components = -0.280834 Jy
! Clean residual min=-0.017119 max=0.064390 Jy/beam
! Clean residual mean=0.000014 rms=0.006341 Jy/beam
! Combined flux in latest and established models = 0.751433 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 39 components and 0.751433 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.731642Jy  sigma=0.002203
! Fit after  self-cal, rms=0.731678Jy  sigma=0.002203
! Inverting map 
! Added new window around map position (-29, -52.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.059299 Jy
! Component: 100  -  total flux cleaned = 0.0779361 Jy
! Component: 150  -  total flux cleaned = 0.0859985 Jy
! Component: 200  -  total flux cleaned = 0.0877331 Jy
! Total flux subtracted in 200 components = 0.0877331 Jy
! Clean residual min=-0.010180 max=0.010916 Jy/beam
! Clean residual mean=0.000048 rms=0.003247 Jy/beam
! Combined flux in latest and established models = 0.839166 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 42 model components to the UV plane model.
! The established model now contains 78 components and 0.839166 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.727559Jy  sigma=0.002123
! Fit after  self-cal, rms=0.727380Jy  sigma=0.002120
! 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.727380Jy  sigma=0.002120
! Fit after  self-cal, rms=0.725536Jy  sigma=0.002111
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.00701036 Jy
! Component: 100  -  total flux cleaned = 0.00963559 Jy
! Component: 150  -  total flux cleaned = 0.011858 Jy
! Component: 200  -  total flux cleaned = 0.0129456 Jy
! Total flux subtracted in 200 components = 0.0129456 Jy
! Clean residual min=-0.010113 max=0.010575 Jy/beam
! Clean residual mean=0.000071 rms=0.002992 Jy/beam
! Combined flux in latest and established models = 0.852111 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 93 components and 0.852111 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.724909Jy  sigma=0.002108
! Fit after  self-cal, rms=0.724822Jy  sigma=0.002106
! 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.642 x 8.095 at -5.387 degrees (North through East)
! Clean map  min=-0.010055  max=0.58555 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.724822Jy  sigma=0.002106
! Fit after  self-cal, rms=3.209249Jy  sigma=0.001827
! Performing phase self-cal over 0.5 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.209249Jy  sigma=0.001827
! Fit after  self-cal, rms=3.208998Jy  sigma=0.001826
! Inverting map and beam 
! Estimated beam: bmin=3.648 mas, bmaj=8.172 mas, bpa=-6.063 degrees
! Estimated noise=613.868 mJy/beam.
! Added new window around map position (-7.5, -14.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0120383 Jy
! Component: 100  -  total flux cleaned = 0.0182888 Jy
! Component: 150  -  total flux cleaned = 0.0207254 Jy
! Component: 200  -  total flux cleaned = 0.0217387 Jy
! Total flux subtracted in 200 components = 0.0217387 Jy
! Clean residual min=-0.004804 max=0.006125 Jy/beam
! Clean residual mean=0.000070 rms=0.001569 Jy/beam
! Combined flux in latest and established models = 0.87385 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 124 components and 0.87385 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.208994Jy  sigma=0.001821
! Fit after  self-cal, rms=3.208605Jy  sigma=0.001821
! 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=3.208605Jy  sigma=0.001821
! Fit after  self-cal, rms=3.509070Jy  sigma=0.001819
! Performing phase self-cal over 0.5 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.509070Jy  sigma=0.001819
! Fit after  self-cal, rms=3.509128Jy  sigma=0.001819
! Inverting map and beam 
! Estimated beam: bmin=3.653 mas, bmaj=8.155 mas, bpa=-6.013 degrees
! Estimated noise=614.185 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00650192 Jy
! Component: 100  -  total flux cleaned = 0.00950827 Jy
! Component: 150  -  total flux cleaned = 0.0106247 Jy
! Component: 200  -  total flux cleaned = 0.0113874 Jy
! Total flux subtracted in 200 components = 0.0113874 Jy
! Clean residual min=-0.004672 max=0.005601 Jy/beam
! Clean residual mean=0.000060 rms=0.001408 Jy/beam
! Combined flux in latest and established models = 0.885237 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 139 components and 0.885237 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.509123Jy  sigma=0.001817
! Fit after  self-cal, rms=3.508936Jy  sigma=0.001817
! 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.23 mas, bmaj=10.36 mas, bpa=-11.22 degrees
! Estimated noise=743.017 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.00414956 Jy
! Component: 100  -  total flux cleaned = 0.0063697 Jy
! Component: 150  -  total flux cleaned = 0.0079458 Jy
! Component: 200  -  total flux cleaned = 0.00879437 Jy
! Total flux subtracted in 200 components = 0.00879437 Jy
! Clean residual min=-0.004337 max=0.005335 Jy/beam
! Clean residual mean=0.000093 rms=0.001513 Jy/beam
! Combined flux in latest and established models = 0.894032 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 162 components and 0.894032 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.508922Jy  sigma=0.001817
! Fit after  self-cal, rms=3.508819Jy  sigma=0.001816
! 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.882 mas, bmaj=7.1 mas, bpa=-4.266 degrees
! Estimated noise=1077.39 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.492789 Jy
! Component: 100  -  total flux cleaned = 0.622567 Jy
! Component: 150  -  total flux cleaned = 0.684907 Jy
! Component: 200  -  total flux cleaned = 0.723556 Jy
! Total flux subtracted in 200 components = 0.723556 Jy
! Clean residual min=-0.013621 max=0.018094 Jy/beam
! Clean residual mean=0.000074 rms=0.004116 Jy/beam
! Combined flux in latest and established models = 0.723556 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 44 model components to the UV plane model.
! The established model now contains 44 components and 0.723556 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.653 mas, bmaj=8.155 mas, bpa=-6.013 degrees
! Estimated noise=614.185 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)
! Added new window around map position (3, -4.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.044559 Jy
! Component: 100  -  total flux cleaned = 0.0731575 Jy
! Component: 150  -  total flux cleaned = 0.0937706 Jy
! Component: 200  -  total flux cleaned = 0.108922 Jy
! Total flux subtracted in 200 components = 0.108922 Jy
! Clean residual min=-0.006104 max=0.007584 Jy/beam
! Clean residual mean=0.000090 rms=0.002274 Jy/beam
! Combined flux in latest and established models = 0.832477 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 95 components and 0.832477 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.23 mas, bmaj=10.36 mas, bpa=-11.22 degrees
! Estimated noise=743.017 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.0173512 Jy
! Component: 100  -  total flux cleaned = 0.0290169 Jy
! Component: 150  -  total flux cleaned = 0.0376918 Jy
! Component: 200  -  total flux cleaned = 0.0442978 Jy
! Total flux subtracted in 200 components = 0.0442978 Jy
! Clean residual min=-0.004735 max=0.004645 Jy/beam
! Clean residual mean=0.000100 rms=0.001752 Jy/beam
! Combined flux in latest and established models = 0.876775 Jy
! Adding 89 model components to the UV plane model.
! The established model now contains 178 components and 0.876775 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.653 mas, bmaj=8.155 mas, bpa=-6.013 degrees
! Estimated noise=614.185 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00485044 Jy
! Component: 100  -  total flux cleaned = 0.00734625 Jy
! Component: 150  -  total flux cleaned = 0.00951908 Jy
! Component: 200  -  total flux cleaned = 0.0108798 Jy
! Total flux subtracted in 200 components = 0.0108798 Jy
! Clean residual min=-0.004359 max=0.004395 Jy/beam
! Clean residual mean=0.000055 rms=0.001244 Jy/beam
! Combined flux in latest and established models = 0.887655 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 38 model components to the UV plane model.
! The established model now contains 214 components and 0.887655 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=3.508943Jy  sigma=0.001815
! Fit after  self-cal, rms=3.508886Jy  sigma=0.001815
wmodel J1513+2338_S_1996_03_13_yyk\_map.mod
! Writing 214 model components to file: J1513+2338_S_1996_03_13_yyk_map.mod
wobs J1513+2338_S_1996_03_13_yyk\_uvs.fits
! Writing UV FITS file: J1513+2338_S_1996_03_13_yyk_uvs.fits
wwins J1513+2338_S_1996_03_13_yyk\_map.win
! wwins: Wrote 4 windows to J1513+2338_S_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.000463599 Jy
! Component: 100  -  total flux cleaned = -4.9785e-06 Jy
! Component: 150  -  total flux cleaned = 0.000349974 Jy
! Component: 200  -  total flux cleaned = 0.000483031 Jy
! Component: 250  -  total flux cleaned = 0.000610658 Jy
! Component: 300  -  total flux cleaned = 0.000671028 Jy
! Component: 350  -  total flux cleaned = 0.000553281 Jy
! Component: 400  -  total flux cleaned = 0.000552752 Jy
! Component: 450  -  total flux cleaned = 0.000552506 Jy
! Component: 500  -  total flux cleaned = 0.00071338 Jy
! Component: 550  -  total flux cleaned = 0.000869468 Jy
! Component: 600  -  total flux cleaned = 0.000817963 Jy
! Component: 650  -  total flux cleaned = 0.000769351 Jy
! Component: 700  -  total flux cleaned = 0.00081895 Jy
! Component: 750  -  total flux cleaned = 0.000674643 Jy
! Component: 800  -  total flux cleaned = 0.000487132 Jy
! Component: 850  -  total flux cleaned = 0.000349344 Jy
! Component: 900  -  total flux cleaned = 0.000303122 Jy
! Component: 950  -  total flux cleaned = 0.000168049 Jy
! Component: 1000  -  total flux cleaned = -0.000138349 Jy
! Component: 1050  -  total flux cleaned = -5.19866e-05 Jy
! Component: 1100  -  total flux cleaned = -5.14105e-05 Jy
! Component: 1150  -  total flux cleaned = -5.13984e-05 Jy
! Component: 1200  -  total flux cleaned = 0.000113258 Jy
! Component: 1250  -  total flux cleaned = 3.15797e-05 Jy
! Component: 1300  -  total flux cleaned = -8.78333e-05 Jy
! Component: 1350  -  total flux cleaned = -7.87499e-06 Jy
! Component: 1400  -  total flux cleaned = -8.62623e-05 Jy
! Component: 1450  -  total flux cleaned = -8.60893e-05 Jy
! Component: 1500  -  total flux cleaned = -8.52157e-05 Jy
! Component: 1550  -  total flux cleaned = -4.74771e-05 Jy
! Component: 1600  -  total flux cleaned = -0.000158954 Jy
! Component: 1650  -  total flux cleaned = -8.50466e-05 Jy
! Component: 1700  -  total flux cleaned = 2.3726e-05 Jy
! Component: 1750  -  total flux cleaned = -0.000191061 Jy
! Component: 1800  -  total flux cleaned = -1.40727e-05 Jy
! Component: 1850  -  total flux cleaned = -8.48458e-05 Jy
! Component: 1900  -  total flux cleaned = -0.000154111 Jy
! Component: 1950  -  total flux cleaned = -0.000153844 Jy
! Component: 2000  -  total flux cleaned = -0.000289225 Jy
! Total flux subtracted in 2048 components = -0.000423283 Jy
! Clean residual min=-0.001992 max=0.001731 Jy/beam
! Clean residual mean=0.000034 rms=0.000722 Jy/beam
! Combined flux in latest and established models = 0.887232 Jy
keep
! Adding 148 model components to the UV plane model.
! The established model now contains 362 components and 0.887232 Jy
![Exited script file: muppet]
wmap "J1513+2338_S_1996_03_13_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.653 x 8.155 at -6.013 degrees (North through East)
! Clean map  min=-0.0043927  max=0.58847 Jy/beam
! Writing clean map to FITS file: J1513+2338_S_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.588473 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000713843 
device "J1513+2338_S_1996_03_13_yyk\_map.eps/VPS"
! Attempting to open device: 'J1513+2338_S_1996_03_13_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.363913 0.363913 0.727826 1.45565 2.9113 5.8226 11.6452 23.2904 46.5808 93.1617
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.588 
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.653 x 8.155 at -6.013 degrees (North through East)
! Clean map  min=-0.0043927  max=0.58847 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1513+2338_S_1996_03_13_yyk\_map.gif/gif"
! Attempting to open device: 'J1513+2338_S_1996_03_13_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1513+2338_S_1996_03_13_yyk_uvs.log closed on Sun Jan  7 18:43:57 2007