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/_stk_roll.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 _stk_roll Context: slangrtl

Synopsis

Roll items on the stack

Syntax

_stk_roll (Integer_Type n);

Description

This function may be used to alter the arrangement of objects on the stack. Specifically, if the integer n is positive, the top n items on the stack are rotated up. If n is negative, the top abs(n) items on the stack are rotated down.

Example

If the stack looks like:

    item-0
    item-1
    item-2
    item-3

where item-0 is at the top of the stack, then _stk_roll(-3) will change the stack to:

    item-2
    item-0
    item-1
    item-3

This function only has an effect for abs(n) > 1.

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.