Skip to the navigation links
Last modified: December 2009

URL: http://cxc-newtest.cfa.harvard.edu/ciao4.2/get_crate_item_type.sl.html
AHELP for CIAO 4.2

get_crate_item_type

Context: sl.crates

Synopsis

Return the type of the crate item as a string.

Syntax

get_crate_item_type(crateitem);

Description

  • crateitem - input Crate item

The get_crate_item_type command returns the type of the input crate item in a string. The value will either be "Key" or "Data". If the crate item type is unknown, nothing is returned.

Example

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

A crate "cr" is created from the file evt2.fits, then the EXPOSURE keyword value is stored in the variable "expo". The get_crate_item_type command is used to confirm that "expo" contains a CrateKey object.

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

Last modified: December 2009