create_map_dataset_geoms#

gammapy.datasets.create_map_dataset_geoms(geom, energy_axis_true=None, migra_axis=None, rad_axis=None, binsz_irf=<Quantity 0.2 deg>, reco_psf=False)[source]#

Create map geometries for a MapDataset.

Parameters:
geomWcsGeom

Reference target geometry with a reconstructed energy axis. It is used for counts and background maps. Additional external data axes can be added to support e.g. event types.

energy_axis_trueMapAxis

True energy axis used for IRF maps.

migra_axisMapAxis

If set, this provides the migration axis for the energy dispersion map. If not set, an EDispKernelMap is produced instead. Default is None.

rad_axisMapAxis

Rad axis for the PSF map.

binsz_irffloat

IRF Map pixel size in degrees.

reco_psfbool

Use reconstructed energy for the PSF geometry. Default is False.

Returns:
geomsdict

Dictionary with map geometries.