magpack.vectorop.angular_gradient#

angular_gradient(data, axial=False)#

Calculates the angular gradient of a vector field.

Parameters:
datanp.ndarray

The vector field to calculate the angular gradient from.

axialbool (optional)

True for orientation fields, False for directional fields.

Returns:
np.ndarray

The angular gradient (scalar field) of the input vector field.