nraonrao
 
NRAO Home > CASA > TaskRef

0.1.65 sdsmooth

Requires:

Synopsis ASAP SD task: do smoothing of spectra Description

ASAP SD calibration task (based on the ALMATST5 recommendations): Do smoothing of spectra

Task Version 2008-01-27 TT split and modified from Task Version 2007-03-04 STM

Arguments





Inputs

sdfile

name of input SD dataset

allowed:

string

Default:

scanaverage

average integs within scans (True,False)

allowed:

bool

Default:

False

scanlist

list of scans to use (e.g. [1,2,3,4])

allowed:

intArray

Default:

field

string for selection by source name

allowed:

string

Default:

iflist

list of IF ids to select (e.g. [0,1])

allowed:

intArray

Default:

pollist

list of polarization ids to select (e.g. [0,1])

allowed:

intArray

Default:

kernel

type of spectral smoothing

allowed:

string

Default:

hanning

kwidth

width of spectral kernel in channels

allowed:

int

Default:

5

outfile

output file name

allowed:

string

Default:

outform

output file format (ASCII,MS,SDFITS,ASAP)

allowed:

string

Default:

ASAP

overwrite

overwrite the output file if already exists

allowed:

bool

Default:

False

plotlevel

plot results (0=none,1+=some,¡0=hardcopy)

allowed:

int

Default:

0

Returns
void

Example

 
 
Keyword arguments:  
        sdfile -- name of input SD dataset  
        scanaverage -- average integrations within scans  
                options: (bool) True,False  
                default: False  
                example: if True, this happens in read-in  
                         For GBT, set False!  
        scanlist -- list of scan numbers to process  
                default: [] (use all scans)  
                example: [21,22,23,24]  
                         this selection is in addition to field,  
                         iflist, and pollist  
        field -- selection string for selecting scans by name  
                default: ’’ (no name selection)  
                example: ’FLS3a*’  
                         this selection is in addition to scanlist,  
                         iflist,pollist  
        iflist -- list of IF id numbers to select  
                default: [] (use all IFs)  
                example: [15]  
                this selection is in addition to scanlist,  
                         field, and pollist  
        pollist -- list of polarization id numbers to select  
                default: [] (use all polarizations)  
                example: [1]  
                this selection is in addition to scanlist,  
                field, and iflist  
kernel -- type of spectral smoothing  
        options: ’hanning’,’gaussian’,’boxcar’  
        default: ’hanning’  
                >>>kernel expandable parameter  
                 kwidth -- width of spectral smoothing kernel  
                 options: (int) in channels  
                 default: 5  
         example: 5 or 10 seem to be popular for boxcar  
                  ignored for hanning (fixed at 5 chans)  
                                  (0 will turn off gaussian or boxcar)  
outfile -- Name of output ASAP format(scantable) file  
        default: ’’ (<sdfile>_sm)  
outform -- format of output file  
                options: ’ASCII’,’SDFITS’,’MS’,’ASAP’  
                default: ’ASAP’  
                example: the ASAP format is easiest for further sd  
                         processing; use MS for CASA imaging.  
                         If ASCII, then will append some stuff to  
                         the outfile name  
        overwrite -- overwrite the output file if already exists  
                options: (bool) True,False  
                default: False  
                WARNING: if outform=’ASCII’, this parameter is ignored  
        plotlevel -- control for plotting of results  
        options: (int) 0=none, 1=some, 2=more, <0=hardcopy  
default: 0 (no plotting)  
example: plotlevel<0 as abs(plotlevel), e.g.  
         -1 => hardcopy of final plot (will be named  
         <outfile>_smspec.eps)  
 
 
        DESCRIPTION:  
 
Task sdsmooth performs smoothing of the single-dish spectra.  
        Set plotlevel >= 1 to plot spectrum before and after smoothing.  
 

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 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

Updated daily during alpha development.