Skip to contents

Parse a CSV (or data.frame) with wind speed and power in kW. Understands NREL/IEA headers such as Wind Speed [m/s] and Power [kW]. Optional Ct is returned as an attribute. Does not ship manufacturer curves; pass your own file or an open IEA/NREL reference CSV. See experimental/climate_helpers.R.

Usage

read_power_curve(file)

Arguments

file

Path to a CSV, or a data.frame.

Value

A data.frame with ws and power. Attribute ct is a matching data.frame when a thrust column is present.

Examples

curve <- data.frame(
  `Wind Speed [m/s]` = c(3, 8, 12, 25),
  `Power [kW]` = c(0, 1200, 2000, 2000),
  check.names = FALSE
)
read_power_curve(curve)
#>   ws power
#> 1  3     0
#> 2  8  1200
#> 3 12  2000
#> 4 25  2000