gemgis.visualization.create_thickness_maps#

gemgis.visualization.create_thickness_maps(top_surface: pyvista.core.pointset.PolyData, base_surface: pyvista.core.pointset.PolyData) pyvista.core.pointset.PolyData#

Creating a thickness map using https://docs.pyvista.org/examples/01-filter/distance-between-surfaces.html#sphx-glr-examples-01-filter-distance-between-surfaces-py

Parameters
  • top_surface (pv.core.pointset.PolyData) – Mesh representing the top of the layer

  • base_surface (pv.core.pointset.PolyData) – Mesh representing the base of the layer

Returns

thickness – Mesh with scalars representing the thickness of the layer

Return type

pv.core.pointset.PolyData

New in version 1.0.x.

Example

>>> # Loading Libraries and creating thickness map
>>> import gemgis as gg
>>> dict_all = gg.visualization.create_depth_maps_from_gempy(geo_model=geo_model, surfaces=['Sand1', 'Ton'])
>>> thickness_map = gg.visualization.create_thickness_maps(top_surface=dict_all['Sand1'][0], base_surface=dict_all['Ton'][0])
>>> thickness_map
Header
PolyData    Information
N Cells     5111
N Points    2739
X Bounds    9.720e+00, 9.623e+02
Y Bounds    3.578e+02, 1.058e+03
Z Bounds    3.050e+02, 7.265e+02
N Arrays    3
Data Arrays
Name            Field   Type    N Comp  Min             Max
Data            Points  float64 1       3.050e+02   7.265e+02
Normals         Points  float32 3       -9.550e-01  6.656e-01
Thickness [m]   Points  float64 1       4.850e+01   8.761e+01

See also

create_depth_map

Creating depth map from PolyData dataset

create_depth_maps_from_gempy

Creating depth maps from GemPy Model Surfaces

create_temperature_map

Creating temperature map from PolyData datasets