Skip to content

Commit 3a4f2f5

Browse files
authored
Update fig.grd baseline images for GMT 6.2.0rc1 (#1224)
* Update fig.grdcontour baseline images for GMT 6.2.0rc1 * Fix test_grdfilter tests for GMT 6.2.0rc1 Min/max values of the grid now matches properly for xarray.DataArray and NetCDF inputs. * Update fig.grd2cpt baseline image for GMT 6.2.0rc1
1 parent 5d97c2b commit 3a4f2f5

7 files changed

+17
-17
lines changed
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
outs:
2-
- md5: 0848349770986ef56d740e866ab961bc
3-
size: 24843
2+
- md5: 305e3650aa4ed9a56bec58be3a0d752b
3+
size: 22460
44
path: test_grd2cpt.png
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
outs:
2-
- md5: 438f13a0356e3bec8e3762180ea9c2f0
3-
size: 219869
2+
- md5: 9366e405a1be22b4c2515f24a3acae69
3+
size: 217638
44
path: test_grdcontour.png
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
outs:
2-
- md5: fa2f0be00003b6a1cf8cc80da0eb824c
3-
size: 102192
2+
- md5: 717b9f9123c7bb2bfb197a419d459288
3+
size: 97067
44
path: test_grdcontour_file.png
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
outs:
2-
- md5: 7f655c17e068dd4860c5f97b7503a314
3-
size: 38237
2+
- md5: 25125246f541652071fac1771e5d7e88
3+
size: 33966
44
path: test_grdcontour_interval_file_full_opts.png
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
outs:
2-
- md5: 582303f039a43f271c543b78d3a3ff4b
3-
size: 226135
2+
- md5: 03a7cc6dea35f9383cbfb2683d7b7c1b
3+
size: 223421
44
path: test_grdcontour_labels.png
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
outs:
2-
- md5: c9538960aae7cd5263bce0f6bda20090
3-
size: 102143
2+
- md5: 48070d23c538d26eb96b5caaf440513a
3+
size: 97314
44
path: test_grdcontour_slice.png

pygmt/tests/test_grdfilter.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def fixture_grid():
2121
return load_earth_relief(registration="pixel")
2222

2323

24-
def test_grfilter_dataarray_in_dataarray_out(grid):
24+
def test_grdfilter_dataarray_in_dataarray_out(grid):
2525
"""
2626
grdfilter an input DataArray, and output as DataArray.
2727
"""
@@ -32,8 +32,8 @@ def test_grfilter_dataarray_in_dataarray_out(grid):
3232
assert result.coords["lat"].data.max() == 89.5
3333
assert result.coords["lon"].data.min() == -179.5
3434
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)
3737
assert result.sizes["lat"] == 180
3838
assert result.sizes["lon"] == 360
3939

@@ -47,11 +47,11 @@ def test_grdfilter_dataarray_in_file_out(grid):
4747
assert result is None # grdfilter returns None if output to a file
4848
result = grdinfo(tmpfile.name, per_column=True)
4949
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"
5151
)
5252

5353

54-
def test_grfilter_file_in_dataarray_out():
54+
def test_grdfilter_file_in_dataarray_out():
5555
"""
5656
grdfilter an input grid file, and output as DataArray.
5757
"""

0 commit comments

Comments
 (0)