Synopsis
Return the flavor of the input Transform object.
Syntax
get_transform_type(transform)
Description
The function arguments.
| Argument | Description |
|---|---|
| transform | A transform object. |
The get_transform_type command returns a string indicating the flavor of the input Transform object. Transform types are 'Transform' (generic), 'WCSTransform', 'WCSTANTransform' (deprecated), 'LINEARTransform', and 'LINEAR2DTransform'.
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))
WCSTransformBugs
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