! Started logfile: J1255+1817_S_1996_03_13_yyk_uvs.log on Sun Jan  7 18:10:08 2007
obs J1255+1817_S_1996_03_13_yyk_uva.fits
! Reading UV FITS file: J1255+1817_S_1996_03_13_yyk_uva.fits
! AN table 1: 125 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.9488 visibilities/baseline/integration-bin.
! Found source: J1255+1817
! 
! 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 21348 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 J1255+1817_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)= 0.41919 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.858 mas, bmaj=6.662 mas, bpa=-5.617 degrees
! Estimated noise=1282.2 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.161692 Jy
! Component: 100  -  total flux cleaned = 0.207992 Jy
! Total flux subtracted in 100 components = 0.207992 Jy
! Clean residual min=-0.015103 max=0.032991 Jy/beam
! Clean residual mean=0.000111 rms=0.004387 Jy/beam
! Combined flux in latest and established models = 0.207992 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.207992 Jy
! 
! Correcting IF 1.
!  A total of 46 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 46 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 46 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 46 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.368130Jy  sigma=0.001866
! Fit after  self-cal, rms=0.367507Jy  sigma=0.001862
! Inverting map and beam 
! Estimated beam: bmin=2.858 mas, bmaj=6.662 mas, bpa=-5.617 degrees
! Estimated noise=1282.29 mJy/beam.
! Added new window around map position (4.5, 7).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0383953 Jy
! Component: 100  -  total flux cleaned = 0.0568823 Jy
! Total flux subtracted in 100 components = 0.0568823 Jy
! Clean residual min=-0.012064 max=0.014368 Jy/beam
! Clean residual mean=0.000058 rms=0.003446 Jy/beam
! Combined flux in latest and established models = 0.264874 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 23 components and 0.264874 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.363851Jy  sigma=0.001839
! Fit after  self-cal, rms=0.363571Jy  sigma=0.001837
! 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=3.506 mas, bmaj=8.004 mas, bpa=-8.262 degrees
! Estimated noise=861.393 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.0215803 Jy
! Component: 100  -  total flux cleaned = 0.032711 Jy
! Component: 150  -  total flux cleaned = 0.0393434 Jy
! Component: 200  -  total flux cleaned = 0.0428573 Jy
! Total flux subtracted in 200 components = 0.0428573 Jy
! Clean residual min=-0.007982 max=0.009696 Jy/beam
! Clean residual mean=0.000039 rms=0.002337 Jy/beam
! Combined flux in latest and established models = 0.307731 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 31 model components to the UV plane model.
! The established model now contains 47 components and 0.307731 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.362569Jy  sigma=0.001832
! Fit after  self-cal, rms=0.362491Jy  sigma=0.001831
! 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.506 x 8.004 at -8.262 degrees (North through East)
! Clean map  min=-0.0078309  max=0.17637 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 3 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 3 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 3 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 3 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.362491Jy  sigma=0.001831
! Fit after  self-cal, rms=0.362343Jy  sigma=0.001831
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.362343Jy  sigma=0.001831
! Fit after  self-cal, rms=0.362344Jy  sigma=0.001831
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.506 mas, bmaj=8.004 mas, bpa=-8.259 degrees
! Estimated noise=861.578 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.00236968 Jy
! Component: 100  -  total flux cleaned = 0.0029429 Jy
! Component: 150  -  total flux cleaned = 0.00351248 Jy
! Component: 200  -  total flux cleaned = 0.00389699 Jy
! Total flux subtracted in 200 components = 0.00389699 Jy
! Clean residual min=-0.007914 max=0.009330 Jy/beam
! Clean residual mean=0.000032 rms=0.002274 Jy/beam
! Combined flux in latest and established models = 0.311628 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 56 components and 0.311628 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.362257Jy  sigma=0.001830
! Fit after  self-cal, rms=0.362242Jy  sigma=0.001830
! 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.362242Jy  sigma=0.001830
! Fit after  self-cal, rms=0.361685Jy  sigma=0.001827
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.00147034 Jy
! Component: 100  -  total flux cleaned = 0.00216109 Jy
! Component: 150  -  total flux cleaned = 0.0024092 Jy
! Component: 200  -  total flux cleaned = 0.00270591 Jy
! Total flux subtracted in 200 components = 0.00270591 Jy
! Clean residual min=-0.007290 max=0.009336 Jy/beam
! Clean residual mean=0.000027 rms=0.002244 Jy/beam
! Combined flux in latest and established models = 0.314334 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 63 components and 0.314334 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.361635Jy  sigma=0.001827
! Fit after  self-cal, rms=0.361408Jy  sigma=0.001826
! 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.506 x 8.004 at -8.259 degrees (North through East)
! Clean map  min=-0.0071748  max=0.17526 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.361408Jy  sigma=0.001826
! Fit after  self-cal, rms=0.356627Jy  sigma=0.001825
! 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.356627Jy  sigma=0.001825
! Fit after  self-cal, rms=0.356589Jy  sigma=0.001825
! Inverting map and beam 
! Estimated beam: bmin=3.467 mas, bmaj=7.984 mas, bpa=-8.416 degrees
! Estimated noise=846.869 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00236576 Jy
! Component: 100  -  total flux cleaned = -0.00236981 Jy
! Component: 150  -  total flux cleaned = -0.00229311 Jy
! Component: 200  -  total flux cleaned = -0.00222012 Jy
! Total flux subtracted in 200 components = -0.00222012 Jy
! Clean residual min=-0.006436 max=0.008217 Jy/beam
! Clean residual mean=0.000009 rms=0.002054 Jy/beam
! Combined flux in latest and established models = 0.312114 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 77 components and 0.312114 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356569Jy  sigma=0.001825
! Fit after  self-cal, rms=0.356544Jy  sigma=0.001825
! 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.356544Jy  sigma=0.001825
! Fit after  self-cal, rms=0.356360Jy  sigma=0.001824
! 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.356360Jy  sigma=0.001824
! Fit after  self-cal, rms=0.356357Jy  sigma=0.001824
! Inverting map and beam 
! Estimated beam: bmin=3.464 mas, bmaj=7.987 mas, bpa=-8.499 degrees
! Estimated noise=845.496 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000243538 Jy
! Component: 100  -  total flux cleaned = -9.71693e-05 Jy
! Component: 150  -  total flux cleaned = -2.73937e-05 Jy
! Component: 200  -  total flux cleaned = 4.40072e-05 Jy
! Total flux subtracted in 200 components = 4.40072e-05 Jy
! Clean residual min=-0.006396 max=0.008141 Jy/beam
! Clean residual mean=0.000007 rms=0.002029 Jy/beam
! Combined flux in latest and established models = 0.312158 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 78 components and 0.312158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356339Jy  sigma=0.001824
! Fit after  self-cal, rms=0.356309Jy  sigma=0.001824
! 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.696 mas, bmaj=10.68 mas, bpa=-5.319 degrees
! Estimated noise=1048.43 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.00377251 Jy
! Component: 100  -  total flux cleaned = 0.00378041 Jy
! Component: 150  -  total flux cleaned = 0.00385491 Jy
! Component: 200  -  total flux cleaned = 0.0039935 Jy
! Total flux subtracted in 200 components = 0.0039935 Jy
! Clean residual min=-0.007102 max=0.009297 Jy/beam
! Clean residual mean=0.000002 rms=0.002574 Jy/beam
! Combined flux in latest and established models = 0.316152 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 85 components and 0.316151 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356328Jy  sigma=0.001824
! Fit after  self-cal, rms=0.356348Jy  sigma=0.001824
! 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.837 mas, bmaj=6.665 mas, bpa=-5.863 degrees
! Estimated noise=1251.98 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.162991 Jy
! Component: 100  -  total flux cleaned = 0.218477 Jy
! Component: 150  -  total flux cleaned = 0.248434 Jy
! Component: 200  -  total flux cleaned = 0.2675 Jy
! Total flux subtracted in 200 components = 0.2675 Jy
! Clean residual min=-0.010997 max=0.011649 Jy/beam
! Clean residual mean=0.000035 rms=0.002989 Jy/beam
! Combined flux in latest and established models = 0.2675 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 23 model components to the UV plane model.
! The established model now contains 23 components and 0.2675 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.464 mas, bmaj=7.987 mas, bpa=-8.499 degrees
! Estimated noise=845.496 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 (7.5, 12.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0209928 Jy
! Component: 100  -  total flux cleaned = 0.0329065 Jy
! Component: 150  -  total flux cleaned = 0.0389523 Jy
! Component: 200  -  total flux cleaned = 0.0416295 Jy
! Total flux subtracted in 200 components = 0.0416295 Jy
! Clean residual min=-0.006115 max=0.008546 Jy/beam
! Clean residual mean=0.000013 rms=0.002013 Jy/beam
! Combined flux in latest and established models = 0.30913 Jy
! Adding 65 model components to the UV plane model.
! The established model now contains 83 components and 0.30913 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.696 mas, bmaj=10.68 mas, bpa=-5.319 degrees
! Estimated noise=1048.43 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.00682703 Jy
! Component: 100  -  total flux cleaned = 0.00864966 Jy
! Component: 150  -  total flux cleaned = 0.00913495 Jy
! Component: 200  -  total flux cleaned = 0.0095311 Jy
! Total flux subtracted in 200 components = 0.0095311 Jy
! Clean residual min=-0.006450 max=0.009143 Jy/beam
! Clean residual mean=0.000001 rms=0.002490 Jy/beam
! Combined flux in latest and established models = 0.318661 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 115 components and 0.318661 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.464 mas, bmaj=7.987 mas, bpa=-8.499 degrees
! Estimated noise=845.496 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00124028 Jy
! Component: 100  -  total flux cleaned = -0.00124357 Jy
! Component: 150  -  total flux cleaned = -0.00113049 Jy
! Component: 200  -  total flux cleaned = -0.00103187 Jy
! Total flux subtracted in 200 components = -0.00103187 Jy
! Clean residual min=-0.005946 max=0.008335 Jy/beam
! Clean residual mean=0.000000 rms=0.001946 Jy/beam
! Combined flux in latest and established models = 0.317629 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 128 components and 0.317629 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356233Jy  sigma=0.001824
! Fit after  self-cal, rms=0.356202Jy  sigma=0.001823
wmodel J1255+1817_S_1996_03_13_yyk\_map.mod
! Writing 128 model components to file: J1255+1817_S_1996_03_13_yyk_map.mod
wobs J1255+1817_S_1996_03_13_yyk\_uvs.fits
! Writing UV FITS file: J1255+1817_S_1996_03_13_yyk_uvs.fits
wwins J1255+1817_S_1996_03_13_yyk\_map.win
! wwins: Wrote 3 windows to J1255+1817_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.00329001 Jy
! Component: 100  -  total flux cleaned = 0.00294793 Jy
! Component: 150  -  total flux cleaned = 0.00240274 Jy
! Component: 200  -  total flux cleaned = 0.00178055 Jy
! Component: 250  -  total flux cleaned = 0.00107676 Jy
! Component: 300  -  total flux cleaned = 0.000786295 Jy
! Component: 350  -  total flux cleaned = 0.000221319 Jy
! Component: 400  -  total flux cleaned = -0.000235819 Jy
! Component: 450  -  total flux cleaned = -0.000234684 Jy
! Component: 500  -  total flux cleaned = -0.000499085 Jy
! Component: 550  -  total flux cleaned = -0.000929815 Jy
! Component: 600  -  total flux cleaned = -0.00109915 Jy
! Component: 650  -  total flux cleaned = -0.00134851 Jy
! Component: 700  -  total flux cleaned = -0.00143083 Jy
! Component: 750  -  total flux cleaned = -0.00159218 Jy
! Component: 800  -  total flux cleaned = -0.00167086 Jy
! Component: 850  -  total flux cleaned = -0.0016707 Jy
! Component: 900  -  total flux cleaned = -0.00167173 Jy
! Component: 950  -  total flux cleaned = -0.00182345 Jy
! Component: 1000  -  total flux cleaned = -0.00175029 Jy
! Component: 1050  -  total flux cleaned = -0.00197069 Jy
! Component: 1100  -  total flux cleaned = -0.00204284 Jy
! Component: 1150  -  total flux cleaned = -0.00211345 Jy
! Component: 1200  -  total flux cleaned = -0.00218417 Jy
! Component: 1250  -  total flux cleaned = -0.00246423 Jy
! Component: 1300  -  total flux cleaned = -0.00280785 Jy
! Component: 1350  -  total flux cleaned = -0.00280811 Jy
! Component: 1400  -  total flux cleaned = -0.00321486 Jy
! Component: 1450  -  total flux cleaned = -0.00348214 Jy
! Component: 1500  -  total flux cleaned = -0.00374545 Jy
! Component: 1550  -  total flux cleaned = -0.00400708 Jy
! Component: 1600  -  total flux cleaned = -0.00387832 Jy
! Component: 1650  -  total flux cleaned = -0.00451816 Jy
! Component: 1700  -  total flux cleaned = -0.00426376 Jy
! Component: 1750  -  total flux cleaned = -0.00464005 Jy
! Component: 1800  -  total flux cleaned = -0.00476447 Jy
! Component: 1850  -  total flux cleaned = -0.00476379 Jy
! Component: 1900  -  total flux cleaned = -0.00476372 Jy
! Component: 1950  -  total flux cleaned = -0.00476421 Jy
! Component: 2000  -  total flux cleaned = -0.00482377 Jy
! Total flux subtracted in 2048 components = -0.00494236 Jy
! Clean residual min=-0.003967 max=0.003361 Jy/beam
! Clean residual mean=-0.000016 rms=0.001276 Jy/beam
! Combined flux in latest and established models = 0.312686 Jy
keep
! Adding 143 model components to the UV plane model.
! The established model now contains 271 components and 0.312686 Jy
![Exited script file: muppet]
wmap "J1255+1817_S_1996_03_13_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.464 x 7.987 at -8.499 degrees (North through East)
! Clean map  min=-0.005986  max=0.17107 Jy/beam
! Writing clean map to FITS file: J1255+1817_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.171072 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.0012724 
device "J1255+1817_S_1996_03_13_yyk\_map.eps/VPS"
! Attempting to open device: 'J1255+1817_S_1996_03_13_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -2.23134 2.23134 4.46268 8.92536 17.8507 35.7014 71.4028
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0038 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.171 
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.464 x 7.987 at -8.499 degrees (North through East)
! Clean map  min=-0.005986  max=0.17107 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1255+1817_S_1996_03_13_yyk\_map.gif/gif"
! Attempting to open device: 'J1255+1817_S_1996_03_13_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1255+1817_S_1996_03_13_yyk_uvs.log closed on Sun Jan  7 18:10:16 2007