py21cmsense.observatory.Observatory.get_redundant_baselines

Observatory.get_redundant_baselines(baseline_filters: Callable | tuple[Callable] = (), ndecimals: int = 1) dict[tuple[float, float, float], list[tuple[int, int]]][source]

Determine all baseline groups.

Parameters:
  • baseline_filters – Callable function (or functions) of a single 3-coordinate baseline vector that returns a bool indicating whether to include the baseline.

  • ndecimals (int, optional) – The number of decimals to which the UV points must be the same to be considered redundant.

Returns:

dict (a dictionary in which keys are 3-tuples of (u,v, |u|) co-ordinates and) – values are lists of 2-tuples, where each 2-tuple consists of the indices of a pair of antennas with those co-ordinates.