windrose_get_counts: Get Count Matrix for Windrose Plot

View source: R/windrose.R

windrose_get_countsR Documentation

Get Count Matrix for Windrose Plot

Description

The windrose method provides one windrose/wind count plot type. This function returns a matrix with counts for different multivariate bins (binning along wind direction dd and wind speed ff).

Usage

windrose_get_counts(
  x,
  dd.breaks = seq(0, 360, by = 30),
  ff.breaks = pretty(x$ff)
)

Arguments

x

data object of type zoo or data.frame. Needs to contain at least the two columns dd (meteorological wid direction in degrees, ]0, 360[) and ff with wind speed (range >= 0).

dd.breaks

numeric vector with breaks along wind direction. Default is seq(0, 360, by = 30).

ff.breaks

numeric vector with breaks along wind speed. default is pretty(x$ff).

Value

Returns a matrix of dimension length(dd.breaks) x length(ff.breaks) with counts >= 0.


retostauffer/Rfoehnix documentation built on June 5, 2023, 11:39 p.m.