Note

You are not reading the stable version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

IsothermalProfile

class gammapy.astro.darkmatter.profiles.IsothermalProfile(r_s=None, rho_s=<Quantity 1. GeV / cm3>)[source]

Bases: gammapy.astro.darkmatter.profiles.DMProfile

Isothermal Profile.

ρ(r)=ρs1+(r/rs)2
Parameters
r_sQuantity

Scale radius, rs

References

Attributes Summary

DEFAULT_SCALE_RADIUS

Default scale radius as given in reference 2

DISTANCE_GC

LOCAL_DENSITY

Methods Summary

__call__(radius)

Call evaluate method of derived classes.

evaluate(radius, r_s, rho_s)

integral(rmin, rmax, **kwargs)

Integrate squared dark matter profile numerically.

scale_to_local_density()

Scale to local density.

Attributes Documentation

DEFAULT_SCALE_RADIUS = <Quantity 4.38 kpc>

Default scale radius as given in reference 2

DISTANCE_GC = <Quantity 8.33 kpc>
LOCAL_DENSITY = <Quantity 0.3 GeV / cm3>

Methods Documentation

__call__(radius)

Call evaluate method of derived classes.

static evaluate(radius, r_s, rho_s)[source]
integral(rmin, rmax, **kwargs)

Integrate squared dark matter profile numerically.

F(rmin,rmax)=rmaxrminρ(r)2dr
Parameters
rmin, rmaxQuantity

Lower and upper bound of integration range.

**kwargsdict

Keyword arguments passed to integrate_spectrum()

scale_to_local_density()

Scale to local density.