Module functions to retrieve filenames associated with a dataset.
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
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.
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
- chandra
-
guide
- sherpa
-
bye,
calc_kcorr,
dataspace,
dcounts,
dollarsign,
echo,
eflux,
eqwidth,
erase,
flux,
get,
get_dcounts_sum,
get_dir,
get_eflux,
get_eqwidth,
get_flux2d,
get_flux_str,
get_lfactorial,
get_mcounts_sum,
get_pflux,
get_source_components,
get_verbose,
groupbycounts,
guess,
is,
journal,
list,
list_par,
mcounts,
numbersign,
paramest,
plot_eprof,
plot_rprof,
prompt,
reset,
run,
set,
set_analysis,
set_axes,
set_coord,
set_dataspace,
set_dir,
set_verbose,
setplot,
sherpa-module,
sherpa_plotfns,
sherpa_utils,
show,
simspec,
use,
version
|