! Started logfile: J1240-1121_S_2005_07_20_yyk_uvs.log on Fri Jan 20 10:27:04 2006
obs J1240-1121_S_2005_07_20_yyk_uve.fits
! Reading UV FITS file: J1240-1121_S_2005_07_20_yyk_uve.fits
! AN table 1: 10 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.926667 visibilities/baseline/integration-bin.
! Found source: J1240-1121
! 
! 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 1527 lines of history.
! 
! Reading 1668 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 J1240-1121_S_2005_07_20_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.156983 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.53 mas, bmaj=6.458 mas, bpa=-1.535 degrees
! Estimated noise=1.27657 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.118608 Jy
! Component: 100  -  total flux cleaned = 0.1378 Jy
! Total flux subtracted in 100 components = 0.1378 Jy
! Clean residual min=-0.005708 max=0.006802 Jy/beam
! Clean residual mean=0.000013 rms=0.001500 Jy/beam
! Combined flux in latest and established models = 0.1378 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 13 components and 0.1378 Jy
! 
! Correcting IF 1.
!  A total of 4 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 4 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 4 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 4 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.069618Jy  sigma=1.105484
! Fit after  self-cal, rms=0.069325Jy  sigma=1.099685
! Inverting map and beam 
! Estimated beam: bmin=2.53 mas, bmaj=6.458 mas, bpa=-1.535 degrees
! Estimated noise=1.27657 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.065 mas, bmaj=7.574 mas, bpa=-2.198 degrees
! Estimated noise=0.982946 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.00824123 Jy
! Component: 100  -  total flux cleaned = 0.0119022 Jy
! Component: 150  -  total flux cleaned = 0.0131753 Jy
! Component: 200  -  total flux cleaned = 0.0135851 Jy
! Total flux subtracted in 200 components = 0.0135851 Jy
! Clean residual min=-0.005276 max=0.005486 Jy/beam
! Clean residual mean=0.000019 rms=0.001440 Jy/beam
! Combined flux in latest and established models = 0.151385 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 26 components and 0.151385 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.068456Jy  sigma=1.086704
! Fit after  self-cal, rms=0.068442Jy  sigma=1.086615
! 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.065 x 7.574 at -2.198 degrees (North through East)
! Clean map  min=-0.0049998  max=0.13422 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.03135
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.95     FD        0.99     HN        0.96     KP        0.94     
!   LA        1.05     MK        0.91     NL        0.97     OV        0.99     
!   PT        0.97     SC        0.95     
! 
! 
! Correcting IF 2.
!  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.
!  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.068442Jy  sigma=1.086615
! Fit after  self-cal, rms=0.068145Jy  sigma=1.085644
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.068145Jy  sigma=1.085644
! Fit after  self-cal, rms=0.068146Jy  sigma=1.085641
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.041 mas, bmaj=7.525 mas, bpa=-2.346 degrees
! Estimated noise=0.984075 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.0014762 Jy
! Component: 100  -  total flux cleaned = 0.00185575 Jy
! Component: 150  -  total flux cleaned = 0.00204627 Jy
! Component: 200  -  total flux cleaned = 0.00221631 Jy
! Total flux subtracted in 200 components = 0.00221631 Jy
! Clean residual min=-0.005245 max=0.005501 Jy/beam
! Clean residual mean=0.000034 rms=0.001441 Jy/beam
! Combined flux in latest and established models = 0.153602 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 29 components and 0.153602 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.068085Jy  sigma=1.084421
! Fit after  self-cal, rms=0.068077Jy  sigma=1.084370
! 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.068077Jy  sigma=1.084370
! Fit after  self-cal, rms=0.065254Jy  sigma=1.031240
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.00143016 Jy
! Component: 100  -  total flux cleaned = 0.00153703 Jy
! Component: 150  -  total flux cleaned = 0.00162874 Jy
! Component: 200  -  total flux cleaned = 0.00168372 Jy
! Total flux subtracted in 200 components = 0.00168372 Jy
! Clean residual min=-0.005071 max=0.005101 Jy/beam
! Clean residual mean=0.000032 rms=0.001360 Jy/beam
! Combined flux in latest and established models = 0.155285 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 37 components and 0.155285 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.065178Jy  sigma=1.030612
! Fit after  self-cal, rms=0.064970Jy  sigma=1.026544
! 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.041 x 7.525 at -2.346 degrees (North through East)
! Clean map  min=-0.0047413  max=0.13449 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.064970Jy  sigma=1.026544
! Fit after  self-cal, rms=0.063859Jy  sigma=1.017914
! 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.063859Jy  sigma=1.017914
! Fit after  self-cal, rms=0.063841Jy  sigma=1.017474
! Inverting map and beam 
! Estimated beam: bmin=3.02 mas, bmaj=7.494 mas, bpa=-2.535 degrees
! Estimated noise=0.96749 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00134178 Jy
! Component: 100  -  total flux cleaned = -0.00119621 Jy
! Component: 150  -  total flux cleaned = -0.00108157 Jy
! Component: 200  -  total flux cleaned = -0.00105483 Jy
! Total flux subtracted in 200 components = -0.00105483 Jy
! Clean residual min=-0.004658 max=0.004676 Jy/beam
! Clean residual mean=0.000033 rms=0.001316 Jy/beam
! Combined flux in latest and established models = 0.154231 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 42 components and 0.154231 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.063884Jy  sigma=1.016514
! Fit after  self-cal, rms=0.063880Jy  sigma=1.016439
! 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.063880Jy  sigma=1.016439
! Fit after  self-cal, rms=0.062763Jy  sigma=1.001362
! 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.062763Jy  sigma=1.001362
! Fit after  self-cal, rms=0.062756Jy  sigma=1.001235
! Inverting map and beam 
! Estimated beam: bmin=3 mas, bmaj=7.453 mas, bpa=-1.874 degrees
! Estimated noise=0.95815 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000166126 Jy
! Component: 100  -  total flux cleaned = 6.60947e-06 Jy
! Component: 150  -  total flux cleaned = 7.42443e-05 Jy
! Component: 200  -  total flux cleaned = 0.000129213 Jy
! Total flux subtracted in 200 components = 0.000129213 Jy
! Clean residual min=-0.004519 max=0.004638 Jy/beam
! Clean residual mean=0.000032 rms=0.001229 Jy/beam
! Combined flux in latest and established models = 0.15436 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 50 components and 0.15436 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.062755Jy  sigma=1.000381
! Fit after  self-cal, rms=0.062756Jy  sigma=1.000365
! 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.645 mas, bmaj=13.87 mas, bpa=3.702 degrees
! Estimated noise=1.25793 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.00148835 Jy
! Component: 100  -  total flux cleaned = 0.00178926 Jy
! Component: 150  -  total flux cleaned = 0.00201223 Jy
! Component: 200  -  total flux cleaned = 0.00219796 Jy
! Total flux subtracted in 200 components = 0.00219796 Jy
! Clean residual min=-0.004389 max=0.006434 Jy/beam
! Clean residual mean=0.000060 rms=0.001584 Jy/beam
! Combined flux in latest and established models = 0.156558 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 58 components and 0.156558 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.062854Jy  sigma=1.001529
! Fit after  self-cal, rms=0.062783Jy  sigma=1.000763
! 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.504 mas, bmaj=6.42 mas, bpa=-1.513 degrees
! Estimated noise=1.23249 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.115786 Jy
! Component: 100  -  total flux cleaned = 0.135717 Jy
! Component: 150  -  total flux cleaned = 0.144026 Jy
! Component: 200  -  total flux cleaned = 0.148594 Jy
! Total flux subtracted in 200 components = 0.148594 Jy
! Clean residual min=-0.005347 max=0.005274 Jy/beam
! Clean residual mean=0.000011 rms=0.001339 Jy/beam
! Combined flux in latest and established models = 0.148594 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 32 model components to the UV plane model.
! The established model now contains 32 components and 0.148594 Jy
! Inverting map and beam 
! Estimated beam: bmin=3 mas, bmaj=7.453 mas, bpa=-1.874 degrees
! Estimated noise=0.95815 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.00298492 Jy
! Component: 100  -  total flux cleaned = 0.00361139 Jy
! Component: 150  -  total flux cleaned = 0.00410114 Jy
! Component: 200  -  total flux cleaned = 0.00450616 Jy
! Total flux subtracted in 200 components = 0.00450616 Jy
! Clean residual min=-0.004625 max=0.005015 Jy/beam
! Clean residual mean=0.000034 rms=0.001272 Jy/beam
! Combined flux in latest and established models = 0.1531 Jy
! Adding 13 model components to the UV plane model.
! The established model now contains 41 components and 0.1531 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.645 mas, bmaj=13.87 mas, bpa=3.702 degrees
! Estimated noise=1.25793 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.00195681 Jy
! Component: 100  -  total flux cleaned = 0.00233566 Jy
! Component: 150  -  total flux cleaned = 0.00263508 Jy
! Component: 200  -  total flux cleaned = 0.00288267 Jy
! Total flux subtracted in 200 components = 0.00288267 Jy
! Clean residual min=-0.004359 max=0.006628 Jy/beam
! Clean residual mean=0.000063 rms=0.001621 Jy/beam
! Combined flux in latest and established models = 0.155982 Jy
! Adding 9 model components to the UV plane model.
! The established model now contains 45 components and 0.155983 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3 mas, bmaj=7.453 mas, bpa=-1.874 degrees
! Estimated noise=0.95815 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000816896 Jy
! Component: 100  -  total flux cleaned = -0.00101621 Jy
! Component: 150  -  total flux cleaned = -0.00115128 Jy
! Component: 200  -  total flux cleaned = -0.00125736 Jy
! Total flux subtracted in 200 components = -0.00125736 Jy
! Clean residual min=-0.004481 max=0.004655 Jy/beam
! Clean residual mean=0.000031 rms=0.001222 Jy/beam
! Combined flux in latest and established models = 0.154725 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 52 components and 0.154725 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.062717Jy  sigma=0.999890
! Fit after  self-cal, rms=0.062715Jy  sigma=0.999876
wmodel J1240-1121_S_2005_07_20_yyk\_map.mod
! Writing 52 model components to file: J1240-1121_S_2005_07_20_yyk_map.mod
wobs J1240-1121_S_2005_07_20_yyk\_uvs.fits
! Writing UV FITS file: J1240-1121_S_2005_07_20_yyk_uvs.fits
wwins J1240-1121_S_2005_07_20_yyk\_map.win
! wwins: Wrote 1 windows to J1240-1121_S_2005_07_20_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 = 2.10482e-05 Jy
! Component: 100  -  total flux cleaned = 2.61428e-05 Jy
! Component: 150  -  total flux cleaned = -0.000320504 Jy
! Component: 200  -  total flux cleaned = -0.000452045 Jy
! Component: 250  -  total flux cleaned = -0.000575332 Jy
! Component: 300  -  total flux cleaned = -0.000633737 Jy
! Component: 350  -  total flux cleaned = -0.000634121 Jy
! Component: 400  -  total flux cleaned = -0.000690352 Jy
! Component: 450  -  total flux cleaned = -0.00079766 Jy
! Component: 500  -  total flux cleaned = -0.000849997 Jy
! Component: 550  -  total flux cleaned = -0.00105396 Jy
! Component: 600  -  total flux cleaned = -0.0013511 Jy
! Component: 650  -  total flux cleaned = -0.00164151 Jy
! Component: 700  -  total flux cleaned = -0.00192527 Jy
! Component: 750  -  total flux cleaned = -0.00197265 Jy
! Component: 800  -  total flux cleaned = -0.00201971 Jy
! Component: 850  -  total flux cleaned = -0.00219774 Jy
! Component: 900  -  total flux cleaned = -0.00224021 Jy
! Component: 950  -  total flux cleaned = -0.00215559 Jy
! Component: 1000  -  total flux cleaned = -0.00223937 Jy
! Component: 1050  -  total flux cleaned = -0.00228105 Jy
! Component: 1100  -  total flux cleaned = -0.00240108 Jy
! Component: 1150  -  total flux cleaned = -0.00243995 Jy
! Component: 1200  -  total flux cleaned = -0.00247789 Jy
! Component: 1250  -  total flux cleaned = -0.00251538 Jy
! Component: 1300  -  total flux cleaned = -0.00255235 Jy
! Component: 1350  -  total flux cleaned = -0.00247937 Jy
! Component: 1400  -  total flux cleaned = -0.00244363 Jy
! Component: 1450  -  total flux cleaned = -0.00244399 Jy
! Component: 1500  -  total flux cleaned = -0.00240891 Jy
! Component: 1550  -  total flux cleaned = -0.00234024 Jy
! Component: 1600  -  total flux cleaned = -0.00240717 Jy
! Component: 1650  -  total flux cleaned = -0.00224078 Jy
! Component: 1700  -  total flux cleaned = -0.00220832 Jy
! Component: 1750  -  total flux cleaned = -0.00214387 Jy
! Component: 1800  -  total flux cleaned = -0.00217634 Jy
! Component: 1850  -  total flux cleaned = -0.00214439 Jy
! Component: 1900  -  total flux cleaned = -0.00214468 Jy
! Component: 1950  -  total flux cleaned = -0.00208348 Jy
! Component: 2000  -  total flux cleaned = -0.00205347 Jy
! Total flux subtracted in 2048 components = -0.00202318 Jy
! Clean residual min=-0.001956 max=0.001489 Jy/beam
! Clean residual mean=0.000007 rms=0.000615 Jy/beam
! Combined flux in latest and established models = 0.152702 Jy
keep
! Adding 146 model components to the UV plane model.
! The established model now contains 198 components and 0.152702 Jy
![Exited script file: muppet]
wmap "J1240-1121_S_2005_07_20_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3 x 7.453 at -1.874 degrees (North through East)
! Clean map  min=-0.0045705  max=0.13087 Jy/beam
! Writing clean map to FITS file: J1240-1121_S_2005_07_20_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.130871 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000618732 
device "J1240-1121_S_2005_07_20_yyk\_map.eps/VPS"
! Attempting to open device: 'J1240-1121_S_2005_07_20_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.41834 1.41834 2.83669 5.67337 11.3467 22.6935 45.387 90.7739
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.13 
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 x 7.453 at -1.874 degrees (North through East)
! Clean map  min=-0.0045705  max=0.13087 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1240-1121_S_2005_07_20_yyk\_map.gif/gif"
! Attempting to open device: 'J1240-1121_S_2005_07_20_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1240-1121_S_2005_07_20_yyk_uvs.log closed on Fri Jan 20 10:27:08 2006