geoana.spatial.distance#

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

Scalar distances between 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 scalar distance:

\[d = \big | \mathbf{q} - \mathbf{p} \big |\]

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:
  1. numpy.ndarray Scalar distances