File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 8
8
import pandas as pd
9
9
import xarray as xr
10
10
from pygmt .exceptions import GMTInvalidInput
11
- from pygmt .io import load_dataarray
12
11
from pygmt .src import which
13
12
14
13
@@ -204,7 +203,7 @@ def _load_earth_relief_holes() -> xr.DataArray:
204
203
is in meters.
205
204
"""
206
205
fname = which ("@earth_relief_20m_holes.grd" , download = "c" )
207
- return load_dataarray (fname , engine = "netcdf4 " )
206
+ return xr . load_dataarray (fname , engine = "gmt" , decode_kind = "grid " )
208
207
209
208
210
209
class GMTSampleData (NamedTuple ):
Original file line number Diff line number Diff line change 7
7
import string
8
8
from pathlib import Path
9
9
10
+ import xarray as xr
10
11
from pygmt .exceptions import GMTImageComparisonFailure
11
- from pygmt .io import load_dataarray
12
12
from pygmt .src import which
13
13
14
14
@@ -154,7 +154,7 @@ def load_static_earth_relief():
154
154
A grid of Earth relief for internal tests.
155
155
"""
156
156
fname = which ("@static_earth_relief.nc" , download = "c" )
157
- return load_dataarray (fname )
157
+ return xr . load_dataarray (fname , engine = "gmt" , decode_kind = "grid" )
158
158
159
159
160
160
def skip_if_no (package ):
You can’t perform that action at this time.
0 commit comments