Skip to content

Commit

Permalink
added metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoelles committed Oct 19, 2023
1 parent c2875f4 commit 4c19a42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kedro-datasets/kedro_datasets/xarray/geotiff_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def __init__(
load_args: Dict[str, Any] = None,
save_args: Dict[str, Any] = None,
version: Version = None,
metadata: Dict[str, Any] = None,
):
"""Creates a new instance of ``GeoTiffDataset`` pointing to a concrete
tiff or tif file with geospatial data.
Expand All @@ -78,13 +79,14 @@ def __init__(
``kedro.io.core.Version``. If its ``load`` attribute is
None, the latest version will be loaded. If its ``save``
attribute is None, save version will be autogenerated.
fs_args: Extra arguments to pass into underlying filesystem class constructor
(e.g. `{"project": "my-project"}` for ``GCSFileSystem``).
metadata: Any arbitrary metadata.
This is ignored by Kedro, but may be consumed by users or external plugins.
"""
protocol, path = get_protocol_and_path(filepath, version)
self._protocol = protocol
self._fs = fsspec.filesystem(self._protocol)
self._format = "GEOTIFF"
self.metadata = metadata

super().__init__(
filepath=PurePosixPath(path),
Expand Down

0 comments on commit 4c19a42

Please sign in to comment.