An alternative form of DATASPACE and set_axes().
set_dataspace( dnum, elo, ehi, estep );
The routine is loaded into Sherpa with the call
require ("sherpa_utils");
This routine sets the X-axis grid of the
given "dataset" (the dnum parameter; it should
be an integer >= 1) to cover the
range elo to ehi with a bin width of estep.
The elo/ehi/estep parameters should generally be considered
to be in units of keV but it depends on the
model being used.
The grid is set up in "HISTOGRAM" mode (see "ahelp integrate")
so the points go from elo to elo+estep, elo+estep to
elo+2*estep, etc. The behaviour at the ehi end is not
well determined in the current version of this routine:
it is not guaranteed to stop at ehi if (ehi-elo)/estep
does not evaluate to an integer value.
This routine is just a simple wrapper around the set_axes()
function - see "ahelp set_axes" for more information.
sherpa> set_dataspace()
Usage:
set_dataspace( dnum, elo, ehi, estep )
If called with the incorrect number of arguments (here none)
the routine will display a brief usage message.
sherpa> set_dataspace(1,0.1,10,0.01)
This is equivalent to calling:
sherpa> dataspace (0.1:10:0.01) histogram
sherpa> set_dataspace(2,0.1,10,0.01)
This is equivalent to calling:
sherpa> dataspace 2 (0.1:10:0.01) histogram
Please see "ahelp sherpa_utils" for information on
how to load these routines into Sherpa.
- 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_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_dir,
set_verbose,
setplot,
sherpa-module,
sherpa_plotfns,
sherpa_utils,
show,
simspec,
use,
version
|