diff --git a/definitions/grib2/post_meta_data.hook.products_12.def b/definitions/grib2/post_meta_data.hook.products_12.def index e22d01852..c344f6774 100644 --- a/definitions/grib2/post_meta_data.hook.products_12.def +++ b/definitions/grib2/post_meta_data.hook.products_12.def @@ -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; diff --git a/tests/grib_multi.sh b/tests/grib_multi.sh index f8e2d94d8..028591264 100755 --- a/tests/grib_multi.sh +++ b/tests/grib_multi.sh @@ -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