diff --git a/src/accessor/grib_accessor_class_g2_aerosol.cc b/src/accessor/grib_accessor_class_g2_aerosol.cc index 4240b74e9..fa54e2dbb 100644 --- a/src/accessor/grib_accessor_class_g2_aerosol.cc +++ b/src/accessor/grib_accessor_class_g2_aerosol.cc @@ -82,7 +82,7 @@ int grib_accessor_class_g2_aerosol_t::pack_long(grib_accessor* a, const long* va } else { if (isInstant) { - productDefinitionTemplateNumberNew = 48; // 44 is deprecated + productDefinitionTemplateNumberNew = 50; // 44 is deprecated, 50 is the corrected version } else { productDefinitionTemplateNumberNew = 46; diff --git a/src/grib_util.cc b/src/grib_util.cc index 9820b3028..e0b3dbb92 100644 --- a/src/grib_util.cc +++ b/src/grib_util.cc @@ -1927,12 +1927,13 @@ int grib2_is_PDTN_ChemicalDistFunc(long pdtn) // Return 1 if the productDefinitionTemplateNumber (GRIB2) is for aerosols int grib2_is_PDTN_Aerosol(long pdtn) { - // Notes: PDT 44 is deprecated and replaced by 48 + // Notes: PDT 44 is deprecated and replaced by 50 // PDT 47 is deprecated and replaced by 85 return ( pdtn == 44 || pdtn == 48 || pdtn == 49 || + pdtn == 50 || pdtn == 45 || pdtn == 46 || pdtn == 47 || @@ -2033,7 +2034,7 @@ int grib2_select_PDTN(int is_eps, int is_instant, } else { if (is_instant) - return 48; // 44 is deprecated + return 50; // 44 is deprecated, 50 is the corrected template else return 46; }