choclo.prism.kernel_enu#
- choclo.prism.kernel_enu(easting, northing, upward, radius)[source]#
Easting-northing-upward kernel due to a prism.
Evaluates the integration kernel for the easting-northing-upward component of the grad tensor generated by a prism [Nagy2000] on a single vertex of the prism. The coordinates that must be passed are shifted coordinates: the coordinates of the vertex from a Cartesian coordinate system whose origin is located in the observation point.
- Parameters:
- Returns:
- kernel
float
Value of the kernel function for the easting-northing-upward component of the grad tensor due to a rectangular prism evaluated on a single vertex. Return
np.nan
ifradius
is zero (i.e. observation point is on the vertex).
- kernel
Notes
Computes the following numerical kernel on the passed shifted coordinates:
\[k_{xyz}(x, y, z) = \frac{-1}{\sqrt{x^2 + y^2 + z^2}}\]Examples
>>> x, y, z = 3.1, 5.2, -3.0 >>> r = np.sqrt(x**2 + y**2 + z**2) >>> float(kernel_enu(x, y, z, r)) -0.1480061