! Started logfile: J2333-2343_S_2004_05_27_yyk_uvs.log on Wed Dec  7 00:59:52 2005
obs J2333-2343_S_2004_05_27_yyk_uve.fits
! Reading UV FITS file: J2333-2343_S_2004_05_27_yyk_uve.fits
! AN table 1: 4 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.866667 visibilities/baseline/integration-bin.
! Found source: J2333-2343
! 
! 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 1384 lines of history.
! 
! Reading 624 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 J2333-2343_S_2004_05_27_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.397117 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.
!  A total of 3 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 7 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.660631Jy  sigma=10.370202
! Fit after  self-cal, rms=0.660687Jy  sigma=10.361245
! 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.514 mas, bmaj=6.885 mas, bpa=-3.126 degrees
! Estimated noise=2.34387 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.31342 Jy
! Component: 100  -  total flux cleaned = 0.404366 Jy
! Total flux subtracted in 100 components = 0.404366 Jy
! Clean residual min=-0.020451 max=0.041910 Jy/beam
! Clean residual mean=0.000408 rms=0.008130 Jy/beam
! Combined flux in latest and established models = 0.404366 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 21 components and 0.404366 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129307Jy  sigma=2.038775
! Fit after  self-cal, rms=0.128774Jy  sigma=2.034877
! 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=2.933 mas, bmaj=8.091 mas, bpa=-3.052 degrees
! Estimated noise=1.84062 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.0595842 Jy
! Component: 100  -  total flux cleaned = 0.0848067 Jy
! Component: 150  -  total flux cleaned = 0.0950688 Jy
! Component: 200  -  total flux cleaned = 0.0965986 Jy
! Total flux subtracted in 200 components = 0.0965986 Jy
! Clean residual min=-0.021958 max=0.053412 Jy/beam
! Clean residual mean=0.000173 rms=0.009861 Jy/beam
! Combined flux in latest and established models = 0.500964 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 37 components and 0.500964 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.115844Jy  sigma=1.713623
! Fit after  self-cal, rms=0.115553Jy  sigma=1.711832
! 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.0089
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        1.07     HN        1.09     KP        0.92     
!   LA        1.04     MK        1.00     NL        1.00     OV        1.07     
!   PT        0.94     SC        0.84     
! 
! 
! 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: 0.992111
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.17     FD        0.97     HN        1.16     KP        0.88     
!   LA        1.00*    MK        0.96     NL        1.03     OV        0.99     
!   PT        0.95     SC        0.98     
! 
! 
! Fit before self-cal, rms=0.115553Jy  sigma=1.711832
! Fit after  self-cal, rms=0.112972Jy  sigma=1.655721
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.112972Jy  sigma=1.655721
! Fit after  self-cal, rms=0.113064Jy  sigma=1.655411
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.902 mas, bmaj=7.97 mas, bpa=-2.252 degrees
! Estimated noise=1.82466 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 (7, -9).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0531946 Jy
! Component: 100  -  total flux cleaned = 0.0719641 Jy
! Component: 150  -  total flux cleaned = 0.0779829 Jy
! Component: 200  -  total flux cleaned = 0.0797624 Jy
! Total flux subtracted in 200 components = 0.0797624 Jy
! Clean residual min=-0.013824 max=0.017931 Jy/beam
! Clean residual mean=0.000225 rms=0.004537 Jy/beam
! Combined flux in latest and established models = 0.580727 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 45 model components to the UV plane model.
! The established model now contains 82 components and 0.580727 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098944Jy  sigma=1.321957
! Fit after  self-cal, rms=0.096459Jy  sigma=1.285165
! 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.096459Jy  sigma=1.285165
! Fit after  self-cal, rms=0.094460Jy  sigma=1.245146
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.0118972 Jy
! Component: 100  -  total flux cleaned = 0.013015 Jy
! Component: 150  -  total flux cleaned = 0.01323 Jy
! Component: 200  -  total flux cleaned = 0.0132205 Jy
! Total flux subtracted in 200 components = 0.0132205 Jy
! Clean residual min=-0.011230 max=0.015720 Jy/beam
! Clean residual mean=0.000210 rms=0.003641 Jy/beam
! Combined flux in latest and established models = 0.593947 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 101 components and 0.593947 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.093104Jy  sigma=1.214876
! Fit after  self-cal, rms=0.092508Jy  sigma=1.207120
! 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: 2.902 x 7.97 at -2.252 degrees (North through East)
! Clean map  min=-0.010665  max=0.34116 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.092508Jy  sigma=1.207120
! Fit after  self-cal, rms=0.088019Jy  sigma=1.122069
! 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.088019Jy  sigma=1.122069
! Fit after  self-cal, rms=0.088093Jy  sigma=1.121344
! Inverting map and beam 
! Estimated beam: bmin=2.872 mas, bmaj=7.876 mas, bpa=-2.345 degrees
! Estimated noise=1.81717 mJy/beam.
! Added new window around map position (16.5, -26.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0161726 Jy
! Component: 100  -  total flux cleaned = 0.0222524 Jy
! Component: 150  -  total flux cleaned = 0.0239756 Jy
! Component: 200  -  total flux cleaned = 0.0248356 Jy
! Total flux subtracted in 200 components = 0.0248356 Jy
! Clean residual min=-0.007389 max=0.009842 Jy/beam
! Clean residual mean=0.000101 rms=0.002213 Jy/beam
! Combined flux in latest and established models = 0.618783 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 41 model components to the UV plane model.
! The established model now contains 139 components and 0.618783 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.086188Jy  sigma=1.074373
! Fit after  self-cal, rms=0.086114Jy  sigma=1.071382
! Inverting map 
! Added new window around map position (-8.5, 59.5).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00883064 Jy
! Component: 100  -  total flux cleaned = 0.00923694 Jy
! Component: 150  -  total flux cleaned = 0.00969802 Jy
! Component: 200  -  total flux cleaned = 0.00997337 Jy
! Total flux subtracted in 200 components = 0.00997337 Jy
! Clean residual min=-0.006622 max=0.007340 Jy/beam
! Clean residual mean=0.000078 rms=0.001773 Jy/beam
! Combined flux in latest and established models = 0.628756 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 36 model components to the UV plane model.
! The established model now contains 168 components and 0.628756 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.085022Jy  sigma=1.049177
! Fit after  self-cal, rms=0.084844Jy  sigma=1.048223
! Inverting map 
! Added new window around map position (1, 54).
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00568916 Jy
! Component: 100  -  total flux cleaned = 0.00659333 Jy
! Component: 150  -  total flux cleaned = 0.00709035 Jy
! Component: 200  -  total flux cleaned = 0.00741509 Jy
! Total flux subtracted in 200 components = 0.00741509 Jy
! Clean residual min=-0.006063 max=0.006228 Jy/beam
! Clean residual mean=0.000021 rms=0.001546 Jy/beam
! Combined flux in latest and established models = 0.636171 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 198 components and 0.636171 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.084115Jy  sigma=1.036089
! Fit after  self-cal, rms=0.084100Jy  sigma=1.035699
! 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.084100Jy  sigma=1.035699
! Fit after  self-cal, rms=0.082265Jy  sigma=1.053636
! 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.082265Jy  sigma=1.053636
! Fit after  self-cal, rms=0.082258Jy  sigma=1.053581
! Inverting map and beam 
! Estimated beam: bmin=2.843 mas, bmaj=7.793 mas, bpa=-1.761 degrees
! Estimated noise=1.81104 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00582686 Jy
! Component: 100  -  total flux cleaned = 0.00941992 Jy
! Component: 150  -  total flux cleaned = 0.011114 Jy
! Component: 200  -  total flux cleaned = 0.0127294 Jy
! Total flux subtracted in 200 components = 0.0127294 Jy
! Clean residual min=-0.006766 max=0.005691 Jy/beam
! Clean residual mean=-0.000025 rms=0.001639 Jy/beam
! Combined flux in latest and established models = 0.648901 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 226 components and 0.648901 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.082210Jy  sigma=1.045328
! Fit after  self-cal, rms=0.082190Jy  sigma=1.044952
! 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.833 mas, bmaj=19.29 mas, bpa=3.199 degrees
! Estimated noise=2.42358 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.00198303 Jy
! Component: 100  -  total flux cleaned = 0.00287073 Jy
! Component: 150  -  total flux cleaned = 0.00341475 Jy
! Component: 200  -  total flux cleaned = 0.00363658 Jy
! Total flux subtracted in 200 components = 0.00363658 Jy
! Clean residual min=-0.006935 max=0.006443 Jy/beam
! Clean residual mean=-0.000063 rms=0.002261 Jy/beam
! Combined flux in latest and established models = 0.652538 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 248 components and 0.652537 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.082306Jy  sigma=1.044252
! Fit after  self-cal, rms=0.082306Jy  sigma=1.044050
! 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.496 mas, bmaj=6.799 mas, bpa=-2.454 degrees
! Estimated noise=2.31373 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.312683 Jy
! Component: 100  -  total flux cleaned = 0.406621 Jy
! Component: 150  -  total flux cleaned = 0.46083 Jy
! Component: 200  -  total flux cleaned = 0.496753 Jy
! Total flux subtracted in 200 components = 0.496753 Jy
! Clean residual min=-0.012152 max=0.020804 Jy/beam
! Clean residual mean=0.000342 rms=0.004350 Jy/beam
! Combined flux in latest and established models = 0.496753 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 41 model components to the UV plane model.
! The established model now contains 41 components and 0.496753 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.843 mas, bmaj=7.793 mas, bpa=-1.761 degrees
! Estimated noise=1.81104 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.0407918 Jy
! Component: 100  -  total flux cleaned = 0.0677564 Jy
! Component: 150  -  total flux cleaned = 0.0873127 Jy
! Component: 200  -  total flux cleaned = 0.101997 Jy
! Total flux subtracted in 200 components = 0.101997 Jy
! Clean residual min=-0.009714 max=0.007975 Jy/beam
! Clean residual mean=0.000093 rms=0.003080 Jy/beam
! Combined flux in latest and established models = 0.59875 Jy
! Adding 65 model components to the UV plane model.
! The established model now contains 103 components and 0.59875 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.833 mas, bmaj=19.29 mas, bpa=3.199 degrees
! Estimated noise=2.42358 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.0193886 Jy
! Component: 100  -  total flux cleaned = 0.0310629 Jy
! Component: 150  -  total flux cleaned = 0.0388563 Jy
! Component: 200  -  total flux cleaned = 0.0442104 Jy
! Total flux subtracted in 200 components = 0.0442104 Jy
! Clean residual min=-0.007548 max=0.006418 Jy/beam
! Clean residual mean=0.000006 rms=0.002541 Jy/beam
! Combined flux in latest and established models = 0.64296 Jy
! Adding 70 model components to the UV plane model.
! The established model now contains 163 components and 0.64296 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.843 mas, bmaj=7.793 mas, bpa=-1.761 degrees
! Estimated noise=1.81104 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00291406 Jy
! Component: 100  -  total flux cleaned = 0.00381 Jy
! Component: 150  -  total flux cleaned = 0.00481046 Jy
! Component: 200  -  total flux cleaned = 0.00555914 Jy
! Total flux subtracted in 200 components = 0.00555914 Jy
! Clean residual min=-0.006351 max=0.005526 Jy/beam
! Clean residual mean=-0.000018 rms=0.001596 Jy/beam
! Combined flux in latest and established models = 0.648519 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 35 model components to the UV plane model.
! The established model now contains 197 components and 0.648519 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.082373Jy  sigma=1.046006
! Fit after  self-cal, rms=0.082378Jy  sigma=1.045506
wmodel J2333-2343_S_2004_05_27_yyk\_map.mod
! Writing 197 model components to file: J2333-2343_S_2004_05_27_yyk_map.mod
wobs J2333-2343_S_2004_05_27_yyk\_uvs.fits
! Writing UV FITS file: J2333-2343_S_2004_05_27_yyk_uvs.fits
wwins J2333-2343_S_2004_05_27_yyk\_map.win
! wwins: Wrote 5 windows to J2333-2343_S_2004_05_27_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.00206678 Jy
! Component: 100  -  total flux cleaned = -0.00256664 Jy
! Component: 150  -  total flux cleaned = -0.00265954 Jy
! Component: 200  -  total flux cleaned = -0.00257692 Jy
! Component: 250  -  total flux cleaned = -0.00234164 Jy
! Component: 300  -  total flux cleaned = -0.00204193 Jy
! Component: 350  -  total flux cleaned = -0.00204117 Jy
! Component: 400  -  total flux cleaned = -0.00163553 Jy
! Component: 450  -  total flux cleaned = -0.00150618 Jy
! Component: 500  -  total flux cleaned = -0.00125502 Jy
! Component: 550  -  total flux cleaned = -0.00101368 Jy
! Component: 600  -  total flux cleaned = -0.000780078 Jy
! Component: 650  -  total flux cleaned = -0.000553223 Jy
! Component: 700  -  total flux cleaned = -0.000222578 Jy
! Component: 750  -  total flux cleaned = -8.34489e-06 Jy
! Component: 800  -  total flux cleaned = 0.000251978 Jy
! Component: 850  -  total flux cleaned = 0.000505121 Jy
! Component: 900  -  total flux cleaned = 0.000899368 Jy
! Component: 950  -  total flux cleaned = 0.0012835 Jy
! Component: 1000  -  total flux cleaned = 0.00151957 Jy
! Component: 1050  -  total flux cleaned = 0.0019338 Jy
! Component: 1100  -  total flux cleaned = 0.00238454 Jy
! Component: 1150  -  total flux cleaned = 0.0027379 Jy
! Component: 1200  -  total flux cleaned = 0.00321485 Jy
! Component: 1250  -  total flux cleaned = 0.00368248 Jy
! Component: 1300  -  total flux cleaned = 0.0040999 Jy
! Component: 1350  -  total flux cleaned = 0.00450976 Jy
! Component: 1400  -  total flux cleaned = 0.00503328 Jy
! Component: 1450  -  total flux cleaned = 0.00550768 Jy
! Component: 1500  -  total flux cleaned = 0.00593593 Jy
! Component: 1550  -  total flux cleaned = 0.0065089 Jy
! Component: 1600  -  total flux cleaned = 0.00692167 Jy
! Component: 1650  -  total flux cleaned = 0.00743903 Jy
! Component: 1700  -  total flux cleaned = 0.00783892 Jy
! Component: 1750  -  total flux cleaned = 0.00830474 Jy
! Component: 1800  -  total flux cleaned = 0.00883356 Jy
! Component: 1850  -  total flux cleaned = 0.00918086 Jy
! Component: 1900  -  total flux cleaned = 0.00959208 Jy
! Component: 1950  -  total flux cleaned = 0.00996447 Jy
! Component: 2000  -  total flux cleaned = 0.0103649 Jy
! Total flux subtracted in 2048 components = 0.0107929 Jy
! Clean residual min=-0.002204 max=0.002040 Jy/beam
! Clean residual mean=0.000054 rms=0.000658 Jy/beam
! Combined flux in latest and established models = 0.659312 Jy
keep
! Adding 118 model components to the UV plane model.
! The established model now contains 315 components and 0.659312 Jy
![Exited script file: muppet]
wmap "J2333-2343_S_2004_05_27_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.843 x 7.793 at -1.761 degrees (North through East)
! Clean map  min=-0.0044594  max=0.34821 Jy/beam
! Writing clean map to FITS file: J2333-2343_S_2004_05_27_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.348209 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00065091 
device "J2333-2343_S_2004_05_27_yyk\_map.eps/VPS"
! Attempting to open device: 'J2333-2343_S_2004_05_27_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.560792 0.560792 1.12158 2.24317 4.48634 8.97268 17.9454 35.8907 71.7814
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.348 
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.843 x 7.793 at -1.761 degrees (North through East)
! Clean map  min=-0.0044594  max=0.34821 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J2333-2343_S_2004_05_27_yyk\_map.gif/gif"
! Attempting to open device: 'J2333-2343_S_2004_05_27_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J2333-2343_S_2004_05_27_yyk_uvs.log closed on Wed Dec  7 00:59:56 2005