pyrex.custom.arianna.antenna._read_amplifier_data¶
-
pyrex.custom.arianna.antenna.
_read_amplifier_data
(gain_filename, phase_filename, gain_offset=0)¶ Gather frequency-dependent amplifier data from data files.
Each data file should have columns for frequency, gain or phase data, and a third empty column. The gain should be in dB and the phase should be in degrees.
- Parameters
- gain_filenamestr
Name of the data file containing gains (in dB).
- phase_filenamestr
Name of the data file containing phases (in degrees).
- gain_offsetfloat, optional
Offset to apply to the gain values (in dB).
- Returns
- gainsndarray
Complex-valued voltage gains as a function of frequency.
- frequenciesndarray
Frequencies (Hz) corresponding to the values of gains.