Retrieves a default structure for use with get_pflux(), etc.
Struct_Type get_flux_str()
The output of get_flux_str(), a structure, can be used as
input to get_pflux() and get_bpflux(). One
would retrieve this default structure, modify its field values, and
pass it to get_pflux() et al. See the example below.
Define a structure foo and use it to compute the flux between 2 and 10
keV:
sherpa> foo = get_flux_str()
sherpa> print(foo)
dataset = 1
range = NULL
comp = NULL
sherpa> foo.range = [2,10]
sherpa> print(get_flux(foo).value)
0.000166532
sherpa> print(get_flux(foo).units)
photons/cm**2/s
sherpa> print(get_pflux(,[2,10],"p").value)
0.000166532
- 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_filename,
get_flux2d,
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
|