(ms)
return len(_bft_threshold)
Convert wind from metres per second to Beaufort scale
Convert wind from metres per second to Beaufort scale
Convert wind from metres per second to Beaufort scale
def wind_bft(ms):
    "Convert wind from metres per second to Beaufort scale"
    if ms is None:
        return None
    for bft in range(len(_bft_threshold)):
        if ms < _bft_threshold[bft]:
            return bft
    return len(_bft_threshold)
def wind_bft ( ms ) : if ms is None : return None for bft in range ( len ( _bft_threshold ) ) : if ms < _bft_threshold [ bft ] : return bft return len ( _bft_threshold )