diff --git a/src/Stars.Console/Terradue.Stars.Console.csproj b/src/Stars.Console/Terradue.Stars.Console.csproj index 82a325ca..ae28777b 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.6 + 2.25.7 Stars is a CLI for working with Spatio Temporal Catalog such as STAC but not only $(Version)-$(VersionSuffix) diff --git a/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20220320_112827_SN20_L1_SR.json b/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20220320_112827_SN20_L1_SR.json index 42965fc0..a4cc1da1 100644 --- a/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20220320_112827_SN20_L1_SR.json +++ b/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20220320_112827_SN20_L1_SR.json @@ -297,7 +297,7 @@ ] }, "properties": { - "title": "NEWSAT MS L1 2022-03-20 11:28:27", + "title": "NEWSAT MS L1_SR 2022-03-20 11:28:27", "description": "scene_set_id: ece6d219-e452-4524-8fdc-c61c59727ecf", "datetime": "2022-03-20T11:28:27.976967Z", "processing:level": "l1", diff --git a/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20231030_200817_SN29_L1_SR.json b/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20231030_200817_SN29_L1_SR.json index 86d9bd70..2d1a2b7f 100644 --- a/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20231030_200817_SN29_L1_SR.json +++ b/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20231030_200817_SN29_L1_SR.json @@ -292,7 +292,7 @@ ] }, "properties": { - "title": "NEWSAT MS L1 2023-10-30 20:08:17", + "title": "NEWSAT MS L1_SR 2023-10-30 20:08:17", "description": "scene_set_id: 27b30afd-1c9a-4580-846c-7fe1ab55b46a--179598", "datetime": "2023-10-30T20:08:17.595251Z", "processing:level": "l1", diff --git a/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20240314_172620_SN30_L1_SR.json b/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20240314_172620_SN30_L1_SR.json index 0cfdfc42..149942a1 100644 --- a/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20240314_172620_SN30_L1_SR.json +++ b/src/Stars.Data.Tests/Resources/SATELLOGIC/NEWSAT/MetadataExtractorsTests_20240314_172620_SN30_L1_SR.json @@ -96,7 +96,7 @@ ] }, "properties": { - "title": "NEWSAT MS L1 2024-03-14 17:26:20", + "title": "NEWSAT MS L1_SR 2024-03-14 17:26:20", "description": "scene_set_id: ff914eb4-1157-4509-9bc5-36f055cd8e6c", "datetime": "2024-03-14T17:26:20.006816Z", "processing:level": "l1", 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 e0a7d2bd..8ed53c46 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 @@ -230,7 +230,7 @@ "multispectral" ], "constellation": "Aleph1", - "title": "NEWSAT MULTISPECTRAL L1D 2024-11-02 10:59:19", + "title": "NEWSAT MS L1D_SR 2024-11-02 10:59:19", "processing:level": "l1d", "providers": [ { diff --git a/src/Stars.Data/Model/Metadata/NewSat/NewSatMetadataExtractor.cs b/src/Stars.Data/Model/Metadata/NewSat/NewSatMetadataExtractor.cs index 5f6ddb8c..88ad24b3 100644 --- a/src/Stars.Data/Model/Metadata/NewSat/NewSatMetadataExtractor.cs +++ b/src/Stars.Data/Model/Metadata/NewSat/NewSatMetadataExtractor.cs @@ -185,11 +185,15 @@ private void FillTitleProperty(StacItem stacItem) var properties = stacItem.Properties; // title properties.Remove("title"); + string instruments = properties.GetProperty("instruments").First(); + if (instruments == "multispectral") instruments = "MS"; + string processingLevel = properties.GetProperty("processing:level").ToUpper(); + if (stacItem.Id.Contains("_SR_") || stacItem.Id.EndsWith("_SR")) processingLevel += "_SR"; properties.Add("title", string.Format("{0} {1} {2} {3}", //StylePlatform(properties.GetProperty("platform")), properties.GetProperty("platform").ToUpper(), - properties.GetProperty("instruments").First().ToUpper(), - properties.GetProperty("processing:level").ToUpper(), + instruments.ToUpper(), + processingLevel, properties.GetProperty("datetime").ToUniversalTime().ToString("yyyy-MM-dd HH:mm:ss", culture))); } diff --git a/src/Stars.Data/Terradue.Stars.Data.csproj b/src/Stars.Data/Terradue.Stars.Data.csproj index f40a9c5a..fb2bd5d9 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.6 + 2.25.7 $(Version)-$(VersionSuffix) NU1603 diff --git a/src/Stars.Services/Terradue.Stars.Services.csproj b/src/Stars.Services/Terradue.Stars.Services.csproj index 8724f64f..774dae97 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.6 + 2.25.7 $(Version)-$(VersionSuffix) Terradue.Stars.Services