geoana.em.BaseMagneticDipole.distance#

BaseMagneticDipole.distance(xyz)#

Scalar distance from dipole to a set of gridded xyz locations

Where p is the location of the source and q is a point in 3D space, this method returns the scalar distance:

d=(qxpx)2+(qypy)2+(qzpz)2

for all locations q supplied in the input argument xyz. For dipoles, p is the dipole location. For circular loops, p defines the center location for the loop.

Parameters:
xyz(n, 3) numpy.ndarray

Gridded xyz locations

Returns:
  1. numpy.ndarray Scalar distances from dipole to xyz locations