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:
- recs
numpy.ndarray
receiver coordinates of size \(3 \times n_r\)
- gx
numpy.ndarray
x coordinates
- gy
numpy.ndarray
y coordinates
- gz
numpy.ndarray
z coordinates
- recs
- Returns:
- d
numpy.ndarray
4D array of distances of size \(n_r \times n_x \times n_y \times n_z\)
- d