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

Skip the navigation links

Take the CIAO Software Survey!

Last modified: December 2008

URL: http://cxc.harvard.edu/chips4.1/current_line.sl.html
AHELP for ChIPS 4.1 current_line Context: sl.chips

Synopsis

Set the specified line as current.

Syntax

current_line( ChipsId );
current_line( "line_id" );
current_line( "all" );

Description

The current_line command sets the line indicated by the argument as the current line; see "ahelp currency" for general information on currency.

  • ChipsId - an optional ChipsId structure containing values to modify the currency state for the command.
  • line_id - identification tag given to each object that is created; use this to select a specific line.
  • all - sets all lines to be current.

Use the info_current command to retrieve a list of all the current items in the ChIPS session, as shown in Example 1.

Example 1

chips> id = ChipsId();
chips> add_line(.1, .3, .9, .3, "id=flat");
chips> add_line(.3, .8, .8, .2, "id=slope");
chips> id.line = "flat";
chips> current_line(id);
chips> info_current();

Two lines are created; the second line is current after it is created. The id.line command sets the line value of the ChipsId structure to the first line, then the current_line command makes that line current.

The output of info_current for this session is:

Window [win1]
  Frame [frm1]
    Plot [plot1]
      Line [flat]
    Coord Sys [Plot Normalized]

Example 2

chips> add_line(.1, .3, .9, .3, "id=flat");
chips> add_line(.3, .8, .8, .2);
chips> current_line("flat");

Two lines are created. After the second line is created, it is current. The current_line command then sets the first line as the current line.

Example 3

chips> add_line(.1, .3, .9, .3, "id=flat");
chips> add_line(.3, .8, .8, .2, "id=slope");
chips> current_line("all");

Two lines are created. After the second line is created, it is current. The current_line command then makes all lines current.

Bugs

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

Last modified: December 2008



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.