! Started logfile: J1400-1858_S_2005_06_01_yyk_uvs.log on Sat Oct  8 22:57:12 2005
obs J1400-1858_S_2005_06_01_yyk_uve.fits
! Reading UV FITS file: J1400-1858_S_2005_06_01_yyk_uve.fits
! AN table 1: 13 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.830769 visibilities/baseline/integration-bin.
! Found source: J1400-1858
! 
! 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 1802 lines of history.
! 
! Reading 1944 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 J1400-1858_S_2005_06_01_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.195785 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.451 mas, bmaj=6.51 mas, bpa=0.8179 degrees
! Estimated noise=1.23732 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.153032 Jy
! Component: 100  -  total flux cleaned = 0.17296 Jy
! Total flux subtracted in 100 components = 0.17296 Jy
! Clean residual min=-0.007507 max=0.006484 Jy/beam
! Clean residual mean=-0.000069 rms=0.001831 Jy/beam
! Combined flux in latest and established models = 0.17296 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 0.17296 Jy
! 
! Correcting IF 1.
!  A total of 19 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 19 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 25 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 19 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.074713Jy  sigma=1.196628
! Fit after  self-cal, rms=0.074529Jy  sigma=1.193176
! Inverting map and beam 
! Estimated beam: bmin=2.451 mas, bmaj=6.51 mas, bpa=0.8197 degrees
! Estimated noise=1.23739 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.118 mas, bmaj=7.939 mas, bpa=-2.126 degrees
! Estimated noise=0.875616 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.000252988 Jy
! Component: 100  -  total flux cleaned = 0.000709697 Jy
! Component: 150  -  total flux cleaned = 0.00111579 Jy
! Component: 200  -  total flux cleaned = 0.00146331 Jy
! Total flux subtracted in 200 components = 0.00146331 Jy
! Clean residual min=-0.007185 max=0.007139 Jy/beam
! Clean residual mean=-0.000190 rms=0.002063 Jy/beam
! Combined flux in latest and established models = 0.174424 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 19 components and 0.174424 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.074684Jy  sigma=1.184925
! Fit after  self-cal, rms=0.074664Jy  sigma=1.184829
! 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.118 x 7.939 at -2.126 degrees (North through East)
! Clean map  min=-0.0069055  max=0.16742 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.02873
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        0.99     HN        0.99     KP        0.95     
!   LA        1.12     MK        0.87     NL        0.89     OV        0.92     
!   PT        1.02     SC        0.91     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.00755
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.06     HN        0.96     KP        0.96     
!   LA        1.15     MK        0.94     NL        0.90     OV        1.00     
!   PT        1.05     SC        0.93     
! 
! 
! 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.
!  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.074664Jy  sigma=1.184829
! Fit after  self-cal, rms=0.072334Jy  sigma=1.162464
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.072334Jy  sigma=1.162464
! Fit after  self-cal, rms=0.072336Jy  sigma=1.162413
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.029 mas, bmaj=7.763 mas, bpa=-2.401 degrees
! Estimated noise=0.879181 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.00468975 Jy
! Component: 100  -  total flux cleaned = 0.00544705 Jy
! Component: 150  -  total flux cleaned = 0.00598014 Jy
! Component: 200  -  total flux cleaned = 0.00613896 Jy
! Total flux subtracted in 200 components = 0.00613896 Jy
! Clean residual min=-0.007041 max=0.007217 Jy/beam
! Clean residual mean=-0.000073 rms=0.001893 Jy/beam
! Combined flux in latest and established models = 0.180563 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 23 components and 0.180563 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.072025Jy  sigma=1.155949
! Fit after  self-cal, rms=0.072014Jy  sigma=1.155887
! 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.072014Jy  sigma=1.155887
! Fit after  self-cal, rms=0.070271Jy  sigma=1.128780
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.000794782 Jy
! Component: 100  -  total flux cleaned = 0.00093514 Jy
! Component: 150  -  total flux cleaned = 0.00106356 Jy
! Component: 200  -  total flux cleaned = 0.00118778 Jy
! Total flux subtracted in 200 components = 0.00118778 Jy
! Clean residual min=-0.007037 max=0.007044 Jy/beam
! Clean residual mean=-0.000077 rms=0.001839 Jy/beam
! Combined flux in latest and established models = 0.18175 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 24 components and 0.18175 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.070239Jy  sigma=1.126910
! Fit after  self-cal, rms=0.069945Jy  sigma=1.124805
! 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.029 x 7.763 at -2.401 degrees (North through East)
! Clean map  min=-0.006684  max=0.16655 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.069945Jy  sigma=1.124805
! Fit after  self-cal, rms=0.068242Jy  sigma=1.116417
! 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.068242Jy  sigma=1.116417
! Fit after  self-cal, rms=0.068119Jy  sigma=1.115943
! Inverting map and beam 
! Estimated beam: bmin=2.994 mas, bmaj=7.703 mas, bpa=-2.546 degrees
! Estimated noise=0.865115 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00144692 Jy
! Component: 100  -  total flux cleaned = -0.000934397 Jy
! Component: 150  -  total flux cleaned = -0.000575198 Jy
! Component: 200  -  total flux cleaned = -0.000467069 Jy
! Total flux subtracted in 200 components = -0.000467069 Jy
! Clean residual min=-0.006154 max=0.006845 Jy/beam
! Clean residual mean=-0.000072 rms=0.001728 Jy/beam
! Combined flux in latest and established models = 0.181283 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 27 components and 0.181283 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.068384Jy  sigma=1.112804
! Fit after  self-cal, rms=0.068298Jy  sigma=1.112588
! 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.068298Jy  sigma=1.112588
! Fit after  self-cal, rms=0.067348Jy  sigma=1.103322
! 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.067348Jy  sigma=1.103322
! Fit after  self-cal, rms=0.067298Jy  sigma=1.103177
! Inverting map and beam 
! Estimated beam: bmin=2.98 mas, bmaj=7.675 mas, bpa=-2.57 degrees
! Estimated noise=0.859046 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000454623 Jy
! Component: 100  -  total flux cleaned = -0.000141503 Jy
! Component: 150  -  total flux cleaned = -9.45442e-05 Jy
! Component: 200  -  total flux cleaned = -4.60447e-06 Jy
! Total flux subtracted in 200 components = -4.60447e-06 Jy
! Clean residual min=-0.005884 max=0.006634 Jy/beam
! Clean residual mean=-0.000071 rms=0.001669 Jy/beam
! Combined flux in latest and established models = 0.181279 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 28 components and 0.181279 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.067435Jy  sigma=1.101854
! Fit after  self-cal, rms=0.067397Jy  sigma=1.101768
! 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.659 mas, bmaj=16.28 mas, bpa=7.811 degrees
! Estimated noise=1.12276 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.00239157 Jy
! Component: 100  -  total flux cleaned = 0.00271268 Jy
! Component: 150  -  total flux cleaned = 0.00299437 Jy
! Component: 200  -  total flux cleaned = 0.00332038 Jy
! Total flux subtracted in 200 components = 0.00332038 Jy
! Clean residual min=-0.005085 max=0.006625 Jy/beam
! Clean residual mean=-0.000158 rms=0.002000 Jy/beam
! Combined flux in latest and established models = 0.184599 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 31 components and 0.184599 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.067688Jy  sigma=1.103268
! Fit after  self-cal, rms=0.067656Jy  sigma=1.103142
! Inverting map 
uvtaper 0,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.409 mas, bmaj=6.447 mas, bpa=0.5875 degrees
! Estimated noise=1.18626 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.147423 Jy
! Component: 100  -  total flux cleaned = 0.167659 Jy
! Component: 150  -  total flux cleaned = 0.174959 Jy
! Component: 200  -  total flux cleaned = 0.178869 Jy
! Total flux subtracted in 200 components = 0.178869 Jy
! Clean residual min=-0.005446 max=0.005402 Jy/beam
! Clean residual mean=-0.000026 rms=0.001452 Jy/beam
! Combined flux in latest and established models = 0.178869 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 20 model components to the UV plane model.
! The established model now contains 20 components and 0.178869 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.98 mas, bmaj=7.675 mas, bpa=-2.57 degrees
! Estimated noise=0.859046 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.000453423 Jy
! Component: 100  -  total flux cleaned = 0.000284189 Jy
! Component: 150  -  total flux cleaned = 0.000891733 Jy
! Component: 200  -  total flux cleaned = 0.00132279 Jy
! Total flux subtracted in 200 components = 0.00132279 Jy
! Clean residual min=-0.006262 max=0.006721 Jy/beam
! Clean residual mean=-0.000070 rms=0.001780 Jy/beam
! Combined flux in latest and established models = 0.180192 Jy
! Adding 12 model components to the UV plane model.
! The established model now contains 25 components and 0.180192 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.659 mas, bmaj=16.28 mas, bpa=7.811 degrees
! Estimated noise=1.12276 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.00232224 Jy
! Component: 100  -  total flux cleaned = 0.00289418 Jy
! Component: 150  -  total flux cleaned = 0.00327209 Jy
! Component: 200  -  total flux cleaned = 0.00369697 Jy
! Total flux subtracted in 200 components = 0.00369697 Jy
! Clean residual min=-0.005216 max=0.006955 Jy/beam
! Clean residual mean=-0.000157 rms=0.002095 Jy/beam
! Combined flux in latest and established models = 0.183889 Jy
! Adding 6 model components to the UV plane model.
! The established model now contains 27 components and 0.183889 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.98 mas, bmaj=7.675 mas, bpa=-2.57 degrees
! Estimated noise=0.859046 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00212221 Jy
! Component: 100  -  total flux cleaned = -0.00224631 Jy
! Component: 150  -  total flux cleaned = -0.00232797 Jy
! Component: 200  -  total flux cleaned = -0.00237684 Jy
! Total flux subtracted in 200 components = -0.00237684 Jy
! Clean residual min=-0.005754 max=0.006746 Jy/beam
! Clean residual mean=-0.000071 rms=0.001637 Jy/beam
! Combined flux in latest and established models = 0.181512 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 39 components and 0.181512 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.067504Jy  sigma=1.101248
! Fit after  self-cal, rms=0.067480Jy  sigma=1.101175
wmodel J1400-1858_S_2005_06_01_yyk\_map.mod
! Writing 39 model components to file: J1400-1858_S_2005_06_01_yyk_map.mod
wobs J1400-1858_S_2005_06_01_yyk\_uvs.fits
! Writing UV FITS file: J1400-1858_S_2005_06_01_yyk_uvs.fits
wwins J1400-1858_S_2005_06_01_yyk\_map.win
! wwins: Wrote 1 windows to J1400-1858_S_2005_06_01_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.00202682 Jy
! Component: 100  -  total flux cleaned = 0.00315397 Jy
! Component: 150  -  total flux cleaned = 0.00419689 Jy
! Component: 200  -  total flux cleaned = 0.00473236 Jy
! Component: 250  -  total flux cleaned = 0.00473242 Jy
! Component: 300  -  total flux cleaned = 0.00449329 Jy
! Component: 350  -  total flux cleaned = 0.00426423 Jy
! Component: 400  -  total flux cleaned = 0.0040451 Jy
! Component: 450  -  total flux cleaned = 0.00376268 Jy
! Component: 500  -  total flux cleaned = 0.00342068 Jy
! Component: 550  -  total flux cleaned = 0.00302458 Jy
! Component: 600  -  total flux cleaned = 0.00270555 Jy
! Component: 650  -  total flux cleaned = 0.00251988 Jy
! Component: 700  -  total flux cleaned = 0.002158 Jy
! Component: 750  -  total flux cleaned = 0.00186664 Jy
! Component: 800  -  total flux cleaned = 0.00175389 Jy
! Component: 850  -  total flux cleaned = 0.00142241 Jy
! Component: 900  -  total flux cleaned = 0.00120854 Jy
! Component: 950  -  total flux cleaned = 0.00105144 Jy
! Component: 1000  -  total flux cleaned = 0.000743755 Jy
! Component: 1050  -  total flux cleaned = 0.00049234 Jy
! Component: 1100  -  total flux cleaned = 0.00014997 Jy
! Component: 1150  -  total flux cleaned = -0.000135987 Jy
! Component: 1200  -  total flux cleaned = -0.000462468 Jy
! Component: 1250  -  total flux cleaned = -0.000736506 Jy
! Component: 1300  -  total flux cleaned = -0.000916173 Jy
! Component: 1350  -  total flux cleaned = -0.00126629 Jy
! Component: 1400  -  total flux cleaned = -0.00148119 Jy
! Component: 1450  -  total flux cleaned = -0.00181943 Jy
! Component: 1500  -  total flux cleaned = -0.00210928 Jy
! Component: 1550  -  total flux cleaned = -0.00235409 Jy
! Component: 1600  -  total flux cleaned = -0.00275422 Jy
! Component: 1650  -  total flux cleaned = -0.00302876 Jy
! Component: 1700  -  total flux cleaned = -0.00329928 Jy
! Component: 1750  -  total flux cleaned = -0.00352889 Jy
! Component: 1800  -  total flux cleaned = -0.00397929 Jy
! Component: 1850  -  total flux cleaned = -0.0043108 Jy
! Component: 1900  -  total flux cleaned = -0.00460081 Jy
! Component: 1950  -  total flux cleaned = -0.00481574 Jy
! Component: 2000  -  total flux cleaned = -0.00516881 Jy
! Total flux subtracted in 2048 components = -0.00551686 Jy
! Clean residual min=-0.002047 max=0.001971 Jy/beam
! Clean residual mean=-0.000096 rms=0.000692 Jy/beam
! Combined flux in latest and established models = 0.175995 Jy
keep
! Adding 146 model components to the UV plane model.
! The established model now contains 185 components and 0.175995 Jy
![Exited script file: muppet]
wmap "J1400-1858_S_2005_06_01_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.98 x 7.675 at -2.57 degrees (North through East)
! Clean map  min=-0.0038657  max=0.1616 Jy/beam
! Writing clean map to FITS file: J1400-1858_S_2005_06_01_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.161601 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000686701 
device "J1400-1858_S_2005_06_01_yyk\_map.eps/VPS"
! Attempting to open device: 'J1400-1858_S_2005_06_01_yyk_map.eps/VPS'
loglevs 2*100*3*image_rms/peak_flux
! The new contour levels are:
!  -2.54962 2.54962 5.09924 10.1985 20.397 40.794 81.5879
print "clev=",int(2*3*image_rms*10000)/10000
! clev= 0.0041 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.161 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.98 x 7.675 at -2.57 degrees (North through East)
! Clean map  min=-0.0038657  max=0.1616 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1400-1858_S_2005_06_01_yyk\_map.gif/gif"
! Attempting to open device: 'J1400-1858_S_2005_06_01_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1400-1858_S_2005_06_01_yyk_uvs.log closed on Sat Oct  8 22:57:17 2005