NRAO Home > CASA > CASA Toolkit Reference Manual
sd.selector.set_polarisations - Function

5.1.3 Set a sequence of polarization numbers or strings
Description

Set the polarisations to be selected in the scantable. It allows to set polarization selection via integer or string (e.g. ”XX”, ”Q”). Integer must be within the range of 0 to 3 since the number outside this range will result no selected data exception. If the selection is specified by an integer, the selection will refer polarization type of the original scantable. On the other hand, the selection by string contains both type and component so that the selection will refer its type, not the original scantable.

Arguments





Inputs

pols

A list of integers of 0-3, or strings, e.g [”I”,”Q”].

allowed:

integer, string, integer array, string array

Default:

[] (no selection)





Returns

Example

         sel = sd.selector()  
         # These are equivalent if data is ’linear’  
         sel.set_polarisations(["XX","Re(XY)"])  
         sel.set_polarisations([0,2])  
         # reset the polarisation selection  
         sel.set_polarisations()


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