def wind44(msg):
    """Wind speed and direction.

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

    Returns:
        (int, float): speed (kt), direction (degree)

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

    status = int(d[4])
    if not status:
        return None

    speed = bin2int(d[5:14])   # knots
    direction = bin2int(d[14:23]) * 180.0 / 256.0  # degree

    return round(speed, 0), round(direction, 1)
def wind44 ( msg ) : d = hex2bin ( data ( msg ) ) status = int ( d [ 4 ] ) if not status : return None speed = bin2int ( d [ 5 : 14 ] ) direction = bin2int ( d [ 14 : 23 ] ) * 180.0 / 256.0 return round ( speed , 0 ) , round ( direction , 1 )
Wind speed and direction.

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

    Returns:
        (int, float): speed (kt), direction (degree)