NuRadioReco.modules.io.coreas.coreas module

NuRadioReco.modules.io.coreas.coreas.get_angles(corsika)[source]

Converting angles in corsika coordinates to local coordinates

NuRadioReco.modules.io.coreas.coreas.calculate_simulation_weights(positions, zenith, azimuth, site='summit', debug=False)[source]

Calculate weights according to the area that one simulated position represents. Weights are therefore given in units of area. Note: The volume of a 2d convex hull is the area.

NuRadioReco.modules.io.coreas.coreas.make_sim_station(station_id, corsika, observer, channel_ids, weight=None)[source]

creates an NuRadioReco sim station from the (interpolated) observer object of the coreas hdf5 file

Parameters:
station_idstation id

the id of the station to create

corsikahdf5 file object

the open hdf5 file object of the corsika hdf5 file

observerhdf5 observer object
channel_ids
weightweight of individual station

weight corresponds to area covered by station

Returns:
sim_station: sim station

simulated station object

NuRadioReco.modules.io.coreas.coreas.make_sim_shower(corsika, observer=None, detector=None, station_id=None)[source]

creates an NuRadioReco sim shower from the coreas hdf5 file

Parameters:
corsikahdf5 file object

the open hdf5 file object of the corsika hdf5 file

observerhdf5 observer object
detectordetector object
station_idstation id of the station relativ to which the shower core is given
Returns:
sim_shower: sim shower

simulated shower object