PyREx

pyrex.custom.ara.antenna._read_arasim_antenna_data

pyrex.custom.ara.antenna._read_arasim_antenna_data(filename)

Gather antenna directionality data from an AraSim-formatted data file.

The data file should have columns for theta, phi, dB gain, non-dB gain, and phase (in degrees). This should be divided into sections for each frequency with a header line “freq : X MHz”, optionally followed by a second line “SWR : Y”.

Parameters
filenamestr

Name of the data file.

Returns
responsendarray

3-D array of complex-valued voltage gains as a function of frequency along axis 0, zenith along axis 1, and azimuth along axis 2.

frequenciesndarray

Frequencies (Hz) corresponding to axis 0 of response.

thetasndarray

Zenith angles (degrees) corresponding to axis 1 of response.

phisndarray

Azimuth angles (degrees) corresponding to axis 2 of response.

PyREx

A Python package for simulation of neutrinos and radio antennas in ice. Version 1.10.0

Navigation