-
Notifications
You must be signed in to change notification settings - Fork 416
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 K Index calculate function. #1990
Conversation
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.
Greetings and thanks for the contribution! This looks in really good shape with good docs and a test. I have a few comments about the implementation that will hopefully make it robust on all the various data sources we encounter. Also, can you make sure the blank lines here (especially in the docstring) do not contain any spaces/tabs? The style bots are complaining about some trailing whitespace.
This also looks like it's now in conflict with some other change we must have made to |
Thank you for your kind advice. I will fix it asap. |
- Fix typo: "substract" -> "subtract" in src/metpy/calc/thermo.py - Use interpolate_1d function to get the data for T and Td - Fix list alphabetized in tests/calc/test_thermo.py - Add blank line in docstring
6513f26
to
f4f723f
Compare
I'm sorry for my delay. I've already fixed it. |
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, this is just about there. There were a couple minor things. Also, can you add k_index
under the Soundings
heading (in the right spot alphabetically) in docs/_templates/overrides/metpy.calc.rst
? That will help our checks pass and make sure it shows up in our table of calculations.
- Add underscore at the end of reference point. - Remove blank line after the docstring.
1ab675b
to
43a6c19
Compare
FYI, this currently conflicts with |
Thank you so much for your help. I hope it will be successful. |
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.
Just a minor nit with a long line and this should pass all the checks.
I already warp it. |
Congratulations on your first contribution to MetPy! 🎉 Thanks for putting this together! |
Description Of Changes
Add a function for K Index calculation based on this formula:
K = (T850 - T500) + Td850 - (T700 - Td700)
This is my first pull request, Thank you for good python lib for weather research.
Checklist