Last modified: December 2013

URL: https://cxc.cfa.harvard.edu/ciao/ahelp/get_transform.html
Jump to: Description · Example · Bugs · See Also


AHELP for CIAO 4.16

get_transform

Context: crates

Synopsis

Extract the coordinate transform from a crate.

Syntax

get_transform(crate, name)

Description

Argument Description
crate A Crate object such as a TABLECrate or IMAGECrate
name The name of the transformation (e.g. 'EQPOS'); case insensitive.

The get_transform command extracts the transform with the given name from the input crate. The name check is case-insensitive.


Example

>>> cr = read_file("evt2.fits")
>>> trans = get_transform(cr, "EQPOS")
>>> a = [[4096.5, 4096.5]]
>>> b = trans.apply(a))

Here we use the EQPOS transform to convert the SKY coordinate (4096.5,4096.5) for this observation, creating

>>> print(b)
[[  8.80739407 -43.35678949]]

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

crates
copy_piximgvals, get_axis_transform, 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_matrix
transform
apply_transform, copy_transform, get_transform_type