pywasp.wasp.gross_aep

pywasp.wasp.gross_aep(wwc, wtg, /, wind_turbines=None, *, use_sectors=True, interpolate=False, air_density=None)[source]

Calculate annual energy production (AEP), using the WAsP core Fortran implementation, from Weibull wind climate(s) and Wind Turbine Generator(s) or WindTurbines object.

Warning

This function is experimental and its signature may change.

Parameters:
  • wwc (Dataset) – Weibull Wind Climate (WWC) Dataset containing sectorwise Weibull A’s and k’s and frequencies.

  • wtg (Dataset, dict, wk.WindTurbines) –

    • If a xr.Dataset is passed it should be a WTG formatted dataset. PyWAsP will assume WWC points match the turbines hub height and that the WTG is the same for all turbines

    • If a dict of wtg_keys and WTG xr.Datasets is passed, a turbines dataset must be passed as well, and the key’s must match between the two.

    • A wk.WindTurbines object can also be passed, but is deprecated and will be removed in a future version.

  • wind_turbines (Dataset, optional) – Wind Turbine locations, hub heights, group_id’s, and wtg_keys.

  • use_sectors (bool) – Whether to use sectors (“A” and “k”) or total (“A_combined” and “k_combined”)

  • interpolate (bool) – Whether to use power curve interpolation.

  • air_density (float) – Air density to use for the AEP calculation. If not passed, the air density from the WWC will be used. If air_density is passed, it will be used, and overwrite the air density in the WWC, if present.

Returns:

Dataset – Gross Annual Energy Production in GWh for each turbine/location.

Raises:
  • TypeError – If wtg is not a xr.Dataset or wk.WindTurbines object.

  • ValueError – If required variables are not in the WWC.

  • ValueError – If air_density is not in the WWC and no explicit value was passed.

  • ValueError – If any license error occurs during the AEP calculation.