gemgis.visualization.create_depth_map
gemgis.visualization.create_depth_map#
- gemgis.visualization.create_depth_map(mesh: pyvista.core.pointset.PolyData, name: str = 'Depth [m]') pyvista.core.pointset.PolyData #
Extracting the depth values of the vertices and add them as scalars to the mesh
- Parameters
mesh (pv.core.pointset.PolyData) – PyVista PolyData dataset
name (str) – Name of the data array, e.g.
name='Depth [m]'
, default is'Depth [m]'
- Returns
mesh – PyVista PolyData dataset with depth values as data array
- Return type
pv.core.pointset.PolyData
New in version 1.0.x.
Example
>>> # Loading Libraries and File >>> import gemgis as gg >>> import pyvista as pv >>> mesh = pv.read(filename='mesh.vtk') >>> mesh PolyData Information N Cells 4174 N Points 2303 X Bounds 9.720e+00, 9.623e+02 Y Bounds 1.881e+02, 9.491e+02 Z Bounds 3.050e+02, 7.250e+02 N Arrays 0
>>> # Creating depth map from surface >>> mesh = gg.visualization.create_depth_map(mesh=mesh) >>> mesh Header PolyData Information N Cells 4174 N Points 2303 X Bounds 9.720e+00, 9.623e+02 Y Bounds 1.881e+02, 9.491e+02 Z Bounds 3.050e+02, 7.250e+02 N Arrays 1 Data Arrays Name Field Type N Comp Min Max Depth [m] Points float64 1 3.050e+02 7.250e+02
See also
create_depth_maps_from_gempy
Creating depth maps from GemPy Model Surfaces
create_thickness_maps
Creating thickness map from PolyData datasets
create_temperature_map
Creating temperature map from PolyData datasets