- pysteps.verification.salscores.sal_amplitude(prediction, observation)#
Compute the amplitude component for SAL based on [WPHF08].
This component is the normalized difference of the domain-averaged precipitation in observation and forecast.
prediction (array-like) – Array of shape (m,n) with prediction data. NaNs are ignored.
observation (array-like) – Array of shape (m,n) with observation data. NaNs are ignored.
amplitude – Amplitude parameter with value between -2 to 2 and 0 denotes perfect forecast in terms of amplitude. The returned value is NaN if no objects are detected in neither the prediction nor the observation.
- Return type