mirror of https://github.com/ecmwf/eccodes.git
ECC-1706
This commit is contained in:
parent
411b76211a
commit
d5ecfd8743
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue