From 307d4f5e4d765536fa4008cde26d3baaf379e52d Mon Sep 17 00:00:00 2001 From: bbrauzzi Date: Wed, 27 Sep 2023 17:21:12 +0200 Subject: [PATCH] ESACPE-1690 satelite number fix in the title --- ...p_inpe_cbers_4a_wfi_20230214_109_060_l2_compose-metadata.csv | 2 +- src/Stars.Data/Model/Metadata/Cbers/Schemas/MetadataCsv.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Stars.Data.Tests/Resources/INPE/CBERS-4A/WFI/data/CBERS-4A-urn_ogc_def_EOP_INPE_CBERS_4A_WFI_20230214_109_060_L2_compose/urn_ogc_def_eop_inpe_cbers_4a_wfi_20230214_109_060_l2_compose-metadata.csv b/src/Stars.Data.Tests/Resources/INPE/CBERS-4A/WFI/data/CBERS-4A-urn_ogc_def_EOP_INPE_CBERS_4A_WFI_20230214_109_060_L2_compose/urn_ogc_def_eop_inpe_cbers_4a_wfi_20230214_109_060_l2_compose-metadata.csv index 92dcc4a9..e115b4a4 100644 --- a/src/Stars.Data.Tests/Resources/INPE/CBERS-4A/WFI/data/CBERS-4A-urn_ogc_def_EOP_INPE_CBERS_4A_WFI_20230214_109_060_L2_compose/urn_ogc_def_eop_inpe_cbers_4a_wfi_20230214_109_060_l2_compose-metadata.csv +++ b/src/Stars.Data.Tests/Resources/INPE/CBERS-4A/WFI/data/CBERS-4A-urn_ogc_def_EOP_INPE_CBERS_4A_WFI_20230214_109_060_L2_compose/urn_ogc_def_eop_inpe_cbers_4a_wfi_20230214_109_060_l2_compose-metadata.csv @@ -1,2 +1,2 @@ AGENCY,SATELLITE,INSTRUMENT,MODE,IDENTIFIER,START_DATE,COMPLETE_DATE,FOOTPRINT,PRODUCT_URL,AOI,FORMAT,PROCESSING_LEVEL,PROCESSING_LEVEL_DESCRIPTION,PROJECTION,EPSG,PATH,ROW,OFF_NADIR,SUN_AZIMUTH,SUN_ELEVATION,ABSOLUTE_CALIBRATION_COEFFICIENTS -INPE,CBERS4,WFI,,urn_ogc_def_EOP_INPE_CBERS_4A_WFI_20230214_109_060_L2_compose,2023-02-14T08:31:25+0000,2023-02-14T08:33:13+0000," 42.936 43.164 42.944 43.824 42.584 43.83 42.576 43.174 42.936 43.164",,,GeoTiff,L1B,,Geocoded,32638,109,060,0,165.439,32.9467,band0:1.4351 band1:1.4351 band2:1.6559 band3:1.6559 \ No newline at end of file +INPE,CBERS4A,WFI,,urn_ogc_def_EOP_INPE_CBERS_4A_WFI_20230214_109_060_L2_compose,2023-02-14T08:31:25+0000,2023-02-14T08:33:13+0000," 42.936 43.164 42.944 43.824 42.584 43.83 42.576 43.174 42.936 43.164",,,GeoTiff,L1B,,Geocoded,32638,109,060,0,165.439,32.9467,band0:1.4351 band1:1.4351 band2:1.6559 band3:1.6559 \ No newline at end of file diff --git a/src/Stars.Data/Model/Metadata/Cbers/Schemas/MetadataCsv.cs b/src/Stars.Data/Model/Metadata/Cbers/Schemas/MetadataCsv.cs index 81dbfd71..c9ceae7a 100644 --- a/src/Stars.Data/Model/Metadata/Cbers/Schemas/MetadataCsv.cs +++ b/src/Stars.Data/Model/Metadata/Cbers/Schemas/MetadataCsv.cs @@ -33,7 +33,7 @@ public Metadata getMetadata() { metadata.satellite = new prdfSatellite(); metadata.satellite.name = "CBERS"; - string pattern = @"CBERS(\d+)"; + string pattern = @"CBERS(.*)"; Match match = Regex.Match(SATELLITE, pattern); if (match.Success) { string numberString = match.Groups[1].Value;