Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crflux-1.0.2.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

crflux-1.0.2-py2.py3-none-any.whl (12.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file crflux-1.0.2.tar.gz.

File metadata

  • Download URL: crflux-1.0.2.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for crflux-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0fd9511b68a9d212059a05f1ece526fd0c39edbe792988f272243f1937da7df8
MD5 002bed7148f314f85977bf90fe6d5e49
BLAKE2b-256 d0367fe0014b029a0f696b4da0e2e6750dd3843cf0225c03de80cbeb09583173

See more details on using hashes here.

File details

Details for the file crflux-1.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: crflux-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for crflux-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 972a9b2d9ddedd4025c32ada67de1f4c13ea3b1653492c8527ec9cb236d1a6b5
MD5 4040bad8f471d02a5d2229f91e0ca429
BLAKE2b-256 6edb02b435ffb69126f9f4f35a67e7fc51ae352b38eb5a0c2a826b4bb3d8f527

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page