simpeg.utils.model_builder.get_indices_block#

simpeg.utils.model_builder.get_indices_block(p0, p1, cell_centers)[source]#

Get indices for cells whose centers lie inside specified block

Parameters:
p0(dim) numpy.ndarray

Bottom southwest corner of the block

p1(dim) numpy.ndarray

Top northeast corner of the block

cell_centers(n_cells, dim) numpy.ndarray or discretize.base.BaseMesh

A mesh or its gridded cell center locations

Returns:
tuple of int

Indices of the cells whose center lie within the specified block

Galleries and Tutorials using simpeg.utils.model_builder.get_indices_block#

PF: Gravity: Tiled Inversion Linear

PF: Gravity: Tiled Inversion Linear

Magnetic inversion on a TreeMesh

Magnetic inversion on a TreeMesh

Magnetic inversion on a TreeMesh

Magnetic inversion on a TreeMesh

Magnetic Amplitude inversion on a TreeMesh

Magnetic Amplitude inversion on a TreeMesh

Forward Simulation for Straight Ray Tomography in 2D

Forward Simulation for Straight Ray Tomography in 2D