firecrown.metadata_functions.extract_window_function

firecrown.metadata_functions.extract_window_function#

firecrown.metadata_functions.extract_window_function(sacc_data, indices)[source]#

Extract ells and weights for a window function.

Params sacc_data:

the Sacc object from which we read.

Params indices:

the indices of the data points in the Sacc object which are computed by the window function.

Return type:

tuple[None | ndarray[tuple[int, ...], dtype[int64]], None | ndarray[tuple[int, ...], dtype[float64]]]

Returns:

the ells and weights of the window function that match the given indices from a sacc object, or a tuple of (None, None) if the indices represent the measured Cells directly.

Parameters:
  • sacc_data (Sacc) –

  • indices (ndarray[tuple[int, ...], dtype[int64]]) –