pywasp.wasp.derive_gen_heights#

pywasp.wasp.derive_gen_heights(height_from=None, height_to=None, n=5)[source]#

Set generalized lib heights automatically

Warning

This function is experimental and its signature may change.

Parameters:
  • height_from (numpy, optional) – 1D array of heights of source site in meter, by default None

  • height_to (numpy, optional) – 1D array of heights of target site in meter, by default None

  • n (int, optional) – Number of standard heights, from 2 to 5, by default 5

Returns:

zst (numpy) – 1D array of standard heights

Notes

The standard heights are set according to the following procedure:

  • the height where we generalize from is usually known and given as height_from; the standard height closest to it is replaced by it.

  • if the height where the generalized climate is applied is also known, it can be given as height_to.

Without heights, the standard heights of WAsP, [10., 25., 50., 100., 200.], are returned. These heights should span typical turbine heights and are for applying the generalized wind climate: it will interpolate from the four cornerpoints in which the target height and roughness are located by simple logarithmic interpolation.

The generalized standard values are set by selecting the percentiles corresponding to the number of intervals n. So for n=5, elements at 0, 0.2, … 1.0 etc are chosen.