Skip to content

Commit

Permalink
updating the docs of laplacian
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedshaaban1 committed Feb 3, 2025
1 parent 22a2b68 commit da76e89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/metpy/calc/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1439,10 +1439,13 @@ def gradient(f, axes=None, coordinates=None, deltas=None):

@exporter.export
def laplacian(f, axes=None, coordinates=None, deltas=None):
"""Calculate the laplacian of a grid of values using finite difference technique (centered finite difference in the middle and forward/backward at the boundaries, see metpy.calc.second_derivative for more information).
"""Calculate the laplacian of a grid of values.
Works for both regularly-spaced data, and grids with varying spacing.
Calculation is done using finite difference technique (centered finite difference in the middle and

Check failure on line 1446 in src/metpy/calc/tools.py

View workflow job for this annotation

GitHub Actions / Run Lint Tools

Ruff (E501)

src/metpy/calc/tools.py:1446:96: E501 Line too long (104 > 95)

Check failure on line 1446 in src/metpy/calc/tools.py

View workflow job for this annotation

GitHub Actions / Run Lint Tools

Ruff (W291)

src/metpy/calc/tools.py:1446:104: W291 Trailing whitespace
forward/backward at the boundaries, see metpy.calc.second_derivative for more information).
Either `coordinates` or `deltas` must be specified, or `f` must be given as an
`xarray.DataArray` with attached coordinate and projection information. If `f` is an
`xarray.DataArray`, and `coordinates` or `deltas` are given, `f` will be converted to a
Expand Down

0 comments on commit da76e89

Please sign in to comment.