File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 12
12
from pygmt .helpers import build_arg_list
13
13
from pygmt .src .which import which
14
14
from xarray .backends import BackendEntrypoint
15
- from xarray .backends .common import AbstractDataStore
16
- from xarray .core .types import ReadBuffer
17
15
18
16
19
17
class GMTReadBackendEntrypoint (BackendEntrypoint ):
@@ -24,13 +22,13 @@ class GMTReadBackendEntrypoint(BackendEntrypoint):
24
22
GeoTIFF files.
25
23
"""
26
24
27
- description = "Open . nc and .tif files in Xarray via GMT read."
25
+ description = "Open raster (.grd, . nc or .tif) files in Xarray via GMT read."
28
26
open_dataset_parameters = ("filename_or_obj" , "kind" )
29
27
url = "https://github.com/GenericMappingTools/pygmt"
30
28
31
- def open_dataset (
29
+ def open_dataset ( # type: ignore[override]
32
30
self ,
33
- filename_or_obj : str | os .PathLike | ReadBuffer | AbstractDataStore ,
31
+ filename_or_obj : str | os .PathLike ,
34
32
* ,
35
33
drop_variables = None , # noqa: ARG002
36
34
decode_kind : Literal ["grid" , "image" ] | None = None ,
You can’t perform that action at this time.
0 commit comments