CompoundSkyModel¶
-
class
gammapy.cube.models.CompoundSkyModel(model1, model2, operator)[source]¶ Bases:
gammapy.cube.models.SkyModelBaseRepresents the algebraic combination of two
SkyModelParameters: model1, model2 :
SkyModelTwo sky models
operator : callable
Binary operator to combine the models
Attributes Summary
parametersParameters ( 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-2Parameters: lon, lat :
QuantitySpatial coordinates
energy :
QuantityEnergy coordinate
Returns: value :
QuantityModel value at the given point.
-