SimPEG.electromagnetics.static.utils.gettopoCC#

SimPEG.electromagnetics.static.utils.gettopoCC(mesh, ind_active, option='top')[source]#

Generate surface topography from active indices of mesh.

Parameters:
meshdiscretize.TensorMesh or discretize.TreeMesh

A tensor or tree mesh

ind_activenumpy.ndarray of bool or int

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

option{“top”, “center”}

Use string to specify if the surface passes through the tops or cell centers of surface cells.

Returns:
(n, dim) numpy.ndarray

xy[z] topography