wind_direction_from_wind_components: Functions to calculate wind direction and wind speed from...

View source: R/wind_direction_from_wind_components.R

wind_direction_from_wind_componentsR Documentation

Functions to calculate wind direction and wind speed from horizontal wind components.

Description

Functions to calculate wind direction and wind speed from horizontal wind components.

Usage

wind_direction_from_wind_components(u, v)

wind_speed_from_wind_components(u, v)

Arguments

u

u wind component. The wind component which represents flow from west to east.

v

v wind component. The wind component which represents flow from south to north.

Value

Numeric vector.

Author(s)

Stuart K. Grange

Examples


# Calculate wind direction in decimal degrees
wind_direction_from_wind_components(3.12, 0.29)

# Calculate wind speed in m s-1
wind_speed_from_wind_components(3.12, 0.29)


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.