! Started logfile: J0331-2524_S_2005_07_20_yyk_uvs.log on Fri Jan 20 09:50:59 2006
obs J0331-2524_S_2005_07_20_yyk_uve.fits
! Reading UV FITS file: J0331-2524_S_2005_07_20_yyk_uve.fits
! AN table 1: 14 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.938095 visibilities/baseline/integration-bin.
! Found source: J0331-2524
! 
! 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 1526 lines of history.
! 
! Reading 2364 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 J0331-2524_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.17466 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.431 mas, bmaj=6.536 mas, bpa=-3.255 degrees
! Estimated noise=1.30807 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.126575 Jy
! Component: 100  -  total flux cleaned = 0.160065 Jy
! Total flux subtracted in 100 components = 0.160065 Jy
! Clean residual min=-0.008047 max=0.011255 Jy/beam
! Clean residual mean=-0.000042 rms=0.002272 Jy/beam
! Combined flux in latest and established models = 0.160065 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 18 components and 0.160065 Jy
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 8 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 8 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 8 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.076929Jy  sigma=1.127374
! Fit after  self-cal, rms=0.076351Jy  sigma=1.122209
! Inverting map and beam 
! Estimated beam: bmin=2.431 mas, bmaj=6.537 mas, bpa=-3.255 degrees
! Estimated noise=1.30793 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.101 mas, bmaj=8.043 mas, bpa=-2.464 degrees
! Estimated noise=0.934512 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 (2.5, -9.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0167301 Jy
! Component: 100  -  total flux cleaned = 0.0244574 Jy
! Component: 150  -  total flux cleaned = 0.0286349 Jy
! Component: 200  -  total flux cleaned = 0.0300806 Jy
! Total flux subtracted in 200 components = 0.0300806 Jy
! Clean residual min=-0.005843 max=0.005493 Jy/beam
! Clean residual mean=0.000010 rms=0.001545 Jy/beam
! Combined flux in latest and established models = 0.190145 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 53 components and 0.190145 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.073829Jy  sigma=1.077486
! Fit after  self-cal, rms=0.073721Jy  sigma=1.075864
! 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.101 x 8.043 at -2.464 degrees (North through East)
! Clean map  min=-0.0058219  max=0.14209 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.03611
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.86     FD        1.02     HN        1.03     KP        0.97     
!   LA        1.03     MK        0.87     NL        0.98     OV        0.92     
!   PT        1.07     SC        0.90     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 1.00511
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.87     FD        0.99     HN        1.16     KP        1.03     
!   LA        1.02     MK        0.95     NL        0.98     OV        0.96     
!   PT        0.98     SC        1.01     
! 
! 
! 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.
!  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*    
! 
! 
! Fit before self-cal, rms=0.073721Jy  sigma=1.075864
! Fit after  self-cal, rms=0.073333Jy  sigma=1.066390
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.073333Jy  sigma=1.066390
! Fit after  self-cal, rms=0.073322Jy  sigma=1.066179
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.064 mas, bmaj=7.899 mas, bpa=-2.652 degrees
! Estimated noise=0.9278 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.00341144 Jy
! Component: 100  -  total flux cleaned = 0.00429961 Jy
! Component: 150  -  total flux cleaned = 0.00477708 Jy
! Component: 200  -  total flux cleaned = 0.0050509 Jy
! Total flux subtracted in 200 components = 0.0050509 Jy
! Clean residual min=-0.005587 max=0.005686 Jy/beam
! Clean residual mean=0.000004 rms=0.001520 Jy/beam
! Combined flux in latest and established models = 0.195196 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 74 components and 0.195196 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.073191Jy  sigma=1.062002
! Fit after  self-cal, rms=0.073142Jy  sigma=1.061484
! 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.073142Jy  sigma=1.061484
! Fit after  self-cal, rms=0.070581Jy  sigma=1.023835
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.00211786 Jy
! Component: 100  -  total flux cleaned = 0.00223299 Jy
! Component: 150  -  total flux cleaned = 0.00233502 Jy
! Component: 200  -  total flux cleaned = 0.00233408 Jy
! Total flux subtracted in 200 components = 0.00233408 Jy
! Clean residual min=-0.005319 max=0.005014 Jy/beam
! Clean residual mean=0.000003 rms=0.001476 Jy/beam
! Combined flux in latest and established models = 0.197531 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 93 components and 0.19753 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.070495Jy  sigma=1.022582
! Fit after  self-cal, rms=0.070296Jy  sigma=1.020067
! 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.064 x 7.899 at -2.652 degrees (North through East)
! Clean map  min=-0.0051387  max=0.14123 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.070296Jy  sigma=1.020067
! Fit after  self-cal, rms=0.069527Jy  sigma=1.015995
! 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.069527Jy  sigma=1.015995
! Fit after  self-cal, rms=0.069502Jy  sigma=1.015691
! Inverting map and beam 
! Estimated beam: bmin=3.028 mas, bmaj=7.79 mas, bpa=-3.224 degrees
! Estimated noise=0.91552 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000880928 Jy
! Component: 100  -  total flux cleaned = -0.00093957 Jy
! Component: 150  -  total flux cleaned = -0.000937449 Jy
! Component: 200  -  total flux cleaned = -0.000936714 Jy
! Total flux subtracted in 200 components = -0.000936714 Jy
! Clean residual min=-0.004972 max=0.004664 Jy/beam
! Clean residual mean=0.000019 rms=0.001395 Jy/beam
! Combined flux in latest and established models = 0.196594 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 102 components and 0.196594 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.069496Jy  sigma=1.014440
! Fit after  self-cal, rms=0.069481Jy  sigma=1.014347
! 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.069481Jy  sigma=1.014347
! Fit after  self-cal, rms=0.068598Jy  sigma=1.010790
! 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.068598Jy  sigma=1.010790
! Fit after  self-cal, rms=0.068595Jy  sigma=1.010724
! Inverting map and beam 
! Estimated beam: bmin=3.027 mas, bmaj=7.75 mas, bpa=-3.411 degrees
! Estimated noise=0.90303 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000868389 Jy
! Component: 100  -  total flux cleaned = -0.000972181 Jy
! Component: 150  -  total flux cleaned = -0.00101826 Jy
! Component: 200  -  total flux cleaned = -0.000976776 Jy
! Total flux subtracted in 200 components = -0.000976776 Jy
! Clean residual min=-0.005053 max=0.005217 Jy/beam
! Clean residual mean=0.000028 rms=0.001432 Jy/beam
! Combined flux in latest and established models = 0.195617 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 110 components and 0.195617 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.068647Jy  sigma=1.009276
! Fit after  self-cal, rms=0.068637Jy  sigma=1.009216
! 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=8.022 mas, bmaj=18.47 mas, bpa=5.666 degrees
! Estimated noise=1.1748 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.000919388 Jy
! Component: 100  -  total flux cleaned = 0.00105324 Jy
! Component: 150  -  total flux cleaned = 0.00113137 Jy
! Component: 200  -  total flux cleaned = 0.00120183 Jy
! Total flux subtracted in 200 components = 0.00120183 Jy
! Clean residual min=-0.008295 max=0.006276 Jy/beam
! Clean residual mean=0.000052 rms=0.002240 Jy/beam
! Combined flux in latest and established models = 0.196819 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 116 components and 0.196819 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.068678Jy  sigma=1.009439
! Fit after  self-cal, rms=0.068675Jy  sigma=1.009309
! 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.406 mas, bmaj=6.452 mas, bpa=-3.675 degrees
! Estimated noise=1.24819 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.123217 Jy
! Component: 100  -  total flux cleaned = 0.158233 Jy
! Component: 150  -  total flux cleaned = 0.175423 Jy
! Component: 200  -  total flux cleaned = 0.185994 Jy
! Total flux subtracted in 200 components = 0.185994 Jy
! Clean residual min=-0.006400 max=0.006048 Jy/beam
! Clean residual mean=-0.000025 rms=0.001530 Jy/beam
! Combined flux in latest and established models = 0.185994 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 50 model components to the UV plane model.
! The established model now contains 50 components and 0.185994 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.027 mas, bmaj=7.75 mas, bpa=-3.411 degrees
! Estimated noise=0.90303 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.00653041 Jy
! Component: 100  -  total flux cleaned = 0.00800194 Jy
! Component: 150  -  total flux cleaned = 0.0084341 Jy
! Component: 200  -  total flux cleaned = 0.00879342 Jy
! Total flux subtracted in 200 components = 0.00879342 Jy
! Clean residual min=-0.005032 max=0.005993 Jy/beam
! Clean residual mean=0.000028 rms=0.001488 Jy/beam
! Combined flux in latest and established models = 0.194788 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 80 components and 0.194788 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=8.022 mas, bmaj=18.47 mas, bpa=5.666 degrees
! Estimated noise=1.1748 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.00163052 Jy
! Component: 100  -  total flux cleaned = 0.0019562 Jy
! Component: 150  -  total flux cleaned = 0.00209248 Jy
! Component: 200  -  total flux cleaned = 0.00219622 Jy
! Total flux subtracted in 200 components = 0.00219622 Jy
! Clean residual min=-0.008067 max=0.006656 Jy/beam
! Clean residual mean=0.000052 rms=0.002254 Jy/beam
! Combined flux in latest and established models = 0.196984 Jy
! Adding 14 model components to the UV plane model.
! The established model now contains 91 components and 0.196984 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.027 mas, bmaj=7.75 mas, bpa=-3.411 degrees
! Estimated noise=0.90303 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.000195397 Jy
! Component: 100  -  total flux cleaned = -0.000599865 Jy
! Component: 150  -  total flux cleaned = -0.000934211 Jy
! Component: 200  -  total flux cleaned = -0.00105136 Jy
! Total flux subtracted in 200 components = -0.00105136 Jy
! Clean residual min=-0.004931 max=0.005368 Jy/beam
! Clean residual mean=0.000029 rms=0.001437 Jy/beam
! Combined flux in latest and established models = 0.195933 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 107 components and 0.195933 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.068631Jy  sigma=1.009534
! Fit after  self-cal, rms=0.068626Jy  sigma=1.009287
wmodel J0331-2524_S_2005_07_20_yyk\_map.mod
! Writing 107 model components to file: J0331-2524_S_2005_07_20_yyk_map.mod
wobs J0331-2524_S_2005_07_20_yyk\_uvs.fits
! Writing UV FITS file: J0331-2524_S_2005_07_20_yyk_uvs.fits
wwins J0331-2524_S_2005_07_20_yyk\_map.win
! wwins: Wrote 2 windows to J0331-2524_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 = 0.000429038 Jy
! Component: 100  -  total flux cleaned = 0.000181924 Jy
! Component: 150  -  total flux cleaned = -5.38911e-05 Jy
! Component: 200  -  total flux cleaned = -5.57936e-05 Jy
! Component: 250  -  total flux cleaned = -5.36894e-05 Jy
! Component: 300  -  total flux cleaned = -5.37759e-05 Jy
! Component: 350  -  total flux cleaned = -5.36197e-05 Jy
! Component: 400  -  total flux cleaned = 0.00013031 Jy
! Component: 450  -  total flux cleaned = 0.000248953 Jy
! Component: 500  -  total flux cleaned = 0.000306019 Jy
! Component: 550  -  total flux cleaned = 0.000361021 Jy
! Component: 600  -  total flux cleaned = 0.000256002 Jy
! Component: 650  -  total flux cleaned = 0.000258806 Jy
! Component: 700  -  total flux cleaned = 0.000411109 Jy
! Component: 750  -  total flux cleaned = 0.000410345 Jy
! Component: 800  -  total flux cleaned = 0.000553105 Jy
! Component: 850  -  total flux cleaned = 0.00069338 Jy
! Component: 900  -  total flux cleaned = 0.000920999 Jy
! Component: 950  -  total flux cleaned = 0.00114446 Jy
! Component: 1000  -  total flux cleaned = 0.00136295 Jy
! Component: 1050  -  total flux cleaned = 0.00149054 Jy
! Component: 1100  -  total flux cleaned = 0.00161675 Jy
! Component: 1150  -  total flux cleaned = 0.00174052 Jy
! Component: 1200  -  total flux cleaned = 0.00194155 Jy
! Component: 1250  -  total flux cleaned = 0.00198112 Jy
! Component: 1300  -  total flux cleaned = 0.00217432 Jy
! Component: 1350  -  total flux cleaned = 0.00221158 Jy
! Component: 1400  -  total flux cleaned = 0.00221192 Jy
! Component: 1450  -  total flux cleaned = 0.00228535 Jy
! Component: 1500  -  total flux cleaned = 0.00242963 Jy
! Component: 1550  -  total flux cleaned = 0.0023585 Jy
! Component: 1600  -  total flux cleaned = 0.00242869 Jy
! Component: 1650  -  total flux cleaned = 0.00259987 Jy
! Component: 1700  -  total flux cleaned = 0.00249799 Jy
! Component: 1750  -  total flux cleaned = 0.00253145 Jy
! Component: 1800  -  total flux cleaned = 0.0024992 Jy
! Component: 1850  -  total flux cleaned = 0.00256334 Jy
! Component: 1900  -  total flux cleaned = 0.00256302 Jy
! Component: 1950  -  total flux cleaned = 0.00250034 Jy
! Component: 2000  -  total flux cleaned = 0.00253131 Jy
! Total flux subtracted in 2048 components = 0.00247013 Jy
! Clean residual min=-0.001730 max=0.001816 Jy/beam
! Clean residual mean=0.000012 rms=0.000652 Jy/beam
! Combined flux in latest and established models = 0.198403 Jy
keep
! Adding 169 model components to the UV plane model.
! The established model now contains 276 components and 0.198403 Jy
![Exited script file: muppet]
wmap "J0331-2524_S_2005_07_20_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.027 x 7.75 at -3.411 degrees (North through East)
! Clean map  min=-0.0033936  max=0.13809 Jy/beam
! Writing clean map to FITS file: J0331-2524_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.138087 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000644742 
device "J0331-2524_S_2005_07_20_yyk\_map.eps/VPS"
! Attempting to open device: 'J0331-2524_S_2005_07_20_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.40073 1.40073 2.80147 5.60294 11.2059 22.4117 44.8235 89.647
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.138 
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.027 x 7.75 at -3.411 degrees (North through East)
! Clean map  min=-0.0033936  max=0.13809 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0331-2524_S_2005_07_20_yyk\_map.gif/gif"
! Attempting to open device: 'J0331-2524_S_2005_07_20_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0331-2524_S_2005_07_20_yyk_uvs.log closed on Fri Jan 20 09:51:03 2006