Cartographic rendering and mesh analytics powered by PyVista
We’re just bootstrapping geovista
and its documentation, so please be patient 👍
In the meantime, here’s an interactive geovista
amuse-bouche to whet your appetite…
import geovista as gv
from geovista.pantry import lfric_sst
# Load the Met Office LFRic C48 unstructured cube-sphere sample data.
sample = lfric_sst()
# Create the mesh from the sample data.
mesh = gv.Transform.from_unstructured(
sample.lons,
sample.lats,
connectivity=sample.connectivity,
data=sample.data,
)
# Plot the mesh.
plotter = gv.GeoPlotter()
sargs = dict(title=f"{sample.name} / {sample.units}")
plotter.add_mesh(mesh, scalar_bar_args=sargs, cmap="balance", show_edges=True)
plotter.add_coastlines()
plotter.add_axes()
plotter.show()