DMProfile

class gammapy.astro.darkmatter.profiles.DMProfile[source]

Bases: abc.ABC

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__(self, radius) Call evaluate method of derived classes.
integral(self, rmin, rmax, \*\*kwargs) Integrate squared dark matter profile numerically.
scale_to_local_density(self) 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

__call__(self, radius)[source]

Call evaluate method of derived classes.

integral(self, 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()

scale_to_local_density(self)[source]

Scale to local density.