! Started logfile: J1339-2401_S_1997_07_02_yyk_uvs.log on Sun Jan  7 18:23:02 2007
obs J1339-2401_S_1997_07_02_yyk_uva.fits
! Reading UV FITS file: J1339-2401_S_1997_07_02_yyk_uva.fits
! AN table 1: 143 integrations on 45 of 45 possible baselines.
! Apparent sampling: 0.880186 visibilities/baseline/integration-bin.
! Found source: J1339-2401
! 
! 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.22447e+09        8e+06          1        8e+06
!  02        2  2.23447e+09        8e+06          1        8e+06
!  03        3  2.29447e+09        8e+06          1        8e+06
!  04        4  2.32447e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 754 lines of history.
! 
! Reading 22656 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 J1339-2401_S_1997_07_02_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.888635 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.626 mas, bmaj=6.386 mas, bpa=-0.5433 degrees
! Estimated noise=2281.05 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.693794 Jy
! Component: 100  -  total flux cleaned = 0.786383 Jy
! Total flux subtracted in 100 components = 0.786383 Jy
! Clean residual min=-0.024065 max=0.030143 Jy/beam
! Clean residual mean=0.000219 rms=0.007258 Jy/beam
! Combined flux in latest and established models = 0.786383 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 0.786383 Jy
! 
! Correcting IF 1.
!  A total of 286 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 91 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 91 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 91 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.370808Jy  sigma=0.001339
! Fit after  self-cal, rms=0.370574Jy  sigma=0.001338
! Inverting map and beam 
! Estimated beam: bmin=2.626 mas, bmaj=6.386 mas, bpa=-0.5433 degrees
! Estimated noise=2281.05 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.528 mas, bmaj=8.969 mas, bpa=-4.682 degrees
! Estimated noise=1232.62 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.00163834 Jy
! Component: 100  -  total flux cleaned = 0.00117934 Jy
! Component: 150  -  total flux cleaned = 0.00076118 Jy
! Component: 200  -  total flux cleaned = 0.000168746 Jy
! Total flux subtracted in 200 components = 0.000168746 Jy
! Clean residual min=-0.016796 max=0.025724 Jy/beam
! Clean residual mean=0.000284 rms=0.005578 Jy/beam
! Combined flux in latest and established models = 0.786551 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 18 components and 0.786551 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.369254Jy  sigma=0.001335
! Fit after  self-cal, rms=0.369247Jy  sigma=0.001335
! 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.528 x 8.969 at -4.682 degrees (North through East)
! Clean map  min=-0.016437  max=0.78582 Jy/beam
if(peak(flux) < thresh*2)
  selflims ampcor_selflim
  end if
gscale
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Amplitude normalization factor in sub-array 1: 1.02549
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.11     HN        0.91     KP        0.89     
!   LA        0.99     MK        1.00     NL        1.00*    OV        1.10     
!   PT        0.96     SC        0.81     
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.98882
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        1.16     HN        0.99     KP        0.97     
!   LA        1.09     MK        1.05     NL        0.97     OV        1.03     
!   PT        0.95     SC        0.89     
! 
! 
! Correcting IF 3.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 1.03935
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.07     HN        0.93     KP        0.92     
!   LA        0.83     MK        0.90     NL        0.92     OV        0.94     
!   PT        1.09     SC        1.02     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Amplitude normalization factor in sub-array 1: 0.9916
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.12     HN        1.11     KP        0.95     
!   LA        0.91     MK        1.06     NL        1.05     OV        0.95     
!   PT        0.91     SC        1.01     
! 
! 
! Fit before self-cal, rms=0.369247Jy  sigma=0.001335
! Fit after  self-cal, rms=0.352612Jy  sigma=0.001298
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.352612Jy  sigma=0.001298
! Fit after  self-cal, rms=0.352609Jy  sigma=0.001298
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.492 mas, bmaj=8.806 mas, bpa=-3.619 degrees
! Estimated noise=1242.28 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.0127167 Jy
! Component: 100  -  total flux cleaned = 0.0149891 Jy
! Component: 150  -  total flux cleaned = 0.0154423 Jy
! Component: 200  -  total flux cleaned = 0.0157225 Jy
! Total flux subtracted in 200 components = 0.0157225 Jy
! Clean residual min=-0.006684 max=0.005846 Jy/beam
! Clean residual mean=-0.000073 rms=0.001723 Jy/beam
! Combined flux in latest and established models = 0.802274 Jy
! Performing phase self-cal over 10 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 34 components and 0.802274 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352181Jy  sigma=0.001296
! Fit after  self-cal, rms=0.352180Jy  sigma=0.001296
! 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.352180Jy  sigma=0.001296
! Fit after  self-cal, rms=0.331418Jy  sigma=0.001220
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.00465666 Jy
! Component: 100  -  total flux cleaned = 0.00380895 Jy
! Component: 150  -  total flux cleaned = 0.00300425 Jy
! Component: 200  -  total flux cleaned = 0.00238742 Jy
! Total flux subtracted in 200 components = 0.00238742 Jy
! Clean residual min=-0.006758 max=0.006610 Jy/beam
! Clean residual mean=-0.000043 rms=0.001799 Jy/beam
! Combined flux in latest and established models = 0.804661 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 43 components and 0.804661 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.331054Jy  sigma=0.001219
! Fit after  self-cal, rms=0.328317Jy  sigma=0.001210
! 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.492 x 8.806 at -3.619 degrees (North through East)
! Clean map  min=-0.0065972  max=0.80696 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.328317Jy  sigma=0.001210
! Fit after  self-cal, rms=0.322008Jy  sigma=0.001201
! 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.322008Jy  sigma=0.001201
! Fit after  self-cal, rms=0.321434Jy  sigma=0.001199
! Inverting map and beam 
! Estimated beam: bmin=3.455 mas, bmaj=8.779 mas, bpa=-3.429 degrees
! Estimated noise=1237.34 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.00194366 Jy
! Component: 100  -  total flux cleaned = 0.0020634 Jy
! Component: 150  -  total flux cleaned = 0.00216547 Jy
! Component: 200  -  total flux cleaned = 0.00225378 Jy
! Total flux subtracted in 200 components = 0.00225378 Jy
! Clean residual min=-0.005694 max=0.004798 Jy/beam
! Clean residual mean=-0.000163 rms=0.001374 Jy/beam
! Combined flux in latest and established models = 0.806915 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 57 components and 0.806915 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.321414Jy  sigma=0.001199
! Fit after  self-cal, rms=0.321251Jy  sigma=0.001198
! 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.321251Jy  sigma=0.001198
! Fit after  self-cal, rms=0.320866Jy  sigma=0.001196
! 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.320866Jy  sigma=0.001196
! Fit after  self-cal, rms=0.320820Jy  sigma=0.001196
! Inverting map and beam 
! Estimated beam: bmin=3.446 mas, bmaj=8.756 mas, bpa=-3.327 degrees
! Estimated noise=1238.26 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.0021775 Jy
! Component: 100  -  total flux cleaned = 0.00238722 Jy
! Component: 150  -  total flux cleaned = 0.00247375 Jy
! Component: 200  -  total flux cleaned = 0.00255183 Jy
! Total flux subtracted in 200 components = 0.00255183 Jy
! Clean residual min=-0.005760 max=0.004729 Jy/beam
! Clean residual mean=-0.000163 rms=0.001354 Jy/beam
! Combined flux in latest and established models = 0.809467 Jy
! Performing phase self-cal over 0.5 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 62 components and 0.809467 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.320803Jy  sigma=0.001196
! Fit after  self-cal, rms=0.320782Jy  sigma=0.001196
! 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.587 mas, bmaj=18.86 mas, bpa=4.685 degrees
! Estimated noise=1544.61 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.00127909 Jy
! Component: 100  -  total flux cleaned = 0.00128283 Jy
! Component: 150  -  total flux cleaned = 0.00131812 Jy
! Component: 200  -  total flux cleaned = 0.00132111 Jy
! Total flux subtracted in 200 components = 0.00132111 Jy
! Clean residual min=-0.007611 max=0.005418 Jy/beam
! Clean residual mean=-0.000307 rms=0.001690 Jy/beam
! Combined flux in latest and established models = 0.810788 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 64 components and 0.810788 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.320787Jy  sigma=0.001196
! Fit after  self-cal, rms=0.320769Jy  sigma=0.001196
! 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.596 mas, bmaj=6.365 mas, bpa=0.2191 degrees
! Estimated noise=2256.55 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = 0.697539 Jy
! Component: 100  -  total flux cleaned = 0.792754 Jy
! Component: 150  -  total flux cleaned = 0.805963 Jy
! Component: 200  -  total flux cleaned = 0.806966 Jy
! Total flux subtracted in 200 components = 0.806966 Jy
! Clean residual min=-0.011656 max=0.010686 Jy/beam
! Clean residual mean=-0.000049 rms=0.002718 Jy/beam
! Combined flux in latest and established models = 0.806966 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 17 model components to the UV plane model.
! The established model now contains 17 components and 0.806966 Jy
! Inverting map and beam 
! Estimated beam: bmin=3.446 mas, bmaj=8.756 mas, bpa=-3.327 degrees
! Estimated noise=1238.26 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.00199087 Jy
! Component: 100  -  total flux cleaned = 0.00199628 Jy
! Component: 150  -  total flux cleaned = 0.00209093 Jy
! Component: 200  -  total flux cleaned = 0.00217108 Jy
! Total flux subtracted in 200 components = 0.00217108 Jy
! Clean residual min=-0.005821 max=0.004699 Jy/beam
! Clean residual mean=-0.000163 rms=0.001383 Jy/beam
! Combined flux in latest and established models = 0.809137 Jy
! Adding 12 model components to the UV plane model.
! The established model now contains 27 components and 0.809137 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.587 mas, bmaj=18.86 mas, bpa=4.685 degrees
! Estimated noise=1544.61 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.0017954 Jy
! Component: 100  -  total flux cleaned = 0.00179548 Jy
! Component: 150  -  total flux cleaned = 0.0017556 Jy
! Component: 200  -  total flux cleaned = 0.00168679 Jy
! Total flux subtracted in 200 components = 0.00168679 Jy
! Clean residual min=-0.007689 max=0.005459 Jy/beam
! Clean residual mean=-0.000308 rms=0.001700 Jy/beam
! Combined flux in latest and established models = 0.810823 Jy
! Adding 7 model components to the UV plane model.
! The established model now contains 32 components and 0.810823 Jy
! Inverting map 
uvtaper 0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=3.446 mas, bmaj=8.756 mas, bpa=-3.327 degrees
! Estimated noise=1238.26 mJy/beam.
! clean: niter=200  gain=0.04  cutoff=0
! Component: 050  -  total flux cleaned = -0.00105545 Jy
! Component: 100  -  total flux cleaned = -0.00105287 Jy
! Component: 150  -  total flux cleaned = -0.00110544 Jy
! Component: 200  -  total flux cleaned = -0.00114954 Jy
! Total flux subtracted in 200 components = -0.00114954 Jy
! Clean residual min=-0.005780 max=0.004699 Jy/beam
! Clean residual mean=-0.000164 rms=0.001356 Jy/beam
! Combined flux in latest and established models = 0.809674 Jy
selfcal false, false, phase_soltime
! Performing phase self-cal over 0.5 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 41 components and 0.809674 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.320789Jy  sigma=0.001196
! Fit after  self-cal, rms=0.320779Jy  sigma=0.001196
wmodel J1339-2401_S_1997_07_02_yyk\_map.mod
! Writing 41 model components to file: J1339-2401_S_1997_07_02_yyk_map.mod
wobs J1339-2401_S_1997_07_02_yyk\_uvs.fits
! Writing UV FITS file: J1339-2401_S_1997_07_02_yyk_uvs.fits
wwins J1339-2401_S_1997_07_02_yyk\_map.win
! wwins: Wrote 1 windows to J1339-2401_S_1997_07_02_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.00158871 Jy
! Component: 100  -  total flux cleaned = -0.00224019 Jy
! Component: 150  -  total flux cleaned = -0.00323536 Jy
! Component: 200  -  total flux cleaned = -0.00402995 Jy
! Component: 250  -  total flux cleaned = -0.00479159 Jy
! Component: 300  -  total flux cleaned = -0.00532322 Jy
! Component: 350  -  total flux cleaned = -0.00570574 Jy
! Component: 400  -  total flux cleaned = -0.00625771 Jy
! Component: 450  -  total flux cleaned = -0.0067935 Jy
! Component: 500  -  total flux cleaned = -0.00731461 Jy
! Component: 550  -  total flux cleaned = -0.00782146 Jy
! Component: 600  -  total flux cleaned = -0.00842689 Jy
! Component: 650  -  total flux cleaned = -0.00891053 Jy
! Component: 700  -  total flux cleaned = -0.0094372 Jy
! Component: 750  -  total flux cleaned = -0.00995176 Jy
! Component: 800  -  total flux cleaned = -0.0103051 Jy
! Component: 850  -  total flux cleaned = -0.0106518 Jy
! Component: 900  -  total flux cleaned = -0.0110408 Jy
! Component: 950  -  total flux cleaned = -0.011469 Jy
! Component: 1000  -  total flux cleaned = -0.0117961 Jy
! Component: 1050  -  total flux cleaned = -0.0122107 Jy
! Component: 1100  -  total flux cleaned = -0.0126184 Jy
! Component: 1150  -  total flux cleaned = -0.012975 Jy
! Component: 1200  -  total flux cleaned = -0.0133699 Jy
! Component: 1250  -  total flux cleaned = -0.0136733 Jy
! Component: 1300  -  total flux cleaned = -0.013973 Jy
! Component: 1350  -  total flux cleaned = -0.0141839 Jy
! Component: 1400  -  total flux cleaned = -0.0145168 Jy
! Component: 1450  -  total flux cleaned = -0.0147628 Jy
! Component: 1500  -  total flux cleaned = -0.015086 Jy
! Component: 1550  -  total flux cleaned = -0.0153257 Jy
! Component: 1600  -  total flux cleaned = -0.0156017 Jy
! Component: 1650  -  total flux cleaned = -0.0158359 Jy
! Component: 1700  -  total flux cleaned = -0.0161446 Jy
! Component: 1750  -  total flux cleaned = -0.0164115 Jy
! Component: 1800  -  total flux cleaned = -0.0167503 Jy
! Component: 1850  -  total flux cleaned = -0.0169734 Jy
! Component: 1900  -  total flux cleaned = -0.017341 Jy
! Component: 1950  -  total flux cleaned = -0.017595 Jy
! Component: 2000  -  total flux cleaned = -0.0178465 Jy
! Total flux subtracted in 2048 components = -0.0181304 Jy
! Clean residual min=-0.002122 max=0.001951 Jy/beam
! Clean residual mean=-0.000084 rms=0.000712 Jy/beam
! Combined flux in latest and established models = 0.791543 Jy
keep
! Adding 125 model components to the UV plane model.
! The established model now contains 166 components and 0.791543 Jy
![Exited script file: muppet]
wmap "J1339-2401_S_1997_07_02_yyk\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.446 x 8.756 at -3.327 degrees (North through East)
! Clean map  min=-0.0049158  max=0.80329 Jy/beam
! Writing clean map to FITS file: J1339-2401_S_1997_07_02_yyk_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.803292 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000705743 
device "J1339-2401_S_1997_07_02_yyk\_map.eps/VPS"
! Attempting to open device: 'J1339-2401_S_1997_07_02_yyk_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.263569 0.263569 0.527138 1.05428 2.10855 4.2171 8.4342 16.8684 33.7368 67.4736
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0021 
print "peak=",int(peak_flux*1000)/1000
! peak= 0.803 
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.446 x 8.756 at -3.327 degrees (North through East)
! Clean map  min=-0.0049158  max=0.80329 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1339-2401_S_1997_07_02_yyk\_map.gif/gif"
! Attempting to open device: 'J1339-2401_S_1997_07_02_yyk_map.gif/gif'
mapplot cln
quit
! Quitting program
! Log file J1339-2401_S_1997_07_02_yyk_uvs.log closed on Sun Jan  7 18:23:09 2007