- SimPEG.utils.surface2ind_topo(mesh, topo, gridLoc='CC', method='nearest', fill_value=nan)#
Get indices of active cells from topography.
For a mesh and surface topography, this function returns the indices of cells lying below the discretized surface topography.
Mesh on which you want to identify active cells
Topography data as a
numpyndarraywith columns [x,y,z]; can use [x,z] for 2D meshes. Topography data can be unstructured.
If ‘CC’, all cells whose centers are below the topography are active cells. If ‘N’, then cells must lie entirely below the topography in order to be active cells.
Interpolation method for approximating topography at cell’s horizontal position. Default is ‘nearest’.
Defines the elevation for cells outside the horizontal extent of the topography data. Default is