smartmet-engine-contour
May 5, 2026 ยท View on GitHub
Part of SmartMet Server. See the SmartMet Server documentation for a full overview of the ecosystem.
Overview
The contour engine generates isolines and isobands from gridded weather data. It is used by the WMS plugin to render contoured weather maps on demand.
Features
- Isoline (contour line) generation from 2D gridded scalar fields
- Isoband (filled contour) generation
- Caching of computed contours for performance
- Integration with smartmet-library-trax for marching-squares contouring
- Optional bilinear cell subdivision (
Options.subdivide,int0..10) that replaces the straight marching-squares segment between cell edge intersections withn-1samples on the true bilinear level curve. Forwarded toTrax::Contour::subdivide()and included in the contour cache key, so different subdivide values produce distinct cached entries.
License
MIT โ see LICENSE
Contributing
Bug reports and pull requests are welcome on GitHub.