NuRadioReco.modules.io.coreas package

Submodules

NuRadioReco.modules.io.coreas.coreas module

NuRadioReco.modules.io.coreas.coreas.calculate_simulation_weights(positions)

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.get_angles(corsika)

Converting angles in corsika coordinates to local coordinates

NuRadioReco.modules.io.coreas.coreas.make_sim_shower(corsika, observer=None, detector=None, station_id=None)
NuRadioReco.modules.io.coreas.coreas.make_sim_station(station_id, corsika, observer, channel_ids, weight=None)

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

station_idstation id

the id of the station to create

corsikahdf5 file object

the open hdf5 file object of the corsika hdf5 file

observer : hdf5 observer object channel_ids : weight : weight of individual station

weight corresponds to area covered by station

sim_station: sim station

ARIANNA simulated station object

NuRadioReco.modules.io.coreas.readCoREAS module

class NuRadioReco.modules.io.coreas.readCoREAS.readCoREAS

Bases: object

begin(input_files, station_id, n_cores=10, max_distance=2000.0, seed=None)

begin method

initialize readCoREAS module

input_files: input files

list of coreas hdf5 files

station_id: station id

id number of the station

n_cores: number of cores (integer)

the number of random core positions to generate for each input file

max_distance: radius of random cores (double or None)

if None: max distance is set to the maximum ground distance of the star pattern simulation

seed: int (default: None)

Seed for the random number generation. If None is passed, no seed is set

end()
run(detector, output_mode=0)

Read in a random sample of stations from a CoREAS file. A number of random positions is selected within a certain radius. For each position the closest observer is selected and a simulated event is created for that observer.

detector: Detector object

Detector description of the detector that shall be simulated

output_mode: integer (default 0)

0: only the event object is returned 1: the function reuturns the event object, the current inputfilename, the distance between the choosen station and the requested core position,

and the area in which the core positions are randomly distributed

NuRadioReco.modules.io.coreas.readCoREASStation module

class NuRadioReco.modules.io.coreas.readCoREASStation.readCoREASStation

Bases: object

begin(input_files, station_id)

begin method

initialize readCoREAS module

input_files: input files

list of coreas hdf5 files

station_id: station id

id number of the radio station as defined in detector

end()
run(detector)

Reads in all observers in the CoREAS files and returns a new simulated event for each.

detector: Detector object

Detector description of the detector that shall be simulated

NuRadioReco.modules.io.coreas.simulationSelector module

class NuRadioReco.modules.io.coreas.simulationSelector.simulationSelector

Bases: object

Module that let’s you select CoREAS simulations based on certain criteria, e.g. signal in a relevant band certain arrival directions, energies, etc.

begin(debug=False)
end()
run(evt, sim_station, det, frequency_window=[0.1, 0.5], n_std=8)

run method, selects CoREAS simulations that have any signal in desired frequency_window. Crude approximation with n_std sigma * noise

evt: Event sim_station: sim_station

CoREAS simulated efields

det: Detector frequency_window: list

[lower, upper] frequencies that will be used for analysis

n_std: int

number of std deviations needed, can make cut stricter, if needed

selected_sim: bool

if True then simulation has signal in desired range

Module contents