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.10, 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.2.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 | Provenance | Actions |
|---|---|---|---|---|
| crflux-2.2.0.tar.gz | 104.1 kB | Without provenance | Details for crflux-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crflux-2.2.0-py3-none-any.whl | Python 3 | none | any | Details for crflux-2.2.0-py3-none-any.whl |
Total release size: 199.6 kB
Release files / crflux-2.2.0.tar.gz
| Download URL | crflux-2.2.0.tar.gz |
|---|---|
| Size | 104.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
465445ca67236a1fdcecd56bf639b4e7afa6db92130bb89914bb59f159055120
|
|
BLAKE2b-256 checksum How to use checksums |
71c59948806e68f2d35baa41c31bc825e28f964db4de5182c73ef69949d6eb05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / crflux-2.2.0-py3-none-any.whl
| Download URL | crflux-2.2.0-py3-none-any.whl |
|---|---|
| Size | 95.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9238c4925bb7764f9d6475b069d0349afa618cec0f16a3828ffc9ea446b0bc19
|
|
BLAKE2b-256 checksum How to use checksums |
4eb471ac46569e440e6eade80febf87eebe2abf56d704d20fa9aeef6e37e8e3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for crflux 2.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.