windkit.workspace.Workspace.get_object

Workspace.get_object(ID, map_type='elevation', crs=None)[source]

Extracts object from .wwh file.

Parameters:
  • ID (int) – ID of object to be extracted.

  • map_type (str, optional) – Feature type to extract from mapfile Possible values ‘elevation’, ‘roughness’. Defaults to ‘elevation’.

  • crs (int, dict, str or pyproj.crs.CRS) – Value to initialize pyproj.crs.CRS Default, use from file.

Return type:

gwc, bwc, vector map or xarray.Dataset of turbine positions