windkit.read_tswc

windkit.read_tswc(filename, file_format='infer', **kwargs)[source]

Reads a time series wind climate file into a xarray.Dataset.

Parameters:
  • filename (str) – path to the file to be read.

  • file_format (str) – format of the file to be read. If ‘infer’ is passed, the function will try to infer the format from the file extension. Defaults to ‘infer’.

  • **kwargs (dict) – Additional arguments that are forwarded to the specific file reader.

Returns:

Time series wind climate dataset.

Return type:

xarray.Dataset