windDir: Convert u,v wind in wind direction in degrees

Description Usage Arguments Value Author(s) Examples

View source: R/fdbk_asdataframe.R

Description

Convert u,v wind in wind direction in degrees

Usage

1
windDir(u, v)

Arguments

u

u wind vector

v

v wind vector

Value

wind direction in degree (0 - <360), 360 is set to 0, if u&v=0 then return NA

Author(s)

Felix <[email protected]>

Examples

1
2
3
u = c( 10,   0,   0, -10,  10,  10, -10, -10, 0)
v = c(  0,  10, -10,   0,  10, -10,  10, -10, 0)
windDir(u,v)

rfxf/Rfdbk documentation built on Dec. 17, 2018, 9:14 a.m.