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/sherpa4.1/dataspace2d.py.html
AHELP for Sherpa 4.1

dataspace2d

Context: py.sherpa

Synopsis

Create a blank 2D dataset

Syntax

dataspace2d( dims, [id,dstype=DataIMG] )

Description

The dataspace2d command creates a blank 2D image with a grid in logical coordinates according to the dimensional array argument (dims). To create 1D data, use the dataspace1d command ("ahelp dataspace1d") .

  • dims - array of image dimensions, i.e. [width,height]
  • id - the id of the new dataset; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")
  • dstype - dataset type: DataIMG (the default), Data2D, or Data2DInt

Example 1

sherpa> dataspace2d([216,216])

Create a blank image with dimensions 216x216.

Example 2

sherpa> dataspace2d([50,100], id="newimg")

Create a blank image that is 50x100 and give it an id of "newimg".

Bugs

See the bugs pages on the Sherpa 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.