|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
sd.scantable.smooth - Function
5.1.2 Smooth the spectra
Description
Smooth the spectrum by the specified kernel (conserving flux).
The user should specify a type of smoothing kernel. Supported types are ’hanning’ (default), ’gaussian’, ’boxcar’, ’rmedian’, or ’poly’. The width of the kernel in pixel can be specified as width argument. For hanning this is ignored otherwise it defauls to 5 pixels. For ’gaussian’ it is the Full Width Half Maximum. For ’boxcar’ it is the full width. For ’rmedian’ and ’poly’ it is the half width. The order argument is an optional parameter for ’poly’ kernel (default is 2), to specify the order of the polnomial. It is ignored by all other kernels.
You can verify and decide whether you apply the fit result or not, if plot argument is True. In that case, you have to answer ’y’ or ’n’ for each spectra so that setting True is not recommended for large dataset.
If insitu is True, or insitu is None and sd.rcParams[’insitu’] is True, the method will not return the result, but apply operation on this scantable.
Arguments
Inputs |
| ||
kernel |
| The type of smoothing kernel
| |
| allowed: | string |
|
| Default: | ’hanning’ |
|
width |
| The width of the kernel in pixels
| |
| allowed: | float | |
| Default: | 5.0 |
|
order |
| Order of the polynomial for ’poly’ kernel
| |
| allowed: | integer |
|
| Default: | 2 |
|
plot |
| Plot the fit and the residual
| |
| allowed: | bool |
|
| Default: | False |
|
insitu |
| If False a new scantable is returned
| |
| allowed: | bool |
|
| Default: | None |
|
scantable
Example
More information about CASA may be found at the
CASA web page
Copyright © 2016 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