@@ -14,13 +14,13 @@ def test_earth_mdt_01d():
14
14
data = load_earth_mean_dynamic_topography (resolution = "01d" )
15
15
assert data .name == "z"
16
16
assert data .attrs ["description" ] == "CNES Earth mean dynamic topography"
17
- assert data .attrs ["units" ] == "m "
17
+ assert data .attrs ["units" ] == "meters "
18
18
assert data .attrs ["horizontal_datum" ] == "WGS84"
19
19
assert data .shape == (181 , 361 )
20
20
assert data .gmt .registration == 0
21
21
npt .assert_allclose (data .lat , np .arange (- 90 , 91 , 1 ))
22
22
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 )
24
24
npt .assert_allclose (data .max (), 2463.42 , atol = 0.01 )
25
25
26
26
@@ -33,16 +33,16 @@ def test_earth_mdt_01d_with_region():
33
33
assert data .gmt .registration == 0
34
34
npt .assert_allclose (data .lat , np .arange (- 5 , 6 , 1 ))
35
35
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 )
37
37
npt .assert_allclose (data .max (), 105.18 , atol = 0.01 )
38
38
39
39
40
- def test_earth_mdt_01m_default_registration ():
40
+ def test_earth_mdt_07m_default_registration ():
41
41
"""
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
43
43
"gridline" registration.
44
44
"""
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 ])
46
46
assert data .shape == (121 , 61 )
47
47
assert data .gmt .registration == 0
48
48
assert data .coords ["lat" ].data .min () == 3.0
0 commit comments