def fss_compute(fss):
    """
    Compute the FSS.

    Parameters
    ----------
    fss: dict
       An FSS object initialized with
       :py:func:`pysteps.verification.spatialscores.fss_init`
       and accumulated with
       :py:func:`pysteps.verification.spatialscores.fss_accum`.

    Returns
    -------
    out: float
        The computed FSS value.
    """
    numer = fss["sum_fct_sq"] - 2.0 * fss["sum_fct_obs"] + fss["sum_obs_sq"]
    denom = fss["sum_fct_sq"] + fss["sum_obs_sq"]

    return 1.0 - numer / denom
Compute the FSS.

Parameters
----------
fss: dict
An FSS object initialized with
:py:func:`pysteps.verification.spatialscores.fss_init`
and accumulated with
:py:func:`pysteps.verification.spatialscores.fss_accum`.

Returns
-------
out: float
The computed FSS value.
pysteps/verification/spatialscores.py