List of functions and classes (API)#
These are the modules, functions, and classes that make up the Choclo API.
Here you will find the list of available functions, including general utilities and kernel and forward modeling functions for gravity and magnetic fields generated by different types of sources.
Point sources in Cartesian coordinates#
Kernels and gravity forward modeling functions for point sources.
These functions are defined in Cartesian coordinates and calculate the gravitational fields of point masses and the associated derivatives of the inverse distance function.
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. |
Kernels#
These are derivatives of the inverse distance function \(\frac{1}{r}\).
|
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. |
|
Third derivative of the inverse of the distance along east-east-east. |
|
Third derivative of the inverse of the distance along north-north-north. |
|
Third derivative of the inverse of the distance along up-up-up. |
|
Third derivative of the inverse of the distance along east-east-north. |
|
Third derivative of the inverse of the distance along east-east-up. |
|
Third derivative of the inverse of the distance along north-north-east. |
|
Third derivative of the inverse of the distance along north-north-up. |
|
Third derivative of the inverse of the distance along up-up-east. |
|
Third derivative of the inverse of the distance along up-up-north. |
|
Third derivative of the inverse of the distance along east-north-up. |
Dipoles in Cartesian coordinates#
Forward modeling functions for magnetic dipoles in Cartesian coordinates.
|
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. |
Rectangular Prisms#
Kernels and forward modeling functions for rectangular prisms.
Includes both gravitational and magnetic fields and their derivatives for the right rectangular prism in Cartesian coordinates. The kernel functions used to model both types of field are also includes.
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. |
Legendre functions#
Calculation of associated Legendre functions and their derivatives.
|
Associated Legendre functions up to a maximum degree. |
Theta derivative of the associated Legendre functions. |
|
Schmidt-normalized associated Legendre functions up to a maximum degree. |
|
Theta derivatives of the Schmidt-normalized associated Legendre functions. |
|
Fully-normalized associated Legendre functions up to maximum degree. |
|
Theta derivative of the fully-normalized associated Legendre functions. |
Euclidean distances#
Functions to compute Euclidean distance in different coordinate systems.
|
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. |
|
|
Euclidean distance between two points in geodetic coordinates. |
|
Core computation of distance between two points in geodetic coordinates. |
Universal Constants#
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}\)) |