hera_sim.sigchain.gen_reflection_coefficient

hera_sim.sigchain.gen_reflection_coefficient(freqs, amp, dly, phs, conj=False)

Randomly generate reflection coefficients.

Parameters:
  • freqs (array_like of float) – Frequencies, units are arbitrary but must be the inverse of dly.

  • amp (array_like of float) – Either a scalar amplitude, or 1D with size Nfreqs, or 2D with shape (Ntimes, Nfreqs).

  • dly ([type]) – Either a scalar delay, or 1D with size Nfreqs, or 2D with shape (Ntimes, Nfreqs). Units are inverse of freqs.

  • phs ([type]) – Either a scalar phase, or 1D with size Nfreqs, or 2D with shape (Ntimes, Nfreqs). Units radians.

  • conj (bool, optional) – Whether to conjugate the gain.

Returns:

array_like – The reflection gains as a 2D array of (Ntimes, Nfreqs).