Usage

Below different usage examples:

Read and Plot Spherical Plot in window to explore

from meshslice import read_mesh, MeshPlotSph

# Read mesh
M = read_mesh("tests/data/test.vtu")

# Open explorer
MeshPlotSph(M)
_images/explorerwindow.png

Reproducible slices through a 3D volume

Compare slices of two datatypes. Here, illumination and RF.

from meshslice import read_mesh, MeshPlotSph

# Read mesh
M = read_mesh("tests/data/test.vtu")

locations = dict(
    lat=42.8,
    lon=-119.0,
    rotangle=45.0,
    depth=660
)

illum_cdict = dict(
    meshname='illumination',
    cmapname='magma',
    clim = [100, 1200]
)

RF_cdict = dict(
    meshname='RF',
    cmapname='seismic',
    clim = [-0.02, 0.02]
)

MeshPlotSph(M, **locations, **illum_cdict, figures_only=True, fmt='svg')
MeshPlotSph(M, **locations, **RF_cdict, figures_only=True, fmt='svg')
_images/depthslice660_RF.svg_images/depthslice660_illumination.svg_images/slice_Y_lat132_lon61_N45_RF.svg_images/slice_Y_lat132_lon61_N45_illumination.svg_images/slice_Z_lat132_lon61_N135_RF.svg_images/slice_Z_lat132_lon61_N135_illumination.svg