NuRadioReco.detector.LOFAR.analog_components module
- NuRadioReco.detector.LOFAR.analog_components.load_cable_response(cable_length)[source]
- Parameters:
- cable_length: int or float
length of the coax cable of the corresponding channel
- Returns:
- default: dict
A dictionary containing the cable attenuation values for the specified cable length. The dictionary has the following keys:
‘frequencies’: An array of frequency values ranging from 30 MHz to 80 MHz.
‘attenuation’: An array of cable attenuation values corresponding to the frequencies.
- NuRadioReco.detector.LOFAR.analog_components.get_cable_response(frequencies, cable_length)[source]
Calculate the cable response for given frequencies and cable length.
This function loads the LOFAR cable response based on the provided cable length, interpolates the attenuation values for the specified frequencies, and returns the interpolated cable response.
- Parameters:
- frequencies: array-like
An array of frequency values for which the cable response is to be calculated.
- cable_length: int or float
The length of the cable for which the response is to be loaded.
- Returns:
- cable: dict
A dictionary containing the interpolated cable attenuation values for the specified frequencies. The dictionary has the following key:
‘attenuation’: An array of interpolated attenuation values corresponding to the input frequencies.
- NuRadioReco.detector.LOFAR.analog_components.load_RCU_response()[source]
Load the RCU (Receiver Control Unit) response data.
This function reads the RCU gain data from a text file located in the “signalchain” directory relative to the current module’s directory. It then constructs a dictionary containing the frequency range and the corresponding gain values.
- Returns:
- rcu_response: dict
A dictionary containing the RCU response data with the following keys:
‘frequencies’: An array of frequency values ranging from 30 MHz to 80 MHz.
‘gain’: An array of gain values in dB corresponding to the frequencies.
- NuRadioReco.detector.LOFAR.analog_components.get_RCU_response(frequencies)[source]
Fetches the RCU response for given frequencies.
This function loads the LOFAR RCU response, interpolates the gain values for the specified frequencies, and returns the interpolated RCU response.
- Parameters:
- frequencies: array-like
An array of frequency values for which the RCU response is to be calculated.
- Returns:
- system: dict
A dictionary containing the interpolated RCU gain values for the specified frequencies. The dictionary has the following key:
‘gain’: An array of interpolated gain values corresponding to the input frequencies.