BackgroundModel¶
-
class
gammapy.modeling.models.BackgroundModel(map, norm=1, tilt=0, reference='1 TeV', name='background', filename=None)[source]¶ Bases:
gammapy.modeling.ModelBackground model.
Create a new map by a tilt and normalization on the available map
Parameters: Attributes Summary
energy_centerTrue energy axis bin centers ( Quantity)filenamemapnamenormparametersParameters ( Parameters)referencetagtiltMethods Summary
copy(self)A deep copy. create(tag, \*args, \*\*kwargs)Create a model instance. evaluate(self)Evaluate background model. from_dict(data)to_dict(self)Attributes Documentation
-
filename¶
-
map¶
-
name¶
-
norm¶
-
parameters¶ Parameters (
Parameters)
-
reference¶
-
tag= 'BackgroundModel'¶
-
tilt¶
Methods Documentation
-
copy(self)¶ A deep copy.
-
static
create(tag, *args, **kwargs)¶ Create a model instance.
Examples
>>> from gammapy.modeling import Model >>> spectral_model = Model.create("PowerLaw2SpectralModel", amplitude="1e-10 cm-2 s-1", index=3) >>> type(spectral_model) gammapy.modeling.models.spectral.PowerLaw2SpectralModel
-