Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Check attributes for GEBCO and GEBCOSI datasets
  • Loading branch information
weiji14 committed Aug 31, 2023
commit 74fa646130fb1586d828abc8197b26ab4a6a0213
4 changes: 4 additions & 0 deletions pygmt/tests/test_datasets_earth_relief.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def test_earth_relief_01d_gebco(data_source):
data.
"""
data = load_earth_relief(resolution="01d", data_source=data_source)
assert data.attrs["units"] == "meters"
assert data.attrs["long_name"] == "Earth elevation relative to the geoid"
assert data.attrs["vertical_datum"] == "EGM96"
assert data.attrs["horizontal_datum"] == "WGS84"
assert data.shape == (181, 361)
assert data.gmt.registration == 0
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
Expand Down