! Started logfile: J0505-1615_S_2005_07_08_yyk_uvs.log on Fri Jan 20 09:56:17 2006
obs J0505-1615_S_2005_07_08_yyk_uve.fits
! Reading UV FITS file: J0505-1615_S_2005_07_08_yyk_uve.fits
! AN table 1: 11 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.824242 visibilities/baseline/integration-bin.
! Found source: J0505-1615
! 
! 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 1412 lines of history.
! 
! Reading 1632 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 J0505-1615_S_2005_07_08_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.16982 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.678 mas, bmaj=6.85 mas, bpa=-9.947 degrees
! Estimated noise=1.50646 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.127794 Jy
! Component: 100  -  total flux cleaned = 0.152012 Jy
! Total flux subtracted in 100 components = 0.152012 Jy
! Clean residual min=-0.006480 max=0.006487 Jy/beam
! Clean residual mean=-0.000010 rms=0.001954 Jy/beam
! Combined flux in latest and established models = 0.152012 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.152012 Jy
! 
! Correcting IF 1.
!  A total of 15 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 18 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.071031Jy  sigma=1.080901
! Fit after  self-cal, rms=0.070870Jy  sigma=1.077811
! Inverting map and beam 
! Estimated beam: bmin=2.678 mas, bmaj=6.85 mas, bpa=-9.947 degrees
! Estimated noise=1.50646 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.343 mas, bmaj=8.744 mas, bpa=-10.49 degrees
! Estimated noise=1.05364 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.00781883 Jy
! Component: 100  -  total flux cleaned = 0.00975028 Jy
! Component: 150  -  total flux cleaned = 0.00988774 Jy
! Component: 200  -  total flux cleaned = 0.00984183 Jy
! Total flux subtracted in 200 components = 0.00984182 Jy
! Clean residual min=-0.003972 max=0.004273 Jy/beam
! Clean residual mean=-0.000044 rms=0.001169 Jy/beam
! Combined flux in latest and established models = 0.161854 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 23 model components to the UV plane model.
! The established model now contains 41 components and 0.161854 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.069819Jy  sigma=1.067380
! Fit after  self-cal, rms=0.069819Jy  sigma=1.067333
! 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.343 x 8.744 at -10.49 degrees (North through East)
! Clean map  min=-0.0038312  max=0.14732 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.03148
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.96     FD        1.01     HN        0.95     KP        0.97     
!   LA        1.08     MK        0.90     NL        0.90     OV        0.99     
!   PT        1.08     SC        0.87     
! 
! 
! Correcting IF 2.
!  Amplitude normalization factor in sub-array 1: 0.986122
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.98     HN        1.01     KP        1.04     
!   LA        1.07     MK        0.95     NL        0.97     OV        1.04     
!   PT        1.05     SC        1.01     
! 
! 
! 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.069819Jy  sigma=1.067333
! Fit after  self-cal, rms=0.069181Jy  sigma=1.060737
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.069181Jy  sigma=1.060737
! Fit after  self-cal, rms=0.069177Jy  sigma=1.060717
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.249 mas, bmaj=8.518 mas, bpa=-10.58 degrees
! Estimated noise=1.06113 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.00400997 Jy
! Component: 100  -  total flux cleaned = 0.00539951 Jy
! Component: 150  -  total flux cleaned = 0.00564739 Jy
! Component: 200  -  total flux cleaned = 0.00585674 Jy
! Total flux subtracted in 200 components = 0.00585674 Jy
! Clean residual min=-0.004398 max=0.004013 Jy/beam
! Clean residual mean=-0.000013 rms=0.001118 Jy/beam
! Combined flux in latest and established models = 0.167711 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 62 components and 0.167711 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.068850Jy  sigma=1.057864
! Fit after  self-cal, rms=0.068851Jy  sigma=1.057839
! 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.068851Jy  sigma=1.057839
! Fit after  self-cal, rms=0.067053Jy  sigma=1.023697
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.000817237 Jy
! Component: 100  -  total flux cleaned = 0.000955238 Jy
! Component: 150  -  total flux cleaned = 0.00104335 Jy
! Component: 200  -  total flux cleaned = 0.00106825 Jy
! Total flux subtracted in 200 components = 0.00106825 Jy
! Clean residual min=-0.004431 max=0.003916 Jy/beam
! Clean residual mean=-0.000013 rms=0.001120 Jy/beam
! Combined flux in latest and established models = 0.168779 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 70 components and 0.168779 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.066966Jy  sigma=1.023270
! Fit after  self-cal, rms=0.066924Jy  sigma=1.021471
! 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.249 x 8.518 at -10.58 degrees (North through East)
! Clean map  min=-0.0042623  max=0.14789 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.066924Jy  sigma=1.021471
! Fit after  self-cal, rms=0.065969Jy  sigma=1.007129
! 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.065969Jy  sigma=1.007129
! Fit after  self-cal, rms=0.065982Jy  sigma=1.006964
! Inverting map and beam 
! Estimated beam: bmin=3.207 mas, bmaj=8.356 mas, bpa=-10.28 degrees
! Estimated noise=1.06091 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00186193 Jy
! Component: 100  -  total flux cleaned = 0.00221484 Jy
! Component: 150  -  total flux cleaned = 0.00237431 Jy
! Component: 200  -  total flux cleaned = 0.00243177 Jy
! Total flux subtracted in 200 components = 0.00243177 Jy
! Clean residual min=-0.004289 max=0.004053 Jy/beam
! Clean residual mean=-0.000016 rms=0.001088 Jy/beam
! Combined flux in latest and established models = 0.171211 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 71 components and 0.171211 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.065863Jy  sigma=1.006178
! Fit after  self-cal, rms=0.065868Jy  sigma=1.006162
! 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.065868Jy  sigma=1.006162
! Fit after  self-cal, rms=0.066592Jy  sigma=0.997032
! 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.066592Jy  sigma=0.997032
! Fit after  self-cal, rms=0.066598Jy  sigma=0.996970
! Inverting map and beam 
! Estimated beam: bmin=3.21 mas, bmaj=8.274 mas, bpa=-9.871 degrees
! Estimated noise=1.07497 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00248261 Jy
! Component: 100  -  total flux cleaned = 0.00292805 Jy
! Component: 150  -  total flux cleaned = 0.00298455 Jy
! Component: 200  -  total flux cleaned = 0.00300917 Jy
! Total flux subtracted in 200 components = 0.00300917 Jy
! Clean residual min=-0.003621 max=0.003889 Jy/beam
! Clean residual mean=-0.000029 rms=0.001090 Jy/beam
! Combined flux in latest and established models = 0.17422 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 81 components and 0.17422 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.066411Jy  sigma=0.995798
! Fit after  self-cal, rms=0.066413Jy  sigma=0.995789
! 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.851 mas, bmaj=16.28 mas, bpa=-7.387 degrees
! Estimated noise=1.37071 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.00027275 Jy
! Component: 100  -  total flux cleaned = 0.00023469 Jy
! Component: 150  -  total flux cleaned = 0.000230839 Jy
! Component: 200  -  total flux cleaned = 0.00020765 Jy
! Total flux subtracted in 200 components = 0.00020765 Jy
! Clean residual min=-0.004895 max=0.003867 Jy/beam
! Clean residual mean=-0.000051 rms=0.001288 Jy/beam
! Combined flux in latest and established models = 0.174428 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 84 components and 0.174428 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.066398Jy  sigma=0.995911
! Fit after  self-cal, rms=0.066392Jy  sigma=0.995840
! 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.627 mas, bmaj=6.717 mas, bpa=-9.711 degrees
! Estimated noise=1.50152 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.129031 Jy
! Component: 100  -  total flux cleaned = 0.155399 Jy
! Component: 150  -  total flux cleaned = 0.165889 Jy
! Component: 200  -  total flux cleaned = 0.171264 Jy
! Total flux subtracted in 200 components = 0.171264 Jy
! Clean residual min=-0.005681 max=0.005934 Jy/beam
! Clean residual mean=-0.000009 rms=0.001686 Jy/beam
! Combined flux in latest and established models = 0.171264 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 33 model components to the UV plane model.
! The established model now contains 33 components and 0.171264 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.21 mas, bmaj=8.274 mas, bpa=-9.871 degrees
! Estimated noise=1.07497 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.0024537 Jy
! Component: 100  -  total flux cleaned = 0.0027252 Jy
! Component: 150  -  total flux cleaned = 0.00281943 Jy
! Component: 200  -  total flux cleaned = 0.00285941 Jy
! Total flux subtracted in 200 components = 0.00285941 Jy
! Clean residual min=-0.003739 max=0.003916 Jy/beam
! Clean residual mean=-0.000029 rms=0.001098 Jy/beam
! Combined flux in latest and established models = 0.174124 Jy
! Adding 9 model components to the UV plane model.
! The established model now contains 39 components and 0.174124 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.851 mas, bmaj=16.28 mas, bpa=-7.387 degrees
! Estimated noise=1.37071 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.000284544 Jy
! Component: 100  -  total flux cleaned = 0.00023306 Jy
! Component: 150  -  total flux cleaned = 0.00022797 Jy
! Component: 200  -  total flux cleaned = 0.000224756 Jy
! Total flux subtracted in 200 components = 0.000224756 Jy
! Clean residual min=-0.004868 max=0.003841 Jy/beam
! Clean residual mean=-0.000052 rms=0.001288 Jy/beam
! Combined flux in latest and established models = 0.174349 Jy
! Adding 4 model components to the UV plane model.
! The established model now contains 43 components and 0.174349 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.21 mas, bmaj=8.274 mas, bpa=-9.871 degrees
! Estimated noise=1.07497 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -7.92017e-05 Jy
! Component: 100  -  total flux cleaned = -7.85695e-05 Jy
! Component: 150  -  total flux cleaned = -7.88049e-05 Jy
! Component: 200  -  total flux cleaned = -7.83072e-05 Jy
! Total flux subtracted in 200 components = -7.83072e-05 Jy
! Clean residual min=-0.003671 max=0.003990 Jy/beam
! Clean residual mean=-0.000029 rms=0.001091 Jy/beam
! Combined flux in latest and established models = 0.17427 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 47 components and 0.17427 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.066391Jy  sigma=0.995735
! Fit after  self-cal, rms=0.066391Jy  sigma=0.995645
wmodel J0505-1615_S_2005_07_08_yyk\_map.mod
! Writing 47 model components to file: J0505-1615_S_2005_07_08_yyk_map.mod
wobs J0505-1615_S_2005_07_08_yyk\_uvs.fits
! Writing UV FITS file: J0505-1615_S_2005_07_08_yyk_uvs.fits
wwins J0505-1615_S_2005_07_08_yyk\_map.win
! wwins: Wrote 1 windows to J0505-1615_S_2005_07_08_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.00110909 Jy
! Component: 100  -  total flux cleaned = 0.00156733 Jy
! Component: 150  -  total flux cleaned = 0.00205851 Jy
! Component: 200  -  total flux cleaned = 0.00235279 Jy
! Component: 250  -  total flux cleaned = 0.00291973 Jy
! Component: 300  -  total flux cleaned = 0.00324831 Jy
! Component: 350  -  total flux cleaned = 0.00372643 Jy
! Component: 400  -  total flux cleaned = 0.00398307 Jy
! Component: 450  -  total flux cleaned = 0.00403372 Jy
! Component: 500  -  total flux cleaned = 0.0042773 Jy
! Component: 550  -  total flux cleaned = 0.00437149 Jy
! Component: 600  -  total flux cleaned = 0.00446508 Jy
! Component: 650  -  total flux cleaned = 0.00460195 Jy
! Component: 700  -  total flux cleaned = 0.00460191 Jy
! Component: 750  -  total flux cleaned = 0.00451465 Jy
! Component: 800  -  total flux cleaned = 0.00447248 Jy
! Component: 850  -  total flux cleaned = 0.00451451 Jy
! Component: 900  -  total flux cleaned = 0.00443161 Jy
! Component: 950  -  total flux cleaned = 0.00434974 Jy
! Component: 1000  -  total flux cleaned = 0.00430975 Jy
! Component: 1050  -  total flux cleaned = 0.00430952 Jy
! Component: 1100  -  total flux cleaned = 0.00446375 Jy
! Component: 1150  -  total flux cleaned = 0.00438731 Jy
! Component: 1200  -  total flux cleaned = 0.00453752 Jy
! Component: 1250  -  total flux cleaned = 0.00446365 Jy
! Component: 1300  -  total flux cleaned = 0.0045002 Jy
! Component: 1350  -  total flux cleaned = 0.00453618 Jy
! Component: 1400  -  total flux cleaned = 0.00453623 Jy
! Component: 1450  -  total flux cleaned = 0.00467499 Jy
! Component: 1500  -  total flux cleaned = 0.00463973 Jy
! Component: 1550  -  total flux cleaned = 0.00470716 Jy
! Component: 1600  -  total flux cleaned = 0.00470655 Jy
! Component: 1650  -  total flux cleaned = 0.00470689 Jy
! Component: 1700  -  total flux cleaned = 0.00480465 Jy
! Component: 1750  -  total flux cleaned = 0.00490071 Jy
! Component: 1800  -  total flux cleaned = 0.00496374 Jy
! Component: 1850  -  total flux cleaned = 0.0049326 Jy
! Component: 1900  -  total flux cleaned = 0.00514881 Jy
! Component: 1950  -  total flux cleaned = 0.00508765 Jy
! Component: 2000  -  total flux cleaned = 0.00511813 Jy
! Total flux subtracted in 2048 components = 0.00514835 Jy
! Clean residual min=-0.002203 max=0.002073 Jy/beam
! Clean residual mean=-0.000018 rms=0.000619 Jy/beam
! Combined flux in latest and established models = 0.179419 Jy
keep
! Adding 137 model components to the UV plane model.
! The established model now contains 184 components and 0.179419 Jy
![Exited script file: muppet]
wmap "J0505-1615_S_2005_07_08_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.21 x 8.274 at -9.871 degrees (North through East)
! Clean map  min=-0.0028023  max=0.14829 Jy/beam
! Writing clean map to FITS file: J0505-1615_S_2005_07_08_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.14829 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00061847 
device "J0505-1615_S_2005_07_08_yyk\_map.eps/VPS"
! Attempting to open device: 'J0505-1615_S_2005_07_08_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -1.2512 1.2512 2.50241 5.00482 10.0096 20.0193 40.0385 80.077
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0018 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.148 
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.21 x 8.274 at -9.871 degrees (North through East)
! Clean map  min=-0.0028023  max=0.14829 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0505-1615_S_2005_07_08_yyk\_map.gif/gif"
! Attempting to open device: 'J0505-1615_S_2005_07_08_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J0505-1615_S_2005_07_08_yyk_uvs.log closed on Fri Jan 20 09:56:21 2006