-
Notifications
You must be signed in to change notification settings - Fork 171
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
Use max rain pixels for timestep and member to decompose for precip cascades in case of zero radar #461
base: master
Are you sure you want to change the base?
Conversation
…ascades in case of zero radar
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Makes sense to me! Is there any equivalent logic in the radar-only nowcast method that could benefit from this too? |
I agree, this is much cleaner.
Here we overwrite the config in the same function you are touching. However, StepsBlendingConfig is frozen so should not be written to. A new variable should be made in StepsBlendingParams and we should look where in the code after this point self.__config.precip_threshold is used, it should be changed for self.__params.precip_threshold |
@mats-knmi indeed, that is what I was aiming for. Weird the tests are faling on ".tests\test_plugins_support.py::test_importers_plugins - AssertionError: assert False"... |
@sidekock This has nothing to do with this PR, apparently something with the cookiecutter plugin (see #460 (comment)). |
Yes, our bad, sorry! Working on it. |
This is something I noticed while working on the other PR. But I think this makes more sense than what I did during the memory reduction PR.
I used to look for a timestep and member that has any rain so that that can be used to decompose the model precip. But if we just use the timestep and member that has the most rainy pixels, this should be even better right? Since this was already computed a bit further down the line, this should be a simplification of the code without any significant side effects.
Let me know what you think.