MapDataset¶
-
class
gammapy.cube.MapDataset(model, counts=None, exposure=None, mask=None, psf=None, edisp=None, background_model=None, likelihood='cash', evaluation_mode='local')[source]¶ Bases:
gammapy.utils.fitting.DatasetPerform sky model likelihood fit on maps.
Parameters: - model :
SkyModelorSkyModels Source sky models.
- counts :
WcsNDMap Counts cube
- exposure :
WcsNDMap Exposure cube
- mask :
WcsNDMap Mask to apply to the likelihood.
- psf :
PSFKernel PSF kernel
- edisp :
EnergyDispersion Energy dispersion
- background_model :
BackgroundModelorBackgroundModels Background models to use for the fit.
- likelihood : {“cash”, “cstat”}
Likelihood function to use for the fit.
- evaluation_mode : {“local”, “global”}
Model evaluation mode.
The “local” mode evaluates the model components on smaller grids to save computation time. This mode is recommended for local optimization algorithms. The “global” evaluation mode evaluates the model components on the full map. This mode is recommended for global optimization algorithms.
Attributes Summary
data_shapeShape of the counts data (tuple) modelSky model to fit ( SkyModelorSkyModels)parametersList of parameters ( Parameters)Methods Summary
likelihood(parameters[, mask])Total likelihood given the current model parameters. likelihood_per_bin()Likelihood per bin given the current model parameters npred()Predicted source and background counts ( Map).Attributes Documentation
-
data_shape¶ Shape of the counts data (tuple)
-
model¶ Sky model to fit (
SkyModelorSkyModels)
-
parameters¶ List of parameters (
Parameters)
Methods Documentation
- model :