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

1.3.2 Get the data description IDs associated with the specified spectral window and/or polarization ID


Description

Get a list of data description IDs associated with the specified spectral window ID and/or polarization ID. Values of less than zero for either means all IDs should be used in the selection.

Arguments





Inputs

spw

Spectral window ID. Less than zero implies any,

allowed:

int

Default:

-1

pol

Polarization ID. Less than zero implies any.

allowed:

int

Default:

-1

Returns
intArray

Example

 
                msmd.open("my.ms")  
                # get all data description IDs associated with spw 2.  
                msmd.datadescids(spw=2)  
                # same as before but limit the IDs returned to those associated with  
                # polarization ID 3  
                msmd.datadescids(spw=2, pol=3)  
                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