| AHELP for CIAO 4.2 | get_transform |
Context: sl.crates |
Synopsis
Extract the transform from a crate.
Syntax
get_transform(crate, name);
Description
- crate - input crate
- name - transform name
The get_transform command extracts the transform with the given name from the input crate. The name check is case-sensitive.
Example
slsh> cr = read_file("evt2.fits");
slsh> trans = get_transform(cr, "EQPOS");
slsh> py_call (trans.print_parameter_list);
Name: CRPIX Type: dmDOUBLE Value: 4096.500000, 4096.500000 Desc:
Reference Point Pixel Coordinates Parent: EQPOS
Name: CRVAL Type: dmDOUBLE Value: 259.254013, 67.195519 Desc: Center
Coordinate in decimal degrees Parent: EQPOS
Name: CDELT Type: dmDOUBLE Value: -0.000137, 0.000137 Desc: Transform
Scale in degrees/pixel Parent: EQPOS
Name: CROTA Type: dmDOUBLE Value: 0.000000 Desc: Rotation Angle Parent:
EQPOS
Name: EQUINOX Type: dmSHORT Value: 2000 Desc: Equinox of Coordinates
Parent: EQPOS
Name: EPOCH Type: dmDOUBLE Value: 2000.000000 Desc: Epoch of
Coordinates Parent: EQPOSThe "EQPOS" transform is retrieved from the input file and printed to the screen.
Bugs
See the bug pages on the CIAO website for an up-to-date listing of known bugs.
See Also
- sl.crates
- 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
- sl.transform
- apply_transform, copy_transform, get_transform_type
![[CIAO Logo]](../imgs/ciao_logo_navbar.gif)