Skip to the navigation links
Last modified: December 2009

URL: http://cxc-newtest.cfa.harvard.edu/ciao4.2/get_transform_type.py.html
AHELP for CIAO 4.2

get_transform_type

Context: py.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, nothing is returned.

Example

>>> trans = WCSTANTransform()
>>> print(get_transform_type(trans))
WCSTANTransform

The transform "trans" is a WCSTAN Transform.

Bugs

See the bug pages on the CIAO website for an up-to-date listing of known bugs.

See Also

py.transform
apply_transform, copy_transform

Last modified: December 2009