rotax: Rotate coordinate axis for uv wind components

Description Usage Arguments Value Author(s) Examples

Description

Rotates coordinate axes for uv components of the wind. uv values will be re-calculated based on new axis. For instance, rotating axis 30 degrees in clockwise means new and old positive y-directions will have 30 degrees between them.

Usage

1
rotax(..., alfa = 45, deg = T, right = T, drop = T)

Arguments

...

The names of the objects to be converted.

alfa

Rotation angle in degrees or radians.

deg

TRUE if alfa is degree.

right

TRUE if rotation is in clockwise.

drop

Should be deleted the dimensions of an array which have only one level?

Value

Rotated uv components

Author(s)

Ismail SEZEN, sezenismail@gmail.com

Examples

1
2
3
4
rotax(1, 1)
rotax(1, 1, alfa = 120)
x <- array(runif(100, -5, 5), dim = c(100, 100, 2))
rotax(x)

isezen/rwind documentation built on May 18, 2019, 5:49 a.m.