Skip to content

Commit 46c8471

Browse files
committed
Test with a grid that does not reach the North Pole
Values go from latitude 89S to 89N. Avoids the `grdimage [INFORMATION]: 359 (of 361) inconsistent grid values at North pole.` message.
1 parent d0be1c5 commit 46c8471

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Loading

pygmt/tests/test_grdimage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ def fixture_xrgrid():
2222
Create a sample xarray.DataArray grid for testing
2323
"""
2424
longitude = np.arange(0, 360, 1)
25-
latitude = np.arange(-89, 91, 1)
25+
latitude = np.arange(-89, 90, 1)
2626
x = np.sin(np.deg2rad(longitude))
27-
y = np.linspace(start=0, stop=1, num=180)
27+
y = np.linspace(start=0, stop=1, num=179)
2828
data = y[:, np.newaxis] * x
2929

3030
return xr.DataArray(

0 commit comments

Comments
 (0)