windkit.io.wasp.read_owc#

windkit.io.wasp.read_owc(filepath)[source]#

Read an .owc/.omwc XML file and return parsed data with normalized frequencies.

Parameters:

filepath (str or Path) – Path to the .owc or .omwc file.

Returns:

See parse_owc_element().

Return type:

dict

Raises:
  • lxml.etree.XMLSyntaxError – If the file is not well-formed XML. Subclasses SyntaxError.

  • WindkitFileFormatError – If a required element or attribute is missing or unparseable, as described in parse_owc_element().