diff --git a/xarray_esgf/client.py b/xarray_esgf/client.py index 90d7ca5..8ef0115 100644 --- a/xarray_esgf/client.py +++ b/xarray_esgf/client.py @@ -1,5 +1,6 @@ import asyncio import dataclasses +import logging from collections import defaultdict from collections.abc import Callable, Iterable from functools import cached_property @@ -25,6 +26,8 @@ "version", ] +LOGGER = logging.getLogger() + def use_new_combine_kwarg_defaults[**P, T](func: Callable[P, T]) -> Callable[P, T]: def wrapper(*args: P.args, **kwds: P.kwargs) -> T: @@ -159,6 +162,7 @@ def open_dataset( ]) ds = ds.expand_dims({dim: [dataset_id_dict[dim]] for dim in concat_dims}) combined_datasets[dataset_id] = ds + LOGGER.debug(f"{dataset_id}: {dict(ds.sizes)}") obj = xr.combine_by_coords( combined_datasets.values(),