Testing: chemId/paramId split

This commit is contained in:
shahramn 2024-06-13 12:17:28 +01:00
parent 037ad970c1
commit ae2f8c5820
3 changed files with 7 additions and 2 deletions

View File

@ -58,6 +58,7 @@ cat > $tempRef <<EOF
"class": "od",
"type": "an",
"stream": "oper",
"paramtype": "base",
"levtype": "sfc",
"date": 20200804,
"time": "0000",

View File

@ -217,8 +217,10 @@ ${tools_dir}/grib_compare $temp $temp.1
${tools_dir}/grib_set -s paramId=211123,setLocalDefinition=1,localDefinitionNumber=36 $sample_g2 $temp
grib_check_key_equals $temp productDefinitionTemplateNumber 40
${tools_dir}/grib_set -s paramId=456000,setLocalDefinition=1,localDefinitionNumber=36 $sample_g2 $temp
grib_check_key_equals $temp productDefinitionTemplateNumber 76
# Automatic PDT selection is disabled for some parameters (the key is_chemical_srcsink removed from their definition)
# ${tools_dir}/grib_set -s paramId=456000,setLocalDefinition=1,localDefinitionNumber=36 $sample_g2 $temp
${tools_dir}/grib_set -s productDefinitionTemplateNumber=76,paramId=456000,setLocalDefinition=1,localDefinitionNumber=36 $sample_g2 $temp
grib_check_key_equals $temp chemShortName,chemId 'O3 236'
${tools_dir}/grib_set -s paramId=215225,setLocalDefinition=1,localDefinitionNumber=36 $sample_g2 $temp
grib_check_key_equals $temp productDefinitionTemplateNumber 48

View File

@ -49,6 +49,7 @@ cat > $tempRef << EOF
"class": "od",
"type": "an",
"stream": "oper",
"paramtype": "base",
"step": 0,
"levelist": 1000,
"levtype": "pl",
@ -73,6 +74,7 @@ cat > $tempRef << EOF
"class": "od",
"type": "pf",
"stream": "enfo",
"paramtype": "base",
"step": 0,
"levelist": 1000,
"levtype": "pl",