pyrex.custom.arianna.antenna._read_response_data¶
-
pyrex.custom.arianna.antenna.
_read_response_data
(filename)¶ Gather antenna effective height data from a set of WIPLD data files.
Data files should exist with names filename.ra1 and filename.ad1. The
.ad1
file should contain frequencies in the first column, real and imaginary parts of the impedance in the sixth and seventh columns, and S-parameter data in the eighth and ninth columns. The.ra1
file should contain phi and theta in the first two columns, the real and imaginary parts of the phi field in the next two columns, and the real and imaginary parts of the theta field in the next two columns. This should be divided into sections for each frequency with a header line ” > Gen. no. 1 X GHz 73 91 Gain” where “X” is the frequency in GHz.- Parameters
- filenamestr
Name of the data files without extension. Extensions
.ra1
and.ad1
will be added automatically.
- Returns
- theta_responsendarray
3-D array of complex-valued effective heights in the theta polarization as a function of frequency along axis 0, zenith along axis 1, and azimuth along axis 2.
- phi_responsendarray
3-D array of complex-valued effective heights in the phi polarization 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 theta_response and phi_response.
- thetasndarray
Zenith angles (degrees) corresponding to axis 1 of theta_response and phi_response.
- phisndarray
Azimuth angles (degrees) corresponding to axis 2 of theta_response and phi_response.
- Raises
- ValueError
If the frequency values of the
.ra1
and.ad1
files don’t match.