windkit.read_tswc#
- windkit.read_tswc(filename, *, crs=None, 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.
crs (int, dict, str or CRS, None, optional) – Coordinate reference system. Required for windIO YAML files.
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. For windIO YAML files, the ‘level’ argument can be provided here to specify the windIO hierarchy level of the input file: ‘plant’, ‘site’, ‘energy_resource’, or ‘wind_resource’. Defaults to ‘plant’.
- Returns:
Time series wind climate dataset.
- Return type: