使用numpy的corsika二进制输出文件读取器
corsikaio的Python项目详细描述
皮科西卡约
python模块读取corsika二进制输出文件。
安装
运行
pip install corsikaio
功能
使用python和numpy加载corsika二进制粒子或cherenkov数据文件。
还支持MMCS 6.5
fromcorsikaioimportCorsikaCherenkovFileimportmatplotlib.pyplotaspltwithCorsikaCherenkovFile('cer000001')asf:print(f.run_header['run_number'])print(f.version)foreinf:print(e.header['total_energy'])plt.scatter(e.photons['x'],e.photons['y'])plt.show()