Data reduction (DL3 to DL4)#

The gammapy.makers sub-package contains classes to perform data reduction tasks from DL3 data to binned datasets. In the data reduction step the DL3 data is prepared for modeling and fitting, by binning events into a counts map and interpolating the exposure, background, psf and energy dispersion on the chosen analysis geometry.

Background estimation#

Safe data range definition#

The definition of a safe data range is done using the SafeMaskMaker or manually.

Using gammapy.makers#

Examples using gammapy.makers.MapDatasetMaker#

Low level API

Low level API

HAWC with Gammapy

HAWC with Gammapy

Point source sensitivity

Point source sensitivity

Spectral analysis of extended sources

Spectral analysis of extended sources

Spectral analysis

Spectral analysis

Spectral analysis with energy-dependent directional cuts

Spectral analysis with energy-dependent directional cuts

1D spectrum simulation

1D spectrum simulation

Basic image exploration and fitting

Basic image exploration and fitting

Event sampling

Event sampling

Sample a source with energy-dependent temporal evolution

Sample a source with energy-dependent temporal evolution

3D map simulation

3D map simulation

Light curves for flares

Light curves for flares

Simulating and fitting a time varying source

Simulating and fitting a time varying source

Pulsar analysis

Pulsar analysis

Makers - Data reduction

Makers - Data reduction

Examples using gammapy.makers.SpectrumDatasetMaker#

Point source sensitivity

Point source sensitivity

Spectral analysis of extended sources

Spectral analysis of extended sources

Spectral analysis

Spectral analysis

Spectral analysis with energy-dependent directional cuts

Spectral analysis with energy-dependent directional cuts

1D spectrum simulation

1D spectrum simulation

Basic image exploration and fitting

Basic image exploration and fitting

Light curves for flares

Light curves for flares

Simulating and fitting a time varying source

Simulating and fitting a time varying source

Pulsar analysis

Pulsar analysis

Makers - Data reduction

Makers - Data reduction