@@ -23,7 +23,8 @@ class ModelChain(object):
2323 wind_speed_model : string
2424 Parameter to define which model to use to calculate the wind speed at
2525 hub height. Valid options are 'logarithmic', 'hellman' and
26- 'interpolation_extrapolation'. Default: 'logarithmic'.
26+ 'interpolation_extrapolation', 'log_interpolation_extrapolation'.
27+ Default: 'logarithmic'.
2728 temperature_model : string
2829 Parameter to define which model to use to calculate the temperature of
2930 air at hub height. Valid options are 'linear_gradient' and
@@ -55,7 +56,8 @@ class ModelChain(object):
5556 wind_speed_model : string
5657 Parameter to define which model to use to calculate the wind speed at
5758 hub height. Valid options are 'logarithmic', 'hellman' and
58- 'interpolation_extrapolation'. Default: 'logarithmic'.
59+ 'interpolation_extrapolation', 'log_interpolation_extrapolation'.
60+ Default: 'logarithmic'.
5961 temperature_model : string
6062 Parameter to define which model to use to calculate the temperature of
6163 air at hub height. Valid options are 'linear_gradient' and
@@ -300,6 +302,11 @@ def wind_speed_hub(self, weather_df):
300302 'extrapolation.' )
301303 wind_speed_hub = tools .linear_interpolation_extrapolation (
302304 weather_df ['wind_speed' ], self .wind_turbine .hub_height )
305+ elif self .wind_speed_model == 'log_interpolation_extrapolation' :
306+ logging .debug ('Calculating wind speed using logarithmic inter- or '
307+ 'extrapolation.' )
308+ wind_speed_hub = tools .logarithmic_interpolation_extrapolation (
309+ weather_df ['wind_speed' ], self .wind_turbine .hub_height )
303310 else :
304311 raise ValueError ("'{0}' is an invalid value. " .format (
305312 self .wind_speed_model ) + "`wind_speed_model` must be "
0 commit comments