windkit.wind_turbine_generator.read_wtg

windkit.wind_turbine_generator.read_wtg(wtg_file, file_format='wasp', regulation_type='pitch')[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 rotor_diameter : rotor diameter in meters hub_height : hub height a.g.l. in meters 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) – XML file format to use. Only “wasp” formatting is supported currently.

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

Returns:

WTG dataset

Return type:

xr.Dataset