GRIB2: Support for chemical source/sink

This commit is contained in:
shahramn 2024-10-15 17:03:51 +01:00
parent 66bfe1fbab
commit e5e0952fb4
1 changed files with 18 additions and 0 deletions

View File

@ -75,12 +75,21 @@ int grib_accessor_select_step_template_t::pack_long(const long* val, size_t* len
case 47: // ENS aerosol case 47: // ENS aerosol
productDefinitionTemplateNumberNew = 45; productDefinitionTemplateNumberNew = 45;
break; break;
case 67: // DET chemical distrib func case 67: // DET chemical distrib func
productDefinitionTemplateNumberNew = 57; productDefinitionTemplateNumberNew = 57;
break; break;
case 68: // ENS chemical distrib func case 68: // ENS chemical distrib func
productDefinitionTemplateNumberNew = 58; productDefinitionTemplateNumberNew = 58;
break; break;
case 78: // DET chemical source/sink
productDefinitionTemplateNumberNew = 76;
break;
case 79: // ENS chemical source/sink
productDefinitionTemplateNumberNew = 77;
break;
case 72: // DET post-processing case 72: // DET post-processing
productDefinitionTemplateNumberNew = 70; productDefinitionTemplateNumberNew = 70;
break; break;
@ -136,12 +145,21 @@ int grib_accessor_select_step_template_t::pack_long(const long* val, size_t* len
case 45: // ENS aerosol case 45: // ENS aerosol
productDefinitionTemplateNumberNew = 85; // 47 is deprecated productDefinitionTemplateNumberNew = 85; // 47 is deprecated
break; break;
case 57: // DET chemical distrib func case 57: // DET chemical distrib func
productDefinitionTemplateNumberNew = 67; productDefinitionTemplateNumberNew = 67;
break; break;
case 58: // ENS chemical distrib func case 58: // ENS chemical distrib func
productDefinitionTemplateNumberNew = 68; productDefinitionTemplateNumberNew = 68;
break; break;
case 76: // DET chemical source/sink
productDefinitionTemplateNumberNew = 78;
break;
case 77: // ENS chemical source/sink
productDefinitionTemplateNumberNew = 79;
break;
case 70: // DET post-processing case 70: // DET post-processing
productDefinitionTemplateNumberNew = 72; productDefinitionTemplateNumberNew = 72;
break; break;