hera_sim.sigchain.apply_gains

hera_sim.sigchain.apply_gains(vis: float | ndarray, gains: dict[int, float | numpy.ndarray], bl: tuple[int, int]) ndarray[source]

Apply antenna-based gains to a visibility.

Parameters:
  • vis – The visibilities of the given baseline as a function of frequency.

  • gains – Dictionary where keys are antenna numbers and values are arrays of gains as a function of frequency.

  • bl – 2-tuple of integers specifying the antenna numbers in the particular baseline.

Returns:

vis – The visibilities with gains applied.