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:

data (xr.DataArray) – Input data array with coordinates x and y.

Returns:

tga (xr.DataArray) – Dataset containing the total gradient amplitude (TGA).