pack_table

sherpa.astro.io.pack_table(dataset)[source] [edit on github]

Convert a Sherpa data object into an I/O item (tabular).

Parameters:

dataset (a sherpa.data.Data1D derived object) –

Returns:

An object representing the data, the format of which depends on the I/O backend.

Return type:

obj

See also

pack_image, pack_pha

Examples

>>> d = sherpa.data.Data1D('tmp', [1, 2, 3], [4, 10, 2])
>>> tbl = pack_table(d)