simpeg.electromagnetics.static.utils.drapeTopotoLoc#
- simpeg.electromagnetics.static.utils.drapeTopotoLoc(mesh, pts, active_cells=None, option='top', topo=None, ind_active=None)[source]#
Drape locations right below discretized surface topography
This function projects the set of locations provided to the discrete surface topography.
- Parameters:
- mesh
discretize.TensorMesh
ordiscretize.TreeMesh
A 2D tensor or tree mesh
- pts(
n
,dim
)numpy.ndarray
The set of points being projected to the discretize surface topography
- active_cells
numpy.ndarray
of
int
or bool,optional
Index array for all cells lying below the surface topography. Surface topography can be specified using the ‘ind_active’ or ‘topo’ input parameters.
- option{“top”, “center”}
Define whether the cell center or entire cell of actice cells must be below the topography. The topography is defined using the ‘topo’ input parameter.
- topo(
n
,dim
)numpy.ndarray
Surface topography. Can be used if an active indices array cannot be provided for the input parameter ‘ind_active’
- ind_active
numpy.ndarray
of
int
or bool,optional
Deprecated since version 0.23.0: Argument
ind_active
is deprecated in favor ofactive_cells
and will be removed in SimPEG v0.24.0.
- mesh