diff --git a/samples/diag.tmpl b/samples/diag.tmpl index 94b2b629d..e9603d191 100644 Binary files a/samples/diag.tmpl and b/samples/diag.tmpl differ diff --git a/tests/diag.sh b/tests/diag.sh index 76b06371a..41509629f 100755 --- a/tests/diag.sh +++ b/tests/diag.sh @@ -25,16 +25,14 @@ sample=$ECCODES_SAMPLES_PATH/diag.tmpl ${tools_dir}/grib_ls $sample > $REDIRECT ${tools_dir}/grib_dump $sample > $REDIRECT -# Check setting keys -# ------------------- +echo "Check setting integer keys..." +# ---------------------------------- echo 'set numberOfIntegers=3; set integerValues={55, 44, 66}; write;' | ${tools_dir}/grib_filter -o $tempOut - $sample ${tools_dir}/grib_dump -p numberOfFloats,numberOfIntegers,floatValues,integerValues $tempOut | sed 1d > $tempTxt cat > $tempRef < $tempTxt cat > $tempRef < $tempRef < $tempTxt @@ -70,6 +72,13 @@ cat > $tempRef < $tempTxt +grep -q "'E', 'C', 'M', 'W', 'F', ' '" $tempTxt + # TODO encoding of characters not fully working. We are using one-byte integers instead #echo 'set numberOfCharacters=4; set charValues={"J","u","m","p"}; write;'| ${tools_dir}/grib_filter -o $tempOut - $sample #res=`${tools_dir}/grib_dump $tempOut | grep charValues | tr -d '\n' | tr -d ' '`