Skip to content
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

Exportable function for fao_allen98 #2067

Merged
merged 11 commits into from
Feb 6, 2025
Merged

Conversation

saschahofmann
Copy link
Contributor

@saschahofmann saschahofmann commented Feb 5, 2025

Pull Request Checklist:

What kind of change does this PR introduce?

Does this PR introduce a breaking change?

No.

Questions:

I would like to fix the units of the input for the new function exactly. Is there an easy way to do this? And how can I provide a scalar value as a default with units?

@github-actions github-actions bot added the indicators Climate indices and indicators label Feb 5, 2025
@Zeitsperre
Copy link
Collaborator

@saschahofmann There's a configuration in pyproject.toml for codespell. I'd just add eto into the ignored terms.

CHANGELOG.rst Outdated Show resolved Hide resolved
Comment on lines 1322 to 1332
# TODO: How can I check exact units for inputs
# @declare_units(
# net_radiation="[MJ m-2 day-1]",
# tas="[degC]",
# wind="[m s-1]",
# es="[kPa]",
# ea="[kPa]",
# delta_svp="[kPa degC-1]",
# gamma="[kPa degC]",
# G="[MJ m-2 day-1]",
# )
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, the declare_units really is needed only if there's a plan to make this function an indicator itself.

Copy link
Contributor

@coxipi coxipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

CHANGELOG.rst Outdated Show resolved Hide resolved
Copy link
Collaborator

@aulemahal aulemahal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! (dang, Éric beat me to it)

CHANGELOG.rst Outdated Show resolved Hide resolved
@coxipi
Copy link
Contributor

coxipi commented Feb 6, 2025

Looks good to me! (dang, Éric beat me to it)

I was coming to say so :P

@Zeitsperre Zeitsperre added the approved Approved for additional tests label Feb 6, 2025
Co-authored-by: Pascal Bourgault <[email protected]>
@coxipi coxipi merged commit 9845b7f into Ouranosinc:main Feb 6, 2025
22 checks passed
@coxipi
Copy link
Contributor

coxipi commented Feb 6, 2025

@saschahofmann Sorry I should have asked if your PR was ready, I hope it was. Since I saw we both accepted, I thought it was ready to go, but that excluded you. I'm not used to be in the position where I do the review and do the merge

@saschahofmann
Copy link
Contributor Author

All 👍 thanks for merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Approved for additional tests indicators Climate indices and indicators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding pure FAO Penman-Monteith equation to compute potential evapotranspiration
4 participants