I have a dataset containing wind speeds (m/s) and wind directions from (0,360) (degrees) - where 0deg is North, 90deg is East, etc. I want to "decompose" the wind speed so I get a u and v component in Python. Does anyone have any idea how to do that in Python? This is what I've tried so far: theta = np.radians(wdir) u = wspd * np.cos(theta) v = -wspd * np.sin(theta) V_rel_x = vx - u V_rel_y = vy - v V_rel_z = vz Continue reading...