windpowerlib.density.temperature_interpol¶
-
windpowerlib.density.
temperature_interpol
(temp_air_1, temp_air_2, temp_air_height_1, temp_air_height_2, hub_height)[source]¶ Calculates the temperature at hub height by inter- or extrapolation.
This fuction is carried out when the parameter temperature_model of an instance of the
Modelchain
class is ‘interpolation’.Parameters: - temp_air_1 (pandas.Series or array) – Air temperature.
- temp_air_2 (pandas.Series or array) – Second air temperature for interpolation.
- temp_air_height_1 (float) – Height for which the parameter temp_air_1 applies.
- temp_air_height_2 (float) – Height for which the parameter temp_air_2 applies.
- hub_height (float) – Hub height of wind turbine in m.
Returns: Temperature at hub height.
Return type: pandas.Series or array
Notes
The following equation is used:
- with:
- T: temperature, h: height
Assumptions:
- linear temperature gradient