| AHELP for CIAO 4.4 | 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 value indicating the flavor of the input Transform object. Transform types are 'Transform' (generic), 'WCSTAN', and 'LINEAR2D'. If the transform type is unknown, None is returned.
Example
>>> import pytransform
>>> cr = read_file("img.fits")
>>> trans = cr.get_transform("EQPOS")
>>> print(pytransform.get_transform_type(trans))
WCSTANTransformChanges in CIAO 4.4
The pytransform module is no longer included as part of pycrates, so you either have to import it directly by saying
chips> import pytransform
or, if you have loaded pycrates as a named module, use the instance it provides:
>>> import pycrates as pyc
and then you can use pyc.apply_transform.
Bugs
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)