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 details)
Built Distribution
File details
Details for the file daemonflux-0.5.1.tar.gz
.
File metadata
- Download URL: daemonflux-0.5.1.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a077d151483d74150b6581a292513aab3e9b7f2f1ce635577efff95b7ca85f04 |
|
MD5 | 18194096ecefa6655a23e1aabea47051 |
|
BLAKE2b-256 | 31ed008224af1d2b50586d8ff967a617af48089ce13731310f4c8d99db6acb06 |
File details
Details for the file daemonflux-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: daemonflux-0.5.1-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | faee9326c12ff5504b79a603696049e180fba0fc40d394bd50c3a2d84d2851e4 |
|
MD5 | d0b39d3863b7053b2af4e263db3d1965 |
|
BLAKE2b-256 | 502865a6892131b52bdd39cbd86b38d7bb1ca4a80aea36790fea4c325c935c54 |