mirror of https://github.com/ecmwf/eccodes.git
Testing: check each local def number appears in the table
This commit is contained in:
parent
1ec8ed51c4
commit
cb446e5b19
|
@ -23,3 +23,4 @@
|
||||||
42 42 Lead Centre for Wave Forecast Verification
|
42 42 Lead Centre for Wave Forecast Verification
|
||||||
192 192 Multiple ECMWF local definitions
|
192 192 Multiple ECMWF local definitions
|
||||||
300 300 Multi-dimensional parameters
|
300 300 Multi-dimensional parameters
|
||||||
|
500 500 Observation diagnostics
|
||||||
|
|
|
@ -16,6 +16,15 @@ REDIRECT=/dev/null
|
||||||
cd ${data_dir}
|
cd ${data_dir}
|
||||||
rm -f local.log
|
rm -f local.log
|
||||||
|
|
||||||
|
# Check all GRIB2 local def files and definitions/grib2/grib2LocalSectionNumber.98.table
|
||||||
|
# Each number should appear in the table
|
||||||
|
g2lds=${ECCODES_DEFINITION_PATH}/grib2/local.98.*.def
|
||||||
|
for g2ld in $g2lds; do
|
||||||
|
dnum=`echo $g2ld | cut -d. -f3`
|
||||||
|
grep -q "^$dnum" ${ECCODES_DEFINITION_PATH}/grib2/grib2LocalSectionNumber.98.table
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
${tools_dir}/grib_set -s edition=2,setLocalDefinition=1 reduced_gaussian_model_level.grib1 loc.grib2
|
${tools_dir}/grib_set -s edition=2,setLocalDefinition=1 reduced_gaussian_model_level.grib1 loc.grib2
|
||||||
${tools_dir}/grib_set -s setLocalDefinition=1 reduced_gaussian_model_level.grib1 loc.grib1
|
${tools_dir}/grib_set -s setLocalDefinition=1 reduced_gaussian_model_level.grib1 loc.grib1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue