Chandra X-Ray Observatory
Skip to the navigation links
Last modified: December 2013

Jump to: Description · Example · Bugs · See Also

AHELP for CIAO 4.9


Context: crates


Return an array of the keywords in a crate.




Argument Description
crate A Crate object such as a TABLECrate or IMAGECrate

The get_key_names command retrieves the keywords in the crate as an array of strings. The get_keyval routine can be used to read the value of a single keyword.


>>> cr = read_file("evt2.fits")
>>> keys = get_key_names(cr)
>>> print(keys[10:15])

Retrieve the keywords from the crate "cr", then print out five elements of the array.


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

add_key, copy_piximgvals, cratekey, delete_key, get_axis_transform, get_col, get_col_names, get_colvals, get_crate_item_type, get_crate_type, get_key, get_keyval, get_number_cols, get_number_rows, get_piximg, get_piximg_shape, get_piximgvals, get_transform, get_transform_matrix, key_exists, set_key, set_keyval

Last modified: December 2013
Smithsonian Institute Smithsonian Institute

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