windkit.io.wasp.parse_owc_element#

windkit.io.wasp.parse_owc_element(owc)[source]#

Parse an lxml XML element for an observed wind climate.

Parameters:

owc (lxml.etree._Element) – The <RveaObservedWindClimate> root element.

Returns:

Dictionary with keys: - “wsfreq”: ndarray(n_wsbins, n_sectors) - wind speed frequencies (0-1) - “wdfreq”: ndarray(n_sectors) - wind direction frequencies (0-1) - “wsbins”: ndarray(n_wsbins+1) - wind speed bin edges - “coords”: dict with “south_north”, “west_east”, “height” - “metadata”: dict with “description”

Return type:

dict