About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/array_info.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 array_info Context: slangrtl

Synopsis

Returns information about an array

Syntax

(Array_Type, Integer_Type, DataType_Type) array_info (Array_Type a)

Description

The array_info function returns information about the array a. It returns three values: an 1-d integer array specifying the size of each dimension of a, the number of dimensions of a, and the data type of a.

Example

The array_info function may be used to find the number of rows of an array:

    define num_rows (a)
    {
       variable dims, num_dims, data_type;

       (dims, num_dims, data_type) = array_info (a);
       return dims [0];
    }

For 1-d arrays, this information is more easily obtained from the length function.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.