|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./contrib sdextract.pro
sdextract |
procedure sdextract, sdfin, sdfout, [startat=integer], [endat=integer], [boxwidth=integer], [/clobber], _EXTRA=_EXTRA |
A function to extract a range of channels from all of the spectra in an input SDFITS file and write the resulting spectra out to a second SDFITS file. This also optionally does a boxcar smooth with decimation. The boxcar smoothing happens after the region of interest has been extracted.
Any valid data selection arguments can also be given. See select for more details.
Uses dcextract to extract the sub-spectra and dcboxcar to do the boxcar smoothing. See those reference pages for additional details of these two steps.
The input file must exist and be readable. The output file must not exist or clobber must be set to remove an existing file. If the output file already exists and is a directory it will not be removed, even if clobber is set.
Error checking on the startat and endat values happens in dcextract. If that routine returns -1 at any time, this routine exits and any already processed data is written to sdfout.
Contributed By: Bob Garwood, NRAO-CV