Skip to the navigation links
Last modified: December 2009

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

get_piximgvals

Context: py.crates

Synopsis

Return the values from an image crate.

Syntax

get_piximgvals(crate)

Description

  • crate - input IMAGECrate

The get_piximgvals command returns an array of values from the input IMAGECrate.

The get_piximg command ("ahelp get_piximg") returns a CrateData object for the image, which is useful if you are interested in the metadata associated with it.

Example

>>> cr = read_file("image.fits")
>>> vals = get_piximgvals(cr)
>>> print(vals)
[[0 0 0 ..., 0 0 0] ...

The image values from the file "image.fits" are stored in an array. The output of the print command is the raw image values; only the first line of output is included here.

CHANGES IN CIAO 4.2

The command was renamed from get_imagevals to get_piximgvals 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

py.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, get_piximg_shape, get_transform, get_transform_matrix, print_col_names, set_piximgvals

Last modified: December 2009