Skip to content

Commit 21ef836

Browse files
authored
load_earth_relief now can load gebco, gebcosi and synbath datasets with GMT 6.3 (#2281)
1 parent 5748429 commit 21ef836

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

pygmt/datasets/earth_relief.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
55
The grids are available in various resolutions.
66
"""
7-
from packaging.version import Version
8-
from pygmt.clib import Session
97
from pygmt.datasets.load_remote_dataset import _load_remote_dataset
10-
from pygmt.exceptions import GMTInvalidInput, GMTVersionError
8+
from pygmt.exceptions import GMTInvalidInput
119
from pygmt.helpers import kwargs_to_strings
1210

1311
__doctest_skip__ = ["load_earth_relief"]
@@ -134,13 +132,6 @@ def load_earth_relief(
134132
f"Invalid earth relief 'data_source' {data_source}, "
135133
"valid values are 'igpp', 'gebco', 'gebcosi' and 'synbath'."
136134
)
137-
if data_source != "igpp":
138-
with Session() as lib:
139-
if Version(lib.info["version"]) < Version("6.4.0"):
140-
raise GMTVersionError(
141-
f"The {data_source} option is not available for GMT"
142-
" versions before 6.4.0."
143-
)
144135
# Choose earth relief data prefix
145136
if use_srtm and resolution in land_only_srtm_resolutions:
146137
if data_source == "igpp":

0 commit comments

Comments
 (0)