Module function to set the units for 1-D spectral analysis.
Integer_Type set_analysis([Integer_Type],String_Type)
Success/Error Return Values: 1/0
Arguments:
(1) Dataset number (default 1)
(2) Units string
The set_analysis() function tells Sherpa
the units in which to do subsequent analyses, for the specified dataset.
For Sherpa
version 3.0.2, supported (case-insensitive) string inputs are "bin"
(equivalent to
ANALYSIS CHANNELS),
"kev" (equivalent to ANALYSIS ENERGY),
"ang" (equivalent to ANALYSIS WAVE),
"ev", "mev", "nm", and "hz".
sherpa> data example.pha
sherpa> instrument = rsp[a](example.rmf,example.arf)
sherpa> () = set_analysis(1,"hz")
sherpa> get_analysis()
Hz
sherpa>
- chandra
-
guide
- sherpa
-
autoest,
back,
berrors,
bsyserrors,
bye,
calc_kcorr,
coord,
data,
dataspace,
dcounts,
dollarsign,
echo,
eflux,
eqwidth,
erase,
fakeit,
feffile,
flux,
get,
get_dcounts_sum,
get_dir,
get_eflux,
get_eqwidth,
get_filename,
get_flux2d,
get_flux_str,
get_lfactorial,
get_mcounts_sum,
get_pflux,
get_source_components,
get_verbose,
group,
groupbycounts,
guess,
is,
is_subtracted,
journal,
list,
list_par,
load,
load_arf,
load_ascii,
load_back_from,
load_backset,
load_dataset,
load_fitsbin,
load_image,
load_inst,
load_inst_from,
load_pha,
load_pha2,
load_rmf,
mcounts,
numbersign,
paramest,
plot_eprof,
plot_rprof,
prompt,
read,
reset,
run,
set,
set_axes,
set_backscale,
set_coord,
set_data,
set_dataspace,
set_dir,
set_exptime,
set_subtract,
set_verbose,
set_weights,
setback,
setdata,
setplot,
sherpa-module,
sherpa_plotfns,
sherpa_utils,
show,
simspec,
subtract,
ungroup,
unsubtract,
use,
version
|