Calculates the temperature of air at hub height.

The temperature is calculated using the method specified by the parameter temperature_model.

Parameters:weather_df (pandas.DataFrame) – DataFrame with time series for temperature temperature in K. The columns of the DataFrame are a MultiIndex where the first level contains the variable name (e.g. temperature) and the second level contains the height at which it applies (e.g. 10, if it was measured at a height of 10 m). See documentation of ModelChain.run_model() for an example on how to create the weather_df DataFrame.
Returns:Temperature of air in K at hub height.
Return type:pandas.Series or numpy.array


If weather_df contains temperatures at different heights the given temperature(s) closest to the hub height are used.