mirror of https://github.com/ecmwf/eccodes.git
ECC-1806: Additional entries for stepType
This commit is contained in:
parent
ce791332a5
commit
b81ab6324a
|
@ -198,3 +198,17 @@
|
||||||
"accum"={gribTablesVersionNo=162;indicatorOfParameter=112;centre=98;}
|
"accum"={gribTablesVersionNo=162;indicatorOfParameter=112;centre=98;}
|
||||||
# vtpha
|
# vtpha
|
||||||
"accum"={gribTablesVersionNo=162;indicatorOfParameter=113;centre=98;}
|
"accum"={gribTablesVersionNo=162;indicatorOfParameter=113;centre=98;}
|
||||||
|
# mvv
|
||||||
|
"avg"={gribTablesVersionNo=130;indicatorOfParameter=232;centre=98;}
|
||||||
|
# msshfl
|
||||||
|
"avg"={gribTablesVersionNo=172; indicatorOfParameter=146;centre=98;}
|
||||||
|
# mslhfl
|
||||||
|
"avg"={gribTablesVersionNo=172;indicatorOfParameter=147;centre=98;}
|
||||||
|
"avg"={gribTablesVersionNo=128;indicatorOfParameter=55;centre=98;}
|
||||||
|
"avg"={gribTablesVersionNo=128;indicatorOfParameter=56;centre=98;}
|
||||||
|
"avg"={gribTablesVersionNo=172;indicatorOfParameter=169;centre=98;}
|
||||||
|
"avg"={gribTablesVersionNo=172;indicatorOfParameter=175;centre=98;}
|
||||||
|
"avg"={gribTablesVersionNo=172;indicatorOfParameter=176;centre=98;}
|
||||||
|
"avg"={gribTablesVersionNo=172;indicatorOfParameter=177;centre=98;}
|
||||||
|
"avg"={gribTablesVersionNo=172;indicatorOfParameter=178;centre=98;}
|
||||||
|
"avg"={gribTablesVersionNo=172;indicatorOfParameter=179;centre=98;}
|
||||||
|
|
|
@ -17,8 +17,8 @@ tempGrib1=temp.$label.1.grib
|
||||||
tempGrib2=temp.$label.2.grib
|
tempGrib2=temp.$label.2.grib
|
||||||
tempLog=temp.$label.log
|
tempLog=temp.$label.log
|
||||||
|
|
||||||
sample_grib1=$ECCODES_SAMPLES_PATH/GRIB1.tmpl
|
sampleGrib1=$ECCODES_SAMPLES_PATH/GRIB1.tmpl
|
||||||
sample_grib2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
|
sampleGrib2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
|
||||||
|
|
||||||
test_conversion()
|
test_conversion()
|
||||||
{
|
{
|
||||||
|
@ -26,20 +26,13 @@ test_conversion()
|
||||||
param2=$2 # new paramId in GRIB2
|
param2=$2 # new paramId in GRIB2
|
||||||
short=$3 # new shortName
|
short=$3 # new shortName
|
||||||
|
|
||||||
${tools_dir}/grib_set -s paramId=$param1 $sample_grib1 $tempGrib1
|
${tools_dir}/grib_set -s paramId=$param1 $sampleGrib1 $tempGrib1
|
||||||
|
${tools_dir}/grib_set -s edition=2 $tempGrib1 $tempGrib2
|
||||||
set +e
|
|
||||||
${tools_dir}/grib_set -s edition=2 $tempGrib1 $tempGrib2 2>$REDIRECT
|
|
||||||
status=$?
|
|
||||||
set -e
|
|
||||||
if [ $status -ne 0 ]; then
|
|
||||||
${tools_dir}/grib_set -s stepType=avg,edition=2 $tempGrib1 $tempGrib2
|
|
||||||
fi
|
|
||||||
grib_check_key_equals $tempGrib2 paramId,shortName "$param2 $short"
|
grib_check_key_equals $tempGrib2 paramId,shortName "$param2 $short"
|
||||||
|
|
||||||
# Check the old paramId has been removed from GRIB2
|
# Check the old paramId has been removed from GRIB2
|
||||||
set +e
|
set +e
|
||||||
${tools_dir}/grib_set -s paramId=$param1 $sample_grib2 $tempGrib2 >$tempLog 2>&1
|
${tools_dir}/grib_set -s paramId=$param1 $sampleGrib2 $tempGrib2 >$tempLog 2>&1
|
||||||
status=$?
|
status=$?
|
||||||
set -e
|
set -e
|
||||||
[ $status -ne 0 ]
|
[ $status -ne 0 ]
|
||||||
|
|
Loading…
Reference in New Issue