API Reference#
This page provides an auto-generated summary of PyWAsP’s API. For more details and examples, refer to the relevant chapters in the main part of the documentation.
General-purpose functions#
|
Convert raster map to vector map |
|
Converts a geopandas.GeoDataFrame vector map object to a xarray.DataArray raster map object. |
|
Class with methods to work with landcover tables |
|
Converts a geopandas.GeoDataFrame vectormap object to a xarray.DataArray rastermap object. |
|
Add post-processed meteorological fields to a wind climate. |
|
Calculate the sensitivity factor that multiplies wind uncertainty terms. |
|
Calculate the air density at a given location from reanalysis data |
|
Add timeseries to histogram |
|
Resamples a histogram to different sector or wind speed bin structure. |
|
Resamples a histogram to different sector structure. |
|
Resamples a histogram to different wind speed bin structure. |
|
Rotate Weibull sectors by an angle while conserving moments. |
|
Rotate wind direction in a time series wind climate by a specific angle. |
|
Align a wind climate to a target wind-direction CRS. |
|
Calculate temperature scale |
|
Add timeseries to existing histogram |
|
Calculate annual energy production (AEP), using the WAsP core Fortran implementation, from Weibull wind climate(s) and Wind Turbine Generator(s) or WindTurbines object. |
|
Calculates the Net Annual Energy Production (AEP) by applying the losses from a loss table to the potential AEP values provided in the dataset. |
|
Calculate Potential Annual Energy Production using wind farm effects from PyWake. |
|
Calculate the AEP level reached with a given probability. |
|
Generate a flow map around a wind farm using py_wake for wake and blockage effects. |
|
Returns sectorwise Weibull parameters using WAsP's fitting algorithm |
|
Download the global mesoclimate files PyWAsP needs, without prompting. |
Return the directory holding the global mesoclimate files. |
|
Report which global mesoclimate files are present. |
WAsP#
See also
WAsP Configuration Parameters - Complete reference of all WAsP configuration parameters.
Configuration modules for working with WAsP. |
|
|
Configuration class for the WAsP model parameters |
|
Class for topography maps |
|
Calculate speedups at all points provided |
|
Predict a weibull wind climate from a binned wind climate using a topography map |
Predict a weibull wind climate from a binned wind climate using precalculated site effects |
|
|
Predict a binned wind climate from a binned wind climate using a topography map for given output locations |
Creates a binned wind climate |
|
|
Calculate site_effects, downscaled wind climate, and meteorlogical fields in a single step |
|
Downscale a wind climate using site effects data. |
|
Downscale a geostrophic wind climate using precalculated site effects |
|
Generalizes the wind climate using either the BZ model or a CFD volume. |
Creates a generalized wind climate |
|
Creates a geostrophic wind climate |
|
Set generalized lib heights automatically |
|
Set generalized lib roughness lengths automatically |
|
|
Spatially interpolate GWC data to a grid of locations. |
|
Get climatological parameters interpolated to the output locations |
|
Get climatological parameters for specified positions and a given config object. |
LINCOM#
Routines for running LINCOM and calculating shear exponent |
|
Calculates a fetchmap for a given domain and wind |
|
|
Convert a roughness map to a landmask map |
|
FourierSpace object |
|
Interpolate GEWC file |
|
Reads grid from raster file |
|
Calculate shear exponent using a linear log-log fit from a number of heights |
|
Calculate spectral correction factor for model time-series |
|
Use the Gumbel distribution to find the return wind and uncertainty |
|
Apply lookup table to Generalized Extreme Wind Atlas |
|
Run LINCOM to create lookup table for extreme wind estimation |
|
Creates an xarray object defining the input wind for a LINCOM simulation |
|
WindLevel object |
|
Calculate point results from wind level for requested domain |
User configuration#
Configuration for pywasp, saved as an ini file |
Exceptions#
Base class for pywasp errors |
|
|
Error class for WAsP core errors <100 |
|
Error class for DTU licensing-library error codes. |
|
The license configuration is missing, invalid, or rejected by the license server. |
The license server could not be reached (offline, firewall, or server outage) |
|
|
A calculation requested more output points than the license allows |
A global mesoclimate file is missing and was not downloaded. |