! Started logfile: J0758+1136_S_1995_07_15_yyk_uvs.log on Sun Jan  7 16:52:24 2007
obs J0758+1136_S_1995_07_15_yyk_uva.fits
! Reading UV FITS file: J0758+1136_S_1995_07_15_yyk_uva.fits
! AN table 1: 109 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.921509 visibilities/baseline/integration-bin.
! Found source: J0758+1136
! 
! 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 793 lines of history.
! 
! Reading 18080 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 J0758+1136_S_1995_07_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)= 0.467692 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.741 mas, bmaj=6.803 mas, bpa=-6.037 degrees
! Estimated noise=1715.31 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.134842 Jy
! Component: 100  -  total flux cleaned = 0.192446 Jy
! Total flux subtracted in 100 components = 0.192446 Jy
! Clean residual min=-0.017774 max=0.024476 Jy/beam
! Clean residual mean=0.000228 rms=0.004788 Jy/beam
! Combined flux in latest and established models = 0.192446 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 27 components and 0.192446 Jy
! 
! Correcting IF 1.
!  A total of 57 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 57 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 57 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 74 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.433371Jy  sigma=0.001895
! Fit after  self-cal, rms=0.432525Jy  sigma=0.001892
! Inverting map and beam 
! Estimated beam: bmin=2.741 mas, bmaj=6.803 mas, bpa=-6.037 degrees
! Estimated noise=1715.67 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.399 mas, bmaj=8.181 mas, bpa=-7.77 degrees
! Estimated noise=1099.92 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.0474256 Jy
! Component: 100  -  total flux cleaned = 0.0667138 Jy
! Component: 150  -  total flux cleaned = 0.076909 Jy
! Component: 200  -  total flux cleaned = 0.0825736 Jy
! Total flux subtracted in 200 components = 0.0825735 Jy
! Clean residual min=-0.009038 max=0.013258 Jy/beam
! Clean residual mean=0.000043 rms=0.003044 Jy/beam
! Combined flux in latest and established models = 0.27502 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 51 model components to the UV plane model.
! The established model now contains 72 components and 0.27502 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.429499Jy  sigma=0.001874
! Fit after  self-cal, rms=0.429467Jy  sigma=0.001874
! 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.399 x 8.181 at -7.77 degrees (North through East)
! Clean map  min=-0.0089592  max=0.15269 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 6 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 6 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 6 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 6 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.429467Jy  sigma=0.001874
! Fit after  self-cal, rms=0.429333Jy  sigma=0.001874
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.429333Jy  sigma=0.001874
! Fit after  self-cal, rms=0.429331Jy  sigma=0.001874
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.398 mas, bmaj=8.181 mas, bpa=-7.768 degrees
! Estimated noise=1100.44 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.00368996 Jy
! Component: 100  -  total flux cleaned = 0.00449258 Jy
! Component: 150  -  total flux cleaned = 0.00517321 Jy
! Component: 200  -  total flux cleaned = 0.00568708 Jy
! Total flux subtracted in 200 components = 0.00568708 Jy
! Clean residual min=-0.009315 max=0.012595 Jy/beam
! Clean residual mean=0.000025 rms=0.002996 Jy/beam
! Combined flux in latest and established models = 0.280707 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 82 components and 0.280707 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.429282Jy  sigma=0.001874
! Fit after  self-cal, rms=0.429279Jy  sigma=0.001874
! 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.429279Jy  sigma=0.001874
! Fit after  self-cal, rms=0.428865Jy  sigma=0.001871
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.000656847 Jy
! Component: 100  -  total flux cleaned = 0.000995996 Jy
! Component: 150  -  total flux cleaned = 0.00117084 Jy
! Component: 200  -  total flux cleaned = 0.00131042 Jy
! Total flux subtracted in 200 components = 0.00131042 Jy
! Clean residual min=-0.009933 max=0.012897 Jy/beam
! Clean residual mean=0.000021 rms=0.002987 Jy/beam
! Combined flux in latest and established models = 0.282017 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 88 components and 0.282017 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.428834Jy  sigma=0.001871
! Fit after  self-cal, rms=0.428558Jy  sigma=0.001870
! 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.398 x 8.181 at -7.768 degrees (North through East)
! Clean map  min=-0.01059  max=0.15118 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.428558Jy  sigma=0.001870
! Fit after  self-cal, rms=0.428558Jy  sigma=0.001870
! 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.428558Jy  sigma=0.001870
! Fit after  self-cal, rms=0.427881Jy  sigma=0.001867
! Inverting map and beam 
! Estimated beam: bmin=3.398 mas, bmaj=8.181 mas, bpa=-7.768 degrees
! Estimated noise=1100.44 mJy/beam.
! Added new window around map position (6, -2).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00921132 Jy
! Component: 100  -  total flux cleaned = 0.0111164 Jy
! Component: 150  -  total flux cleaned = 0.0119015 Jy
! Component: 200  -  total flux cleaned = 0.012404 Jy
! Total flux subtracted in 200 components = 0.012404 Jy
! Clean residual min=-0.009962 max=0.010490 Jy/beam
! Clean residual mean=-0.000011 rms=0.002553 Jy/beam
! Combined flux in latest and established models = 0.294421 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 39 model components to the UV plane model.
! The established model now contains 123 components and 0.294421 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.427558Jy  sigma=0.001865
! Fit after  self-cal, rms=0.427119Jy  sigma=0.001863
! 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.427119Jy  sigma=0.001863
! Fit after  self-cal, rms=0.427119Jy  sigma=0.001863
! 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.427119Jy  sigma=0.001863
! Fit after  self-cal, rms=0.426920Jy  sigma=0.001862
! Inverting map and beam 
! Estimated beam: bmin=3.398 mas, bmaj=8.181 mas, bpa=-7.768 degrees
! Estimated noise=1100.44 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00237962 Jy
! Component: 100  -  total flux cleaned = 0.00220405 Jy
! Component: 150  -  total flux cleaned = 0.0023334 Jy
! Component: 200  -  total flux cleaned = 0.00267956 Jy
! Total flux subtracted in 200 components = 0.00267956 Jy
! Clean residual min=-0.009284 max=0.009613 Jy/beam
! Clean residual mean=-0.000018 rms=0.002393 Jy/beam
! Combined flux in latest and established models = 0.297101 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 141 components and 0.297101 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.426835Jy  sigma=0.001862
! Fit after  self-cal, rms=0.426716Jy  sigma=0.001861
! 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.743 mas, bmaj=11.33 mas, bpa=-3.14 degrees
! Estimated noise=1375.67 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.00070617 Jy
! Component: 100  -  total flux cleaned = 0.00145133 Jy
! Component: 150  -  total flux cleaned = 0.00180309 Jy
! Component: 200  -  total flux cleaned = 0.00217728 Jy
! Total flux subtracted in 200 components = 0.00217728 Jy
! Clean residual min=-0.008811 max=0.009816 Jy/beam
! Clean residual mean=-0.000049 rms=0.002999 Jy/beam
! Combined flux in latest and established models = 0.299278 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 159 components and 0.299278 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.426717Jy  sigma=0.001861
! Fit after  self-cal, rms=0.426646Jy  sigma=0.001861
! 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.741 mas, bmaj=6.803 mas, bpa=-6.037 degrees
! Estimated noise=1715.94 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.141732 Jy
! Component: 100  -  total flux cleaned = 0.200123 Jy
! Component: 150  -  total flux cleaned = 0.231455 Jy
! Component: 200  -  total flux cleaned = 0.25108 Jy
! Total flux subtracted in 200 components = 0.25108 Jy
! Clean residual min=-0.013131 max=0.012186 Jy/beam
! Clean residual mean=0.000107 rms=0.003537 Jy/beam
! Combined flux in latest and established models = 0.25108 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 51 model components to the UV plane model.
! The established model now contains 51 components and 0.25108 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.398 mas, bmaj=8.181 mas, bpa=-7.768 degrees
! Estimated noise=1100.44 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.0224906 Jy
! Component: 100  -  total flux cleaned = 0.0333761 Jy
! Component: 150  -  total flux cleaned = 0.036812 Jy
! Component: 200  -  total flux cleaned = 0.0388182 Jy
! Total flux subtracted in 200 components = 0.0388182 Jy
! Clean residual min=-0.008910 max=0.010852 Jy/beam
! Clean residual mean=0.000006 rms=0.002459 Jy/beam
! Combined flux in latest and established models = 0.289898 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 89 components and 0.289899 Jy
! Inverting map 
! Added new window around map position (18.5, -32).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0103374 Jy
! Component: 100  -  total flux cleaned = 0.0141091 Jy
! Component: 150  -  total flux cleaned = 0.0156917 Jy
! Component: 200  -  total flux cleaned = 0.0171086 Jy
! Total flux subtracted in 200 components = 0.0171086 Jy
! Clean residual min=-0.008608 max=0.008192 Jy/beam
! Clean residual mean=-0.000020 rms=0.002271 Jy/beam
! Combined flux in latest and established models = 0.307007 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 114 components and 0.307007 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.743 mas, bmaj=11.33 mas, bpa=-3.14 degrees
! Estimated noise=1375.67 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.00312212 Jy
! Component: 100  -  total flux cleaned = 0.00426727 Jy
! Component: 150  -  total flux cleaned = 0.00457814 Jy
! Component: 200  -  total flux cleaned = 0.00498471 Jy
! Total flux subtracted in 200 components = 0.00498471 Jy
! Clean residual min=-0.008359 max=0.009701 Jy/beam
! Clean residual mean=-0.000070 rms=0.002774 Jy/beam
! Combined flux in latest and established models = 0.311992 Jy
! Adding 32 model components to the UV plane model.
! The established model now contains 141 components and 0.311992 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.398 mas, bmaj=8.181 mas, bpa=-7.768 degrees
! Estimated noise=1100.44 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.0010272 Jy
! Component: 100  -  total flux cleaned = -0.000735927 Jy
! Component: 150  -  total flux cleaned = -0.000201981 Jy
! Component: 200  -  total flux cleaned = 0.000166189 Jy
! Total flux subtracted in 200 components = 0.000166189 Jy
! Clean residual min=-0.008730 max=0.008054 Jy/beam
! Clean residual mean=-0.000038 rms=0.002205 Jy/beam
! Combined flux in latest and established models = 0.312158 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 29 model components to the UV plane model.
! The established model now contains 163 components and 0.312158 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.426432Jy  sigma=0.001860
! Fit after  self-cal, rms=0.426361Jy  sigma=0.001859
wmodel J0758+1136_S_1995_07_15_yyk\_map.mod
! Writing 163 model components to file: J0758+1136_S_1995_07_15_yyk_map.mod
wobs J0758+1136_S_1995_07_15_yyk\_uvs.fits
! Writing UV FITS file: J0758+1136_S_1995_07_15_yyk_uvs.fits
wwins J0758+1136_S_1995_07_15_yyk\_map.win
! wwins: Wrote 3 windows to J0758+1136_S_1995_07_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.000130719 Jy
! Component: 100  -  total flux cleaned = 0.000948435 Jy
! Component: 150  -  total flux cleaned = 0.0019637 Jy
! Component: 200  -  total flux cleaned = 0.00294126 Jy
! Component: 250  -  total flux cleaned = 0.00388832 Jy
! Component: 300  -  total flux cleaned = 0.00468855 Jy
! Component: 350  -  total flux cleaned = 0.00502189 Jy
! Component: 400  -  total flux cleaned = 0.00545381 Jy
! Component: 450  -  total flux cleaned = 0.00598089 Jy
! Component: 500  -  total flux cleaned = 0.00649405 Jy
! Component: 550  -  total flux cleaned = 0.00679386 Jy
! Component: 600  -  total flux cleaned = 0.00689169 Jy
! Component: 650  -  total flux cleaned = 0.00689163 Jy
! Component: 700  -  total flux cleaned = 0.00689141 Jy
! Component: 750  -  total flux cleaned = 0.00679832 Jy
! Component: 800  -  total flux cleaned = 0.00670761 Jy
! Component: 850  -  total flux cleaned = 0.00679667 Jy
! Component: 900  -  total flux cleaned = 0.00670914 Jy
! Component: 950  -  total flux cleaned = 0.00688397 Jy
! Component: 1000  -  total flux cleaned = 0.00697027 Jy
! Component: 1050  -  total flux cleaned = 0.00713769 Jy
! Component: 1100  -  total flux cleaned = 0.00722053 Jy
! Component: 1150  -  total flux cleaned = 0.00746513 Jy
! Component: 1200  -  total flux cleaned = 0.00754543 Jy
! Component: 1250  -  total flux cleaned = 0.0075461 Jy
! Component: 1300  -  total flux cleaned = 0.00754689 Jy
! Component: 1350  -  total flux cleaned = 0.00793751 Jy
! Component: 1400  -  total flux cleaned = 0.00801501 Jy
! Component: 1450  -  total flux cleaned = 0.00824359 Jy
! Component: 1500  -  total flux cleaned = 0.00854461 Jy
! Component: 1550  -  total flux cleaned = 0.00839568 Jy
! Component: 1600  -  total flux cleaned = 0.00854435 Jy
! Component: 1650  -  total flux cleaned = 0.00854618 Jy
! Component: 1700  -  total flux cleaned = 0.00890847 Jy
! Component: 1750  -  total flux cleaned = 0.00897852 Jy
! Component: 1800  -  total flux cleaned = 0.00897862 Jy
! Component: 1850  -  total flux cleaned = 0.0089781 Jy
! Component: 1900  -  total flux cleaned = 0.00918671 Jy
! Component: 1950  -  total flux cleaned = 0.00918677 Jy
! Component: 2000  -  total flux cleaned = 0.0094591 Jy
! Total flux subtracted in 2048 components = 0.00939227 Jy
! Clean residual min=-0.003962 max=0.004200 Jy/beam
! Clean residual mean=-0.000029 rms=0.001440 Jy/beam
! Combined flux in latest and established models = 0.32155 Jy
keep
! Adding 147 model components to the UV plane model.
! The established model now contains 310 components and 0.321551 Jy
![Exited script file: muppet]
wmap "J0758+1136_S_1995_07_15_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.398 x 8.181 at -7.768 degrees (North through East)
! Clean map  min=-0.0075947  max=0.15498 Jy/beam
! Writing clean map to FITS file: J0758+1136_S_1995_07_15_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.154981 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00143378 
device "J0758+1136_S_1995_07_15_yyk\_map.eps/VPS"
! Attempting to open device: 'J0758+1136_S_1995_07_15_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -2.77541 2.77541 5.55082 11.1016 22.2033 44.4066 88.8132
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0043 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.154 
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.398 x 8.181 at -7.768 degrees (North through East)
! Clean map  min=-0.0075947  max=0.15498 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0758+1136_S_1995_07_15_yyk\_map.gif/gif"
! Attempting to open device: 'J0758+1136_S_1995_07_15_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0758+1136_S_1995_07_15_yyk_uvs.log closed on Sun Jan  7 16:52:32 2007