crflux.models: parameterizations of the Cosmic Ray flux
Historically, this module was part of the research code for a paper A. Fedynitch, J. Becker Tjus, and P. Desiati, Phys. Rev. D 86, 114024 (2012), where we compared the effects of different Cosmic Ray Flux models on the atmospheric lepton flux.
This code is now an integral dependency of the atmospheric neutrino and air-shower cascade research code MCEq: Matrix Cascade Equations (MCEq) providing:
- numerical models/parameterizations of high energy cosmic ray fluxes,
- conversions from all-particle into all-nucleon flux,
- geomagnetic cutoff support (rigidity cutoff in GV),
- and other convenience functions for semi-analytical atmospheric lepton flux calculations.
Documentation
Documentation. Please acknowledge the code by citing the paper above.
Requirements
Python >= 3.9, numpy, scipy.
Installation
pip install crflux
Example
import numpy as np
import crflux.models as mods
model = mods.HillasGaisser2012("H3a")
E = np.logspace(1, 11, 100)
pfrac, p_flux, n_flux = model.p_and_n_flux(E)
# With geomagnetic cutoff of 7 GV
model_cut = mods.HillasGaisser2012("H3a", geomagnetic_cutoff=7.0)
pfrac_cut, p_cut, n_cut = model_cut.p_and_n_flux(E)
Contributors
Hans Dembinski @HDembinski
MIT LICENSE
Code and documentation copyright 2015 Anatoli Fedynitch
Metadata
Release files for crflux 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| crflux-2.1.0.tar.gz | 100.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| crflux-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 194.1 kB
Release files / crflux-2.1.0.tar.gz
| Download URL | crflux-2.1.0.tar.gz |
|---|---|
| Size | 100.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05355956e45192ddae403433912382177e40510ecbf7878b20c93fa9533d0d79
|
|
BLAKE2b-256 checksum How to use checksums |
1490821386a88c13143f4066a539648078cf5af61e0957e0032e80bab15d6514
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / crflux-2.1.0-py3-none-any.whl
| Download URL | crflux-2.1.0-py3-none-any.whl |
|---|---|
| Size | 93.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
230b006a31b743f84bb0272b0a087a0071dde45099ec2090656e8a09b98bc256
|
|
BLAKE2b-256 checksum How to use checksums |
8336a39d39bc8ebb8526b6af61f7ef6ecc80be9535a972cb38f31049a2c1d2a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|