List of functions and classes (API)#
Choclo: Kernel functions for your geophysical models.
Choclo is a Python library that hosts optimized forward modelling and kernel functions for running geophysical forward and inverse models, intended to be used by other libraries as the underlying layer of their computation.
Kernel and forward modelling functions#
Here you will find the list of available kernel and forward modelling functions for gravity and magnetic fields generated by different type of sources.
Point sources and dipoles#
For point sources, dipoles and observation points defined in Cartesian coordinates.
Gravity#
|
Gravitational potential field due to a point source. |
|
Easting component of the gravitational acceleration due to a point source. |
|
Northing component of the gravitational acceleration due to a point source. |
|
Upward component of the gravitational acceleration due to a point source. |
|
Easting-easting component of the gravitational tensor due to a point source. |
|
Northing-northing component of the gravitational tensor due to point source. |
|
Upward-upward component of the gravitational tensor due to a point source. |
|
Easting-northing component of the gravitational tensor due to point source. |
|
Easting-upward component of the gravitational tensor due to point source. |
|
Northing-upward component of the gravitational tensor due to point source. |
Magnetic#
|
Easting component of the magnetic field due to a dipole. |
|
Northing component of the magnetic field due to a dipole. |
|
Upward component of the magnetic field due to a dipole. |
|
Magnetic field due to a dipole. |
Kernels#
|
Compute the inverse of the distance between the two points. |
|
Easting component of the gradient of the inverse of the distance. |
|
Northing component of the gradient of the inverse of the distance. |
|
Upward component of the gradient of the inverse of the distance. |
|
Second derivative of the inverse of the distance along easting-easting. |
|
Second derivative of the inverse of the distance along northing-northing. |
|
Second derivative of the inverse of the distance along upward-upward. |
|
Second derivative of the inverse of the distance along easting-northing. |
|
Second derivative of the inverse of the distance along easting-upward. |
|
Second derivative of the inverse of the distance along northing-upward. |
Rectangular Prisms#
Gravity#
|
Gravitational potential field due to a rectangular prism. |
|
Easting component of the gravitational acceleration due to a prism. |
|
Northing component of the gravitational acceleration due to a prism. |
|
Upward component of the gravitational acceleration due to a prism. |
|
Easting-easting component of the gravitational tensor due to a prism. |
|
Northing-northing component of the gravitational tensor due to a prism. |
|
Upward-upward component of the gravitational tensor due to a prism. |
|
Easting-northing component of the gravitational tensor due to a prism. |
|
Easting-upward component of the gravitational tensor due to a prism. |
|
Northing-upward component of the gravitational tensor due to a prism. |
Magnetic#
|
Magnetic field due to a rectangular prism. |
|
Easting component of the magnetic field due to a prism. |
|
Northing component of the magnetic field due to a prism. |
|
Upward component of the magnetic field due to a prism. |
|
Easting derivative of the easting component of the magnetic field. |
|
Northing derivative of the northing component of the magnetic field. |
|
Upward derivative of the upward component of the magnetic field. |
|
Northing derivative of the easting component of the magnetic field. |
|
Upward derivative of the easting component of the magnetic field. |
|
Upward derivative of the northing component of the magnetic field. |
Kernels#
|
Kernel for the potential field due to a rectangular prism. |
|
Kernel for easting component of the gradient due to a rectangular prism. |
|
Kernel for northing component of the gradient due to a rectangular prism. |
|
Kernel for upward component of the gradient due to a rectangular prism. |
|
Kernel for easting-easting component of the tensor due to a prism. |
|
Kernel for northing-northing component of the tensor due to a prism. |
|
Kernel for upward-upward component of the tensor due to a prism. |
|
Kernel for easting-northing component of the tensor due to a prism. |
|
Kernel for easting-upward component of the tensor due to a prism. |
|
Kernel for northing-upward component of the tensor due to a prism. |
|
Easting-easting-easting kernel due to a prism. |
|
Northing-northing-northing kernel due to a prism. |
|
Upward-upward-upward kernel due to a prism. |
|
Easting-easting-northing kernel due to a prism. |
|
Easting-easting-upward kernel due to a prism. |
|
Easting-northing-northing kernel due to a prism. |
|
Northing-northing-upward kernel due to a prism. |
|
Easting-upward-upward kernel due to a prism. |
|
Northing-upward-upward kernel due to a prism. |
|
Easting-northing-upward kernel due to a prism. |
Utilities#
Euclidean distances#
Use these functions to compute Euclidean distance in Cartesian and spherical coordinates:
|
Euclidean distance between two points given in Cartesian coordinates. |
|
Euclidean distance between two points in spherical coordinates. |
|
Core computation of distance between two points in spherical coordinates. |
Universal Constants#
Access universal physical constants given in SI units:
Gravitational constant \(G\) in SI units (\(m^3 kg^{-1} s^{-2}\)) |
|
Vacuum magnetic permeability \(\mu_0\) in SI units (\(NA^{-2}\)) |