Testing: count for pseudo GRIBs

This commit is contained in:
Shahram Najm 2023-06-21 18:55:04 +01:00
parent 14ad8e58c4
commit 5ae5b4931d
2 changed files with 7 additions and 0 deletions

View File

@ -56,5 +56,8 @@ cat > $tempRef << EOF
EOF
diff $tempRef $tempOut
# Count
count=`${tools_dir}/grib_count ${data_dir}/budg`
[ $count -eq 1 ]
rm -f $tempRef $tempOut $tempBud

View File

@ -25,6 +25,10 @@ sample=$ECCODES_SAMPLES_PATH/diag.tmpl
${tools_dir}/grib_ls $sample > $REDIRECT
${tools_dir}/grib_dump $sample > $REDIRECT
count=`${tools_dir}/grib_count $sample`
[ $count -eq 1 ]
echo "Check setting integer keys..."
# ----------------------------------
echo 'set numberOfIntegers=3; set integerValues={55, 44, 66}; write;' | ${tools_dir}/grib_filter -o $tempOut - $sample