rcatool.utils.atmosphys.wind2uv
- rcatool.utils.atmosphys.wind2uv(ws, wd, dir_unit='rad')[source]
Converts wind speed and direction to u and v components.
- Parameters:
ws – Wind speed data
floats (float/array of) – Wind speed data
wd – Wind direction data
floats – Wind direction data
dir_deg – Units of the wind direction data; ‘rad’ (default) or ‘deg’.
string – Units of the wind direction data; ‘rad’ (default) or ‘deg’.
- Returns:
u and v wind components
- Return type:
(u, v), floats/arrays of floats