kalmanFilter.localize
Implement covariance localization for a Kalman Filter
Syntax
Description
Implements covariance localization for a Kalman Filter. Covariance localization reduces the covariance of observation sites with state vector elements. Often, the localization is implemented so that covariance becomes zero outside of some localization radius. This prevents observation sites from updating distant state vector elements outside of the radius. Covariance localization is implemented after inflation, but before blending.
The first input provides the localization weights between the state vector rows and observation sites. It should be a 3D array with one row per state vector element, and one column per observation site. The second input is the localization weights between the observation sites and each other. It should be a 3D array with one row and one column per observation site. Each element along the third dimension of yloc must be a symmetric matrix.
The two inputs must have the same number of elements along the third dimension. If the third dimension has one element (i.e. both inputs are matrices), then uses the same localization weights in all time steps. Otherwise, the third dimension must have one element per time step (although see the next syntax for relaxing this requirement). The localization weights cannot include NaN values or negative values.
Indicates which set of localization weights to use in each assimilation time step. This syntax allows the number of sets of localization weights to differ from the number of time steps.
Returns the current localization weights for the Kalman filter.
obj = obj.localize(‘reset’)
Deletes any current localization weights from the Kalman Filter.