Skip to content

Commit

Permalink
tifftozarr
Browse files Browse the repository at this point in the history
  • Loading branch information
ghidalgo3 committed Jul 15, 2024
1 parent 653a260 commit 5d9717a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion kerchunk/tiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
import kerchunk.utils


def tiff_to_zarr(urlpath, remote_options=None, target=None, target_options=None):
def tiff_to_zarr(
urlpath, remote_options=None, target=None, target_options=None, zarr_version=None
):
"""Wraps TIFFFile's fsspec writer to extract metadata as attributes
Parameters
Expand All @@ -27,12 +29,16 @@ def tiff_to_zarr(urlpath, remote_options=None, target=None, target_options=None)
Write JSON to this location. If not given, no file is output
target_options: dict
pass these to fsspec when opening target
zarr_version: int
Returns
-------
references dict
"""

if zarr_version not in [2, None]:
raise ValueError("zarr_version not implemented for tiff_to_zarr")

with fsspec.open(urlpath, **(remote_options or {})) as of:
url, name = urlpath.rsplit("/", 1)

Expand Down

0 comments on commit 5d9717a

Please sign in to comment.