magali.gradient

Contents

magali.gradient#

magali.gradient(data)[source]#

Compute first-order spatial derivatives in the x, y, and z directions.

Parameters:
dataxr.DataArray

Input data array with coordinates “x” and “y”.

Returns:
dxxr.DataArray

First derivative along the x-direction.

dyxr.DataArray

First derivative along the y-direction.

dzxr.DataArray

First derivative along the z-direction.

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.