Learn R Programming

puff (version 0.1.0)

wind_vector_convert: Convert between (ws, wd) and (u,v)

Description

This function converts between coordinate systems by changing from degrees to radians

Usage

wind_vector_convert(wind_speeds,wind_directions)

Value

Quantities corresponding to the conversion direction

Arguments

wind_speeds

A list of float values of wind speeds in m/s at each time stamp

wind_directions

A list of float values of wind directions in degrees at each time stamp following the conventional definition: 0 -> wind blowing from North, 90 -> E, 180 -> S, 270 -> W

Examples

Run this code
out <- wind_vector_convert(c(5, 10), c(0, 90))

Run the code above in your browser using DataLab