windkit.wind_turbines.create_wind_turbines_from_arrays

windkit.wind_turbines.create_wind_turbines_from_arrays(west_east: ndarray[Any, dtype[_ScalarType_co]] | list[float], south_north: ndarray[Any, dtype[_ScalarType_co]] | list[float], height: ndarray[Any, dtype[_ScalarType_co]] | list[float], wtg_keys: ndarray[Any, dtype[_ScalarType_co]] | list[int | str], turbine_ids: ndarray[Any, dtype[_ScalarType_co]] | list[int | str] | None = None, group_ids: ndarray[Any, dtype[_ScalarType_co]] | list[int | str] | None = None, crs: str | int = 'EPSG:4326') Dataset[source]

Creates a point dataset with required metadata from explicit arrays.

Parameters:
  • west_east (NDArray | list[float]) – west-east coordinates of the turbines.

  • south_north (NDArray | list[float]) – south-north coordinates of the turbines.

  • height (NDArray | list[float]) – height of the turbines.

  • wtg_keys (NDArray | list[int | str]) – wtg_keys of the turbines.

  • turbine_ids (NDArray | list[int | str] | None, optional) – turbine identifiers. If not set defaults to an integer from 0 to to the number of rows, by default None

  • group_ids (NDArray | list[int | str] | None, optional) – group identifiers. If not set defaults to 0, by default None

  • crs (_type_, optional) – Projection of the locations, by default “EPSG:4326”

Raises:

ValueError – ValueError: if input is ill-formed.

Returns:

Windkit point dataset that includes the metadata needed for AEP calculations.

Return type:

xr.Dataset