pygmt.GMTBackendEntrypoint.open_dataset
- GMTBackendEntrypoint.open_dataset(filename_or_obj, *, drop_variables=None, raster_kind)[source]
Backend open_dataset method used by Xarray in
open_dataset
.- Parameters:
filename_or_obj (
str
|PathLike
) – File path to a netCDF (.nc), GeoTIFF (.tif) or other grid/image file format that can be read by GMT via the netCDF or GDAL C libraries. See also https://docs.generic-mapping-tools.org/6.5/reference/features.html#grid-file-format.raster_kind (
Literal
['grid'
,'image'
]) – Whether to read the file as a “grid” (single-band) or “image” (multi-band).
- Return type: