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

1.3.2 Get the polarization ID associated with the specified data description ID.


Description

Get the polarization ID associated with the specified data description ID. If the specified data description ID is negative, an array of polarization IDs is returned. The indices of that array represent data description IDs.

Arguments





Inputs

ddid

Zero-based data description ID. A negative number will cause all the polarization IDs to be returned.

allowed:

int

Default:

-1

Returns
variant

Example

 
    msmd.open("my.ms")  
    # get the polarization ID associated with data description ID 3  
    polid = msmd.polidfordatadesc(3)  
    # get the array of polarization IDs in the order they appear in the DATA_DESCRIPTION table  
    polids = msmd.polidfordatadesc(-1)  
    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