windkit.weibull_wind_climate.read_grdfile

windkit.weibull_wind_climate.read_grdfile(grdfiles, regex_pattern=None, regex_var_order=None)[source]

Reads a .grd file into a weibull wind climate dataset.

Parameters:
  • grdfiles (str or list) – path of .grd file or list of .grd files.

  • regex_pattern (re str) – Filename regex pattern to extract height, sector, and variable name. Defaults to None.

  • regex_var_order (list or tuple) – Order of ‘height’, ‘sector’, and ‘var’ in regex_pattern. Defaults to None.

Returns:

wwc – Weibull wind climate dataset.

Return type:

xarray.Dataset