Add observation error to some matrix
The routine is called during the analysis step of the stochastic EnKF. It it provided with a matrix in observation space and has to add the observation error covariance matrix.
This routine assumes a diagonal observation error covariance matrix, but allows for varying observation error variances.
The routine can be applied with either all observations of different types at once, or separately for each observation type. The operation is done with all process-local observations
Revision history: * 2020-03 - Lars Nerger - Initial code from restructuring observation routines * Later revisions - see repository log
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(obs_f), | intent(in) | :: | thisobs | |||
integer, | intent(in) | :: | nobs_all | |||
real, | intent(inout) | :: | matC(:,:) |