def UV(DD,FF,met=False):
    '''
    #requires testing
    DD is the heading direction of the wind
    to get met. standart, call UV(DD,FF,met=True)
    '''
    u = FF * sp.sin(DDsp.pi/180)
    v = FF * sp.cos(DDsp.pi/180)
    if met==True:
        u,v=-u,-v
    return u,v
DD is the direction and FF is speed
fix by Victor.