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 2008

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

delete_window

Context: sl.chips

Synopsis

Delete the specified window.

Syntax

delete_window();
delete_window( [ChipsId] );
delete_window( "window_id" );
delete_window( "all" );

Description

Depending on the argument, the delete_window command deletes the current window, the window indicated in a ChipsId structure or by the window_id, or all windows.

  • (no argument) - the current window is deleted.
  • ChipsId - an optional ChipsId structure containing values to modify the currency state for the command.
  • window_id - identification tag given to each object that is created; use this to delete a specific window.
  • all - deletes all windows.

There is also a delete_all_windows command, which removes all the windows in the session. It is equivalent to the command delete_window("all").

Example 1

chips> add_frame(.1, .1, .5, .5);
chips> delete_window();

Create a frame; the window is automatically created if it does not exist. The current window is then deleted, along with any objects it contains.

Example 2

chips> id = ChipsId();
chips> add_window("id=M33");
chips> add_window("id=M31");
chips> id.window = "M33";
chips> delete_window(id);

Two windows are created; the second window is current after it is created. The id.window command sets the window value of the ChipsId structure to the first window. That window is then deleted.

Example 3

chips> add_window(300, 500, "mm", "id=M33");
chips> add_window(4, 4, "inches", "id=M31");
chips> delete_window("all");

Two windows are created, then the delete_window command deletes them both.

Example 4

chips> add_window;
chips> add_window;
chips> delete_all_windows;

Delete all the windows that were created.

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.