DMProfile#
- class gammapy.astro.darkmatter.DMProfile[source]#
Bases:
ABCDMProfile model base class.
Attributes Summary
Local dark matter density as given in reference 2
Methods Summary
__call__(radius)Call evaluate method of derived classes.
integral(rmin, rmax, separation, ndecade[, ...])Integrate dark matter profile numerically.
integrate_spectrum_separation(func, xmin, ...)Squared dark matter profile integral.
scale_to_local_density(distance[, local_density])Scale to local density.
Attributes Documentation
- LOCAL_DENSITY = <Quantity 0.3 GeV / cm3>#
Local dark matter density as given in reference 2
Methods Documentation
- integral(rmin, rmax, separation, ndecade, squared=True, distance=None)[source]#
Integrate dark matter profile numerically.
\[\begin{split}F(r_{\min}, r_{\max}) = \int_{r_{\min}}^{r_{\max}}\rho(r)^\gamma dr \\ \gamma = 2 \text{ for annihilation} \\ \gamma = 1 \text{ for decay}\end{split}\]- Parameters:
- rmin, rmax
Quantity Lower and upper bound of integration range.
- separation
ndarray Separation angle in radians.
- ndecadeint, optional
Number of grid points per decade used for the integration. Default is 10000.
- squaredbool, optional
Square the profile before integration. Default is True.
- distance
Quantity Distance from the observer to the center of the dark matter halo, used to compute the line-of-sight integration geometry.
- rmin, rmax
- integrate_spectrum_separation(func, xmin, xmax, separation, ndecade, squared=True, distance=None)[source]#
Squared dark matter profile integral.
- Parameters:
- xmin, xmax
Quantity Lower and upper bound of integration range.
- separation
ndarray Separation angle in radians.
- ndecadeint
Number of grid points per decade used for the integration.
- squaredbool
Square the profile before integration. Default is True.
- distance
Quantity Distance from the observer to the center of the dark matter halo, used to compute the line-of-sight integration geometry.
- xmin, xmax
- __init__(*args, **kwargs)#
- classmethod __new__(*args, **kwargs)#