wind_stats.
GWAReader
Methods
load(fp)
load
Deserialize fp GWC file-like object to dataset.
loads(s[, encoding])
loads
Deserialize s (a str, bytes or bytearray instance containing a GWC document) to Dataset.
PowerCurve
Power curve.
wind speed data
power data
Examples
>>> power_data = [ 43.0, 184.0, 421.0, 778.0, 1270.0, 1905.0, 2593.0, 3096.0, 3268.0, 3297.0, 3300.0, ] * units.kW >>> wind_speeds = np.arange(3, 13) * units("m/s") >>> power_curve = PowerCurve(wind_speeds, power_data) >>> power_curve(8 * units("m/s")) <Quantity(1905.0, 'kilowatt')> >>> power_curve(40 * units("m/s")) <Quantity(0.0, 'kilowatt')>
__call__(x)
__call__
Linear interpolation on the power curve.
Site
Site location.
Attributes
latitude
longitude
distribution: WindDistribution
elevation
avg_temperature
create_gwa_data(latitude, longitude, …)
create_gwa_data
Create Site with Global Wind Atlas Data.
get_mean_power_density()
get_mean_power_density
Get mean power density in W/m².
air_density
Retrieve GWA data & initiate Site with Wind distribution.
Notes
Mean power density :
mean_power_density
mean_wind
Mean wind speeds at site in m/s.
WindDistribution
Wind distribution.
mean_wind_speed
from_data(wind_speed_data, roughness_length, …)
from_data
Create KDE WindDistribution based on measurement data.
from_gwc(gwc_dataset, roughness_length, height)
from_gwc
Create Weibull WindDistribution based on GWC file dataset.
moment(n)
moment
Get n-raw moment of the distribution.
pdf(x)
pdf
Probability density function.
weibull(A, k)
weibull
Create Weibull WindDistribution.
WindTurbine
rotor_area
Swept rotor area.
get_annual_energy_production(site)
get_annual_energy_production
Get annual energy production.
get_energy_production(site, time)
get_energy_production
Calculate energy output over a period of time.
get_mean_power(site)
get_mean_power
Mean power output.
get_power_coefficients()
get_power_coefficients
Get Cp coefficients for wind speeds defined in the power curve.
Integrate wind frequency with power curve & annual hours.
Site where the wind turbine is located.
Annual energy to be expected in Wh.
See also
Get energy production over any period of time.
period of time the result energy is produced.
Get energy output over a year.
The energy produced is the integration of the power production on the wind speed probability density function over time:
The power coefficient \(C_p\) is the ratio between the power extracted & the theoretical wind power available going through the swept area.
get_gwc_data
Get GWC file from Global Wind Atlas API.
See Global Wind Atlas Term of Use : https://globalwindatlas.info/about/TermsOfUse
get_weibull_parameters
Get A, k Weibull parameters based on GWA dataset files.
It computes based on roughness length & height for each wind rose sector.
dataset read from GWC file.
array of 12 roughness lengths for each azimuthal wind sector (30°) or a global roughness_length.
height at which wind is measured.
Global weibull parameters & normalized frequencies for each sector.