magali.gradient#
- magali.gradient(data)[source]#
Compute first-order spatial derivatives in the x, y, and z directions.
- 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.
- 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.