Visualizing Meshes ¶
As part of the EarthSim project, extensive support for visualizing triangular meshes was added to
; see the websites for those projects for details of how to use this functionality. Here, we will show how to use the small utilities provided in
itself, which allow you to read 3DM and mesh2d files with mesh data, and we'll then visualize the resulting structures.
import numpy as np import datashader as ds import holoviews as hv import geoviews as gv import cartopy.crs as ccrs from holoviews.operation.datashader import datashade, rasterize from colorcet import cm_n from earthsim.io import read_3dm_mesh, read_mesh2d datashade.precompute = True hv.extension('bokeh') %opts Image RGB VectorField [width=800 height=600]