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

Synopsis

Creates a data grid on which models may be evaluated.

Syntax

sherpa> DATASPACE [#] (<range> [, <range>, ...]) [HISTOGRAM]

where # specifies the number of the dataset to be associated with the
dataspace (default dataset number is 1); <range> is defined below; and
HISTOGRAM tells Sherpa to define bins (with lower and upper boundaries)
rather than single gridpoints.

Description

<range> = <start>:<stop>:<delta>, where

Input Arguments for DATASPACE

Argument Definition
<start> The start (minimum) value for the grid.
<stop> The stop (maximum) value for the grid.
<delta> The step size between gridpoints.

If HISTOGRAM is specified, the models will be evaluated by integrating over bins of width <delta>; otherwise, models will be evaluated at points on the specified grid.

Note: HISTOGRAM must be specified in order to evaluate XSPEC models additive models (e.g., xsbremss).

A dataspace may also be defined using the Sherpa/S-Lang module functions set_axes and set_baxes. (In CIAO 3.0, set_baxes is the only means by which background dataspaces may be defined.)

Example 1

Set a 1-D value range on which a source model may be evaluated:

sherpa> DATASPACE (1:5:1)

This command sets the value range, from values 1 through 5, with a step-size of 1, over which a source model may be evaluated.

Example 2

Set a 2-D value range on which a source model may be evaluated:

sherpa> DATASPACE (1:5:1,1:2:1)

This command sets the value ranges, for two dimensions, over which a source model may be evaluated.

Example 3

Set a 1-D value range on which a source model may be evaluated, for dataset number 2:

sherpa> DATASPACE 2 (1:10:1)

This command sets the value range, from values 1 through 10, with a step-size of 1, over which a source model may be evaluated, for dataset number 2.

Bugs

See the Sherpa bug pages online for an up-to-date listing of known bugs.

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.