def decode_variable_value(coded, limits):
    """Transform coded values between -1 and +1 into real scale values.

    Parameters
    ----------
    coded : float
        Coded variable value.
    limits : Tuple of 2 floats.
        Minimum and maximum real variable values.

    Returns
    -------
    float
        Variable real value.
    """
    x_max, x_min = max(limits), min(limits)
    return ((coded+1) * (x_max-x_min) * 0.5) + x_min