geoana.spatial.vector_distance#

geoana.spatial.vector_distance(xyz, origin=array([0., 0., 0.]))#

Vector distances from a reference location to a set of xyz locations.

Where \(\mathbf{p}\) is an reference location define by the input argument origin, this method returns the vector distance:

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

for all locations \(\mathbf{q}\) supplied in the input argument xyz. By default, the reference location is (0,0,0).

Parameters:
xyz(n, 3) numpy.ndarray

Gridded xyz locations

origin(3) array_like, optional

Reference location. Default = np.r_[0,0,0]

Returns:
(n, 3) numpy.ndarray

Vector distances along the x, y and z directions