Testing: BUDG output

This commit is contained in:
Shahram Najm 2021-07-01 19:24:48 +01:00
parent a726417726
commit 7c38a7c2cc
1 changed files with 22 additions and 3 deletions

View File

@ -11,8 +11,27 @@
. ./include.sh . ./include.sh
REDIRECT=/dev/null label="pseudo_budg_test"
set -u
tempOut=temp.$label.txt
tempRef=temp.$label.ref
${tools_dir}/grib_ls ${data_dir}/budg > $REDIRECT ${tools_dir}/grib_ls -j ${data_dir}/budg > $tempOut
${tools_dir}/grib_dump ${data_dir}/budg > $REDIRECT cat > $tempRef << EOF
{ "messages" : [
{
"identifier": "BUDG",
"centre": "ecmf",
"levelType": "sfc",
"date": 20061204,
"stepRange": 0,
"parameter": 128
}
]}
EOF
diff $tempRef $tempOut
${tools_dir}/grib_dump ${data_dir}/budg
${tools_dir}/grib_dump -O ${data_dir}/budg
rm -f $tempRef $tempOut