! Started logfile: J0840+1312_S_2002_05_14_yyk_uvs.log on Tue Jun 26 22:32:28 2007
obs J0840+1312_S_2002_05_14_yyk_uva.fits
! Reading UV FITS file: J0840+1312_S_2002_05_14_yyk_uva.fits
! AN table 1: 89 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.858926 visibilities/baseline/integration-bin.
! Found source: J0840+1312
! 
! 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.22947e+09        8e+06          1        8e+06
!  02        2  2.25947e+09        8e+06          1        8e+06
!  03        3  2.34947e+09        8e+06          1        8e+06
!  04        4  2.36947e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1153 lines of history.
! 
! Reading 13760 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 J0840+1312_S_2002_05_14_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.371382 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.484 mas, bmaj=7.292 mas, bpa=-9.645 degrees
! Estimated noise=1167.45 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.267982 Jy
! Component: 100  -  total flux cleaned = 0.340576 Jy
! Total flux subtracted in 100 components = 0.340576 Jy
! Clean residual min=-0.009783 max=0.021317 Jy/beam
! Clean residual mean=0.000024 rms=0.003454 Jy/beam
! Combined flux in latest and established models = 0.340576 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 0.340576 Jy
! 
! Correcting IF 1.
!  A total of 94 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 171 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 94 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 94 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.164208Jy  sigma=0.001269
! Fit after  self-cal, rms=0.163939Jy  sigma=0.001267
! Inverting map and beam 
! Estimated beam: bmin=2.484 mas, bmaj=7.292 mas, bpa=-9.645 degrees
! Estimated noise=1281.43 mJy/beam.
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0310788 Jy
! Component: 100  -  total flux cleaned = 0.0449876 Jy
! Total flux subtracted in 100 components = 0.0449876 Jy
! Clean residual min=-0.008808 max=0.010637 Jy/beam
! Clean residual mean=0.000026 rms=0.002443 Jy/beam
! Combined flux in latest and established models = 0.385564 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 20 components and 0.385564 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158966Jy  sigma=0.001226
! Fit after  self-cal, rms=0.158942Jy  sigma=0.001226
! 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.501 mas, bmaj=8.085 mas, bpa=-8.994 degrees
! Estimated noise=760.457 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.00661102 Jy
! Component: 100  -  total flux cleaned = 0.00756616 Jy
! Component: 150  -  total flux cleaned = 0.00802107 Jy
! Component: 200  -  total flux cleaned = 0.00812965 Jy
! Total flux subtracted in 200 components = 0.00812965 Jy
! Clean residual min=-0.009014 max=0.009420 Jy/beam
! Clean residual mean=0.000137 rms=0.002402 Jy/beam
! Combined flux in latest and established models = 0.393693 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 34 components and 0.393693 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158657Jy  sigma=0.001224
! Fit after  self-cal, rms=0.158633Jy  sigma=0.001224
! 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.501 x 8.085 at -8.994 degrees (North through East)
! Clean map  min=-0.0087998  max=0.32067 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.989858
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.90     FD        1.15     HN        0.97     KP        0.95     
!   LA        0.96     NL        0.91     OV        1.04     PT        1.08     
!   SC        1.13     MK        1.01     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.982055
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        1.04     HN        0.99     KP        1.00*    
!   LA        0.96     NL        0.98     OV        1.06     PT        1.00     
!   SC        1.06     MK        1.13     
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.970438
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.07     FD        0.96     HN        1.04     KP        1.01     
!   LA        0.97     NL        1.04     OV        1.08     PT        1.11     
!   SC        1.00     MK        1.01     
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.05037
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.89     HN        0.96     KP        1.04     
!   LA        0.81     NL        1.03     OV        0.93     PT        0.96     
!   SC        0.94     MK        0.96     
! 
! 
! Fit before self-cal, rms=0.158633Jy  sigma=0.001224
! Fit after  self-cal, rms=0.154756Jy  sigma=0.001200
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.154756Jy  sigma=0.001200
! Fit after  self-cal, rms=0.154753Jy  sigma=0.001200
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.566 mas, bmaj=8.151 mas, bpa=-9.194 degrees
! Estimated noise=761.057 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 (10.5, -1.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0110808 Jy
! Component: 100  -  total flux cleaned = 0.0149002 Jy
! Component: 150  -  total flux cleaned = 0.0165314 Jy
! Component: 200  -  total flux cleaned = 0.0168889 Jy
! Total flux subtracted in 200 components = 0.0168889 Jy
! Clean residual min=-0.003803 max=0.005104 Jy/beam
! Clean residual mean=0.000020 rms=0.001157 Jy/beam
! Combined flux in latest and established models = 0.410582 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 30 model components to the UV plane model.
! The established model now contains 64 components and 0.410582 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154165Jy  sigma=0.001195
! Fit after  self-cal, rms=0.154130Jy  sigma=0.001195
! 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.154130Jy  sigma=0.001195
! Fit after  self-cal, rms=0.153173Jy  sigma=0.001187
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.00120992 Jy
! Component: 100  -  total flux cleaned = 0.00122242 Jy
! Component: 150  -  total flux cleaned = 0.00122381 Jy
! Component: 200  -  total flux cleaned = 0.00107468 Jy
! Total flux subtracted in 200 components = 0.00107468 Jy
! Clean residual min=-0.003729 max=0.004471 Jy/beam
! Clean residual mean=0.000015 rms=0.001107 Jy/beam
! Combined flux in latest and established models = 0.411657 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 77 components and 0.411657 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.153090Jy  sigma=0.001187
! Fit after  self-cal, rms=0.152952Jy  sigma=0.001185
! 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.566 x 8.151 at -9.194 degrees (North through East)
! Clean map  min=-0.0034807  max=0.32345 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.152952Jy  sigma=0.001185
! Fit after  self-cal, rms=0.151975Jy  sigma=0.001172
! 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.151975Jy  sigma=0.001172
! Fit after  self-cal, rms=0.151938Jy  sigma=0.001172
! Inverting map and beam 
! Estimated beam: bmin=3.562 mas, bmaj=8.121 mas, bpa=-9.308 degrees
! Estimated noise=757.514 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00196164 Jy
! Component: 100  -  total flux cleaned = 0.00211415 Jy
! Component: 150  -  total flux cleaned = 0.00211607 Jy
! Component: 200  -  total flux cleaned = 0.0021168 Jy
! Total flux subtracted in 200 components = 0.0021168 Jy
! Clean residual min=-0.003197 max=0.003778 Jy/beam
! Clean residual mean=0.000039 rms=0.000948 Jy/beam
! Combined flux in latest and established models = 0.413774 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 33 model components to the UV plane model.
! The established model now contains 101 components and 0.413774 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151887Jy  sigma=0.001171
! Fit after  self-cal, rms=0.151870Jy  sigma=0.001171
! 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.151870Jy  sigma=0.001171
! Fit after  self-cal, rms=0.151747Jy  sigma=0.001168
! 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.151747Jy  sigma=0.001168
! Fit after  self-cal, rms=0.151744Jy  sigma=0.001168
! Inverting map and beam 
! Estimated beam: bmin=3.567 mas, bmaj=8.122 mas, bpa=-9.307 degrees
! Estimated noise=757.564 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00108821 Jy
! Component: 100  -  total flux cleaned = 0.00114049 Jy
! Component: 150  -  total flux cleaned = 0.00109331 Jy
! Component: 200  -  total flux cleaned = 0.00100325 Jy
! Total flux subtracted in 200 components = 0.00100325 Jy
! Clean residual min=-0.003248 max=0.003772 Jy/beam
! Clean residual mean=0.000039 rms=0.000924 Jy/beam
! Combined flux in latest and established models = 0.414777 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 109 components and 0.414777 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151717Jy  sigma=0.001168
! Fit after  self-cal, rms=0.151716Jy  sigma=0.001168
! 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.801 mas, bmaj=11.09 mas, bpa=-2.659 degrees
! Estimated noise=918.091 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.000714726 Jy
! Component: 100  -  total flux cleaned = 0.000615988 Jy
! Component: 150  -  total flux cleaned = 0.000526087 Jy
! Component: 200  -  total flux cleaned = 0.000408704 Jy
! Total flux subtracted in 200 components = 0.000408704 Jy
! Clean residual min=-0.003257 max=0.004862 Jy/beam
! Clean residual mean=0.000068 rms=0.001186 Jy/beam
! Combined flux in latest and established models = 0.415186 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 120 components and 0.415186 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151717Jy  sigma=0.001168
! Fit after  self-cal, rms=0.151717Jy  sigma=0.001168
! 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.544 mas, bmaj=7.293 mas, bpa=-10.03 degrees
! Estimated noise=1202.05 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.268143 Jy
! Component: 100  -  total flux cleaned = 0.338627 Jy
! Component: 150  -  total flux cleaned = 0.366182 Jy
! Component: 200  -  total flux cleaned = 0.38068 Jy
! Total flux subtracted in 200 components = 0.38068 Jy
! Clean residual min=-0.006302 max=0.008651 Jy/beam
! Clean residual mean=0.000056 rms=0.001688 Jy/beam
! Combined flux in latest and established models = 0.380679 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.380679 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.567 mas, bmaj=8.122 mas, bpa=-9.307 degrees
! Estimated noise=757.564 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.5, -1).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0143703 Jy
! Component: 100  -  total flux cleaned = 0.0220486 Jy
! Component: 150  -  total flux cleaned = 0.0271747 Jy
! Component: 200  -  total flux cleaned = 0.0307483 Jy
! Total flux subtracted in 200 components = 0.0307483 Jy
! Clean residual min=-0.003353 max=0.003708 Jy/beam
! Clean residual mean=0.000055 rms=0.001009 Jy/beam
! Combined flux in latest and established models = 0.411428 Jy
! Adding 64 model components to the UV plane model.
! The established model now contains 73 components and 0.411428 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.801 mas, bmaj=11.09 mas, bpa=-2.659 degrees
! Estimated noise=918.091 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.00311379 Jy
! Component: 100  -  total flux cleaned = 0.00397386 Jy
! Component: 150  -  total flux cleaned = 0.00404933 Jy
! Component: 200  -  total flux cleaned = 0.00392449 Jy
! Total flux subtracted in 200 components = 0.00392449 Jy
! Clean residual min=-0.003357 max=0.004871 Jy/beam
! Clean residual mean=0.000069 rms=0.001209 Jy/beam
! Combined flux in latest and established models = 0.415352 Jy
! Adding 47 model components to the UV plane model.
! The established model now contains 106 components and 0.415352 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.567 mas, bmaj=8.122 mas, bpa=-9.307 degrees
! Estimated noise=757.564 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 4.77773e-05 Jy
! Component: 100  -  total flux cleaned = -8.25212e-06 Jy
! Component: 150  -  total flux cleaned = -6.34981e-05 Jy
! Component: 200  -  total flux cleaned = -0.000166599 Jy
! Total flux subtracted in 200 components = -0.000166599 Jy
! Clean residual min=-0.003185 max=0.003499 Jy/beam
! Clean residual mean=0.000036 rms=0.000905 Jy/beam
! Combined flux in latest and established models = 0.415186 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 130 components and 0.415185 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.151661Jy  sigma=0.001168
! Fit after  self-cal, rms=0.151652Jy  sigma=0.001168
wmodel J0840+1312_S_2002_05_14_yyk\_map.mod
! Writing 130 model components to file: J0840+1312_S_2002_05_14_yyk_map.mod
wobs J0840+1312_S_2002_05_14_yyk\_uvs.fits
! Writing UV FITS file: J0840+1312_S_2002_05_14_yyk_uvs.fits
wwins J0840+1312_S_2002_05_14_yyk\_map.win
! wwins: Wrote 3 windows to J0840+1312_S_2002_05_14_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.000929497 Jy
! Component: 100  -  total flux cleaned = 0.00157133 Jy
! Component: 150  -  total flux cleaned = 0.00196868 Jy
! Component: 200  -  total flux cleaned = 0.0021104 Jy
! Component: 250  -  total flux cleaned = 0.00201868 Jy
! Component: 300  -  total flux cleaned = 0.00184514 Jy
! Component: 350  -  total flux cleaned = 0.00155366 Jy
! Component: 400  -  total flux cleaned = 0.0014735 Jy
! Component: 450  -  total flux cleaned = 0.00115814 Jy
! Component: 500  -  total flux cleaned = 0.000776926 Jy
! Component: 550  -  total flux cleaned = 0.000590125 Jy
! Component: 600  -  total flux cleaned = 0.000372062 Jy
! Component: 650  -  total flux cleaned = 0.000194968 Jy
! Component: 700  -  total flux cleaned = 5.63364e-05 Jy
! Component: 750  -  total flux cleaned = -1.12756e-05 Jy
! Component: 800  -  total flux cleaned = -4.38578e-05 Jy
! Component: 850  -  total flux cleaned = -0.000107744 Jy
! Component: 900  -  total flux cleaned = -1.29518e-05 Jy
! Component: 950  -  total flux cleaned = -0.000232038 Jy
! Component: 1000  -  total flux cleaned = -0.000324215 Jy
! Component: 1050  -  total flux cleaned = -0.000294403 Jy
! Component: 1100  -  total flux cleaned = -0.000383852 Jy
! Component: 1150  -  total flux cleaned = -0.000559518 Jy
! Component: 1200  -  total flux cleaned = -0.00058775 Jy
! Component: 1250  -  total flux cleaned = -0.000672419 Jy
! Component: 1300  -  total flux cleaned = -0.000700253 Jy
! Component: 1350  -  total flux cleaned = -0.000864615 Jy
! Component: 1400  -  total flux cleaned = -0.000918308 Jy
! Component: 1450  -  total flux cleaned = -0.000918377 Jy
! Component: 1500  -  total flux cleaned = -0.000944787 Jy
! Component: 1550  -  total flux cleaned = -0.000944495 Jy
! Component: 1600  -  total flux cleaned = -0.00102045 Jy
! Component: 1650  -  total flux cleaned = -0.000970315 Jy
! Component: 1700  -  total flux cleaned = -0.00111902 Jy
! Component: 1750  -  total flux cleaned = -0.0011435 Jy
! Component: 1800  -  total flux cleaned = -0.00116757 Jy
! Component: 1850  -  total flux cleaned = -0.00121521 Jy
! Component: 1900  -  total flux cleaned = -0.00128528 Jy
! Component: 1950  -  total flux cleaned = -0.00126212 Jy
! Component: 2000  -  total flux cleaned = -0.00133095 Jy
! Total flux subtracted in 2048 components = -0.00121707 Jy
! Clean residual min=-0.001627 max=0.001140 Jy/beam
! Clean residual mean=0.000014 rms=0.000467 Jy/beam
! Combined flux in latest and established models = 0.413968 Jy
keep
! Adding 147 model components to the UV plane model.
! The established model now contains 277 components and 0.413969 Jy
![Exited script file: muppet]
wmap "J0840+1312_S_2002_05_14_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.567 x 8.122 at -9.307 degrees (North through East)
! Clean map  min=-0.00275  max=0.32322 Jy/beam
! Writing clean map to FITS file: J0840+1312_S_2002_05_14_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.323221 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000472737 
device "J0840+1312_S_2002_05_14_yyk\_map.eps/VPS"
! Attempting to open device: 'J0840+1312_S_2002_05_14_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.438775 0.438775 0.87755 1.7551 3.5102 7.0204 14.0408 28.0816 56.1632
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0014 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.323 
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.567 x 8.122 at -9.307 degrees (North through East)
! Clean map  min=-0.00275  max=0.32322 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0840+1312_S_2002_05_14_yyk\_map.gif/gif"
! Attempting to open device: 'J0840+1312_S_2002_05_14_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0840+1312_S_2002_05_14_yyk_uvs.log closed on Tue Jun 26 22:32:36 2007