From bf41b7abb36ed90bbc5c86cd8ca55cf90542403c Mon Sep 17 00:00:00 2001 From: floeschau Date: Fri, 10 Jan 2025 18:38:02 +0100 Subject: [PATCH 1/2] STAC asset name ('cloud_mask') for NewSat --- ...tractorsTests_20241102_105919_SN48_L1D_SR_MS_251827.json | 2 +- .../Model/Metadata/NewSat/NewSatMetadataExtractor.cs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20241102_105919_SN48_L1D_SR_MS_251827.json b/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20241102_105919_SN48_L1D_SR_MS_251827.json index 8ed53c46..b18bd3eb 100644 --- a/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20241102_105919_SN48_L1D_SR_MS_251827.json +++ b/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20241102_105919_SN48_L1D_SR_MS_251827.json @@ -289,7 +289,7 @@ ], "filename": "20241102_105919_SN48_L1D_SR_MS_TOA_0.tif" }, - "cloud": { + "cloud_mask": { "type": "application/xml", "roles": [ "cloud" diff --git a/src/Stars.Data/Model/Metadata/NewSat/NewSatMetadataExtractor.cs b/src/Stars.Data/Model/Metadata/NewSat/NewSatMetadataExtractor.cs index 88ad24b3..cd8639aa 100644 --- a/src/Stars.Data/Model/Metadata/NewSat/NewSatMetadataExtractor.cs +++ b/src/Stars.Data/Model/Metadata/NewSat/NewSatMetadataExtractor.cs @@ -84,6 +84,12 @@ protected override async Task ExtractMetadata(IItem item, string suffi // add L3 visual tif asset bool x = AddL3Assets(item, stacItem) || AddL1Assets(item, stacItem); + if (!stacItem.Assets.ContainsKey("cloud_mask") && stacItem.Assets.ContainsKey("cloud")) + { + stacItem.Assets["cloud_mask"] = stacItem.Assets["cloud"]; + stacItem.Assets.Remove("cloud"); + } + return StacNode.Create(stacItem, item.Uri); } From 1694ea477231a5db96021a788470d62bfe6edbfb Mon Sep 17 00:00:00 2001 From: floeschau Date: Fri, 10 Jan 2025 18:38:42 +0100 Subject: [PATCH 2/2] Version 2.25.8 --- src/Stars.Console/Terradue.Stars.Console.csproj | 2 +- src/Stars.Data/Terradue.Stars.Data.csproj | 2 +- src/Stars.Services/Terradue.Stars.Services.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Stars.Console/Terradue.Stars.Console.csproj b/src/Stars.Console/Terradue.Stars.Console.csproj index ae28777b..f984da0b 100644 --- a/src/Stars.Console/Terradue.Stars.Console.csproj +++ b/src/Stars.Console/Terradue.Stars.Console.csproj @@ -2,7 +2,7 @@ Exe net6.0 - 2.25.7 + 2.25.8 Stars is a CLI for working with Spatio Temporal Catalog such as STAC but not only $(Version)-$(VersionSuffix) diff --git a/src/Stars.Data/Terradue.Stars.Data.csproj b/src/Stars.Data/Terradue.Stars.Data.csproj index fb2bd5d9..8223f005 100644 --- a/src/Stars.Data/Terradue.Stars.Data.csproj +++ b/src/Stars.Data/Terradue.Stars.Data.csproj @@ -4,7 +4,7 @@ Terradue.Stars.Data Terradue.Stars.Data Collection of data Plugins for Terradue.Stars - 2.25.7 + 2.25.8 $(Version)-$(VersionSuffix) NU1603 diff --git a/src/Stars.Services/Terradue.Stars.Services.csproj b/src/Stars.Services/Terradue.Stars.Services.csproj index 774dae97..f24ea301 100644 --- a/src/Stars.Services/Terradue.Stars.Services.csproj +++ b/src/Stars.Services/Terradue.Stars.Services.csproj @@ -3,7 +3,7 @@ netstandard2.0 Terradue.Stars Stars is a set of services for working with Spatio Temporal Catalog such as STAC but not only - 2.25.7 + 2.25.8 $(Version)-$(VersionSuffix) Terradue.Stars.Services