Last modified: December 2013

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


AHELP for CIAO 4.16

get_number_rows

Context: crates

Synopsis

Return the number of rows in a crate.

Syntax

get_number_rows(crate)

Description

Argument Description
crate A Crate object such as a TABLECrate or IMAGECrate

The get_number_rows command returns the number of rows in the input crate. If the crate contains an image, the return value is 1.


Example

>>> cr = read_file("evt2.fits")
>>> nrows = get_number_rows(cr)
>>> nrows
34118

There are 34118 rows in the file evt2.fits.


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
copy_piximgvals, 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_piximg, get_piximg_shape, get_piximgvals, get_transform, get_transform_matrix