Skip to content

Commit bc105ef

Browse files
committed
ECC-1532: GRIB: Allow setting 'expver' on CARRA/CERRA data
1 parent dadd1d8 commit bc105ef

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

definitions/grib2/products_11.def

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# (C) Copyright 2005- ECMWF.
22

3-
# Copernicus regional reanalysis (CARRA/CERRA)
4-
constant marsExpver = 'test';
3+
# Copernicus regional reanalysis test (CARRA/CERRA)
4+
if (!defined(marsExpver)) {
5+
constant marsExpver = 'test';
6+
}
57
include "grib2/products_crra.def"

tests/grib_uerra.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,18 @@ status=$?
8585
set -e
8686
[ $status -ne 0 ]
8787

88-
# crraLocalVersion=2 has a coded key which can be set
88+
# ECC-1532
89+
# crraLocalVersion=2 has a coded key for experimentVersionNumber
8990
${tools_dir}/grib_set -s \
9091
productionStatusOfProcessedData=10,grib2LocalSectionPresent=1,crraLocalVersion=2,marsExpver=coco \
9192
$grib2_sample $temp1
9293
grib_check_key_equals $temp1 'marsExpver,mars.expver' 'coco coco'
9394

95+
${tools_dir}/grib_set -s \
96+
productionStatusOfProcessedData=11,grib2LocalSectionPresent=1,crraLocalVersion=2,experimentVersionNumber=0078 \
97+
$grib2_sample $temp1
98+
grib_check_key_equals $temp1 'marsExpver,mars.expver' '0078 0078'
99+
100+
94101
# Clean up
95102
rm -f $temp1 $temp2 $tempSample

0 commit comments

Comments
 (0)