diff --git a/satpy/readers/hdf5_utils.py b/satpy/readers/hdf5_utils.py index f28be51495..c08b624abf 100644 --- a/satpy/readers/hdf5_utils.py +++ b/satpy/readers/hdf5_utils.py @@ -129,7 +129,7 @@ def from_h5_array(h5dset): chunk_size = dc.get("array.chunk-size") chunks = normalize_chunks(chunk_size, dtype=h5dset.dtype, previous_chunks=h5dset.chunks, shape=h5dset.shape) - name = tokenize(os.fspath(h5dset.file.filename), h5dset.name, chunks) + name = h5dset.name + "-" + tokenize(os.fspath(h5dset.file.filename), h5dset.name, chunks) dset_data = da.from_array(h5dset, chunks=chunks, name=name) return dset_data diff --git a/satpy/tests/reader_tests/test_hdf5_utils.py b/satpy/tests/reader_tests/test_hdf5_utils.py index cf835d32b5..8a7d3ef52d 100644 --- a/satpy/tests/reader_tests/test_hdf5_utils.py +++ b/satpy/tests/reader_tests/test_hdf5_utils.py @@ -159,3 +159,4 @@ def test_array_name_uniqueness(self): dsname = "test_group/ds1_f" assert file_handler[dsname].data.name == file_handler[dsname].data.name + assert file_handler[dsname].data.name.startswith("/" + dsname)