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

Synopsis

Display the contents of a stack.

Syntax

stk_disp( Stack_Type stack )

Description

This is a utility routine that displays the contents of the stack - including ther current position - to the screen (i.e. stdout).

Example

chips> stk = stk_build( "@stack.lis" )
chips> stk_disp( stk )
------
Stack position: 0
Stack size: 3
Stack allocated: 100
Stack entries:
1 :a.dat:
2 :b.dat:
3 :c.dat:
------
chips> stk_read_next( stk )
a.dat
chips> stk_disp( stk )
------
Stack position: 1
Stack size: 3
Stack allocated: 100
Stack entries:
1 :a.dat:
2 :b.dat:
3 :c.dat:
------

In this example we used stk_disp() to display the stack after it has been created - so its position is 0 - and after calling stk_read_next() - when the position had been increased by 1.

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.