windkit.wind_turbine_generator.WindTurbines

class windkit.wind_turbine_generator.WindTurbines(wts)[source]

WindTurbines object to hold a collection of Wind Turbine Generator’s (WTGs) and points.

Parameters:

wts (list) – list of tuples. Each tuple should contain a WTG and points dataset (wtg, points).

Examples

>>> from windkit import WindTurbines
>>> from windkit import read_wtg
>>> wtg = read_wtg("path/to/wtg_file.wtg")
>>> points = wk.spatial.create_dataset([10, 100], [40, 50], [50, 50], struct="point", crs="EPSG:32632")
>>> wts = WindTurbines([(wtg, points)])
>>> wts
2 "<Name of wind turbine model>" turbines

Methods

__init__(wts)

add_turbines(wts)

Add more wind turbines.

bbox()

Get the Bounding box of all the turbines.

plot_locations([ax])

Plot the locations of the turbines.

to_wtg_dict_and_turbines_ds()

Convert WindTurbines object to a dictionary of WTG datasets and a combined turbines dataset.

Attributes

coords

Get the combined coordinates for all the turbines in the WindTurbines object.

counts

Get the number of turbines for each WTG.