-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Function to estimate wind speed at different heights #2124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @IoannisSifnaios. Just had a quick read and picked up on a few small things for now
Reactions rather than a review. Questions for anyone looking at this PR:
|
I am not knowledgeable enough on the wind/PV subject to comment in detail on 1., but just my two cents on 2. at least...
I am +1 for shortening the function name. Or if all models in the module are going to be for calculating wind speed, then going back to a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice approach, and sorry for the big points I've written down below. W.r.t. the model, does the height of interest need to be lower than the reference height? At least on wikipedia:
Btw, a point that may also interest @RDaxini, maybe other maintainers, is reviewing the docs log. It shows warning
's, error
's and critical
's if there are any (well, there's always at least two warnings regarding setuptools replacing distutils and 2 I added unintentionally in a recent pr😞 ).
For example:
- go to this PR page or the official released one.
- in the version picker, select
builds
- Find the last docs built for PR number, e.g. 2124
- Expand the last log, the one with
python -m sphinx -T -b html ...
- Go find all the warnings, errors or criticals. Hint: use Ctrl+F, only works with expanded log.
Co-authored-by: RDaxini <[email protected]> Co-authored-by: Echedey Luis <[email protected]>
Co-authored-by: Echedey Luis <[email protected]>
@echedey-ls it is correct that Wikipedia mentions that constraint with the height; however, I can't find where this constraint has come from... the formula is reported in other places without the constraint (which I guess also makes sense since the expression still gives reasonable values...). Any other thoughts on this? |
Co-authored-by: Echedey Luis <[email protected]>
Rather than checking for and replacing complex values, I think I would use np.where on |
Given that the reference we use doesn't state any constraint I think we shouldn't either if we can't find a solid reference for that. Also, the equation is reversible, so it produces consistent results estimating wind speeds at higher and lower height. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove all mentions of units as the equation only deals with ratios.
Co-authored-by: Cliff Hansen <[email protected]> Co-authored-by: Adam R. Jensen <[email protected]>
I've merged the function as the reviewer comments have been addressed (a note was added about Albuquerque location and the function was renamed). Thanks @IoannisSifnaios 🥳 |
docs/sphinx/source/reference
for API changes.docs/sphinx/source/whatsnew
for all changes. Includes link to the GitHub Issue with:issue:`num`
or this Pull Request with:pull:`num`
. Includes contributor name and/or GitHub username (link with:ghuser:`user`
).remote-data
) and Milestone are assigned to the Pull Request and linked Issue.The wind speed at different heights is calculated using the Hellmann power law expression (source 1, source 2). The Sandia method (discussed in #2118) is a subcase of this model, so it was added in the notes as a possible coefficient combination that could be used by the user.