mirror of https://github.com/ecmwf/eccodes.git
Testing: count for pseudo GRIBs
This commit is contained in:
parent
14ad8e58c4
commit
5ae5b4931d
|
@ -56,5 +56,8 @@ cat > $tempRef << EOF
|
||||||
EOF
|
EOF
|
||||||
diff $tempRef $tempOut
|
diff $tempRef $tempOut
|
||||||
|
|
||||||
|
# Count
|
||||||
|
count=`${tools_dir}/grib_count ${data_dir}/budg`
|
||||||
|
[ $count -eq 1 ]
|
||||||
|
|
||||||
rm -f $tempRef $tempOut $tempBud
|
rm -f $tempRef $tempOut $tempBud
|
||||||
|
|
|
@ -25,6 +25,10 @@ sample=$ECCODES_SAMPLES_PATH/diag.tmpl
|
||||||
${tools_dir}/grib_ls $sample > $REDIRECT
|
${tools_dir}/grib_ls $sample > $REDIRECT
|
||||||
${tools_dir}/grib_dump $sample > $REDIRECT
|
${tools_dir}/grib_dump $sample > $REDIRECT
|
||||||
|
|
||||||
|
count=`${tools_dir}/grib_count $sample`
|
||||||
|
[ $count -eq 1 ]
|
||||||
|
|
||||||
|
|
||||||
echo "Check setting integer keys..."
|
echo "Check setting integer keys..."
|
||||||
# ----------------------------------
|
# ----------------------------------
|
||||||
echo 'set numberOfIntegers=3; set integerValues={55, 44, 66}; write;' | ${tools_dir}/grib_filter -o $tempOut - $sample
|
echo 'set numberOfIntegers=3; set integerValues={55, 44, 66}; write;' | ${tools_dir}/grib_filter -o $tempOut - $sample
|
||||||
|
|
Loading…
Reference in New Issue