NRAO Home > CASA > CASA Toolkit Reference Manual
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=True, 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)]  
"""  
 

__________________________________________________________________


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