gammapy.spectrum.cosmic_ray_flux(energy, particle='proton')[source]

Cosmic ray flux at Earth.

These are the spectra assumed in this CTA study: Table 3 in….43..171B

The hadronic spectra are simple power-laws, the electron spectrum is the sum of a power law and a log-normal component to model the “Fermi shoulder”.

energy : Quantity

Particle energy

particle : {‘electron’, ‘proton’, ‘He’, ‘N’, ‘Si’, ‘Fe’}

Particle type

flux : Quantity

Cosmic ray flux in unit m^-2 s^-1 TeV^-1 sr^-1