| AHELP for CIAO 4.5 Sherpa v1 | delete_data |
Context: data |
Synopsis
Delete a data set by ID
Syntax
delete_data( [id] )
Description
The delete_data() function deletes a data set from a Sherpa session by data set ID.
- id - the id of the data set to use; if not given, uses the default dataset id (id=1 by default, see "ahelp get_default_id")
Example 1
sherpa> delete_data()
When called with no arguments, delete_data() will remove the default data set from the Sherpa session.
sherpa> print(get_data().name) obsid_1843.pi sherpa> delete_data() sherpa> print(get_data().name) IdentifierError'>: data set 1 has not been set
Example 2
sherpa> delete_data("src")If supplied with a data set ID, delete_data() will remove the specified data set.
Bugs
See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.
See Also
- data
- copy_data, dataspace1d, dataspace2d, fake, get_axes, get_bkg_plot, get_counts, get_data, get_data_plot, get_dep, get_dims, get_error, get_quality, get_specresp, get_staterror, get_syserror, group, load_ascii, load_data, load_grouping, load_quality, set_data, set_quality, ungroup, unpack_ascii, unpack_data
- filtering
- get_filter, load_filter, set_filter
- info
- get_default_id, list_data_ids, list_response_ids
- modeling
- clean
- plotting
- plot_data, set_xlinear, set_xlog, set_ylinear, set_ylog
- saving
- save_error, save_filter, save_grouping, save_quality, save_staterror, save_syserror
- utilities
- calc_data_sum, calc_data_sum2d, calc_ftest, calc_kcorr, calc_mlr, calc_model_sum2d, calc_source_sum2d, get_rate
- visualization
- contour, contour_data, contour_ratio, get_ratio, get_resid, histogram1d, histogram2d, image_data, rebin

![[Sherpa Logo]](../imgs/sherpa_logo_navbar.gif)