Testing: Tools options

This commit is contained in:
Shahram Najm 2024-01-10 12:42:45 +00:00
parent 3bb3e025f8
commit 6081d7c0d5
3 changed files with 14 additions and 1 deletions

View File

@ -80,6 +80,13 @@ set -e
[ $status -ne 0 ]
grep -w "unreadable message" $fLog
set +e
${tools_dir}/bufr_ls -j $fTmp > $fLog 2>&1
status=$?
set -e
[ $status -ne 0 ]
grep -w "unreadable message" $fLog
# Clean up
rm -f $fLog $res_ls

View File

@ -52,6 +52,11 @@ for i in 1 2 3 ;do
[ $centre = "222" ]
done
# Strict option
f=aeolus_wmo_26.bufr
${tools_dir}/bufr_set -S -w localNumberOfObservations=40 -s rdbType=3 $f $fBufrTmp
cnt=$( ${tools_dir}/bufr_count $fBufrTmp )
[ $cnt -eq 3 ]
#-----------------------------------------------------
# Test: setting data values for single message file

View File

@ -27,7 +27,8 @@ val2=`${tools_dir}/gts_get -p AA $temp`
[ "$val1" = "$val2" ]
[ "$val1" = "XK" ]
${tools_dir}/grib_copy -w count=1 $input $temp
${tools_dir}/grib_copy -p edition -w count=1 $input $temp
${tools_dir}/grib_copy -p shortName -w count=2 $input $temp
set +e
${tools_dir}/gts_get -p AA $temp
status=$?