File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ def _load_earth_relief_holes() -> xr.DataArray:
203
203
is in meters.
204
204
"""
205
205
fname = which ("@earth_relief_20m_holes.grd" , download = "c" )
206
- return xr .load_dataarray (fname , engine = "gmt" , decode_kind = "grid" )
206
+ return xr .load_dataarray (fname , engine = "gmt" , raster_kind = "grid" )
207
207
208
208
209
209
class GMTSampleData (NamedTuple ):
Original file line number Diff line number Diff line change @@ -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 xr .load_dataarray (fname , engine = "gmt" , decode_kind = "grid" )
157
+ return xr .load_dataarray (fname , engine = "gmt" , raster_kind = "grid" )
158
158
159
159
160
160
def skip_if_no (package ):
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ def load_dataarray(filename_or_obj, **kwargs):
24
24
25
25
.. deprecated:: v0.16.0
26
26
The 'pygmt.io.load_dataarray' function will be removed in v0.20.0. Please use
27
- `xarray.load_dataarray(..., engine='gmt', decode_kind ='grid')` instead if you
28
- were reading grids using the engine='netcdf'; otherwise use `decode_kind ='image'`
27
+ `xarray.load_dataarray(..., engine='gmt', raster_kind ='grid')` instead if you
28
+ were reading grids using the engine='netcdf'; otherwise use `raster_kind ='image'`
29
29
if you were reading multi-band images using engine='rasterio'.
30
30
31
31
Parameters
@@ -48,9 +48,9 @@ def load_dataarray(filename_or_obj, **kwargs):
48
48
"""
49
49
msg = (
50
50
"The 'pygmt.io.load_dataarray' function will be removed in v0.20.0. Please use "
51
- "`xarray.load_dataarray(..., engine='gmt', decode_kind ='grid')` instead if you "
51
+ "`xarray.load_dataarray(..., engine='gmt', raster_kind ='grid')` instead if you "
52
52
"were reading grids using the engine='netcdf'; otherwise use "
53
- "`decode_kind ='image'` if you were reading multi-band images using "
53
+ "`raster_kind ='image'` if you were reading multi-band images using "
54
54
"engine='rasterio'."
55
55
)
56
56
warnings .warn (message = msg , category = FutureWarning , stacklevel = 1 )
You can’t perform that action at this time.
0 commit comments