laplacian

metpy.calc.laplacian(f, **kwargs)[source]

Calculate the laplacian of a grid of values.

Works for both regularly-spaced data, and grids with varying spacing.

Either x or deltas must be specified.

Parameters:
  • f (array-like) – Array of values of which to calculate the derivative
  • x (array-like, optional) – The coordinate values corresponding to the grid points in f
  • deltas (array-like, optional) – Spacing between the grid points in f. There should be one item less than the size of f along axis.
Returns:

array-like – The laplacian

See also

gradient()