NRAO Home > CASA > CASA Toolkit Reference Manual
msmetadata.meanfreq - Function

1.3.2 Get the mean frequency for the specified spectral window.


Description

Get the mean frequency for the specified spectral window.

Arguments





Inputs

spw

Spectral window ID.

allowed:

int

Default:

unit

Convert frequencies to this unit.

allowed:

string

Default:

Hz

Returns
double

Example

 
    msmd.open("my.ms")  
    # get the mean frequency for spectral window 2.  
    mean_freq = msmd.meanfreq(2)  
    msmd.done()  

__________________________________________________________________


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