Skip to content
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 TT, VT and CT calculate function. #2113

Merged
merged 3 commits into from
Sep 24, 2021

Conversation

C2oWisComing
Copy link
Contributor

Description Of Changes

Add a function for Total Totals Index (TT), Vertical Totals (VT) and Cross Totals (CT) calculation based on this formula:
TT = (T850 + Td850) - (2 * T500)
VT = T850 - T500
CT = Td850 - T500

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

@C2oWisComing C2oWisComing requested a review from a team as a code owner September 17, 2021 19:10
@dopplershift dopplershift added Area: Calc Pertains to calculations Type: Feature New functionality labels Sep 17, 2021
Copy link
Member

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything here looks really good, just a minor change to make the calculation more robust.

src/metpy/calc/thermo.py Outdated Show resolved Hide resolved
Co-authored-by: Ryan May <rmay31@gmail.com>
Copy link
Contributor Author

@C2oWisComing C2oWisComing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your review.

@dopplershift dopplershift merged commit 3bfa3d3 into Unidata:main Sep 24, 2021
@github-actions github-actions bot added this to the 1.2.0 milestone Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Calc Pertains to calculations Type: Feature New functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vertical Total, Cross Total, Total Totals Index
2 participants