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

dataspace1d

Context: py.sherpa

Synopsis

Create a blank 1D dataset

Syntax

dataspace1d( start, stop, [step=1, id, bkg_id=None, dstype=Data1DInt] )

Description

The dataspace1d command creates a blank 1D integrated dataset with the specified grid. Alternatively, it can be used to create a PHA background data set. To create 2D data, use the dataspace2d command ("ahelp dataspace2d") .

  • start - the minimum value for the grid
  • stop - the maximum value for the grid
  • step - the step size between grid points; default=1
  • id - the id of the dataset to use; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")
  • bkg_id - the id of the background, if creating background data; default is the first background associated with the id
  • dstype - dataset type: Data1D, Data1DInt (the default), or DataPHA

Example 1

sherpa> dataspace1d(0.1,10,0.1)

Create a blank dataset over the range 0.1:10 with a step size of 0.1

Example 2

sherpa> dataspace1d(1, 5, dstype=Data1D)

Create a dataset with dstype=Data1D over the range 1:5; the default step size is used.

Example 3

sherpa> dataspace1d(0.1,10,0.1, id=1, bkg_id=1, dstype=DataPHA)

Create a blank PHA dataset over the range 0.1:10 with a step size of 0.1 and assign it as the first background of dataset id=1.

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.