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])

Dataset collection.

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, ...])

Bundle together binned counts, background, IRFs, models and compute a likelihood.

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, ...])

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

Variables#

DATASET_REGISTRY

Registry of dataset classes in Gammapy.