diff --git a/hydromt/data_catalog/data_catalog.py b/hydromt/data_catalog/data_catalog.py index 14dce077b..afee7d6d0 100644 --- a/hydromt/data_catalog/data_catalog.py +++ b/hydromt/data_catalog/data_catalog.py @@ -633,7 +633,7 @@ def _cache_archive( if Path(archive_uri).suffix == ".zip": kwargs.update(processor=pooch.Unzip(extract_dir=root)) elif Path(archive_uri).suffix == ".gz": - kwargs.update(processor=pooch.Untar(extract_dir=root)) + kwargs.update(processor=pooch.Untar(extract_dir=root, filter='data')) if Path(archive_uri).exists(): # check if arhive is a local file kwargs.update(donwloader=_copy_file) pooch.retrieve( @@ -641,7 +641,6 @@ def _cache_archive( known_hash=sha256, path=str(root), fname=Path(archive_uri).name, - filter='data', **kwargs, ) return root