Numerical model of the cosmic ray flux at Earth
Project description
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 - therefore the name.
This code is now an integral dependency of the atmospheric neutrino and air-shower cascade research code MCEq Matrix Cascade Equation (MCEq), providing:
numerical models/parameterizations of high energy cosmic ray fluxes,
conversions from all-particle into all-nucleon flux,
other convenience functions for semi-analytical atmospheric lepton flux calculations.
Performance was never a bottle-neck, thus it’s not the most numerically brilliant code to date. But it does the job!
If you find it too slow for your applications feel free to open an issue or send a pull request or just branch/fork and let me know.
Documentation and Citations
Checkout the documentation for more in-depth info. If you are using one of these models in your research, cite the paper referenced in the documentation. Feel free to acknowledge or footnote crflux.models.
Requirements
Python 2 or 3, numpy, scipy, matplotlib
Installation
pip install crflux
Example
The interaction with the classes and plotting is demonstrated in the test() method:
from crflux.models import * test()
Contributors
Hans Dembinski (github:HDembinski)
MIT LICENSE
Code and documentation copyright 2014 Anatoli Fedynitch
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for crflux-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c55e1cd90339b0d128a0637574d8ff789d4cd7231deec7fed13ebb1f6e503c90 |
|
MD5 | b11c08f41bad5044be04615da385e202 |
|
BLAKE2b-256 | 2de03858297761de1bbd27b0e34411a71c75911362c884b9d1b3f01357757e5b |