Skip to content

Commit

Permalink
Update pygmt/src/grdcut.py
Browse files Browse the repository at this point in the history
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
  • Loading branch information
seisman and weiji14 authored Mar 23, 2024
1 parent a108087 commit 27dfb33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pygmt/src/grdcut.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ def grdcut(grid, outgrid: str | None = None, **kwargs):
>>> new_grid = pygmt.grdcut(grid=grid, region=[12, 15, 21, 24])
"""
inkind = data_kind(grid)
outkind = "grid"
if inkind == "image":
outkind = "image"
outkind = "image" if inkind == "image" else "grid"
if inkind == "file":
realpath = which(str(grid))
if isinstance(realpath, list):
Expand Down

0 comments on commit 27dfb33

Please sign in to comment.