| AHELP for CIAO 4.5 | get_transform_type |
Context: transform |
Synopsis
Return the flavor of the input Transform object.
Syntax
get_transform_type(transform)
Description
- transform - input Transform object
The get_transform_type command returns a string indicating the flavor of the input Transform object. Transform types are 'Transform' (generic), 'WCSTANTransform', 'LINEASRTransform', and 'LINEAR2DTransform'. If the transform type is unknown, 'None' is returned.
Example
>>> import pycrates as pyc
>>> import pytransform as pyt
>>> cr = pyc.read_file("img.fits")
>>> trans = cr.get_transform("EQPOS")
>>> print(pyt.get_transform_type(trans))
WCSTANTransformBugs
See the bug pages on the CIAO website for an up-to-date listing of known bugs.
Refer to the CIAO bug pages for an up-to-date listing of known issues.
See Also
- transform
- apply_transform, copy_transform

![[CIAO Logo]](../imgs/ciao_logo_navbar.gif)