Skip to content

ensemble_tools⚓︎

Conversion of the stacked state matrix into a per-variable dictionary of arrays.

matrix_to_dict(matrix, indecies) ⚓︎

Convert an ensemble matrix to a dictionary of arrays.

Parameters:

Name Type Description Default
matrix ndarray

Ensemble matrix where each column represents an ensemble member.

required
indecies dict

Dictionary with keys as variable names and values as tuples indicating the start and end row indices for each variable in the ensemble matrix.

required

Returns:

Name Type Description
ensemble_dict dict

Dictionary with keys as variable names and values as arrays of shape (nx, ne).