CompoundSkyModel¶
-
class
gammapy.cube.models.
CompoundSkyModel
(model1, model2, operator)[source]¶ Bases:
gammapy.cube.models.SkyModelBase
Represents the algebraic combination of two
SkyModel
Parameters: model1, model2 :
SkyModel
Two sky models
operator : callable
Binary operator to combine the models
Attributes Summary
parameters
Parameters ( Parameters
)Methods Summary
__call__
(lon, lat, energy)Call self as a function. copy
()A deep copy. evaluate
(lon, lat, energy)Evaluate the compound model at given points. Attributes Documentation
-
parameters
¶ Parameters (
Parameters
)
Methods Documentation
-
__call__
(lon, lat, energy)¶ Call self as a function.
-
copy
()¶ A deep copy.
-
evaluate
(lon, lat, energy)[source]¶ Evaluate the compound model at given points.
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.
-