MapDatasetMaker¶
-
class
gammapy.makers.
MapDatasetMaker
(selection=None, background_oversampling=None)[source]¶ Bases:
gammapy.makers.Maker
Make maps for a single IACT observation.
- Parameters
- selectionlist
List of str, selecting which maps to make. Available: ‘counts’, ‘exposure’, ‘background’, ‘psf’, ‘edisp’ By default, all maps are made.
- background_oversamplingint
Background evaluation oversampling factor in energy.
Attributes Summary
Methods Summary
make_background
(geom, observation)Make background map.
make_counts
(geom, observation)Make counts map.
make_edisp
(geom, observation)Make energy dispersion map.
make_edisp_kernel
(geom, observation)Make energy dispersion kernel map.
make_exposure
(geom, observation)Make exposure map.
make_exposure_irf
(geom, observation)Make exposure map with irf geometry.
make_meta_table
(observation)Make info meta table.
make_psf
(geom, observation)Make psf map.
run
(dataset, observation)Make map dataset.
Attributes Documentation
-
available_selection
= ['counts', 'exposure', 'background', 'psf', 'edisp']¶
-
tag
= 'MapDatasetMaker'¶
Methods Documentation
-
make_background
(geom, observation)[source]¶ Make background map.
- Parameters
- geom
Geom
Reference geom.
- observation
Observation
Observation container.
- geom
- Returns
- background
Map
Background map.
- background
-
static
make_counts
(geom, observation)[source]¶ Make counts map.
- Parameters
- geom
Geom
Reference map geom.
- observation
Observation
Observation container.
- geom
- Returns
- counts
Map
Counts map.
- counts
-
make_edisp
(geom, observation)[source]¶ Make energy dispersion map.
- Parameters
- geom
Geom
Reference geom.
- observation
Observation
Observation container.
- geom
- Returns
- edisp
EDispMap
Edisp map.
- edisp
-
make_edisp_kernel
(geom, observation)[source]¶ Make energy dispersion kernel map.
- Parameters
- geom
Geom
Reference geom. Must contain “energy” and “energy_true” axes in that order.
- observation
Observation
Observation container.
- geom
- Returns
- edisp
EDispKernelMap
EdispKernel map.
- edisp
-
static
make_exposure
(geom, observation)[source]¶ Make exposure map.
- Parameters
- geom
Geom
Reference map geom.
- observation
Observation
Observation container.
- geom
- Returns
- exposure
Map
Exposure map.
- exposure
-
static
make_exposure_irf
(geom, observation)[source]¶ Make exposure map with irf geometry.
- Parameters
- geom
Geom
Reference geom.
- observation
Observation
Observation container.
- geom
- Returns
- exposure
Map
Exposure map.
- exposure
-
static
make_meta_table
(observation)[source]¶ Make info meta table.
- Parameters
- observation
Observation
Observation
- observation
- Returns
- meta_table:
Table
- meta_table:
-
make_psf
(geom, observation)[source]¶ Make psf map.
- Parameters
- geom
Geom
Reference geom.
- observation
Observation
Observation container.
- geom
- Returns
- psf
PSFMap
Psf map.
- psf
-
run
(dataset, observation)[source]¶ Make map dataset.
- Parameters
- dataset
MapDataset
Reference dataset.
- observation
Observation
Observation
- dataset
- Returns
- dataset
MapDataset
Map dataset.
- dataset