Skip to the navigation links
Last modified: December 2009

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

get_axis_transform

Context: py.crates

Synopsis

Return the axis transform from an IMAGECrate.

Syntax

get_axis_transform(crate, category)

Description

  • crate - input IMAGECrate
  • category - axis transform type

The get_axis_transform command extracts the 'default' axis transform of the given category from the input crate. Allowed category values are WORLD, PHYSICAL, and LOGICAL; the values are not case-sensitive.

Example

>>> cr = read_file("image.fits")
>>> print_axis_names(cr)
sky(x,y)
EQPOS(RA,DEC)
>>> trans = get_axis_transform(cr, "WORLD")
>>> get_transform_type(trans)
'WCSTANTransform'

The WORLD transform - in this case, "EQPOS" - is retrieved from the image. The get_transform_type command is used to confirm its type.

Bugs

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

See Also

py.crates
get_col, get_col_names, get_colvals, get_crate_item_type, get_crate_type, get_key, get_key_names, get_keyval, get_number_cols, get_number_rows, get_piximg, get_piximg_shape, get_piximgvals, get_transform, get_transform_matrix
py.transform
apply_transform, copy_transform, get_transform_type

Last modified: December 2009