windkit.io.wasp.read_wtg#
- windkit.io.wasp.read_wtg(filepath)[source]#
Read a WAsP .wtg file and return parsed data.
- Parameters:
filepath (str or Path) – Path to the
.wtgfile.- Returns:
See
parse_wtg_element().- Return type:
- Raises:
lxml.etree.XMLSyntaxError – If the file is not well-formed XML. Subclasses
SyntaxError.WindkitFileFormatError – If a required element or attribute is missing, as described in
parse_wtg_element().