SkyModel¶
-
class
gammapy.cube.models.SkyModel(spatial_model, spectral_model, name='SkyModel')[source]¶ Bases:
gammapy.cube.models.SkyModelBaseSky model component.
This model represents a factorised sky model. It has a
Parameterscombining the spatial and spectral parameters.TODO: add possibility to have a temporal model component also.
Parameters: spatial_model :
SkySpatialModelSpatial model (must be normalised to integrate to 1)
spectral_model :
SpectralModelSpectral model
name : str
Model identifier
Attributes Summary
parametersParameters ( Parameters)spatial_modelSkySpatialModelspectral_modelSpectralModelMethods Summary
__call__(lon, lat, energy)Call self as a function. copy()A deep copy evaluate(lon, lat, energy)Evaluate the model at given points. Attributes Documentation
-
parameters¶ Parameters (
Parameters)
-
spatial_model¶
-
spectral_model¶
Methods Documentation
-
__call__(lon, lat, energy)¶ Call self as a function.
-
copy()¶ A deep copy
-
evaluate(lon, lat, energy)[source]¶ Evaluate the model at given points.
The model evaluation follows numpy broadcasting rules.
Return differential surface brightness cube. At the moment in units:
cm-2 s-1 TeV-1 deg-2Parameters: lon, lat :
QuantitySpatial coordinates
energy :
QuantityEnergy coordinate
Returns: value :
QuantityModel value at the given point.
-