-
Notifications
You must be signed in to change notification settings - Fork 443
Add SWEAT Index calculate function. #2580
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
Conversation
C2oWisComing
left a comment
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.
Add SWEAT Index calculate function.
dopplershift
left a comment
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.
Apologies on it taking so long to review this, but as we get ready for a new release, it'd be great to get this in.
If you don't mind, I'd prefer to use one of our existing references than continue to expand the list, just to keep things simple.
I also made some suggestions that make the implementation more robust towards units and made it possible that it might work with grids (and eliminated some conditions that weren't checked by tests).
|
Thank you for your kind review. I will fix it all asap. |
dopplershift
left a comment
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.
A few more suggested changes. The change to the calculation somehow got missed and not included in my last review (oops). The changes to the docstring should fix the linting errors.
|
Hrmmm...we're hitting a |
|
Thank you I really appreciate your help. |
This is still well-within our window and fixes a RecursionError in the SWEAT test due to adding a numpy scalar to a dimensionless quantity.
d5db386 to
9773d8d
Compare
Description Of Changes
Add a function for SWEAT Index calculation based on this formula:
SWEAT = 12Td850 + 20(TT - 49) + 2f850 + f500 + 125(S + 0.2)
Test data from http://weather.uwyo.edu/cgi-bin/sounding?region=seasia&TYPE=GIF%3ASKEWT&YEAR=2021&MONTH=09&FROM=1700&TO=1700&STNM=48453
Checklist