windkit.generalized_wind_climate.to_libfile

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

Creates lib-style ascii file from gwc dataset

Parameters:
  • gwc (xarray.Dataset) – Generalized wind climate dataset.

  • path (str) – dir or file path for storing lib file Default value set to the current working directory.

  • 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.