Skip to content

Commit b72c8ba

Browse files
author
Meghan Jones
authored
Update load_earth_relief tests for SRTM15+V2.3 (#1728)
Fixes test failures due to incorrect minimum elevation values.
1 parent efac66f commit b72c8ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pygmt/tests/test_datasets_earth_relief.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_earth_relief_01d():
2828
assert data.shape == (181, 361)
2929
npt.assert_allclose(data.lat, np.arange(-90, 91, 1))
3030
npt.assert_allclose(data.lon, np.arange(-180, 181, 1))
31-
npt.assert_allclose(data.min(), -8592.5)
31+
npt.assert_allclose(data.min(), -8600.5)
3232
npt.assert_allclose(data.max(), 5559.0)
3333

3434

@@ -42,7 +42,7 @@ def test_earth_relief_01d_with_region():
4242
assert data.shape == (11, 21)
4343
npt.assert_allclose(data.lat, np.arange(-5, 6, 1))
4444
npt.assert_allclose(data.lon, np.arange(-10, 11, 1))
45-
npt.assert_allclose(data.min(), -5145)
45+
npt.assert_allclose(data.min(), -5147)
4646
npt.assert_allclose(data.max(), 805.5)
4747

4848

@@ -54,7 +54,7 @@ def test_earth_relief_30m():
5454
assert data.shape == (361, 721)
5555
npt.assert_allclose(data.lat, np.arange(-90, 90.5, 0.5))
5656
npt.assert_allclose(data.lon, np.arange(-180, 180.5, 0.5))
57-
npt.assert_allclose(data.min(), -9460.5)
57+
npt.assert_allclose(data.min(), -9454.5)
5858
npt.assert_allclose(data.max(), 5887.5)
5959

6060

0 commit comments

Comments
 (0)