From 15f354886fdb6daaeafe4565bf3cdf72bfb2a9c1 Mon Sep 17 00:00:00 2001 From: shahramn Date: Wed, 12 Jun 2024 11:50:53 +0100 Subject: [PATCH] ECC-1706 --- definitions/common/c-1.table | 4 ++-- definitions/common/c-11.table | 4 ++-- src/bufr_util.cc | 9 ++------- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/definitions/common/c-1.table b/definitions/common/c-1.table index 408af498d..2d9954a38 100644 --- a/definitions/common/c-1.table +++ b/definitions/common/c-1.table @@ -84,9 +84,9 @@ 233 eidb Dublin 235 ingv INGV 239 crfc CERFAX -244 vuwien VUWien +244 244 The former Yugoslav Republic of Macedonia (NMC) 245 245 Ukraine (NMC) -246 ifmk IfM-Kiel +246 246 Republic of Moldova (NMC) 247 247 Operational Programme for the Exchange of weather RAdar information (OPERA) - EUMETNET 250 cosmo COnsortium for Small scale MOdelling (COSMO) 251 251 Meteorological Cooperation on Operational NWP (MetCoOp) diff --git a/definitions/common/c-11.table b/definitions/common/c-11.table index 47769ffb9..d96d7e267 100644 --- a/definitions/common/c-11.table +++ b/definitions/common/c-11.table @@ -217,9 +217,9 @@ 241 241 Monaco 242 242 Romania (NMC) 243 243 Syrian Arab Republic (NMC) -244 vuwien VUWien +244 244 The former Yugoslav Republic of Macedonia (NMC) 245 245 Ukraine (NMC) -246 ifmk IfM-Kiel +246 246 Republic of Moldova (NMC) 247 247 Operational Programme for the Exchange of weather RAdar information (OPERA) - EUMETNET 248 248 Montenegro (NMC) 249 249 Barcelona Dust Forecast Center diff --git a/src/bufr_util.cc b/src/bufr_util.cc index 7f84d7ab7..56a4977c0 100644 --- a/src/bufr_util.cc +++ b/src/bufr_util.cc @@ -682,9 +682,8 @@ int codes_bufr_extract_headers_malloc(grib_context* c, const char* filename, cod return GRIB_SUCCESS; } -static const char* codes_bufr_header_get_centre_name(long edition, long centre_code) +static const char* codes_bufr_header_get_centre_name(long centre_code) { - (void)edition; switch (centre_code) { case 1: return "ammc"; @@ -758,12 +757,8 @@ static const char* codes_bufr_header_get_centre_name(long edition, long centre_c return "ingv"; case 239: return "crfc"; - case 244: - return "vuwien"; case 99: return "knmi"; - case 246: - return "ifmk"; case 250: return "cosmo"; case 252: @@ -869,7 +864,7 @@ int codes_bufr_header_get_string(codes_bufr_header* bh, const char* key, char* v *len = snprintf(val, 32, "%ld", bh->bufrHeaderCentre); else if (strcmp(key, "centre") == 0) { - const char* centre_str = codes_bufr_header_get_centre_name(bh->edition, bh->bufrHeaderCentre); + const char* centre_str = codes_bufr_header_get_centre_name(bh->bufrHeaderCentre); if (centre_str) *len = snprintf(val, 32, "%s", centre_str); else