simpeg.utils.get_discrete_topography#

simpeg.utils.get_discrete_topography(mesh, active_cells, topo_cell_cutoff='top')[source]#

Generate discrete topography locations from mesh and active cells.

Parameters:
meshTensorMesh or discretize.TreeMesh

A tensor or tree mesh.

active_cellsnumpy.ndarray of bool or int

Active cells index; i.e. indices of cells below surface

topo_cell_cutoff{“top”, “center”}

String to specify the cutoff for ground cells and the locations of the discrete topography. For “top”, ground cells lie entirely below the surface topography and the discrete topography is defined on the top faces of surface cells. For “center”, only the cell centers must lie below the surface topography and the discrete topography is defined at the centers of surface cells.

Returns:
(n, dim) numpy.ndarray

Discrete topography locations; i.e. xy[z].