NRAO Home > CASA > CASA Cookbook and User Reference Manual
8.2.1.19 msmoments
Keyword arguments:  
infile -- Name of input MS data  
        default: none; example: infile="OrionS_rawACSmod"  
moments -- List of moments you would like to compute  
        default: 0 (integrated spectrum);example: moments=[0,1]  
        see list above  
antenna -- antenna name or id that the user wants to compute moments  
        default: ’’ (all antennae)  
field -- field name or id that the user wants to compute moments  
        default: ’’ (all fields)  
spw -- spectral window id that the user wants to compute moments  
        default: ’’ (all spectral windows)  
 
includemask -- List of masks to include  
        default: [-1] (include all channels); example=[2,100]  
excludemask -- List of masks to exclude  
        default: [-1] (don’t exclude channels); example=[100,200]  
outfile -- Output MS file name (or root for multiple moments)  
        default: ’’ (input+auto-determined suffix);example: outfile=’source_moment’  
overwrite -- Overwrite existing output files  
        default: false

Task msmoments computes moments from spectral data stored in MS. The task is defined in analogy with immoments task, so that you can calculate any moments that is available forimmoments task. Currently, the task only accepts MS with FLOAT_DATA column.

The spectral moment distributions at each row in input MS are determined. Input MS must have FLOAT_DATA column, i.e. autocorrelation data. See the cookbook and User Reference Manual for mathematical details.

The main control of the calculation is given by parameter moments:

Note that includemask and excludemask cannot set simultaneously.

Example for finding the 1-momment, intensity-weighted coordinate, often used for finding velocity fields.

   msmoments( infile="mydata", moment=1, outfile="velocityfields" )


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