Skip to the navigation links
Last modified: December 2009

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

get_number_rows

Context: sl.crates

Synopsis

Return the number of rows in a crate.

Syntax

get_number_rows(crate);

Description

  • crate - input crate

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 1

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

There are 34118 rows in the TABLECrate created from the file evt2.fits.

Example 2

slsh> nrows = get_number_rows(cr);
slsh> print(nrows);
34118

The number of rows in the file is stored in the variable "nrows".

Bugs

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

See Also

sl.crates
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

Last modified: December 2009