@@ -24,8 +24,8 @@ def test_earth_relief_01d_igpp_synbath(data_source):
24
24
assert data .shape == (181 , 361 )
25
25
npt .assert_allclose (data .lat , np .arange (- 90 , 91 , 1 ))
26
26
npt .assert_allclose (data .lon , np .arange (- 180 , 181 , 1 ))
27
- npt .assert_allclose (data .min (), - 8600.5 , atol = 0.5 )
28
- npt .assert_allclose (data .max (), 5559 .0 , atol = 0.5 )
27
+ npt .assert_allclose (data .min (), - 7174.0 , atol = 0.5 )
28
+ npt .assert_allclose (data .max (), 5350 .0 , atol = 0.5 )
29
29
30
30
31
31
@pytest .mark .parametrize ("data_source" , ["gebco" , "gebcosi" ])
@@ -42,8 +42,8 @@ def test_earth_relief_01d_gebco(data_source):
42
42
assert data .gmt .registration == 0
43
43
npt .assert_allclose (data .lat , np .arange (- 90 , 91 , 1 ))
44
44
npt .assert_allclose (data .lon , np .arange (- 180 , 181 , 1 ))
45
- npt .assert_allclose (data .min (), - 8597 .0 , atol = 1.0 )
46
- npt .assert_allclose (data .max (), 5559 .0 , atol = 1.0 )
45
+ npt .assert_allclose (data .min (), - 7169 .0 , atol = 1.0 )
46
+ npt .assert_allclose (data .max (), 5350 .0 , atol = 1.0 )
47
47
48
48
49
49
def test_earth_relief_01d_with_region_srtm ():
@@ -59,8 +59,8 @@ def test_earth_relief_01d_with_region_srtm():
59
59
assert data .gmt .registration == 0
60
60
npt .assert_allclose (data .lat , np .arange (- 5 , 6 , 1 ))
61
61
npt .assert_allclose (data .lon , np .arange (- 10 , 11 , 1 ))
62
- npt .assert_allclose (data .min (), - 5151 , atol = 0.5 )
63
- npt .assert_allclose (data .max (), 805 .5 , atol = 0.5 )
62
+ npt .assert_allclose (data .min (), - 5136.0 , atol = 0.5 )
63
+ npt .assert_allclose (data .max (), 680 .5 , atol = 0.5 )
64
64
65
65
66
66
def test_earth_relief_01d_with_region_gebco ():
@@ -76,8 +76,8 @@ def test_earth_relief_01d_with_region_gebco():
76
76
assert data .gmt .registration == 0
77
77
npt .assert_allclose (data .lat , np .arange (- 5 , 6 , 1 ))
78
78
npt .assert_allclose (data .lon , np .arange (- 10 , 11 , 1 ))
79
- npt .assert_allclose (data .min (), - 5151 .0 , atol = 1.0 )
80
- npt .assert_allclose (data .max (), 806 .0 , atol = 1.0 )
79
+ npt .assert_allclose (data .min (), - 5136 .0 , atol = 1.0 )
80
+ npt .assert_allclose (data .max (), 681 .0 , atol = 1.0 )
81
81
82
82
83
83
def test_earth_relief_30m ():
@@ -89,8 +89,8 @@ def test_earth_relief_30m():
89
89
assert data .gmt .registration == 0
90
90
npt .assert_allclose (data .lat , np .arange (- 90 , 90.5 , 0.5 ))
91
91
npt .assert_allclose (data .lon , np .arange (- 180 , 180.5 , 0.5 ))
92
- npt .assert_allclose (data .min (), - 9454 .5 , atol = 0.5 )
93
- npt .assert_allclose (data .max (), 5887.5 , atol = 0.5 )
92
+ npt .assert_allclose (data .min (), - 8279 .5 , atol = 0.5 )
93
+ npt .assert_allclose (data .max (), 5544.0 , atol = 0.5 )
94
94
95
95
96
96
def test_earth_gebcosi_15m_with_region ():
@@ -107,8 +107,8 @@ def test_earth_gebcosi_15m_with_region():
107
107
assert data .gmt .registration == 1
108
108
npt .assert_allclose (data .lat , np .arange (- 87.875 , - 84 , 0.25 ))
109
109
npt .assert_allclose (data .lon , np .arange (85.125 , 87 , 0.25 ))
110
- npt .assert_allclose (data .min (), - 531 , atol = 1.0 )
111
- npt .assert_allclose (data .max (), 474 , atol = 1.0 )
110
+ npt .assert_allclose (data .min (), - 492 , atol = 1.0 )
111
+ npt .assert_allclose (data .max (), 435 , atol = 1.0 )
112
112
113
113
114
114
def test_earth_relief_30s_synbath ():
@@ -122,8 +122,8 @@ def test_earth_relief_30s_synbath():
122
122
data_source = "synbath" ,
123
123
)
124
124
assert data .shape == (60 , 120 )
125
- npt .assert_allclose (data .min (), - 3552 .5 , atol = 0.5 )
126
- npt .assert_allclose (data .max (), - 2257.5 , atol = 0.5 )
125
+ npt .assert_allclose (data .min (), - 3546 .5 , atol = 0.5 )
126
+ npt .assert_allclose (data .max (), - 2282.0 , atol = 0.5 )
127
127
128
128
129
129
def test_earth_relief_03s_landonly_srtm ():
@@ -198,5 +198,5 @@ def test_earth_relief_03s_default_registration():
198
198
npt .assert_allclose (data .coords ["lat" ].data .max (), 5 )
199
199
npt .assert_allclose (data .coords ["lon" ].data .min (), - 10 )
200
200
npt .assert_allclose (data .coords ["lon" ].data .max (), - 9.8 )
201
- npt .assert_allclose (data .min (), - 2070.0 , atol = 0.5 )
201
+ npt .assert_allclose (data .min (), - 2131.9 , atol = 0.5 )
202
202
npt .assert_allclose (data .max (), - 924.5 , atol = 0.5 )
0 commit comments