From e9dc7ab40c93d31c890c1a77e289548184f2a915 Mon Sep 17 00:00:00 2001 From: shahramn Date: Wed, 10 Jul 2024 13:27:08 +0100 Subject: [PATCH] Testing: Add tests for ensemble interval-based --- tests/grib2_chemicals_aerosols.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/grib2_chemicals_aerosols.sh b/tests/grib2_chemicals_aerosols.sh index 192cd6340..645dbc8e1 100755 --- a/tests/grib2_chemicals_aerosols.sh +++ b/tests/grib2_chemicals_aerosols.sh @@ -119,6 +119,25 @@ grib_check_key_equals $temp aerosolType,typeOfSizeInterval '0 0' ${tools_dir}/grib_set -s paramId=210072 $tempSample $temp ${tools_dir}/grib_ls -p firstSize,secondSize $temp + +# ============================= +# Ensemble interval-based +# ============================= +tempSample=temp.sample.$label +${tools_dir}/grib_set -s tablesVersion=$latest,productDefinitionTemplateNumber=11,typeOfStatisticalProcessing=1 $sample2 $tempSample +grib_check_key_equals $tempSample stepType,perturbationNumber 'accum 0' + +${tools_dir}/grib_set -s is_chemical=1 $tempSample $temp +grib_check_key_equals $temp productDefinitionTemplateNumber '43' +grib_check_key_equals $temp constituentType,perturbationNumber,stepType '0 0 accum' + +${tools_dir}/grib_set -s is_chemical_srcsink=1 $tempSample $temp +grib_check_key_equals $temp productDefinitionTemplateNumber '79' + +${tools_dir}/grib_set -s is_chemical_distfn=1 $tempSample $temp +grib_check_key_equals $temp productDefinitionTemplateNumber '68' + + # ECC-1303: Setting localDefinitionNumber=1 on chemical source/sink # ------------------------------------------------------------------ ${tools_dir}/grib_set -s paramId=228104,setLocalDefinition=1,localDefinitionNumber=1 $sample2 $temp