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

Synopsis

Module functions that compute the equivalent width of an emission or absorption line in source or background data.

Syntax

Float_Type get_eqwidth([Integer_Type],String_Type,String_Type)
Float_Type get_beqwidth([Integer_Type],String_Type,String_Type)

Error Return Values: NULL

Arguments:

(1) Dataset number (default 1)

(2) Expression defining the continuum model

(3) Expression defining the continuum-plus-line model

Description

See the related Sherpa command EQWIDTH for definitions and more information.

Example

Model a continuum and emission line complex using a power-law and normalized Gaussian, then compute the equivalent width:

sherpa> SOURCE = POW[cont]+NGAUSS[eline]
...
sherpa> FIT
...
sherpa> EQWIDTH 1 (cont,cont+eline)
EW = 0.535073 keV
sherpa> foo = get_eqwidth(1,"cont","cont+eline")
sherpa> print(foo)
0.535073

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.