coordsys.setstokes - Function

1.1.3 Set the Stokes types
Description

If the Coordinate System contains a Stokes Coordinate, this function allows you to change the Stokes types defining it. If there is no Stokes Coordinate, an exception is generated.

See the coordsys constructor to see the possible Stokes types you can set.

You can set the Stokes types with function setstokes.

Arguments





Inputs

stokes

Stokes types

allowed:

stringArray

Default:

Returns
bool

Example

"""  
#  
print "\t----\t setstokes Ex 1 \t----"  
csys = cs.newcoordsys(stokes="I V")  
print csys.stokes()  
#[’I’, ’V’]  
csys.setstokes("XX RL")  
print csys.stokes()  
#[’XX’, ’RL’]  
#  
"""

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 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

Updated daily during alpha development.