ogstools.mesh.geo module#

ogstools.mesh.geo.depth(mesh, top_mesh, vertical_axis=None)[source]#

Returns the depth values of the mesh.

Computes the distance between each point of mesh and top_mesh along the vertical_axis. Uses linear interpolation to interpolate in between points of top_mesh.

Parameters:
  • mesh (UnstructuredGrid) – Mesh at the points of which the depth is computed.

  • top_mesh (UnstructuredGrid) – The mesh which defines the vertical boundary.

  • vertical_axis (int | Literal['x', 'y', 'z'] | None) – If not given: For 3D, the z-axes is used. For 2D, the last axis of the plane wherein the mesh is lying is used (i.e. y if the mesh is in the xy-plane; z if it is in the xz-plane).

Return type:

ndarray