Skip to the navigation links
Last modified: December 2009

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

get_piximg

Context: sl.crates

Synopsis

Return a CrateData object of an image from a crate.

Syntax

get_piximg(crate);

Description

  • crate - input IMAGECrate

The get_piximg command returns a CrateData object representing the contents of the image within the crate.

To retrieve just the image data (without any metadata), use get_piximgvals ("ahelp get_piximgvals") .

Example

slsh> cr = read_file("image.fits");
slsh> img = get_piximg(cr);
slsh> get_crate_item_type(img);
Data

The image is retrieved from the crate "cr" as a CrateData object. The get_crate_item_type command is used to confirm its type.

CHANGES IN CIAO 4.2

The command was renamed from get_image to get_piximg in CIAO 4.2 to avoid a conflict with a ChIPS command of the same name.

Bugs

See the bug pages on the CIAO website for an up-to-date listing of known bugs.

See Also

sl.crates
add_piximg, copy_piximgvals, cratedata, delete_piximg, 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_shape, get_piximgvals, get_transform, get_transform_matrix, print_col_names, set_piximgvals

Last modified: December 2009