py21cmsense.observatory.Observatory.grid_baselines¶
-
Observatory.grid_baselines(self, integration_time, bl_min=0, bl_max=inf, observation_duration=None, ndecimals=0, baseline_groups=None)[source]¶ Grid baselines onto a pre-determined uvgrid, accounting for earth rotation.
- Parameters
integration_time (float or Quantity) – The amount of time integrated into a snapshot visibility, assumed to be in seconds.
bl_min (float or Quantity, optional) – Minimum baseline length (in meters) to include in the gridding.
bl_max (float or Quantity, optional) – Maximum baseline length (in meters) to include in the gridding.
observation_duration (float or Quantity, optional) – Amount of time in a single (coherent) LST bin, assumed to be in minutes.
ndecimals (int, optional) – Number of decimals to which baselines must match to be considered redundant.
baseline_groups (array, optional) – A dictionary of redundant baseline groups. Can be computed with
baseline_groups(). If not given, will be calculated on-the-fly.
- Returns
array – Shape [n_baseline_groups, Nuv, Nuv]. The coherent sum of baselines within grid cells given by
ugrid. One can treat different baseline groups independently, or sum over them.
See also
grid_baselines_coherent()Coherent sum over baseline groups of the output of this method.
grid_basleine_incoherent()Incoherent sum over baseline groups of the output of this method.