geoana.em.fdem.MagneticDipoleHalfSpace.vector_distance#

MagneticDipoleHalfSpace.vector_distance(xyz)#

Vector distance to a set of gridded xyz locations.

Where \(\mathbf{p}\) is the location of the source and \(\mathbf{q}\) is a point in 3D space, this method returns the vector distance:

\[\mathbf{v} = \mathbf{q} - \mathbf{p}\]

for all locations \(\mathbf{q}\) supplied in the inputed argument xyz. For dipoles, \(\mathbf{p}\) is the dipole location. For circular loops, \(\mathbf{p}\) defines the center location for the loop.

Parameters:
xyz(n, 3) numpy.ndarray

Gridded xyz locations

Returns:
(n, 3) numpy.ndarray

Vector distances in the x, y and z directions