! Started logfile: J1239-1023_S_2004_04_30_yyk_uvs.log on Wed Dec  7 00:23:26 2005
obs J1239-1023_S_2004_04_30_yyk_uve.fits
! Reading UV FITS file: J1239-1023_S_2004_04_30_yyk_uve.fits
! AN table 1: 7 integrations on 45 of 45 possible baselines.
! Apparent sampling: 1 visibilities/baseline/integration-bin.
! Found source: J1239-1023
! 
! 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 1627 lines of history.
! 
! Reading 1260 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 J1239-1023_S_2004_04_30_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)= 1.13506 Jy 
startmod ,phase_soltime
! Applying default point source starting model.
! Performing phase self-cal over 10 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
!  A total of 14 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.401534Jy  sigma=6.899598
! Fit after  self-cal, rms=0.401567Jy  sigma=6.893346
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
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.605 mas, bmaj=6.51 mas, bpa=-0.2201 degrees
! Estimated noise=1.63579 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.873661 Jy
! Component: 100  -  total flux cleaned = 1.14385 Jy
! Total flux subtracted in 100 components = 1.14385 Jy
! Clean residual min=-0.031541 max=0.083133 Jy/beam
! Clean residual mean=0.000560 rms=0.012029 Jy/beam
! Combined flux in latest and established models = 1.14386 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 1.14386 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.238855Jy  sigma=4.131459
! Fit after  self-cal, rms=0.236243Jy  sigma=4.094532
! Inverting map 
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.114959 Jy
! Component: 100  -  total flux cleaned = 0.168144 Jy
! Total flux subtracted in 100 components = 0.168144 Jy
! Clean residual min=-0.023943 max=0.049844 Jy/beam
! Clean residual mean=0.000364 rms=0.007306 Jy/beam
! Combined flux in latest and established models = 1.312 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 25 components and 1.312 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164690Jy  sigma=2.765367
! Fit after  self-cal, rms=0.164752Jy  sigma=2.762915
! Inverting map 
! Added new window around map position (-5, 1.5).
! clean: niter=100  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0566539 Jy
! Component: 100  -  total flux cleaned = 0.0894683 Jy
! Total flux subtracted in 100 components = 0.0894684 Jy
! Clean residual min=-0.020894 max=0.026682 Jy/beam
! Clean residual mean=0.000257 rms=0.005656 Jy/beam
! Combined flux in latest and established models = 1.40147 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 43 components and 1.40147 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.137662Jy  sigma=2.264409
! Fit after  self-cal, rms=0.135475Jy  sigma=2.234715
! 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.24 mas, bmaj=8.034 mas, bpa=-1.289 degrees
! Estimated noise=1.19717 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.0488781 Jy
! Component: 100  -  total flux cleaned = 0.0755619 Jy
! Component: 150  -  total flux cleaned = 0.0914872 Jy
! Component: 200  -  total flux cleaned = 0.100443 Jy
! Total flux subtracted in 200 components = 0.100443 Jy
! Clean residual min=-0.019367 max=0.017998 Jy/beam
! Clean residual mean=0.000082 rms=0.005504 Jy/beam
! Combined flux in latest and established models = 1.50191 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 71 components and 1.50191 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.119946Jy  sigma=1.977328
! Fit after  self-cal, rms=0.119069Jy  sigma=1.962785
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
selflims ampcor_selflim
! 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.00216
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.04     HN        0.96     KP        0.96     
!   LA        1.11     MK        1.02     NL        0.98     OV        0.99     
!   PT        0.99     SC        0.93     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.992348
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.99     HN        1.08     KP        0.99     
!   LA        1.06     MK        1.01     NL        1.01     OV        1.00     
!   PT        0.93     SC        0.97     
! 
! 
! Correcting IF 3.
!  Amplitude normalization factor in sub-array 1: 0.994391
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.11     FD        0.89     HN        1.00     KP        0.96     
!   LA        0.93     MK        1.04     NL        1.07     OV        1.03     
!   PT        1.02     SC        1.00     
! 
! 
! Correcting IF 4.
!  Amplitude normalization factor in sub-array 1: 1.0202
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.93     HN        0.99     KP        0.89     
!   LA        1.00*    MK        0.92     NL        0.98     OV        1.00*    
!   PT        0.96     SC        1.10     
! 
! 
! Fit before self-cal, rms=0.119069Jy  sigma=1.962785
! Fit after  self-cal, rms=0.087401Jy  sigma=1.302049
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.087401Jy  sigma=1.302049
! Fit after  self-cal, rms=0.087390Jy  sigma=1.301997
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.25 mas, bmaj=8.111 mas, bpa=-1.216 degrees
! Estimated noise=1.19338 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 (-13.5, 13.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0214225 Jy
! Component: 100  -  total flux cleaned = 0.0280901 Jy
! Component: 150  -  total flux cleaned = 0.0296676 Jy
! Component: 200  -  total flux cleaned = 0.0304236 Jy
! Total flux subtracted in 200 components = 0.0304236 Jy
! Clean residual min=-0.006935 max=0.007759 Jy/beam
! Clean residual mean=0.000062 rms=0.002171 Jy/beam
! Combined flux in latest and established models = 1.53233 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 106 components and 1.53233 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.083300Jy  sigma=1.218238
! Fit after  self-cal, rms=0.082860Jy  sigma=1.210865
! 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.082860Jy  sigma=1.210865
! Fit after  self-cal, rms=0.081241Jy  sigma=1.185620
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.00531111 Jy
! Component: 100  -  total flux cleaned = 0.00678975 Jy
! Component: 150  -  total flux cleaned = 0.00746785 Jy
! Component: 200  -  total flux cleaned = 0.00777959 Jy
! Total flux subtracted in 200 components = 0.00777959 Jy
! Clean residual min=-0.006204 max=0.006747 Jy/beam
! Clean residual mean=-0.000008 rms=0.001901 Jy/beam
! Combined flux in latest and established models = 1.54011 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 125 components and 1.54011 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.080413Jy  sigma=1.171435
! Fit after  self-cal, rms=0.080303Jy  sigma=1.168688
! 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.25 x 8.111 at -1.216 degrees (North through East)
! Clean map  min=-0.0059381  max=1.03 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.080303Jy  sigma=1.168688
! Fit after  self-cal, rms=0.072617Jy  sigma=1.031505
! 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.072617Jy  sigma=1.031505
! Fit after  self-cal, rms=0.072638Jy  sigma=1.031329
! Inverting map and beam 
! Estimated beam: bmin=3.23 mas, bmaj=8.095 mas, bpa=-1.374 degrees
! Estimated noise=1.18923 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00598874 Jy
! Component: 100  -  total flux cleaned = 0.00771767 Jy
! Component: 150  -  total flux cleaned = 0.00894405 Jy
! Component: 200  -  total flux cleaned = 0.00941362 Jy
! Total flux subtracted in 200 components = 0.00941362 Jy
! Clean residual min=-0.005234 max=0.005417 Jy/beam
! Clean residual mean=0.000147 rms=0.001471 Jy/beam
! Combined flux in latest and established models = 1.54953 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 40 model components to the UV plane model.
! The established model now contains 151 components and 1.54953 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.071982Jy  sigma=1.019176
! Fit after  self-cal, rms=0.071912Jy  sigma=1.017962
! 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.071912Jy  sigma=1.017962
! Fit after  self-cal, rms=0.070206Jy  sigma=0.992678
! 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.070206Jy  sigma=0.992678
! Fit after  self-cal, rms=0.070207Jy  sigma=0.992674
! Inverting map and beam 
! Estimated beam: bmin=3.226 mas, bmaj=8.089 mas, bpa=-1.374 degrees
! Estimated noise=1.18859 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00290953 Jy
! Component: 100  -  total flux cleaned = 0.00387595 Jy
! Component: 150  -  total flux cleaned = 0.00418356 Jy
! Component: 200  -  total flux cleaned = 0.00436355 Jy
! Total flux subtracted in 200 components = 0.00436355 Jy
! Clean residual min=-0.004974 max=0.005032 Jy/beam
! Clean residual mean=0.000142 rms=0.001385 Jy/beam
! Combined flux in latest and established models = 1.55389 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 163 components and 1.55389 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.069875Jy  sigma=0.986833
! Fit after  self-cal, rms=0.069835Jy  sigma=0.986230
! 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.852 mas, bmaj=15.09 mas, bpa=9.573 degrees
! Estimated noise=1.4981 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.00363954 Jy
! Component: 100  -  total flux cleaned = 0.00414195 Jy
! Component: 150  -  total flux cleaned = 0.00414505 Jy
! Component: 200  -  total flux cleaned = 0.00420448 Jy
! Total flux subtracted in 200 components = 0.00420448 Jy
! Clean residual min=-0.004986 max=0.005848 Jy/beam
! Clean residual mean=0.000206 rms=0.001580 Jy/beam
! Combined flux in latest and established models = 1.5581 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 182 components and 1.5581 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.069768Jy  sigma=0.985089
! Fit after  self-cal, rms=0.069748Jy  sigma=0.984834
! 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.593 mas, bmaj=6.537 mas, bpa=-0.336 degrees
! Estimated noise=1.62571 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.872436 Jy
! Component: 100  -  total flux cleaned = 1.14575 Jy
! Component: 150  -  total flux cleaned = 1.26529 Jy
! Component: 200  -  total flux cleaned = 1.33158 Jy
! Total flux subtracted in 200 components = 1.33158 Jy
! Clean residual min=-0.015358 max=0.026168 Jy/beam
! Clean residual mean=0.000402 rms=0.005073 Jy/beam
! Combined flux in latest and established models = 1.33158 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 1.33158 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.226 mas, bmaj=8.089 mas, bpa=-1.374 degrees
! Estimated noise=1.18859 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.0729322 Jy
! Component: 100  -  total flux cleaned = 0.115346 Jy
! Component: 150  -  total flux cleaned = 0.143193 Jy
! Component: 200  -  total flux cleaned = 0.163129 Jy
! Total flux subtracted in 200 components = 0.163129 Jy
! Clean residual min=-0.007334 max=0.010830 Jy/beam
! Clean residual mean=0.000601 rms=0.003064 Jy/beam
! Combined flux in latest and established models = 1.49471 Jy
! Adding 65 model components to the UV plane model.
! The established model now contains 88 components and 1.49471 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.852 mas, bmaj=15.09 mas, bpa=9.573 degrees
! Estimated noise=1.4981 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.0237398 Jy
! Component: 100  -  total flux cleaned = 0.037874 Jy
! Component: 150  -  total flux cleaned = 0.0467992 Jy
! Component: 200  -  total flux cleaned = 0.0526239 Jy
! Total flux subtracted in 200 components = 0.0526239 Jy
! Clean residual min=-0.004909 max=0.006725 Jy/beam
! Clean residual mean=0.000373 rms=0.001823 Jy/beam
! Combined flux in latest and established models = 1.54733 Jy
! Adding 67 model components to the UV plane model.
! The established model now contains 142 components and 1.54733 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.226 mas, bmaj=8.089 mas, bpa=-1.374 degrees
! Estimated noise=1.18859 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00258083 Jy
! Component: 100  -  total flux cleaned = 0.00419039 Jy
! Component: 150  -  total flux cleaned = 0.00493645 Jy
! Component: 200  -  total flux cleaned = 0.00558869 Jy
! Total flux subtracted in 200 components = 0.00558869 Jy
! Clean residual min=-0.005337 max=0.005570 Jy/beam
! Clean residual mean=0.000147 rms=0.001352 Jy/beam
! Combined flux in latest and established models = 1.55292 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 164 components and 1.55292 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.070056Jy  sigma=0.987533
! Fit after  self-cal, rms=0.069922Jy  sigma=0.983864
wmodel J1239-1023_S_2004_04_30_yyk\_map.mod
! Writing 164 model components to file: J1239-1023_S_2004_04_30_yyk_map.mod
wobs J1239-1023_S_2004_04_30_yyk\_uvs.fits
! Writing UV FITS file: J1239-1023_S_2004_04_30_yyk_uvs.fits
wwins J1239-1023_S_2004_04_30_yyk\_map.win
! wwins: Wrote 3 windows to J1239-1023_S_2004_04_30_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.000558248 Jy
! Component: 100  -  total flux cleaned = 0.00149283 Jy
! Component: 150  -  total flux cleaned = 0.00196899 Jy
! Component: 200  -  total flux cleaned = 0.002042 Jy
! Component: 250  -  total flux cleaned = 0.00225559 Jy
! Component: 300  -  total flux cleaned = 0.00280593 Jy
! Component: 350  -  total flux cleaned = 0.00320668 Jy
! Component: 400  -  total flux cleaned = 0.00391664 Jy
! Component: 450  -  total flux cleaned = 0.00447819 Jy
! Component: 500  -  total flux cleaned = 0.00477986 Jy
! Component: 550  -  total flux cleaned = 0.00513174 Jy
! Component: 600  -  total flux cleaned = 0.00518763 Jy
! Component: 650  -  total flux cleaned = 0.00518765 Jy
! Component: 700  -  total flux cleaned = 0.00535241 Jy
! Component: 750  -  total flux cleaned = 0.00551415 Jy
! Component: 800  -  total flux cleaned = 0.00567265 Jy
! Component: 850  -  total flux cleaned = 0.00577613 Jy
! Component: 900  -  total flux cleaned = 0.00577594 Jy
! Component: 950  -  total flux cleaned = 0.00587571 Jy
! Component: 1000  -  total flux cleaned = 0.00592531 Jy
! Component: 1050  -  total flux cleaned = 0.00592495 Jy
! Component: 1100  -  total flux cleaned = 0.00583038 Jy
! Component: 1150  -  total flux cleaned = 0.00592522 Jy
! Component: 1200  -  total flux cleaned = 0.00587902 Jy
! Component: 1250  -  total flux cleaned = 0.00587828 Jy
! Component: 1300  -  total flux cleaned = 0.00583326 Jy
! Component: 1350  -  total flux cleaned = 0.00574514 Jy
! Component: 1400  -  total flux cleaned = 0.00565763 Jy
! Component: 1450  -  total flux cleaned = 0.00561412 Jy
! Component: 1500  -  total flux cleaned = 0.00548588 Jy
! Component: 1550  -  total flux cleaned = 0.0053588 Jy
! Component: 1600  -  total flux cleaned = 0.00506875 Jy
! Component: 1650  -  total flux cleaned = 0.00502808 Jy
! Component: 1700  -  total flux cleaned = 0.00478489 Jy
! Component: 1750  -  total flux cleaned = 0.00474489 Jy
! Component: 1800  -  total flux cleaned = 0.00458558 Jy
! Component: 1850  -  total flux cleaned = 0.0043894 Jy
! Component: 1900  -  total flux cleaned = 0.00427357 Jy
! Component: 1950  -  total flux cleaned = 0.0042348 Jy
! Component: 2000  -  total flux cleaned = 0.00397007 Jy
! Total flux subtracted in 2048 components = 0.00396998 Jy
! Clean residual min=-0.002478 max=0.002208 Jy/beam
! Clean residual mean=0.000012 rms=0.000767 Jy/beam
! Combined flux in latest and established models = 1.55689 Jy
keep
! Adding 128 model components to the UV plane model.
! The established model now contains 291 components and 1.55689 Jy
![Exited script file: muppet]
wmap "J1239-1023_S_2004_04_30_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.226 x 8.089 at -1.374 degrees (North through East)
! Clean map  min=-0.0039228  max=1.0257 Jy/beam
! Writing clean map to FITS file: J1239-1023_S_2004_04_30_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 1.02569 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000765239 
device "J1239-1023_S_2004_04_30_yyk\_map.eps/VPS"
! Attempting to open device: 'J1239-1023_S_2004_04_30_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.223822 0.223822 0.447644 0.895288 1.79058 3.58115 7.1623 14.3246 28.6492 57.2984
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(peak_flux*1000)/1000
! peak= 1.025 
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.226 x 8.089 at -1.374 degrees (North through East)
! Clean map  min=-0.0039228  max=1.0257 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1239-1023_S_2004_04_30_yyk\_map.gif/gif"
! Attempting to open device: 'J1239-1023_S_2004_04_30_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1239-1023_S_2004_04_30_yyk_uvs.log closed on Wed Dec  7 00:23:30 2005