diff --git a/earthaccess/__init__.py b/earthaccess/__init__.py index 87aa3fb3..4977bf38 100644 --- a/earthaccess/__init__.py +++ b/earthaccess/__init__.py @@ -40,6 +40,7 @@ "Auth", "Store", "auth_environ", + "consolidate_metadata", ] __version__ = version("earthaccess") diff --git a/earthaccess/kerchunk.py b/earthaccess/kerchunk.py index b0d9322d..eb3f4cae 100644 --- a/earthaccess/kerchunk.py +++ b/earthaccess/kerchunk.py @@ -1,9 +1,10 @@ from __future__ import annotations -import earthaccess import fsspec import s3fs +import earthaccess + def _get_chunk_metadata( granuale: earthaccess.results.DataGranule, @@ -30,6 +31,7 @@ def consolidate_metadata( ) -> str | dict: try: import dask + from kerchunk.combine import MultiZarrToZarr except ImportError as e: raise ImportError( diff --git a/tests/integration/test_kerchunk.py b/tests/integration/test_kerchunk.py index 8652852e..39c95e99 100644 --- a/tests/integration/test_kerchunk.py +++ b/tests/integration/test_kerchunk.py @@ -1,4 +1,6 @@ +import logging import os +import unittest import earthaccess import pytest