diff --git a/kerchunk/hdf.py b/kerchunk/hdf.py index 03dafab5..46c325c8 100644 --- a/kerchunk/hdf.py +++ b/kerchunk/hdf.py @@ -470,7 +470,7 @@ def _translator(self, name: str, h5obj: Union[h5py.Dataset, h5py.Group]): data.decode("ascii") except UnicodeDecodeError: data = b"base64:" + base64.b64encode(data) - self.store[k] = data + self.store[za._chunk_key(k)] = data else: self.store[za._chunk_key(k)] = [ self._uri,