magali.gradient#
- magali.gradient(data)[source]#
Compute first-order spatial derivatives and total gradient amplitude.
- Parameters:
- data
xr.DataArray
Input data array with coordinates “x” and “y”.
- data
- Returns:
- dx
xr.DataArray
First derivative along the x-direction.
- dy
xr.DataArray
First derivative along the y-direction.
- dz
xr.DataArray
First derivative along the z-direction.
- tga
xr.DataArray
Total gradient amplitude.
- dx
Notes
The vertical derivative is estimated using the difference between an upward-continued and a downward-continued version of the data. This avoids downward continuation, which can amplify noise.