get_partial_covariance_matrix

sofia_redux.scan.integration.integration_numba_functions.get_partial_covariance_matrix(covariance, indices)[source]

Return the covariance matrix for certain channel indices.

Parameters:
covariancenumpy.ndarray (float)

The covariance matrix of shape (all_channels, all_channels) where all_channels are those that were included in the reduction, but not the instrument stored channels.

indicesnumpy.ndarray (int)

The indices of the instrument channel of shape (n_channels,).

Returns:
partial_covariancenumpy.ndarray (float)

The partial covariance matrix of shape (n_channels, n_channels).