-
Notifications
You must be signed in to change notification settings - Fork 422
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
computation of relative humidity not sensible for upper troposphere #2320
Comments
Well, it's not a bug (unless you count it not being clearly documented), but a limitation of the current approach (which is working completely as intended). Your desired use case is just outside the bounds of those limitations. 😉 I'm open to trying to expand to cover your use case. I'd love to avoid having all ~I suppose there's no really good way to do this automatically...~This is going to depend on users' applications, so we have to just provide the right hooks/api. I'm open to a PR giving an implementation a go, but until I see what it does in terms of adding complexity to the code, I really don't know how I'm going to feel about what the right approach is. |
As I mentioned, I was torn how to classify this. What about adding an (optional) parameter I will prepare a rough draft for a PR (without doc+tests) for discussing the implementation. |
Particularly improving usefullness of RH at low temperatures See Unidata#2320
Added a draft. The impact seems to be reasonable. I added the "phase" parameter, where it seemed sensible. this needs to be documented, obviously. If this approach is fine, I'd update the documentation, provide better reference and add test cases. |
What went wrong?
Computing relative humidity with metpy and comparing the results with our old code following the lines of
https://www.ecmwf.int/sites/default/files/elibrary/2016/17117-part-iv-physical-processes.pdf
Section 7.4.2 showed strong discrepancies at high altitudes (e.g. 8km and above). Particularly in ice clouds, relative humidity was not close (or above) 100%, which limits its usefulness quire a bit.
The current code only computes relative humidity in relation to saturation pressure above liquids. At higher altitudes, ice is more prevalent and thus saturation pressure over ice should be used.
See also here
Open-MSS/MSS#1341
This could also be seen as a Feature request; but from the perspective of analysing rel. hum at 10km for situations where ice clouds may form, this is a bug.
I can provide a MR for fixing this, the question is whether the current function should be updated or a new one created.
Operating System
Linux
Version
1.1.0
Python Version
3.9
Code to Reproduce
Errors, Traceback, and Logs
No response
The text was updated successfully, but these errors were encountered: