Reader for corsika binary output files using numpy
Project description
pycorsikaio
Python module to read the CORSIKA binary output files.
Install
Run
pip install https://github.com/fact-project/pycorsikaio/archive/master.tar.gz
Features
Load CORSIKA binary particle or cherenkov data files using python and numpy.
Also supports MMCS 6.5
from corsikaio import CorsikaCherenkovFile
import matplotlib.pyplot as plt
with CorsikaCherenkovFile('cer000001') as f:
print(f.run_header['run_number'])
print(f.version)
for e in f:
print(e.header['total_energy'])
plt.scatter(e.photons['x'], e.photons['y'])
plt.show()
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
corsikaio-0.1.1.tar.gz
(6.7 kB
view hashes)