Tabulated representation of a muon-calibrated neutrino flux model
Project description
daemonflux: DAta-drivEn and MuOn-calibrated Neutrino flux
Daemonflux is a tabulated/splined version of the an atmospheric flux model calibrated on muon spectrometer data.
Requirements
Python > 3.7
,numpy
,scipy
matplotlib
for examples
Installation
a) From PyPi:
pip install daemonflux
b) From source in editable mode, so the package gets updated after each git pull
:
$ git clone https://github.com/mceq-project/daemonflux
$ cd daemonflux
$ python3 -m pip install -e .
Usage
Follow the example, where more features are demonstrated. But in a nutshell, calculating calibrated fluxes from the provided tables works like:
from daemonflux import Flux
import numpy as np
import matplotlib.pyplot as plt
daemonflux = Flux(location='generic')
egrid = np.logspace(0,5) # Energy in GeV
fl = daemonflux.flux(egrid, '15', 'numuflux')
err = daemonflux.error(egrid, '15', 'numuflux')
plt.loglog(egrid, fl, color='k')
plt.fill_between(egrid, fl + err, fl - err,
color='r', alpha=.3, label=r'1$\sigma$ error')
...
Resulting in the following figure:
Citation
Coming soon.
LICENSE
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
daemonflux-0.5.1.tar.gz
(13.1 kB
view hashes)
Built Distribution
daemonflux-0.5.1-py3-none-any.whl
(10.0 kB
view hashes)
Close
Hashes for daemonflux-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | faee9326c12ff5504b79a603696049e180fba0fc40d394bd50c3a2d84d2851e4 |
|
MD5 | d0b39d3863b7053b2af4e263db3d1965 |
|
BLAKE2b-256 | 502865a6892131b52bdd39cbd86b38d7bb1ca4a80aea36790fea4c325c935c54 |