Skip to content

Conversation

@Peter9192
Copy link
Member

@Peter9192 Peter9192 commented Dec 5, 2025

Supersedes #190

Pre-calculate all profiles/plumes, but additionally also compress them using simplify-js. This has a massive effect on the size of the profiles (reducing from 5000 points to 10-ish while still looking roughly the same (within 1% but a bit less fluent).

To also work with skew-T diagrams this code assures p, T and Td share the same vertical coordinate, all other variables are compressed independently.

This fixes #183 leading to more performant plots, especially when using the time slider
Touches upon #186, but doesn't fix it yet. However, global extent calculation now becomes much easier.

@Peter9192 Peter9192 marked this pull request as ready for review December 10, 2025 11:12
@Peter9192 Peter9192 changed the title Redo profiles Pre-calculate profiles and plumes Dec 10, 2025
@Peter9192 Peter9192 changed the title Pre-calculate profiles and plumes Pre-calculate and compress profiles and plumes Dec 10, 2025
@Peter9192 Peter9192 merged commit 570ae12 into main Dec 10, 2025
4 checks passed
@Peter9192 Peter9192 deleted the redo-profiles branch December 10, 2025 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Time sliding with plume model enables is very slow

2 participants