windkit.io.windio.read_wind_resource#
- windkit.io.windio.read_wind_resource(path, resolve=False)[source]#
Parse a windIO wind_resource YAML file and wrap in plant structure.
Warning
windIO support is experimental. API may change in future versions.
This function reads a standalone wind_resource file and wraps it in a minimal plant structure so it can be used with the from_windio translation functions.
- Parameters:
path (str or pathlib.Path) – Path to windIO wind_resource YAML file.
resolve (bool, optional) – If True, eagerly resolve all
!includemarkers. Default is False (markers are preserved for lazy resolution).
- Returns:
Plant-like dictionary with the wind_resource data.
- Return type:
- Raises:
FileNotFoundError – If file does not exist.
Examples
>>> from windkit.io.windio import read_wind_resource >>> from windkit.io.windio.translate import wwc_from_windio >>> plant_data = read_wind_resource("wind_resource.yaml") >>> wwc = wwc_from_windio(plant_data, crs="EPSG:32632")