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

Synopsis

Module functions for setting source and background exposure times.

Syntax

Integer_Type set_exptime([Integer_Type],Float_Type)
Integer_Type set_bexptime([Integer_Type],Float_Type)

Success/Error Return Values: 1/0

Arguments:

(1) Dataset number (default 1)

(2) Exposure time

Description

The specified exposure time replaces the current value of the exposure time within Sherpa, which may have been set when the dataset was loaded from the value of the EXPTIME header keyword of a PHA file.

See the related Sherpa commands SETDATA and SETBACK for more information.

Example

Set the exposure time of the background dataset of dataset 4 to 30 ks:

sherpa> get_bexptime(4)
108676
sherpa> () = set_bexptime(4,30000.0)
sherpa> get_bexptime(4)
30000

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.