SkyModel¶
-
class
gammapy.cube.models.
SkyModel
(spatial_model, spectral_model, name='SkyModel')[source]¶ Bases:
gammapy.cube.models.SkyModelBase
Sky model component.
This model represents a factorised sky model. It has a
Parameters
combining the spatial and spectral parameters.TODO: add possibility to have a temporal model component also.
Parameters: spatial_model :
SkySpatialModel
Spatial model (must be normalised to integrate to 1)
spectral_model :
SpectralModel
Spectral model
name : str
Model identifier
Attributes Summary
parameters
Parameters ( Parameters
)spatial_model
SkySpatialModel
spectral_model
SpectralModel
Methods 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-2
Parameters: lon, lat :
Quantity
Spatial coordinates
energy :
Quantity
Energy coordinate
Returns: value :
Quantity
Model value at the given point.
-