windkit.mean_power_density#
- windkit.mean_power_density(wc_obj, *, bysector=False, air_density=1.225, n_sectors=None)[source]#
Calculate the power density of wind climate object
- Parameters:
wc_obj (xarray.Dataset) – Binned, Weibull or time series wind climate.
bysector (bool) – Calculate the power density by sector, defaults to False. A time series wind climate is binned into sectors with
windkit.wd_to_sector(), skipping samples without a direction.air_density (float or xarray.DataArray) – Air density, defaults to 1.225.
n_sectors (int, optional) – Number of sectors to bin a time series wind climate into when
bysectoris True. Defaults to 12.
- Returns:
mean_power_density. Missing samples of a time series are skipped, and a sector without samples gives NaN.- Return type:
- Raises:
ValueError – If
wc_objis not a known wind climate, orn_sectorsis given for anything but a time series wind climate withbysector=Trueor is not a positive integer.