pywasp.lincom.shear_exp_from_wspd

pywasp.lincom.shear_exp_from_wspd(wspd, height_map, w_map=None)[source]

Calculate shear exponent using a linear log-log fit from a number of heights

Warning

This function is experimental and its signature may change.

Parameters:
  • wspd (DataArray) – Wind Speeds with at least a height dimension

  • height_map (dict) –

    Dictionary:
    • keys: a float providing the height of Alpha to be calculated

    • values: a list of the heights used to calculate Alpha, must be in wspd

  • w_map (dict) – The same as height_map, but values should be the weights that are passed to the numpy.polyfit function.

Returns:

DataArray – DataArray of Alpha