Last modified: December 2013

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


AHELP for CIAO 4.16

get_crate_item_type

Context: crates

Synopsis

Return the type of the crate item as a string.

Syntax

get_crate_item_type(crateitem)

Description

Argument Description
crateitem A CrateKey or CrateData object.

The get_crate_item_type command returns the type of the input crate item in a string. The value will be "Key", "Data", or - if the input argument is invalid - None.


Example

>>> cr = read_file("evt2.fits")
>>> expo = get_key(cr, "EXPOSURE")
>>> print(get_crate_item_type(expo))
Key

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_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