- pysteps.blending.steps.calculate_weights_spn(correlations, cov)#
Calculate SPN blending weights for STEPS blending from correlation.
correlations (array-like) – Array of shape [n_components] containing correlation (skills) for each component (NWP models and nowcast).
cov (array-like) – Array of shape [n_components, n_components] containing the covariance matrix of the models that will be blended. If cov is set to None and correlations only contains one model, the weight equals the correlation on that scale level and the noise component weight equals 1 - this weight.
weights – Array of shape [component+1] containing the weights to be used in STEPS blending for each original component plus an addtional noise component.
- Return type: