windpowerlib.modelchain.Modelchain.rho_hub¶
-
Modelchain.
rho_hub
(weather, data_height)[source]¶ Calculates the density of air at hub height.
The density is calculated using the method specified by the parameter rho_model. Previous to the calculation of density the temperature at hub height is calculated using the method specified by the parameter temperature_model.
Parameters: - weather (DataFrame or Dictionary) – Containing columns or keys with timeseries for temperature temp_air in K and pressure pressure in Pa, as well as optionally the temperature temp_air_2 in K at a different height for interpolation.
- data_height (DataFrame or Dictionary) – Containing columns or keys with the heights in m for which the corresponding parameters in weather apply.
Returns: rho_hub – Density of air in kg/m³ at hub height.
Return type: pandas.Series or array