Skip to content

Commit 6130eea

Browse files
Adjust minimum values for tests | Remove execution persmission | Use 'meters' as unit
1 parent b7b6d04 commit 6130eea

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pygmt/datasets/load_remote_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class GMTRemoteDataset(NamedTuple):
230230
),
231231
"earth_mdt": GMTRemoteDataset(
232232
description="CNES Earth mean dynamic topography",
233-
units="m",
233+
units="meters",
234234
extra_attributes={"horizontal_datum": "WGS84"},
235235
resolutions={
236236
"01d": Resolution("01d"),

pygmt/tests/test_datasets_mean_dynamic_topography.py

100755100644
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ def test_earth_mdt_01d():
1414
data = load_earth_mean_dynamic_topography(resolution="01d")
1515
assert data.name == "z"
1616
assert data.attrs["description"] == "CNES Earth mean dynamic topography"
17-
assert data.attrs["units"] == "m"
17+
assert data.attrs["units"] == "meters"
1818
assert data.attrs["horizontal_datum"] == "WGS84"
1919
assert data.shape == (181, 361)
2020
assert data.gmt.registration == 0
2121
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
2222
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
23-
npt.assert_allclose(data.min(), -2655.7, atol=0.01)
23+
npt.assert_allclose(data.min(), -1.4668, atol=0.01)
2424
npt.assert_allclose(data.max(), 2463.42, atol=0.01)
2525

2626

@@ -33,16 +33,16 @@ def test_earth_mdt_01d_with_region():
3333
assert data.gmt.registration == 0
3434
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
3535
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
36-
npt.assert_allclose(data.min(), -1081.94, atol=0.01)
36+
npt.assert_allclose(data.min(), 0.346, atol=0.01)
3737
npt.assert_allclose(data.max(), 105.18, atol=0.01)
3838

3939

40-
def test_earth_mdt_01m_default_registration():
40+
def test_earth_mdt_07m_default_registration():
4141
"""
42-
Test that the grid returned by default for the 1 arc-minute resolution has a
42+
Test that the grid returned by default for the 7 arc-minutes resolution has a
4343
"gridline" registration.
4444
"""
45-
data = load_earth_mean_dynamic_topography(resolution="01m", region=[-10, -9, 3, 5])
45+
data = load_earth_mean_dynamic_topography(resolution="07m", region=[-10, -9, 3, 5])
4646
assert data.shape == (121, 61)
4747
assert data.gmt.registration == 0
4848
assert data.coords["lat"].data.min() == 3.0

0 commit comments

Comments
 (0)