def climatology_plus_stdev_with_lowbar(inval, inclimav, instdev, limit, lowbar):
    """
    Climatology check with standard deviation-based limits but with a minimum width

    :param inval: value to be compared to climatology
    :param inclimav: the climatological average to which it will be compared
    :param instdev: the standard deviation which will be used to test the anomaly
    :param limit: maximum standardised anomaly
    :param lowbar: the anomaly must be greater than lowbar to fail regardless of standard deviation
    :return: return 1 if the difference is outside the specified range, 0 otherwise.
    """

    assert limit > 0, "multiplier must be positive and non-zero"

    result = 0
    if inval is None or inclimav is None or instdev is None:
        result = 1
    else:
        if abs(inval - inclimav) / instdev > limit and abs(inval - inclimav) > lowbar:
            result = 1

    assert result == 0 or result == 1

    return result