Chandra X-Ray Observatory (CXC)
Skip to the navigation links
Last modified: December 2011

URL: http://cxc.harvard.edu/ciao/get_transform_type.html
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))
WCSTANTransform

Changes 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

Last modified: December 2011
CXC logo

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email: cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2012. All rights reserved.