Skip to main content

PyPI 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), 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.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crflux 2.3.0
File Size Uploaded Provenance Actions
crflux-2.3.0.tar.gz 106.9 kB Without provenance Details for crflux-2.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crflux 2.3.0
File Interpreter ABI Platform Actions
crflux-2.3.0-py3-none-any.whl Python 3 none any Details for crflux-2.3.0-py3-none-any.whl

Total release size: 203.8 kB

Release files / crflux-2.3.0.tar.gz

Download URL crflux-2.3.0.tar.gz
Size 106.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ce6d419a26f80027ad09218e8305c21849d0a3ba7bb49d932c8c73fb299278a9
BLAKE2b-256 checksum
How to use checksums
8f034f966391bd829ebd2043cbb85d72b3a1c5e01350c8388226875283b03f34
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.3.0-py3-none-any.whl

Download URL crflux-2.3.0-py3-none-any.whl
Size 96.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
108086ef544d449002454fde67be9ddd8ba79d1b68970c2b66564f3d9263fd30
BLAKE2b-256 checksum
How to use checksums
93baef5ead94ed6c9c21852c622b5a872f62628ba31a20fb6a447fd69811066f
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.3.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page