def turb44(msg):
    """Turblence.

    Args:
        msg (String): 28 bytes hexadecimal message string

    Returns:
        int: turbulence level. 0=NIL, 1=Light, 2=Moderate, 3=Severe

    """
    d = hex2bin(data(msg))

    if d[46] == '0':
        return None

    turb = bin2int(d[47:49])

    return turb
def turb44 ( msg ) : d = hex2bin ( data ( msg ) ) if d [ 46 ] == '0' : return None turb = bin2int ( d [ 47 : 49 ] ) return turb
Turblence.

    Args:
        msg (String): 28 bytes hexadecimal message string

    Returns:
        int: turbulence level. 0=NIL, 1=Light, 2=Moderate, 3=Severe