datasets - Reduced datasets#

gammapy.datasets Package#

Functions#

create_map_dataset_geoms(geom[, ...])

Create map geometries for a MapDataset.

Classes#

Dataset()

Dataset abstract base class.

Datasets([datasets])

Container class that holds a list of datasets.

FluxPointsDataset([models, data, mask_fit, ...])

Bundle a set of flux points with a parametric model, to compute fit statistic function using chi2 statistics.

MapDataset([models, counts, exposure, ...])

Main map dataset for likelihood fitting.

MapDatasetEventSampler([random_state])

Sample events from a map dataset.

MapDatasetOnOff([models, counts, ...])

Map dataset for on-off likelihood fitting.

OGIPDatasetWriter(filename[, format, overwrite])

Write OGIP files.

OGIPDatasetReader(filename)

Read SpectrumDatasetOnOff from OGIP files.

SpectrumDataset([models, counts, exposure, ...])

Main dataset for spectrum fitting (1D analysis).

SpectrumDatasetOnOff([models, counts, ...])

Spectrum dataset for 1D on-off likelihood fitting.

Variables#

DATASET_REGISTRY

Registry of dataset classes in Gammapy.