GRIB-205: mars.type is changed during grib1->grib2 conversion using TIGGE definition file

This commit is contained in:
Shahram Najm 2014-08-15 11:54:12 +01:00
parent 3ec0505d65
commit 46b47e5d3d
5 changed files with 15 additions and 11 deletions

View File

@ -71,6 +71,7 @@ concept marsType {
} }
} }
# See GRIB-205 re no_copy
concept marsStream { concept marsStream {
oper = { oper = {
@ -96,9 +97,7 @@ concept marsStream {
"default" = { "default" = {
dummyc = 0; dummyc = 0;
} }
} : no_copy;
}
alias mars.stream = marsStream; alias mars.stream = marsStream;
alias mars.type = marsType; alias mars.type = marsType;

View File

@ -71,6 +71,7 @@ concept marsType {
} }
} }
# See GRIB-205 re no_copy
concept marsStream { concept marsStream {
oper = { oper = {
@ -96,9 +97,7 @@ concept marsStream {
"default" = { "default" = {
dummyc = 0; dummyc = 0;
} }
} : no_copy;
}
alias mars.stream = marsStream; alias mars.stream = marsStream;
alias mars.type = marsType; alias mars.type = marsType;

View File

@ -52,6 +52,7 @@ concept marsType {
} }
} }
# See GRIB-205 re no_copy
concept marsStream { concept marsStream {
oper = { oper = {
@ -77,7 +78,7 @@ concept marsStream {
"default" = { "default" = {
dummyc = 0; dummyc = 0;
} }
} } : no_copy;
alias mars.stream = marsStream; alias mars.stream = marsStream;
alias mars.type = marsType; alias mars.type = marsType;
@ -95,4 +96,3 @@ if (isHindcast == 1) {
alias mars.date = modelVersionDate; alias mars.date = modelVersionDate;
alias mars.time = modelVersionTime; alias mars.time = modelVersionTime;
} }

View File

@ -52,6 +52,7 @@ concept marsType {
} }
} }
# See GRIB-205 re no_copy
concept marsStream { concept marsStream {
oper = { oper = {
@ -77,7 +78,7 @@ concept marsStream {
"default" = { "default" = {
dummyc = 0; dummyc = 0;
} }
} } : no_copy;
alias mars.stream = marsStream; alias mars.stream = marsStream;
alias mars.type = marsType; alias mars.type = marsType;
@ -95,4 +96,3 @@ if (isHindcast == 1) {
alias mars.date = modelVersionDate; alias mars.date = modelVersionDate;
alias mars.time = modelVersionTime; alias mars.time = modelVersionTime;
} }

View File

@ -44,8 +44,14 @@ do
done done
# GRIB-531 # GRIB-531
TEMP=temp.$$.tigge.txt TEMP=temp.$$.tigge
${tools_dir}grib_get -nparameter ${data_dir}/tigge_pf_ecmwf.grib2 > $TEMP ${tools_dir}grib_get -nparameter ${data_dir}/tigge_pf_ecmwf.grib2 > $TEMP
diff ${data_dir}/tigge_pf_ecmwf.grib2.ref $TEMP diff ${data_dir}/tigge_pf_ecmwf.grib2.ref $TEMP
# GRIB-205. Changing productionStatusOfProcessedData should not change
# anything else
input=${dir}/tigge_ecmf_sfc_sd.grib
${tools_dir}grib_set -s productionStatusOfProcessedData=5 $input $TEMP
${tools_dir}grib_compare -bproductionStatusOfProcessedData $input $TEMP
rm -f $TEMP rm -f $TEMP