ECC-1378: Add test for Table 1.0

This commit is contained in:
Shahram Najm 2022-04-22 13:59:30 +01:00
parent 49e8f747c0
commit be2be8d0d8
2 changed files with 13 additions and 2 deletions

View File

@ -28,6 +28,7 @@
26 26 Version implemented on 16 November 2020
27 27 Version implemented on 15 June 2021
28 28 Version implemented on 15 November 2021
29 29 Pre-operational to be implemented by next amendment
# 30-254 Future versions
29 29 Version implemented on 15 May 2022
30 30 Pre-operational to be implemented by next amendment
# 31-254 Future versions
255 255 Master tables not used. Local table entries and local templates may use the entire range of the table, not just those sections marked Reserved for local used.

View File

@ -31,6 +31,16 @@ if [ "$latest" != "$highest_num" ]; then
exit 1
fi
# Check table 1.0
# Check it has the latest with description matching "Version implemented on DD MM YYYY"
tempText=temp.$label.txt
${tools_dir}/grib_set -s tablesVersion=$latest $sample2 $temp
${tools_dir}/grib_dump -O -p tablesVersion $temp > $tempText
grep -q "Version implemented on" $tempText
rm -f $tempText
# Also grib1 to grib2 conversion should set the official version, not the highest
${tools_dir}/grib_set -s edition=2 $sample1 $temp
tablesVersion=`${tools_dir}/grib_get -p tablesVersion $temp`