windkit.read_wtg#

windkit.read_wtg(wtg_file, file_format='infer', regulation_type='pitch', **kwargs)[source]#

Read in Wind Turbine Generator (WTG) data from a file.

A WTG dataset contains the following:

coordinates(dim):

wind_speed(wind_speed) : wind speed mode(mode) : each mode reprents different ct/power curves

variables(dims):

name : name of the WTG manufacturer : manufacturer name (optional, WAsP .wtg only) rotor_diameter : rotor diameter in meters hub_height : hub height a.g.l. in meters (first suggested height) suggested_heights(suggested_height) : all suggested hub heights from the WTG file regulation_type : Regulation type (1: stall, 2: pitch) air_density(mode) : Air density power curve table wind_speed_cutin(mode) : Wind speed cutin wind_speed_cutout(mode) : Wind speed cutout rated_power(mode) : Rated power power_output(mode, wind_speed) : Power output thrust_coefficient(mode, wind_speed) : Thrust coefficient

Parameters:
  • wtg_file (str, pathlib.Path) – WTG file to read

  • file_format (str) –

    File format to use. Supported formats: “nc” for netCDF files,

    ”wtg” (for WAsP .wtg files), “yml” and “yaml” (for windIO turbine YAML files), “infer” (auto-detect from extension). Default: “infer”.

  • regulation_type (str or None) – One of “stall”, “pitch” or None. If None, uses es timate_regulation_type to determine the regulation type. (Default: “pitch”)

  • **kwargs – Additional keyword arguments passed to format-specific readers. For windIO YAML, air_density can be specified.

Returns:

WTG dataset

Return type:

xr.Dataset