Function metfor::spd_dir_to_uv [−][src]
pub fn spd_dir_to_uv(
from_dir_in_degrees: f64,
speed_in_knots: f64
) -> (f64, f64)
Convert wind speed (wind direct is the direction the wind is blowing from) into U-V components.
Returns a tuple (u_mps, v_mps)
, which is the U and V wind components in meters per second.