! Started logfile: J1213+1307_S_1996_01_02_yyk_uvs.log on Sun Jan  7 18:00:31 2007
obs J1213+1307_S_1996_01_02_yyk_uva.fits
! Reading UV FITS file: J1213+1307_S_1996_01_02_yyk_uva.fits
! AN table 1: 118 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.875518 visibilities/baseline/integration-bin.
! Found source: J1213+1307
! 
! 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 623 lines of history.
! 
! Reading 18596 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 J1213+1307_S_1996_01_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.873369 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.799 mas, bmaj=7.176 mas, bpa=-9.929 degrees
! Estimated noise=1562.88 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.117708 Jy
! Component: 100  -  total flux cleaned = 0.150594 Jy
! Total flux subtracted in 100 components = 0.150594 Jy
! Clean residual min=-0.019842 max=0.018959 Jy/beam
! Clean residual mean=0.000156 rms=0.004989 Jy/beam
! Combined flux in latest and established models = 0.150594 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 11 components and 0.150594 Jy
! 
! Correcting IF 1.
!  A total of 137 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 99 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 81 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 81 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.860506Jy  sigma=0.003199
! Fit after  self-cal, rms=0.860072Jy  sigma=0.003197
! Inverting map and beam 
! Estimated beam: bmin=2.799 mas, bmaj=7.176 mas, bpa=-9.929 degrees
! Estimated noise=1593.35 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.518 mas, bmaj=8.569 mas, bpa=-11.15 degrees
! Estimated noise=1013.19 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.025388 Jy
! Component: 100  -  total flux cleaned = 0.035536 Jy
! Component: 150  -  total flux cleaned = 0.038576 Jy
! Component: 200  -  total flux cleaned = 0.0399359 Jy
! Total flux subtracted in 200 components = 0.0399359 Jy
! Clean residual min=-0.013178 max=0.014598 Jy/beam
! Clean residual mean=0.000218 rms=0.004368 Jy/beam
! Combined flux in latest and established models = 0.19053 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 19 components and 0.19053 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.859493Jy  sigma=0.003193
! Fit after  self-cal, rms=0.859487Jy  sigma=0.003193
! 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.518 x 8.569 at -11.15 degrees (North through East)
! Clean map  min=-0.012878  max=0.14081 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
! Selfcal amplitude corrections will be limited to 0.833333 -> 1.2.
! Selfcal phase corrections will not be limited.
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    OV        1.00*    
!   PT        1.00*    SC        1.00*    
! 
! 
! Fit before self-cal, rms=0.859487Jy  sigma=0.003193
! Fit after  self-cal, rms=0.860133Jy  sigma=0.003195
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.860133Jy  sigma=0.003195
! Fit after  self-cal, rms=0.860134Jy  sigma=0.003195
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.52 mas, bmaj=8.563 mas, bpa=-11.12 degrees
! Estimated noise=1014.18 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.000884868 Jy
! Component: 100  -  total flux cleaned = 0.00113749 Jy
! Component: 150  -  total flux cleaned = 0.00135238 Jy
! Component: 200  -  total flux cleaned = 0.00154164 Jy
! Total flux subtracted in 200 components = 0.00154164 Jy
! Clean residual min=-0.013248 max=0.014197 Jy/beam
! Clean residual mean=0.000216 rms=0.004354 Jy/beam
! Combined flux in latest and established models = 0.192071 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 22 components and 0.192071 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.860110Jy  sigma=0.003195
! Fit after  self-cal, rms=0.860107Jy  sigma=0.003195
! 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.860107Jy  sigma=0.003195
! Fit after  self-cal, rms=0.858856Jy  sigma=0.003188
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.00669868 Jy
! Component: 100  -  total flux cleaned = 0.0075196 Jy
! Component: 150  -  total flux cleaned = 0.00794321 Jy
! Component: 200  -  total flux cleaned = 0.00794562 Jy
! Total flux subtracted in 200 components = 0.00794562 Jy
! Clean residual min=-0.015334 max=0.016036 Jy/beam
! Clean residual mean=0.000226 rms=0.004635 Jy/beam
! Combined flux in latest and established models = 0.200017 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 28 components and 0.200017 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.858767Jy  sigma=0.003187
! Fit after  self-cal, rms=0.858307Jy  sigma=0.003185
! 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.52 x 8.563 at -11.12 degrees (North through East)
! Clean map  min=-0.015549  max=0.14555 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.858307Jy  sigma=0.003185
! Fit after  self-cal, rms=0.858307Jy  sigma=0.003185
! 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.858307Jy  sigma=0.003185
! Fit after  self-cal, rms=0.858183Jy  sigma=0.003185
! Inverting map and beam 
! Estimated beam: bmin=3.52 mas, bmaj=8.563 mas, bpa=-11.12 degrees
! Estimated noise=1014.18 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00206331 Jy
! Component: 100  -  total flux cleaned = 0.0021569 Jy
! Component: 150  -  total flux cleaned = 0.00198031 Jy
! Component: 200  -  total flux cleaned = 0.00182342 Jy
! Total flux subtracted in 200 components = 0.00182342 Jy
! Clean residual min=-0.015757 max=0.016766 Jy/beam
! Clean residual mean=0.000233 rms=0.004824 Jy/beam
! Combined flux in latest and established models = 0.20184 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 36 components and 0.20184 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.858134Jy  sigma=0.003185
! Fit after  self-cal, rms=0.858109Jy  sigma=0.003185
! 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.858109Jy  sigma=0.003185
! Fit after  self-cal, rms=0.858109Jy  sigma=0.003185
! 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.858109Jy  sigma=0.003185
! Fit after  self-cal, rms=0.858130Jy  sigma=0.003185
! Inverting map and beam 
! Estimated beam: bmin=3.52 mas, bmaj=8.563 mas, bpa=-11.12 degrees
! Estimated noise=1014.18 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.000183888 Jy
! Component: 100  -  total flux cleaned = 0.000112299 Jy
! Component: 150  -  total flux cleaned = -1.40955e-05 Jy
! Component: 200  -  total flux cleaned = -7.28998e-05 Jy
! Total flux subtracted in 200 components = -7.28998e-05 Jy
! Clean residual min=-0.015452 max=0.016465 Jy/beam
! Clean residual mean=0.000209 rms=0.004753 Jy/beam
! Combined flux in latest and established models = 0.201767 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 43 components and 0.201767 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.858112Jy  sigma=0.003185
! Fit after  self-cal, rms=0.858143Jy  sigma=0.003185
! 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.876 mas, bmaj=11.38 mas, bpa=-4.337 degrees
! Estimated noise=1249.27 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.00128162 Jy
! Component: 100  -  total flux cleaned = 0.00152404 Jy
! Component: 150  -  total flux cleaned = 0.00168783 Jy
! Component: 200  -  total flux cleaned = 0.00183047 Jy
! Total flux subtracted in 200 components = 0.00183047 Jy
! Clean residual min=-0.018444 max=0.019304 Jy/beam
! Clean residual mean=0.000406 rms=0.006664 Jy/beam
! Combined flux in latest and established models = 0.203598 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 50 components and 0.203598 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.858160Jy  sigma=0.003185
! Fit after  self-cal, rms=0.858189Jy  sigma=0.003185
! 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.799 mas, bmaj=7.176 mas, bpa=-9.929 degrees
! Estimated noise=1595.42 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.128372 Jy
! Component: 100  -  total flux cleaned = 0.165294 Jy
! Component: 150  -  total flux cleaned = 0.183861 Jy
! Component: 200  -  total flux cleaned = 0.193479 Jy
! Total flux subtracted in 200 components = 0.193479 Jy
! Clean residual min=-0.014516 max=0.017357 Jy/beam
! Clean residual mean=0.000096 rms=0.004549 Jy/beam
! Combined flux in latest and established models = 0.193479 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 17 model components to the UV plane model.
! The established model now contains 17 components and 0.193479 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.52 mas, bmaj=8.563 mas, bpa=-11.12 degrees
! Estimated noise=1014.18 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.00635314 Jy
! Component: 100  -  total flux cleaned = 0.00708667 Jy
! Component: 150  -  total flux cleaned = 0.00749474 Jy
! Component: 200  -  total flux cleaned = 0.00784404 Jy
! Total flux subtracted in 200 components = 0.00784404 Jy
! Clean residual min=-0.015544 max=0.016275 Jy/beam
! Clean residual mean=0.000217 rms=0.004731 Jy/beam
! Combined flux in latest and established models = 0.201323 Jy
! Adding 14 model components to the UV plane model.
! The established model now contains 29 components and 0.201323 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.876 mas, bmaj=11.38 mas, bpa=-4.337 degrees
! Estimated noise=1249.27 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.00234765 Jy
! Component: 100  -  total flux cleaned = 0.00234358 Jy
! Component: 150  -  total flux cleaned = 0.00234239 Jy
! Component: 200  -  total flux cleaned = 0.0023915 Jy
! Total flux subtracted in 200 components = 0.0023915 Jy
! Clean residual min=-0.018642 max=0.019382 Jy/beam
! Clean residual mean=0.000412 rms=0.006655 Jy/beam
! Combined flux in latest and established models = 0.203715 Jy
! Adding 9 model components to the UV plane model.
! The established model now contains 37 components and 0.203715 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.52 mas, bmaj=8.563 mas, bpa=-11.12 degrees
! Estimated noise=1014.18 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00135427 Jy
! Component: 100  -  total flux cleaned = -0.00144726 Jy
! Component: 150  -  total flux cleaned = -0.00145035 Jy
! Component: 200  -  total flux cleaned = -0.00152867 Jy
! Total flux subtracted in 200 components = -0.00152867 Jy
! Clean residual min=-0.015567 max=0.016070 Jy/beam
! Clean residual mean=0.000215 rms=0.004719 Jy/beam
! Combined flux in latest and established models = 0.202186 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 45 components and 0.202186 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.858191Jy  sigma=0.003185
! Fit after  self-cal, rms=0.858212Jy  sigma=0.003185
wmodel J1213+1307_S_1996_01_02_yyk\_map.mod
! Writing 45 model components to file: J1213+1307_S_1996_01_02_yyk_map.mod
wobs J1213+1307_S_1996_01_02_yyk\_uvs.fits
! Writing UV FITS file: J1213+1307_S_1996_01_02_yyk_uvs.fits
wwins J1213+1307_S_1996_01_02_yyk\_map.win
! wwins: Wrote 1 windows to J1213+1307_S_1996_01_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.00470526 Jy
! Component: 100  -  total flux cleaned = 0.00817049 Jy
! Component: 150  -  total flux cleaned = 0.0111606 Jy
! Component: 200  -  total flux cleaned = 0.0130485 Jy
! Component: 250  -  total flux cleaned = 0.0148623 Jy
! Component: 300  -  total flux cleaned = 0.0155161 Jy
! Component: 350  -  total flux cleaned = 0.0157308 Jy
! Component: 400  -  total flux cleaned = 0.0165627 Jy
! Component: 450  -  total flux cleaned = 0.0169671 Jy
! Component: 500  -  total flux cleaned = 0.016969 Jy
! Component: 550  -  total flux cleaned = 0.0169723 Jy
! Component: 600  -  total flux cleaned = 0.0171614 Jy
! Component: 650  -  total flux cleaned = 0.017346 Jy
! Component: 700  -  total flux cleaned = 0.0173481 Jy
! Component: 750  -  total flux cleaned = 0.0173505 Jy
! Component: 800  -  total flux cleaned = 0.0173508 Jy
! Component: 850  -  total flux cleaned = 0.0173535 Jy
! Component: 900  -  total flux cleaned = 0.0176882 Jy
! Component: 950  -  total flux cleaned = 0.0175192 Jy
! Component: 1000  -  total flux cleaned = 0.017194 Jy
! Component: 1050  -  total flux cleaned = 0.0171981 Jy
! Component: 1100  -  total flux cleaned = 0.0171995 Jy
! Component: 1150  -  total flux cleaned = 0.0167335 Jy
! Component: 1200  -  total flux cleaned = 0.0164254 Jy
! Component: 1250  -  total flux cleaned = 0.0167278 Jy
! Component: 1300  -  total flux cleaned = 0.0159759 Jy
! Component: 1350  -  total flux cleaned = 0.0159785 Jy
! Component: 1400  -  total flux cleaned = 0.0156849 Jy
! Component: 1450  -  total flux cleaned = 0.0152487 Jy
! Component: 1500  -  total flux cleaned = 0.0153918 Jy
! Component: 1550  -  total flux cleaned = 0.0142516 Jy
! Component: 1600  -  total flux cleaned = 0.013266 Jy
! Component: 1650  -  total flux cleaned = 0.0127071 Jy
! Component: 1700  -  total flux cleaned = 0.0120166 Jy
! Component: 1750  -  total flux cleaned = 0.0116037 Jy
! Component: 1800  -  total flux cleaned = 0.0107885 Jy
! Component: 1850  -  total flux cleaned = 0.0106544 Jy
! Component: 1900  -  total flux cleaned = 0.00998419 Jy
! Component: 1950  -  total flux cleaned = 0.00931878 Jy
! Component: 2000  -  total flux cleaned = 0.00905414 Jy
! Total flux subtracted in 2048 components = 0.00787628 Jy
! Clean residual min=-0.009201 max=0.006955 Jy/beam
! Clean residual mean=-0.000016 rms=0.003032 Jy/beam
! Combined flux in latest and established models = 0.210062 Jy
keep
! Adding 166 model components to the UV plane model.
! The established model now contains 211 components and 0.210062 Jy
![Exited script file: muppet]
wmap "J1213+1307_S_1996_01_02_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.52 x 8.563 at -11.12 degrees (North through East)
! Clean map  min=-0.012539  max=0.14489 Jy/beam
! Writing clean map to FITS file: J1213+1307_S_1996_01_02_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.144887 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00300994 
device "J1213+1307_S_1996_01_02_yyk\_map.eps/VPS"
! Attempting to open device: 'J1213+1307_S_1996_01_02_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -6.2323 6.2323 12.4646 24.9292 49.8584 99.7169
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.009 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.144 
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.52 x 8.563 at -11.12 degrees (North through East)
! Clean map  min=-0.012539  max=0.14489 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1213+1307_S_1996_01_02_yyk\_map.gif/gif"
! Attempting to open device: 'J1213+1307_S_1996_01_02_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1213+1307_S_1996_01_02_yyk_uvs.log closed on Sun Jan  7 18:00:37 2007