SkyModel¶
-
class
gammapy.cube.models.
SkyModel
(spatial_model, spectral_model, name='source')[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
evaluation_radius
Angle
frame
name
parameters
Parameters ( Parameters
)position
SkyCoord
spatial_model
SkySpatialModel
spectral_model
SpectralModel
Methods Summary
__call__
(self, lon, lat, energy)Call self as a function. copy
(self, \*\*kwargs)Copy SkyModel evaluate
(self, lon, lat, energy)Evaluate the model at given points. to_dict
(self[, selection])Attributes Documentation
-
frame
¶
-
name
¶
-
parameters
¶ Parameters (
Parameters
)
-
spatial_model
¶
-
spectral_model
¶
Methods Documentation
-
__call__
(self, lon, lat, energy)¶ Call self as a function.
-
evaluate
(self, 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: Returns: - value :
Quantity
Model value at the given point.
- value :
-
to_dict
(self, selection='all')¶
- spatial_model :