coordsys.setlineartransform - Function

1.1.3 Set the linear transform
Description

This function set the linear transform component. For Stokes Coordinates this function will return T but do nothing.

You can recover the current linear transform with function lineartransform.

Arguments





Inputs

type

Coordinate type: ”direction”, ”stokes”, ”spectral”, ”linear”, ”tabular”. Leave empty for all.

allowed:

string

Default:

value

Linear transform

allowed:

any

Default:

variant

Returns
bool

Example

"""  
#  
print "\t----\t setlineartransform Ex 1 \t----"  
csys = cs.newcoordsys(spectral=T, linear=3)  
xf = csys.lineartransform(’lin’)  
print xf  
#[(1.0, 0.0, 0.0), (0.0, 1.0, 0.0), (0.0, 0.0, 1.0)]  
xf[0]=list(xf[0])  
xf[0][1]=0.01  
#xf[0]=tuple(xf[0])  
csys.setlineartransform(’lin’,xf)  
print csys.lineartransform(’lin’)  
#[(1.0, 0.01, 0.0), (0.0, 1.0, 0.0), (0.0, 0.0, 1.0)]  
"""

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.