! Started logfile: J2139+1316_S_2005_07_09_yyk_uvs.log on Fri Jan 20 11:03:04 2006
obs J2139+1316_S_2005_07_09_yyk_uve.fits
! Reading UV FITS file: J2139+1316_S_2005_07_09_yyk_uve.fits
! AN table 1: 11 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.880808 visibilities/baseline/integration-bin.
! Found source: J2139+1316
! 
! 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.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1602 lines of history.
! 
! Reading 1744 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 J2139+1316_S_2005_07_09_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.135681 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.669 mas, bmaj=6.782 mas, bpa=-5.737 degrees
! Estimated noise=1.01679 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.101062 Jy
! Component: 100  -  total flux cleaned = 0.123573 Jy
! Total flux subtracted in 100 components = 0.123573 Jy
! Clean residual min=-0.004465 max=0.006113 Jy/beam
! Clean residual mean=-0.000007 rms=0.001385 Jy/beam
! Combined flux in latest and established models = 0.123573 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.123573 Jy
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.056580Jy  sigma=1.097419
! Fit after  self-cal, rms=0.056376Jy  sigma=1.091678
! Inverting map and beam 
! Estimated beam: bmin=2.669 mas, bmaj=6.782 mas, bpa=-5.737 degrees
! Estimated noise=1.01679 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.247 mas, bmaj=7.47 mas, bpa=-5.505 degrees
! Estimated noise=0.774755 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.00766663 Jy
! Component: 100  -  total flux cleaned = 0.011392 Jy
! Component: 150  -  total flux cleaned = 0.0133324 Jy
! Component: 200  -  total flux cleaned = 0.0140656 Jy
! Total flux subtracted in 200 components = 0.0140656 Jy
! Clean residual min=-0.003551 max=0.003793 Jy/beam
! Clean residual mean=-0.000020 rms=0.001016 Jy/beam
! Combined flux in latest and established models = 0.137639 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 30 components and 0.137639 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.055318Jy  sigma=1.073769
! Fit after  self-cal, rms=0.055302Jy  sigma=1.073617
! 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.247 x 7.47 at -5.505 degrees (North through East)
! Clean map  min=-0.0034291  max=0.11621 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.
!  Amplitude normalization factor in sub-array 1: 1.02222
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.00     HN        1.03     KP        0.95     
!   LA        1.07     MK        0.90     NL        0.96     OV        0.95     
!   PT        1.07     SC        0.91     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.00471
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.01     HN        1.02     KP        1.01     
!   LA        1.02     MK        1.02     NL        0.98     OV        0.99     
!   PT        1.03     SC        0.93     
! 
! 
! Correcting IF 3.
!  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.
!  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.055302Jy  sigma=1.073617
! Fit after  self-cal, rms=0.054836Jy  sigma=1.067514
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.054836Jy  sigma=1.067514
! Fit after  self-cal, rms=0.054837Jy  sigma=1.067506
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.202 mas, bmaj=7.339 mas, bpa=-4.973 degrees
! Estimated noise=0.775524 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.00249148 Jy
! Component: 100  -  total flux cleaned = 0.00307861 Jy
! Component: 150  -  total flux cleaned = 0.00341219 Jy
! Component: 200  -  total flux cleaned = 0.00369572 Jy
! Total flux subtracted in 200 components = 0.00369572 Jy
! Clean residual min=-0.003526 max=0.003999 Jy/beam
! Clean residual mean=0.000007 rms=0.001001 Jy/beam
! Combined flux in latest and established models = 0.141335 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 42 components and 0.141335 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.054727Jy  sigma=1.065037
! Fit after  self-cal, rms=0.054718Jy  sigma=1.064973
! 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.054718Jy  sigma=1.064973
! Fit after  self-cal, rms=0.053050Jy  sigma=1.033391
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.000789687 Jy
! Component: 100  -  total flux cleaned = 0.000996349 Jy
! Component: 150  -  total flux cleaned = 0.00113835 Jy
! Component: 200  -  total flux cleaned = 0.00120021 Jy
! Total flux subtracted in 200 components = 0.00120021 Jy
! Clean residual min=-0.003505 max=0.003817 Jy/beam
! Clean residual mean=0.000006 rms=0.000984 Jy/beam
! Combined flux in latest and established models = 0.142535 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 45 components and 0.142535 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.053006Jy  sigma=1.032820
! Fit after  self-cal, rms=0.052875Jy  sigma=1.030489
! 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.202 x 7.339 at -4.973 degrees (North through East)
! Clean map  min=-0.003478  max=0.11625 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.052875Jy  sigma=1.030489
! Fit after  self-cal, rms=0.052289Jy  sigma=1.024026
! 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.052289Jy  sigma=1.024026
! Fit after  self-cal, rms=0.052288Jy  sigma=1.023759
! Inverting map and beam 
! Estimated beam: bmin=3.169 mas, bmaj=7.264 mas, bpa=-4.895 degrees
! Estimated noise=0.764781 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000653519 Jy
! Component: 100  -  total flux cleaned = -0.00047114 Jy
! Component: 150  -  total flux cleaned = -0.000319101 Jy
! Component: 200  -  total flux cleaned = -0.000190025 Jy
! Total flux subtracted in 200 components = -0.000190025 Jy
! Clean residual min=-0.003371 max=0.003336 Jy/beam
! Clean residual mean=0.000003 rms=0.000930 Jy/beam
! Combined flux in latest and established models = 0.142345 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 46 components and 0.142345 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.052329Jy  sigma=1.022617
! Fit after  self-cal, rms=0.052328Jy  sigma=1.022549
! 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.052328Jy  sigma=1.022549
! Fit after  self-cal, rms=0.050452Jy  sigma=1.009649
! 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.050452Jy  sigma=1.009649
! Fit after  self-cal, rms=0.050451Jy  sigma=1.009583
! Inverting map and beam 
! Estimated beam: bmin=3.169 mas, bmaj=7.243 mas, bpa=-5.087 degrees
! Estimated noise=0.753035 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00159932 Jy
! Component: 100  -  total flux cleaned = -0.00158055 Jy
! Component: 150  -  total flux cleaned = -0.00156069 Jy
! Component: 200  -  total flux cleaned = -0.00152425 Jy
! Total flux subtracted in 200 components = -0.00152425 Jy
! Clean residual min=-0.003221 max=0.003573 Jy/beam
! Clean residual mean=0.000001 rms=0.000906 Jy/beam
! Combined flux in latest and established models = 0.140821 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 47 components and 0.140821 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.050511Jy  sigma=1.008504
! Fit after  self-cal, rms=0.050507Jy  sigma=1.008474
! 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.561 mas, bmaj=10.55 mas, bpa=5.713 degrees
! Estimated noise=0.970046 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.0013216 Jy
! Component: 100  -  total flux cleaned = 0.00141325 Jy
! Component: 150  -  total flux cleaned = 0.00150813 Jy
! Component: 200  -  total flux cleaned = 0.00152867 Jy
! Total flux subtracted in 200 components = 0.00152867 Jy
! Clean residual min=-0.003851 max=0.003558 Jy/beam
! Clean residual mean=-0.000007 rms=0.001060 Jy/beam
! Combined flux in latest and established models = 0.142349 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 56 components and 0.142349 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.050592Jy  sigma=1.009472
! Fit after  self-cal, rms=0.050587Jy  sigma=1.009440
! 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.642 mas, bmaj=6.689 mas, bpa=-5.467 degrees
! Estimated noise=0.978492 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0981273 Jy
! Component: 100  -  total flux cleaned = 0.120711 Jy
! Component: 150  -  total flux cleaned = 0.129714 Jy
! Component: 200  -  total flux cleaned = 0.134742 Jy
! Total flux subtracted in 200 components = 0.134742 Jy
! Clean residual min=-0.004282 max=0.004247 Jy/beam
! Clean residual mean=0.000020 rms=0.001124 Jy/beam
! Combined flux in latest and established models = 0.134742 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 24 model components to the UV plane model.
! The established model now contains 24 components and 0.134742 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.169 mas, bmaj=7.243 mas, bpa=-5.087 degrees
! Estimated noise=0.753035 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, -8.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00529104 Jy
! Component: 100  -  total flux cleaned = 0.00629488 Jy
! Component: 150  -  total flux cleaned = 0.00613999 Jy
! Component: 200  -  total flux cleaned = 0.00607101 Jy
! Total flux subtracted in 200 components = 0.00607101 Jy
! Clean residual min=-0.003134 max=0.003611 Jy/beam
! Clean residual mean=0.000001 rms=0.000879 Jy/beam
! Combined flux in latest and established models = 0.140813 Jy
! Adding 28 model components to the UV plane model.
! The established model now contains 51 components and 0.140813 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.561 mas, bmaj=10.55 mas, bpa=5.713 degrees
! Estimated noise=0.970046 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.000578708 Jy
! Component: 100  -  total flux cleaned = 0.000530667 Jy
! Component: 150  -  total flux cleaned = 0.000445104 Jy
! Component: 200  -  total flux cleaned = 0.000379159 Jy
! Total flux subtracted in 200 components = 0.000379159 Jy
! Clean residual min=-0.003767 max=0.003460 Jy/beam
! Clean residual mean=-0.000000 rms=0.001037 Jy/beam
! Combined flux in latest and established models = 0.141192 Jy
! Adding 24 model components to the UV plane model.
! The established model now contains 73 components and 0.141192 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.169 mas, bmaj=7.243 mas, bpa=-5.087 degrees
! Estimated noise=0.753035 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000382294 Jy
! Component: 100  -  total flux cleaned = -0.000383066 Jy
! Component: 150  -  total flux cleaned = -0.000378403 Jy
! Component: 200  -  total flux cleaned = -0.000419553 Jy
! Total flux subtracted in 200 components = -0.000419553 Jy
! Clean residual min=-0.003190 max=0.003447 Jy/beam
! Clean residual mean=0.000001 rms=0.000852 Jy/beam
! Combined flux in latest and established models = 0.140773 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 92 components and 0.140773 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.050282Jy  sigma=1.002672
! Fit after  self-cal, rms=0.050260Jy  sigma=1.002328
wmodel J2139+1316_S_2005_07_09_yyk\_map.mod
! Writing 92 model components to file: J2139+1316_S_2005_07_09_yyk_map.mod
wobs J2139+1316_S_2005_07_09_yyk\_uvs.fits
! Writing UV FITS file: J2139+1316_S_2005_07_09_yyk_uvs.fits
wwins J2139+1316_S_2005_07_09_yyk\_map.win
! wwins: Wrote 2 windows to J2139+1316_S_2005_07_09_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.00019139 Jy
! Component: 100  -  total flux cleaned = 0.00072342 Jy
! Component: 150  -  total flux cleaned = 0.00102502 Jy
! Component: 200  -  total flux cleaned = 0.00102461 Jy
! Component: 250  -  total flux cleaned = 0.000979667 Jy
! Component: 300  -  total flux cleaned = 0.000979086 Jy
! Component: 350  -  total flux cleaned = 0.00106355 Jy
! Component: 400  -  total flux cleaned = 0.00126837 Jy
! Component: 450  -  total flux cleaned = 0.00134779 Jy
! Component: 500  -  total flux cleaned = 0.00138611 Jy
! Component: 550  -  total flux cleaned = 0.00131066 Jy
! Component: 600  -  total flux cleaned = 0.00131108 Jy
! Component: 650  -  total flux cleaned = 0.00120304 Jy
! Component: 700  -  total flux cleaned = 0.0012035 Jy
! Component: 750  -  total flux cleaned = 0.00116913 Jy
! Component: 800  -  total flux cleaned = 0.00137314 Jy
! Component: 850  -  total flux cleaned = 0.00143993 Jy
! Component: 900  -  total flux cleaned = 0.0016362 Jy
! Component: 950  -  total flux cleaned = 0.00186033 Jy
! Component: 1000  -  total flux cleaned = 0.00198664 Jy
! Component: 1050  -  total flux cleaned = 0.00214211 Jy
! Component: 1100  -  total flux cleaned = 0.00226386 Jy
! Component: 1150  -  total flux cleaned = 0.00232337 Jy
! Component: 1200  -  total flux cleaned = 0.0024122 Jy
! Component: 1250  -  total flux cleaned = 0.00249947 Jy
! Component: 1300  -  total flux cleaned = 0.00255709 Jy
! Component: 1350  -  total flux cleaned = 0.00267076 Jy
! Component: 1400  -  total flux cleaned = 0.00269872 Jy
! Component: 1450  -  total flux cleaned = 0.00275393 Jy
! Component: 1500  -  total flux cleaned = 0.00286186 Jy
! Component: 1550  -  total flux cleaned = 0.00291506 Jy
! Component: 1600  -  total flux cleaned = 0.00296776 Jy
! Component: 1650  -  total flux cleaned = 0.00299429 Jy
! Component: 1700  -  total flux cleaned = 0.00299461 Jy
! Component: 1750  -  total flux cleaned = 0.00309646 Jy
! Component: 1800  -  total flux cleaned = 0.00302079 Jy
! Component: 1850  -  total flux cleaned = 0.00299609 Jy
! Component: 1900  -  total flux cleaned = 0.0029711 Jy
! Component: 1950  -  total flux cleaned = 0.00292217 Jy
! Component: 2000  -  total flux cleaned = 0.00280147 Jy
! Total flux subtracted in 2048 components = 0.00275377 Jy
! Clean residual min=-0.001356 max=0.001355 Jy/beam
! Clean residual mean=-0.000005 rms=0.000493 Jy/beam
! Combined flux in latest and established models = 0.143527 Jy
keep
! Adding 153 model components to the UV plane model.
! The established model now contains 245 components and 0.143527 Jy
![Exited script file: muppet]
wmap "J2139+1316_S_2005_07_09_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.169 x 7.243 at -5.087 degrees (North through East)
! Clean map  min=-0.0024756  max=0.1139 Jy/beam
! Writing clean map to FITS file: J2139+1316_S_2005_07_09_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.113897 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00049177 
device "J2139+1316_S_2005_07_09_yyk\_map.eps/VPS"
! Attempting to open device: 'J2139+1316_S_2005_07_09_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.2953 1.2953 2.59059 5.18118 10.3624 20.7247 41.4495 82.8989
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.113 
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.169 x 7.243 at -5.087 degrees (North through East)
! Clean map  min=-0.0024756  max=0.1139 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2139+1316_S_2005_07_09_yyk\_map.gif/gif"
! Attempting to open device: 'J2139+1316_S_2005_07_09_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2139+1316_S_2005_07_09_yyk_uvs.log closed on Fri Jan 20 11:03:08 2006