@@ -21,7 +21,7 @@ def fixture_grid():
21
21
return load_earth_relief (registration = "pixel" )
22
22
23
23
24
- def test_grfilter_dataarray_in_dataarray_out (grid ):
24
+ def test_grdfilter_dataarray_in_dataarray_out (grid ):
25
25
"""
26
26
grdfilter an input DataArray, and output as DataArray.
27
27
"""
@@ -32,8 +32,8 @@ def test_grfilter_dataarray_in_dataarray_out(grid):
32
32
assert result .coords ["lat" ].data .max () == 89.5
33
33
assert result .coords ["lon" ].data .min () == - 179.5
34
34
assert result .coords ["lon" ].data .max () == 179.5
35
- npt .assert_almost_equal (result .data .min (), - 6147.47265625 , decimal = 2 )
36
- npt .assert_almost_equal (result .data .max (), 5164.1157 , decimal = 2 )
35
+ npt .assert_almost_equal (result .data .min (), - 6147.4907 , decimal = 2 )
36
+ npt .assert_almost_equal (result .data .max (), 5164.06 , decimal = 2 )
37
37
assert result .sizes ["lat" ] == 180
38
38
assert result .sizes ["lon" ] == 360
39
39
@@ -47,11 +47,11 @@ def test_grdfilter_dataarray_in_file_out(grid):
47
47
assert result is None # grdfilter returns None if output to a file
48
48
result = grdinfo (tmpfile .name , per_column = True )
49
49
assert (
50
- result == "-180 180 -90 90 -6147.47265625 5164.11572266 1 1 360 180 1 1\n "
50
+ result == "-180 180 -90 90 -6147.49072266 5164.06005859 1 1 360 180 1 1\n "
51
51
)
52
52
53
53
54
- def test_grfilter_file_in_dataarray_out ():
54
+ def test_grdfilter_file_in_dataarray_out ():
55
55
"""
56
56
grdfilter an input grid file, and output as DataArray.
57
57
"""
0 commit comments