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

1.3.2 Get the number of correlations for the specified polarization ID.


Description

Get the number of correlations for the specified polarization ID. If the specified polarization ID is negative, an array of numbers of correlations is returned. The indices of that array represent polarization IDs.

Arguments





Inputs

polid

Zero-based polarization ID. A negative number will cause all the numbers of correlations to be returned.

allowed:

int

Default:

-1

Returns
variant

Example

 
    msmd.open("my.ms")  
    # get the number of correlations associated with polarization ID 4  
    polid = msmd.ncorrforpol(4)  
    # get the array of numbers of correlations from the POLARIZATION table  
    polids = msmd.ncorrforpol(-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