|
|||
NRAO Home > CASA > CASA Cookbook and User Reference Manual |
|
8.3.6 Spectral Smoothing
Smoothing on data can be done as follows:
scantable.smooth(kernel, # type of smoothing: ’hanning’ (default), ’gaussian’, ’boxcar’
width, # width in pixls (ignored for hanning); FWHM for gaussian.
insitu) # if False (default), do smoothing in-situ; otherwise,
# make new scantable
Example:
# spave is an averaged spectrum
spave.smooth(’boxcar’,5) # do a 5 pixel boxcar smooth on the spectrum
sd.plotter.plot(spave) # should see smoothed spectrum
width, # width in pixls (ignored for hanning); FWHM for gaussian.
insitu) # if False (default), do smoothing in-situ; otherwise,
# make new scantable
Example:
# spave is an averaged spectrum
spave.smooth(’boxcar’,5) # do a 5 pixel boxcar smooth on the spectrum
sd.plotter.plot(spave) # should see smoothed spectrum
More information about CASA may be found at the
CASA web page
Copyright © 2010 Associated Universities Inc., Washington, D.C.
This code is available under the terms of the GNU General Public Lincense
Home |
Contact Us |
Directories |
Site Map |
Help |
Privacy Policy |
Search