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

1.3.2 Get the number of spectral windows associated with the MS.


Description

This method will return the number of spectral windows in the associated MS.

Arguments





Inputs

includewvr

Include wvr spectral windows? If false, exclude wvr windows from count.

allowed:

bool

Default:

true

Returns
int

Example

 
    msmd.open("my.ms")  
    number_of_spectral_windows = msmd.nspw()  
    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