Last modified: December 2023

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


AHELP for CIAO 4.16

get_piximg_shape

Context: crates

Synopsis

Get the dimensions of the image stored in the IMAGECrate.

Syntax

get_piximg_shape(crate)

Description

Argument Description
crate The image crate.

The get_piximg_shape command returns a Python tuple describing the image shape; it is the same value as returned by the shape field of a NumPy array.


Example

>>> cr = read_file("image.fits")
>>> print(get_piximg_shape(cr))
(1024, 512)

The image has 512 (x) by 1024 (y) pixels.


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