Learn R Programming

windfarmGA (version 5.0.0)

read_power_curve: Read a manufacturer or NREL/IEA power-curve table

Description

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)

Value

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

Arguments

file

Path to a CSV, or a data.frame.

See Also

Other Helper Functions: get_grids(), grid_area(), hexa_area(), isSpatial(), permutations(), splitAt(), wind_from_series(), wind_from_uv(), windata_format()

Examples

Run this code
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)

Run the code above in your browser using DataLab