Learn R Programming

DSWE (version 1.8.2)

imptPower: Power imputation

Description

Good power curve modeling requires valid power values in the region between cut-in and cut-out wind speed. However, when turbine is not operating, the power production will be recorded as zero or negative. This function replaces those values with predicted values obtained from the estimated tempGP power curve model using one input variable - the wind speed.

Usage

imptPower(
  data,
  powercol,
  vcol,
  vrange,
  rated.power = NULL,
  sample = TRUE,
  size = 2500
)

Value

a list containing datasets with the imputed power.

Arguments

data

A list of two data sets that require imputation.

powercol

A numeric stating the column number of power production.

vcol

A numeric stating the column number of wind speed.

vrange

A vector of cut-in, rated, and cut-out wind speed.

rated.power

A numerical value stating the wind turbine rated power.

sample

A boolean (TRUE/FALSE) indicating whether to use sample or the whole data sets to train the power curve.

size

A numeric stating the size of sample when sample = TRUE. Default value is 2500. It is only used when sample = TRUE.

References

Latiffianti, E, Ding, Y, Sheng, S, Williams, L, Morshedizadeh, M, Rodgers, M (2022). "Analysis of leading edge protection application on wind turbine performance through energy and power decomposition approaches". Wind Energy. 2022; 1-19. tools:::Rd_expr_doi("10.1002/we.2722").

Examples

Run this code

data = list(data1[1:100,], data2[1:120, ])
powercol = 7
vcol = 2
vrange = c(5,12,25)
rated.power = 100
sample = FALSE

imputed.dat = imptPower(data, powercol, vcol, vrange, rated.power, sample)

Run the code above in your browser using DataLab