Metadata-Version: 2.1
Name: crflux
Version: 1.0.6
Summary: Parameterizations of the cosmic ray flux at Earth
Home-page: https://github.com/afedynitch/crflux
Author: Anatoli Fedynitch
Author-email: afedynitch@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Intended Audience :: Science/Research
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: setuptools
Requires-Dist: numpy
Requires-Dist: scipy
Provides-Extra: tests
Requires-Dist: pytest ; extra == 'tests'
Requires-Dist: matplotlib ; extra == 'tests'

# `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



