Skip to content

Python reader for CORSIKA binary file format

License

Notifications You must be signed in to change notification settings

oven8/pycorsikaio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pycorsikaio CI PyPI version

Python module to read the CORSIKA binary output files.

Install

Run

pip install corsikaio

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()

About

Python reader for CORSIKA binary file format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%