windkit.generalized_wind_climate.lib_string

windkit.generalized_wind_climate.lib_string(gwc, /, gen_height=None)[source]

Generates string representation of gwc dataset.

Parameters:
  • gwc (xarray.Dataset) – Dataset containing A, k, and wdfreq. Dimensions should be (‘gen_height’, ‘gen_roughness’, ‘sector’)

  • gen_height (float) – Value of gen_height to use for saving to libfile. Since libfiles only allow a single set of wdfreq values, when your data has varying wdfreq values, you need to set this value. It is selected using the .sel selector from xarray.

Returns:

String representation of gwc dataset.

Return type:

str