Skip to the navigation links
Last modified: December 2009

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

get_piximg_shape

Context: py.crates

Synopsis

Return the dimension array describing the image shape.

Syntax

get_piximg_shape(crate)

Description

  • crate - input IMAGECrate

The get_piximg_shape command returns a dimension array describing the image shape.

Example

>>> cr = read_file("image.fits")
>>> print(get_piximg_shape(cr))
[512 512]

The shape of the image contained in the IMAGECrate "cr" is (512,512).

CHANGES IN CIAO 4.2

The command was renamed from get_image_shape to get_piximg_shape 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, 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_piximgvals, get_transform, get_transform_matrix, set_piximgvals

Last modified: December 2009