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

Romps Analytic LCL #3728

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Romps Analytic LCL #3728

wants to merge 12 commits into from

Conversation

dcamron
Copy link
Member

@dcamron dcamron commented Dec 30, 2024

Dependent on #3726 and #3725. Adds direct calculation for LCL from Romps 2017, with relatively small test value impact and huge impact on performance. Also removes now-unused params for LCL. Once again prioritizing opening this early for discussion and review.

Still need to add LDL etc., and have updated no test values. I've done some quick local benchmarks across commits with ASV, and I'll attach some info from those shortly after I re-run them.

Checklist

  • Closes #xxxx
  • Tests added
  • Fully documented

Add necessary constants for new calculations. Fix weird malformed table errors with units column spaces.
Calculate gas constant and specific heat capacity (and thus kappa) of moist air. Add temperature-dependent latent heat quantity calculations.
@dcamron dcamron added Type: Enhancement Enhancement to existing functionality Area: Calc Pertains to calculations Subarea: Thermo Pertains to thermodynamic calculations and their physical correctness labels Dec 30, 2024
@dcamron dcamron requested a review from a team as a code owner December 30, 2024 20:46
@dcamron dcamron requested review from dopplershift and removed request for a team December 30, 2024 20:46
src/metpy/constants/default.py Dismissed Show dismissed Hide dismissed
src/metpy/constants/default.py Dismissed Show dismissed Hide dismissed
@dopplershift dopplershift added this to the 1.7.0 milestone Jan 2, 2025
@dcamron
Copy link
Member Author

dcamron commented Jan 3, 2025

A summary of some super quick benchmarks across commits via ASV
Screenshot 2025-01-03 at 13 39 12

Note that #3726 currently seems to slow moist_lapse,
Screenshot 2025-01-03 at 13 38 53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Calc Pertains to calculations Subarea: Thermo Pertains to thermodynamic calculations and their physical correctness Type: Enhancement Enhancement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants