Skip to content

Commit c79e50a

Browse files
weiji14seisman
andauthored
Apply suggestions from code review
Co-authored-by: Dongdong Tian <[email protected]>
1 parent 06aa39d commit c79e50a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pygmt/xarray_backend.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class GMTBackendEntrypoint(BackendEntrypoint):
2222
GeoTIFF files.
2323
"""
2424

25-
description = "Open raster (.grd, .nc or .tif) files in Xarray via GMT read."
26-
open_dataset_parameters = ("filename_or_obj", "kind")
25+
description = "Open raster (.grd, .nc or .tif) files in Xarray via GMT."
26+
open_dataset_parameters = ("filename_or_obj", "decode_kind")
2727
url = "https://github.com/GenericMappingTools/pygmt"
2828

2929
def open_dataset( # type: ignore[override]
@@ -69,4 +69,4 @@ def guess_can_open(self, filename_or_obj) -> bool:
6969
ext = Path(filename_or_obj).suffix
7070
except TypeError:
7171
return False
72-
return ext in {".grd", ".nc", ".tif"}
72+
return ext in {".grd", ".nc", ".tif", ".tiff"}

0 commit comments

Comments
 (0)