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

Synopsis

Module functions to retrieve predicted source and background model photon amplitudes.

Syntax

Array_Type get_source([Integer])
Array_Type get_bg([Integer])
Array_Type get_full_source([Integer])
Array_Type get_full_bg([Integer])

Error Return Value: NULL

Arguments:

(1) data set number (default 1)

Description

These functions evaluate the source or bg model in photon space, and are thus analogous to get_mcounts(), etc., which work in counts space. What is returned is an array of amplitudes for those photon-space bins which map to the filtered data set. (Adding full causes unfiltered amplitudes to be returned.) One retrieves the dataspace for these amplitudes using the functions get_photon_axes() et al.

Filtered source and background model amplitudes in photon-space may be displayed, e.g., via the Sherpa plotting commands LPLOT SOURCE and LPLOT BG.

Example

sherpa> data example.pha
sherpa> instrument = rsp[rr]("example.rmf", "example.arf")
sherpa> source = xspowlaw[pp]
sherpa> foo = get_source()

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.