magali.total_gradient_amplitude_grid

magali.total_gradient_amplitude_grid#

magali.total_gradient_amplitude_grid(data)[source]#

Compute the total gradient amplitude (TGA) of a given data array.

The function calculates the horizontal and vertical derivatives of the input data and then computes the total gradient amplitude.

Parameters:
dataxr.DataArray

Input data array with coordinates x and y.

Returns:
tgaxr.DataArray

Dataset containing the total gradient amplitude (TGA).