sebwehrle / cleo

Wind resource assessment with the Global Wind Atlas
MIT License
1 stars 1 forks source link

Terrain roughness length formula #7

Closed neverfox closed 2 months ago

neverfox commented 3 months ago

https://github.com/sebwehrle/cleo/blob/c949d1657890d50915e7c7293a8ea187de6b0f53/cleo/assess.py#L174

Forgive me if I'm missing something, but this looks to be a rearrangement of the wind power law solving for the wind shear exponent/coefficient, not roughness length, right? Wouldn't roughness length be a rearrangement of the wind log law? Or...

terrain_roughness_length = np.exp((u_mean_100 * np.log(50) - u_mean_50 * np.log(100)) / (u_mean_100 - u_mean_50))
sebwehrle commented 3 months ago

yes, you’re right. thank you for pointing that out!

sebwehrle commented 2 months ago

Corrected naming to wind_shear / wind_shear_coefficient.