ECC-1794: GRIB2: DestinE data does not have the MARS domain key

This commit is contained in:
shahramn 2024-04-04 13:36:34 +01:00
parent dbc307dd59
commit 1eefe7c5af
2 changed files with 14 additions and 2 deletions

View File

@ -5,5 +5,5 @@
concept gridSpecification(unknown, "gridSpecificationConcept.def", conceptsDir2, conceptsDir1): no_copy, read_only, dump;
concept destineOrigin(unknown, "destineOriginConcept.def", conceptsDir2, conceptsDir1): no_copy, dump;
# DestinE data does not have the domain key
# ECC-1794: DestinE data does not have the domain key
unalias mars.domain;

View File

@ -11,7 +11,7 @@
. ./include.ctest.sh
label="grib_multi_test"
tmpdata=temp.$label.$$.grib
tmpdata=temp.$label.grib
rm -f $tmpdata
parameterNumber=`${tools_dir}/grib_get -p parameterNumber -w parameterCategory=2,parameterNumber=3 ${data_dir}/multi.grib2`
@ -35,4 +35,16 @@ if [ -z "$parameterNumber" ]; then
exit 1
fi
# Convert to single-field
# -----------------------
infile=${data_dir}/multi.grib2
${tools_dir}/grib_copy $infile $tmpdata
c1=$(${tools_dir}/grib_count $infile)
c2=$(${tools_dir}/grib_count $tmpdata)
[ $c1 -eq 30 ]
[ $c2 -eq 56 ]
# Clean up
rm -f $tmpdata
rm -f $tmpdata.1 $tmpdata.rules