mirror of https://github.com/ecmwf/eccodes.git
ECC-1794: GRIB2: DestinE data does not have the MARS domain key
This commit is contained in:
parent
dbc307dd59
commit
1eefe7c5af
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue