Testing: ECC-1270: Do not decode levtype as an integer (it is now a 'concept')

This commit is contained in:
Shahram Najm 2022-02-24 11:58:17 +00:00
parent 39f511c84e
commit 2c79a3fde5
2 changed files with 2 additions and 7 deletions

View File

@ -94,8 +94,6 @@ diff $tempRef $tempOut
${tools_dir}/grib_index_build -N -k mars.levtype -o $tempIndex ${data_dir}/tigge_cf_ecmwf.grib2 |\ ${tools_dir}/grib_index_build -N -k mars.levtype -o $tempIndex ${data_dir}/tigge_cf_ecmwf.grib2 |\
grep -q "mars.levtype = { sfc, pl, pv, pt }" grep -q "mars.levtype = { sfc, pl, pv, pt }"
#${tools_dir}/grib_index_build -N -k mars.levtype:i -o $tempIndex ${data_dir}/tigge_cf_ecmwf.grib2 |\
# grep -q "mars.levtype = { 103, 1, 106, 100, 101, 8, 109, 107 }"
echo "grib_compare with index files..." echo "grib_compare with index files..."
# ------------------------------------ # ------------------------------------

View File

@ -18,7 +18,7 @@ temp=temp.grib_set.out
rm -f $outfile rm -f $outfile
${tools_dir}/grib_set -v -p levtype,centre,levtype:l,centre:l -s levtype=pl,centre=80 $infile $outfile >$REDIRECT ${tools_dir}/grib_set -v -p levtype,centre,levtype,centre:l -s levtype=pl,centre=80 $infile $outfile >$REDIRECT
levtype=`${tools_dir}/grib_get -p levtype $outfile` levtype=`${tools_dir}/grib_get -p levtype $outfile`
[ $levtype = "pl" ] [ $levtype = "pl" ]
@ -36,7 +36,7 @@ outfile=${data_dir}/set.grib2
rm -f $outfile rm -f $outfile
${tools_dir}/grib_set -v -p levtype:l,centre:s -s typeOfLevel=isobaricInhPa,centre:s=cnmc $infile $outfile >$REDIRECT ${tools_dir}/grib_set -v -p levtype:s,centre:s -s typeOfLevel=isobaricInhPa,centre:s=cnmc $infile $outfile >$REDIRECT
levtype=`${tools_dir}/grib_get -p levtype $outfile` levtype=`${tools_dir}/grib_get -p levtype $outfile`
[ $levtype = "pl" ] [ $levtype = "pl" ]
@ -44,9 +44,6 @@ levtype=`${tools_dir}/grib_get -p levtype $outfile`
centre=`${tools_dir}/grib_get -p centre $outfile` centre=`${tools_dir}/grib_get -p centre $outfile`
[ $centre = "cnmc" ] [ $centre = "cnmc" ]
#levtype=`${tools_dir}/grib_get -p levtype:l $outfile`
#[ $levtype -eq 100 ]
centre=`${tools_dir}/grib_get -p centre:l $outfile` centre=`${tools_dir}/grib_get -p centre:l $outfile`
[ $centre -eq 80 ] [ $centre -eq 80 ]