Testing: added test for mars types and conversion to edition 2

This commit is contained in:
Shahram Najm 2018-07-12 13:48:35 +01:00
parent 75427849a5
commit 55c31f5879
1 changed files with 5 additions and 7 deletions

View File

@ -15,13 +15,11 @@ grib1_sample=$ECCODES_SAMPLES_PATH/GRIB1.tmpl
temp=temp.${label}.grib
types_table=$ECCODES_DEFINITION_PATH/mars/type.table
for t in `cat $types_table | awk '{print $1}'`; do
# Exclude type=34 (go, Gridded observations) as it loads definitions/mars/grib.oper.go.def
# which requires the key 'N' to exist
if [ $t -eq 34 ]; then
#echo Skipping $t
continue
fi
# Exclude type=34 (go, Gridded observations) as it loads definitions/mars/grib.oper.go.def
# which requires the key 'N' to exist
mars_types=`awk '$1 !~ /34/ {print $1}' < $types_table`
for t in $mars_types; do
#echo "Doing MARS type |$t|"
${tools_dir}/grib_set -s marsType=$t,edition=2 $grib1_sample $temp
grib_check_key_equals $temp "mars.type:i" $t