Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version 6.9 #9

Open
maxnoe opened this issue May 24, 2020 · 3 comments
Open

Add version 6.9 #9

maxnoe opened this issue May 24, 2020 · 3 comments

Comments

@maxnoe
Copy link
Member

maxnoe commented May 24, 2020

Currently missing but used for many cta simulations

@chesarex
Copy link

chesarex commented Sep 14, 2020

Dear Maximilian Nöthe,

I'm a new CORSIKA user. Using corsikaio code, I tried to read the binary data and graphics (position (x, y) and momentum) but I have problems. Could you help me.
I used the following example.

from corsikaio import CorsikaCherenkovFile
import matplotlib.pyplot as plt


with CorsikaCherenkovFile('DAT000001') 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()

DAT000001.zip

@maxnoe
Copy link
Member Author

maxnoe commented Sep 14, 2020

@chesarex

This is not really related to CORSIKA 6.9, right?

I think the problem is, that you are reading the wrong file.
The DAT files normally contain the particle information, not the Cherenkov information.

So you probably just want to read your file using corsikaio.CorsikaParticleFile or read the CER000001 file instead.

@chesarex
Copy link

chesarex commented Sep 14, 2020

is a CORSIKA 7.56

I think the problem is, that you are reading the wrong file.

you're right, my simulation is a cosmic-ray shower.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants