-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add RMS iris analysis operator to statistics preprocessor functions #747
Add RMS iris analysis operator to statistics preprocessor functions #747
Conversation
Thanks for the pull request! Could you please have a look at the failing test on CircleCI? Just click the |
Would you also be able to add some unit tests, e.g. similar to: ESMValCore/tests/unit/preprocessor/_time/test_time.py Lines 364 to 373 in 8e41213
and ESMValCore/tests/unit/preprocessor/_area/test_area.py Lines 79 to 83 in 8e41213
? |
Hi @bouweandela I've never done unit testing so correct me if I'm wrong: Should I add a couple of functions to test_area.py and test_time.py in order to check that rms works fine? Thanks! |
Yes, that's the idea. You can just copy/paste the code of the examples mentioned above, replace 'median' by 'rms' and make sure the expected numbers match the computed result. To run the tests in a particular file, you can run |
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! Could you please carefully check that you update the documentation for all preprocessor functions? It looks like you missed a few: 'rms'
is missing at least in timeseries_filter
, and in preprocessor.rst: zonal_statistics
and meridional_statistics
.
Thanks for checking @bouweandela ! @sloosvel coould you have a look at it? Thanks. |
Looks fine to me, good job @pcosbsc . |
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.
@mattiarighi or @valeriupredoi Could you please test?
@sloosvel or @jvegasbsc Would you have time to run a few recipes using the new functionality for testing, so we can still include this in v2.1? |
Works fine in both the area and time preprocessors. |
Adding RMS iris analysis operator (which allow Area Weighting) to the preprocessor. This allows computing root mean squares in the _area.py and _time.py preprocessors.
Tasks
closes #739