|
|
Create a blank 1D dataset
dataspace1d( start, stop, [step=1, id, bkg_id=None, dstype=Data1DInt] )
The dataspace1d command creates a blank 1D integrated dataset
with the specified grid. Alternatively, it can be used to
create a PHA background data set. To create 2D data, use
the dataspace2d command
("ahelp dataspace2d")
.
-
start - the minimum value for the grid
-
stop - the maximum value for the grid
-
step - the step size between grid points; default=1
-
id - the id of the dataset to use; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")
-
bkg_id - the id of the background, if creating background
data; default is the first background associated with the id
-
dstype - dataset type: Data1D, Data1DInt (the default), or DataPHA
sherpa> dataspace1d(0.1,10,0.1)
Create a blank dataset over the range 0.1:10 with a step
size of 0.1
sherpa> dataspace1d(1, 5, dstype=Data1D)
Create a dataset with dstype=Data1D over the range 1:5;
the default step size is used.
sherpa> dataspace1d(0.1,10,0.1, id=1, bkg_id=1, dstype=DataPHA)
Create a blank PHA dataset over the range 0.1:10 with a
step size of 0.1 and assign it as the first background of
dataset id=1.
- py.sherpa
-
add_user_pars,
calc_data_sum,
calc_data_sum2d,
calc_ftest,
calc_kcorr,
calc_mlr,
calc_model_sum2d,
calc_source_sum2d,
clean,
contour,
contour_data,
contour_ratio,
copy_data,
dataspace2d,
delete_data,
get_axes,
get_bkg_plot,
get_counts,
get_data,
get_data_plot,
get_default_id,
get_dep,
get_dims,
get_error,
get_filter,
get_rate,
get_ratio,
get_resid,
get_specresp,
group,
histogram1d,
histogram2d,
image_data,
list_bkg_ids,
list_data_ids,
list_response_ids,
load_arf,
load_arrays,
load_ascii,
load_bkg,
load_bkg_arf,
load_bkg_rmf,
load_data,
load_image,
load_multi_arfs,
load_multi_rmfs,
load_pha,
load_rmf,
load_table,
load_table_model,
load_user_model,
pack_image,
pack_pha,
pack_table,
plot_data,
rebin,
save_data,
save_image,
save_pha,
save_table,
set_data,
ungroup,
unpack_arf,
unpack_arrays,
unpack_ascii,
unpack_bkg,
unpack_data,
unpack_image,
unpack_pha,
unpack_rmf,
unpack_table
|