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

Synopsis

Module functions to retrieve filenames associated with a dataset.

Syntax

String_Type get_filename([Integer_Type])
String_Type get_bfilename([Integer_Type])
String_Type get_arf_filename([Integer_Type])
String_Type get_rmf_filename([Integer_Type])

Error Return Value: NULL

Description

These functions retrieve the source dataset file name, the background dataset file name, the ARF instrument file name, and the RMF instrument file name respectively, for use in record-keeping, GUIs, etc.

Note: depending upon how the files are read in, the displayed file name may show the entire directory path. See example below.

See the related Sherpa command SHOW.

Example

Input data from files; display file names:

sherpa> DATA example.pha
...
sherpa> get_filename
example.pha
sherpa> get_bfilename
/data/simteste/Testing/sherpaTest/data/example2_bkg.pha
sherpa> get_arf_filename
/data/simteste/Testing/sherpaTest/data/example2.arf
sherpa> get_rmf_filename
/data/simteste/Testing/sherpaTest/data/example2.rmf

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.