Skip to main content

Parameterizations of the cosmic ray flux at Earth

Project description

# 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)](http://journals.aps.org/prd/abstract/10.1103/PhysRevD.86.114024), 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)](https://github.com/afedynitch/MCEq) providing:

  • numerical models/parameterizations of high energy cosmic ray fluxes,

  • conversions from all-particle into all-nucleon flux,

  • and 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

[The documentation is located here](http://crfluxmodels.readthedocs.org/en/latest/index.html). Please acknowledge the code by citing the paper above.

## 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 [@HDembinski](https://github.com/HDembinski)

## [MIT LICENSE](LICENSE)

Code and documentation copyright 2015 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.4.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: crflux-1.0.4.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for crflux-1.0.4.tar.gz
Algorithm Hash digest
SHA256 bab19bae960b14d107f59280f8a7d5575e5ef27a97b8e1cd5f766ea92aa9f556
MD5 973c9faf5e98645c3e41bf485ec0e889
BLAKE2b-256 675346a158a96400e8f4a992e0e99a226f5a8a5ed06127a44ed7283bbe0a1574

See more details on using hashes here.

File details

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

File metadata

  • Download URL: crflux-1.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for crflux-1.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d2cb67fbaaafe203a33da0151b290cd601e5ecf49d0ce9d11fc7720779cf9a66
MD5 4eff63fe6cccd3fa60658c151a877228
BLAKE2b-256 8637a80a447840688c1546888c99ef0dca3b7b1f5cad6a445ad2e13403b8664e

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