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/stackio_stk_count.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 stk_count Context: stackio

Synopsis

Returns the number of elements in a stack.

Syntax

Integer_Type stk_count( Stack_Type stack )

Description

Return the number of entries in a stack.

Example 1

chips> stk = stk_build( "*.fits" )
chips> stk_count( stk )
12

Here we have created a stack that contains the 12 files in the current directory that match the pattern

*.fits

Example 2

chips> stk = stk_build( "@stack.lis" )
chips> stk_count( stk )
3

In this example there are 3 elements in the file stack.lis.

Bugs

See the bugs page for the stackio library on the CIAO website for an up-to-date listing of known bugs.

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.