windkit.io.windio.read_site#
- windkit.io.windio.read_site(path, resolve=False)[source]#
Parse a windIO site YAML file and wrap in plant structure.
Warning
windIO support is experimental. API may change in future versions.
This function reads a standalone site 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 site 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 site data.
- Return type:
- Raises:
FileNotFoundError – If file does not exist.
Examples
>>> from windkit.io.windio import read_site >>> from windkit.io.windio.translate import wwc_from_windio >>> plant_data = read_site("site.yaml") >>> wwc = wwc_from_windio(plant_data, crs="EPSG:32632")