This commit is contained in:
shahramn 2024-06-12 11:50:53 +01:00
parent 411b76211a
commit d5ecfd8743
3 changed files with 6 additions and 11 deletions

View File

@ -84,9 +84,9 @@
233 eidb Dublin 233 eidb Dublin
235 ingv INGV 235 ingv INGV
239 crfc CERFAX 239 crfc CERFAX
244 vuwien VUWien 244 244 The former Yugoslav Republic of Macedonia (NMC)
245 245 Ukraine (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 247 247 Operational Programme for the Exchange of weather RAdar information (OPERA) - EUMETNET
250 cosmo COnsortium for Small scale MOdelling (COSMO) 250 cosmo COnsortium for Small scale MOdelling (COSMO)
251 251 Meteorological Cooperation on Operational NWP (MetCoOp) 251 251 Meteorological Cooperation on Operational NWP (MetCoOp)

View File

@ -217,9 +217,9 @@
241 241 Monaco 241 241 Monaco
242 242 Romania (NMC) 242 242 Romania (NMC)
243 243 Syrian Arab Republic (NMC) 243 243 Syrian Arab Republic (NMC)
244 vuwien VUWien 244 244 The former Yugoslav Republic of Macedonia (NMC)
245 245 Ukraine (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 247 247 Operational Programme for the Exchange of weather RAdar information (OPERA) - EUMETNET
248 248 Montenegro (NMC) 248 248 Montenegro (NMC)
249 249 Barcelona Dust Forecast Center 249 249 Barcelona Dust Forecast Center

View File

@ -682,9 +682,8 @@ int codes_bufr_extract_headers_malloc(grib_context* c, const char* filename, cod
return GRIB_SUCCESS; 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) { switch (centre_code) {
case 1: case 1:
return "ammc"; return "ammc";
@ -758,12 +757,8 @@ static const char* codes_bufr_header_get_centre_name(long edition, long centre_c
return "ingv"; return "ingv";
case 239: case 239:
return "crfc"; return "crfc";
case 244:
return "vuwien";
case 99: case 99:
return "knmi"; return "knmi";
case 246:
return "ifmk";
case 250: case 250:
return "cosmo"; return "cosmo";
case 252: 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); *len = snprintf(val, 32, "%ld", bh->bufrHeaderCentre);
else if (strcmp(key, "centre") == 0) { 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) if (centre_str)
*len = snprintf(val, 32, "%s", centre_str); *len = snprintf(val, 32, "%s", centre_str);
else else