fracspy.location.utils.dist2rec#

fracspy.location.utils.dist2rec(recs, gx, gy, gz)[source]#

Compute distances from a 3D grid of points to array of receivers.

Parameters:
recsnumpy.ndarray

receiver coordinates of size \(3 \times n_r\)

gxnumpy.ndarray

x coordinates

gynumpy.ndarray

y coordinates

gznumpy.ndarray

z coordinates

Returns:
dnumpy.ndarray

4D array of distances of size \(n_r \times n_x \times n_y \times n_z\)