Synopsis
Extract the transform matrix from a crate.
Syntax
get_transform_matrix(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_matrix command extracts the transform matrix for the given transform name from the input crate.
Example
>>> cr = read_file("evt2.fits") >>> print(get_transform_matrix(cr, "SKY"))
[[ 8.00000000e+00 0.00000000e+00 0.00000000e+00] [ -0.00000000e+00 8.00000000e+00 0.00000000e+00] [ 2.28450000e+03 2.73250000e+03 1.00000000e+00]]
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
- transform
- apply_transform, copy_transform, get_transform_type