You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by tl...@apache.org on 2021/04/09 01:17:43 UTC
[incubator-sdap-ingester] 24/33: SDAP-295: Include dataset name
hash in tile ID generation (#25)
This is an automated email from the ASF dual-hosted git repository.
tloubrieu pushed a commit to branch ascending_latitudes
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-ingester.git
commit aa829582fe2421218b3d86f20b965abc62953af3
Author: Eamon Ford <ea...@gmail.com>
AuthorDate: Tue Nov 24 12:31:13 2020 -0800
SDAP-295: Include dataset name hash in tile ID generation (#25)
---
granule_ingester/granule_ingester/processors/GenerateTileId.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/granule_ingester/granule_ingester/processors/GenerateTileId.py b/granule_ingester/granule_ingester/processors/GenerateTileId.py
index 2d965f7..c7ab4d1 100644
--- a/granule_ingester/granule_ingester/processors/GenerateTileId.py
+++ b/granule_ingester/granule_ingester/processors/GenerateTileId.py
@@ -26,7 +26,9 @@ class GenerateTileId(TileProcessor):
granule = os.path.basename(tile.summary.granule)
variable_name = tile.summary.data_var_name
spec = tile.summary.section_spec
- generated_id = uuid.uuid3(uuid.NAMESPACE_DNS, granule + variable_name + spec)
+ dataset_name = tile.summary.dataset_name
+
+ generated_id = uuid.uuid3(uuid.NAMESPACE_DNS, dataset_name + granule + variable_name + spec)
tile.summary.tile_id = str(generated_id)
return tile