DMProfile¶
-
class
gammapy.astro.darkmatter.profiles.
DMProfile
[source]¶ Bases:
object
DMProfile model base class.
Attributes Summary
DISTANCE_GC
Distance to the Galactic Center as given in reference 2 LOCAL_DENSITY
Local dark matter density as given in refenrece 2 Methods Summary
__call__
(radius)Call evaluate method of derived classes. integral
(rmin, rmax, **kwargs)Integrate squared dark matter profile numerically. scale_to_local_density
()Scale to local density. Attributes Documentation
-
DISTANCE_GC
= <Quantity 8.33 kpc>¶ Distance to the Galactic Center as given in reference 2
-
LOCAL_DENSITY
= <Quantity 0.3 GeV / cm3>¶ Local dark matter density as given in refenrece 2
Methods Documentation
-
integral
(rmin, rmax, **kwargs)[source]¶ Integrate squared dark matter profile numerically.
\[F(r_{min}, r_{max}) = \int_{r_{min}}^{r_{max}}\rho(r)^2 dr\]Parameters: rmin, rmax :
Quantity
Lower and upper bound of integration range.
**kwargs : dict
Keyword arguments passed to
integrate_spectrum()
-