simpeg.electromagnetics.static.utils.drapeTopotoLoc#
- simpeg.electromagnetics.static.utils.drapeTopotoLoc(mesh, pts, active_cells=None, option='top', topo=None, **kwargs)[source]#
Drape locations right below discretized surface topography.
This function projects the set of locations provided to the discrete surface topography.
Deprecated since version 0.25.0:
drapeTopotoLocwill be removed in SimPEG v0.27.0. Please, use thesimpeg.utils.shift_to_discrete_topography()function instead.- Parameters:
- mesh
discretize.TensorMeshordiscretize.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.ndarrayofintor bool,optional Index array for all cells lying below the surface topography. Surface topography can be specified using the ‘active_cells’ 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 ‘active_cells’.
- mesh
- Returns:
- (
n,dim)numpy.ndarray The discrete topography locations.
- (