From 5729d23f5134a8b799cdf0ee2de04062ef5d87eb Mon Sep 17 00:00:00 2001 From: floeschau Date: Tue, 15 Oct 2024 14:20:24 +0200 Subject: [PATCH] Fix for Vision-1 metadata extractor with additional asset name parts (ESACPE-2101) --- src/Stars.Data/Model/Metadata/Dimap/DMC/Vision1DimapProfiler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stars.Data/Model/Metadata/Dimap/DMC/Vision1DimapProfiler.cs b/src/Stars.Data/Model/Metadata/Dimap/DMC/Vision1DimapProfiler.cs index 5cf57a97..efeb120b 100644 --- a/src/Stars.Data/Model/Metadata/Dimap/DMC/Vision1DimapProfiler.cs +++ b/src/Stars.Data/Model/Metadata/Dimap/DMC/Vision1DimapProfiler.cs @@ -112,7 +112,7 @@ public override string GetProductKey(IAsset bandAsset, t_Data_File dataFile) nameParts[3] ); if (nameParts[1] != "PAN") key += string.Format("-{0}", nameParts[1]); - if (nameParts.Length >= 7) key += string.Format("-{0}", nameParts[6]); + if (nameParts.Length >= 7) key += string.Format("-{0}", nameParts[nameParts.Length - 1]); return key; }