LOGS GIVE ME MORE LOGS!
MODIFY
pangeo_forge_recipes/recipes/xarray_zarr.py
pangeo_forge_recipes/recipes/xarray_zarr.py
@@ -345,7 +345,9 @@ class XarrayZarrRecipe(BaseRecipe):
logger.info(f"Opening input with Xarray {input_key}: '{fname}'")
cache = self.input_cache if self.cache_inputs else None
with file_opener(fname, cache=cache, copy_to_local=self.copy_input_to_local_file) as f:
+ logger.debug("about to call xr.open_dataset")
ds = xr.open_dataset(f, **self.xarray_open_kwargs)
+ logger.debug("successfully opened dataset")
ds = fix_scalar_attr_encoding(ds)
if self.delete_input_encoding:

MODIFY
pangeo_forge_recipes/storage.py
pangeo_forge_recipes/storage.py
@@ -201,9 +201,13 @@ def file_opener(
yield tmp_name
ntf.close() # cleans up the temporary file
else:
+ logger.debug("file_opener entering opener")
with opener as fp:
+ logger.debug("file_opener entering fp")
with fp as fp2: # type: ignore
+ logger.debug("file_opener yielding fp")
yield fp2
+ logger.debug("file_opener yielded fp")
def _slugify(value: str) -> str:

LOGS GIVE ME MORE LOGS!