-
Notifications
You must be signed in to change notification settings - Fork 99
Eppt 2783 wind chill improver wrapper function for calculate wind chill #2217
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
base: master
Are you sure you want to change the base?
Eppt 2783 wind chill improver wrapper function for calculate wind chill #2217
Conversation
improver_tests/temperature/feels_like_temperature/test_feels_like_temperature.py
Outdated
Show resolved
Hide resolved
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.
Some comments to consider.
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.
Looks good
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.
Thanks @Anzerkhan27. I've added some comments below.
I don't know if this PR relates to a specific issue/user story for you, so I'm not in a position to check whether this actually fulfills the requirement you have. I have reviewed the code within this PR though.
improver_tests/temperature/feels_like_temperature/test_feels_like_temperature.py
Outdated
Show resolved
Hide resolved
5fe0b61 to
6e03510
Compare
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.
Thanks for making these changes @Anzerkhan27. I've added a small comment regarding the unit tests.
improver_tests/temperature/feels_like_temperature/test_feels_like_temperature.py
Outdated
Show resolved
Hide resolved
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.
Thanks @Anzerkhan27, I've added one final comment.
improver_tests/temperature/feels_like_temperature/test_feels_like_temperature.py
Outdated
Show resolved
Hide resolved
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.
Thanks for all the changes @Anzerkhan27. I'm happy with this now.
Title
Add
CalculateWindChillplugin for cube-based wind chill calculationSummary
This PR adds a new plugin class,
CalculateWindChill, withinimprover/temperature/feels_like_temperature.py.The existing
_calculate_wind_chillfunction (which operates on NumPy arrays) has been incorporated into a plugin-style class. This allows wind chill to be calculated directly from Iris cubes.Modified calculate_feels_like_temperature to use the new plugin instead of calling _calculate_wind_chill directly.
Integration
The new plugin class is added in the IMPROVER API list as: