Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pygmt/src/grdproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ def grdproject(
>>> # Project the geographic gridded data onto a rectangular grid
>>> new_grid = pygmt.grdproject(grid=grid, projection="M10c", region=region)
"""
if projection is None:
msg = "The projection must be specified."
if kwargs.get("J", projection) is None:
msg = "Parameter 'projection' must be specified."
raise GMTInvalidInput(msg)

aliasdict = AliasSystem().add_common(
Expand Down