-
Notifications
You must be signed in to change notification settings - Fork 33
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
removed extra argument given #78
base: dev
Are you sure you want to change the base?
Conversation
**What's new:** - Fixed issue with Latitude above 65 °N, eanling PET estimation for high-latitude regions pyet-org#70 - Added examples using CMPI data, and an example with determining the crop coefficient. - Introduced xarray tests to ensure robust data handling and manipulation, improving reliability. - Improved documentation.
pet = ra * (tmean + 5) / 68 / lambd | ||
ra = extraterrestrial_r(index, lat) | ||
|
||
temp = (tmean + 5) / 68 / lambd |
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.
Can i suggest to put the parenthesis here to make clear which division is made first.
I'm sure the code is correct but it is not clear which is the first division :)
Thank you both for your contributions and for identifying the error! I just returned from holiday and will review the materials as soon as possible. I am proposing the following additions to the Checklist before this PR can be merged:
|
… is nan so instead used rs.values
…is nan so instead used n.values
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.
Thank you for noticing this!
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 mistakenly approved this pull. After a more thorough review, here are some detailed thoughts on the changes:
- Extra Argument: Thank you for catching that!
- Datetime Check: There’s no need to add to_datetime since tmean should already be a DatetimeIndex. To ensure this, we should add a check for tmean.index.
- Oudin Method: The implementation using "pet = pet.where((tmean + k2) >= 0, 0)" is correct as per our model requirements. Let’s keep this as is.
ra = extraterrestrial_r(index, lat) | ||
|
||
temp = (tmean + 5) / 68 / lambd | ||
temp.index = to_datetime(temp.index) |
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.
Why use "to_datetime"? The temp should already be DatetimeIndex?
Thank you for your contributions!
Hi @anshuverma2000, Thank you for catching the extra argument! I'd appreciate your insights on a couple of other points to help us address the issues effectively:
Best, |
Short Description
Add a short description describing the pull request (PR) here.
Checklist before PR can be merged: