NuRadioReco.framework.station module

class NuRadioReco.framework.station.Station(station_id)[source]

Bases: BaseStation

Methods

get_ARIANNA_parameter(key)

get_station_time([format])

Returns a astropy.time.Time object

get_station_time_dict()

Return the station time as dict {value, format}.

get_triggers()

returns a dictionary of the triggers.

has_trigger(trigger_name)

checks if station has a trigger with a certain name

has_triggered([trigger_name])

convenience function.

remove_channel(channel_id)

Removes a channel from the station by deleting is from the channels dictionary.

set_is_cosmic_ray()

set station type to cosmic rays (relevant e.g.

set_is_neutrino()

set station type to neutrino

set_station_time(time[, format])

Set the (absolute) time for the station (stored as astropy.time.Time).

set_triggered([triggered])

convenience function to set a simple trigger.

add_channel

add_electric_field

deserialize

get_ARIANNA_parameters

get_channel

get_channel_ids

get_electric_fields

get_electric_fields_for_channels

get_id

get_magnetic_field_vector

get_number_of_channels

get_parameter

get_parameter_error

get_parameters

get_reference_direction

get_reference_reconstruction

get_sim_station

get_trigger

has_ARIANNA_parameter

has_parameter

has_sim_station

is_cosmic_ray

is_neutrino

iter_channel_group

iter_channels

remove_parameter

remove_triggers

serialize

set_ARIANNA_parameter

set_electric_fields

set_parameter

set_parameter_error

set_reference_reconstruction

set_sim_station

set_trigger

set_sim_station(sim_station)[source]
get_sim_station()[source]
has_sim_station()[source]
iter_channels(use_channels=None)[source]
get_channel(channel_id)[source]
iter_channel_group(channel_group_id)[source]
get_number_of_channels()[source]
get_channel_ids()[source]
add_channel(channel)[source]
remove_channel(channel_id)[source]

Removes a channel from the station by deleting is from the channels dictionary. The channel_id should be the id of the Channel, but supplying the Channel object itself is also supported.

Parameters:
channel_idint or NuRadioReco.framework.channel.Channel

The Channel (id) to remove from the Station.

set_reference_reconstruction(reference)[source]
get_reference_reconstruction()[source]
get_reference_direction()[source]
get_magnetic_field_vector(time=None)[source]
serialize(mode)[source]
deserialize(data_pkl)[source]
add_electric_field(electric_field)
get_ARIANNA_parameter(key)
get_ARIANNA_parameters()
get_electric_fields()
get_electric_fields_for_channels(channel_ids=None, ray_path_type=None)
get_id()
get_parameter(key)
get_parameter_error(key)
get_parameters()
get_station_time(format='isot')

Returns a astropy.time.Time object

Parameters:
format: str

Format in which the time object is displayed. (Default: isot)

Returns:
_station_time: astropy.time.Time
get_station_time_dict()

Return the station time as dict {value, format}. Used for reading and writing

get_trigger(name)
get_triggers()

returns a dictionary of the triggers. key is the trigger name, value is a trigger object

has_ARIANNA_parameter(key)
has_parameter(key)
has_trigger(trigger_name)

checks if station has a trigger with a certain name

Parameters:
trigger_name: string

the name of the trigger

Returns bool
has_triggered(trigger_name=None)

convenience function.

Parameters:
trigger_name: string or None (default None)
  • if None: The function returns False if not trigger was set. If one or multiple triggers were set,

    it returns True if any of those triggers triggered

  • if trigger name is set: return if the trigger with name ‘trigger_name’ has a trigger

is_cosmic_ray()
is_neutrino()
remove_parameter(key)
remove_triggers()
set_ARIANNA_parameter(key, value)
set_electric_fields(electric_fields)
set_is_cosmic_ray()

set station type to cosmic rays (relevant e.g. for refraction into the snow)

set_is_neutrino()

set station type to neutrino

set_parameter(key, value)
set_parameter_error(key, value)
set_station_time(time, format=None)

Set the (absolute) time for the station (stored as astropy.time.Time). Not related to the event._event_time.

Parameters:
time: astropy.time.Time or datetime.datetime or float

If “time” is a float, you have to specify its format.

format: str

Only used when “time” is a float. Format to interpret “time”. (Default: None)

set_trigger(trigger)
set_triggered(triggered=True)

convenience function to set a simple trigger. The recommended interface is to set triggers through the set_trigger() interface.