mirror of https://github.com/ecmwf/eccodes.git
GRIB2: Handle from partial message. Try 01
This commit is contained in:
parent
c5bc38a452
commit
0c3d0c0bfa
|
@ -1,5 +1,7 @@
|
||||||
# (C) Copyright 2005- ECMWF.
|
# (C) Copyright 2005- ECMWF.
|
||||||
|
|
||||||
|
meta headersOnly headers_only();
|
||||||
|
|
||||||
lookup[1] sectionNumber(4) ;
|
lookup[1] sectionNumber(4) ;
|
||||||
|
|
||||||
if(sectionNumber == 1 or new() ){
|
if(sectionNumber == 1 or new() ){
|
||||||
|
@ -42,23 +44,25 @@ meta md5Headers md5(startOfHeaders,lengthOfHeaders);
|
||||||
|
|
||||||
lookup[1] sectionNumber(4) ;
|
lookup[1] sectionNumber(4) ;
|
||||||
|
|
||||||
if (sectionNumber == 5 or new() ) {
|
if (!headersOnly) {
|
||||||
position sectionPosition;
|
if (sectionNumber == 5 or new() ) {
|
||||||
template section_5 "grib2/section.5.def";
|
position sectionPosition;
|
||||||
|
template section_5 "grib2/section.5.def";
|
||||||
|
}
|
||||||
|
|
||||||
|
lookup[1] sectionNumber(4) ;
|
||||||
|
|
||||||
|
if (sectionNumber == 6 or new() ) {
|
||||||
|
position sectionPosition;
|
||||||
|
template section_6 "grib2/section.6.def";
|
||||||
|
}
|
||||||
|
|
||||||
|
lookup[1] sectionNumber(4) ;
|
||||||
|
|
||||||
|
if (sectionNumber == 7 or new() ) {
|
||||||
|
position sectionPosition;
|
||||||
|
template section_7 "grib2/section.7.def";
|
||||||
|
}
|
||||||
|
|
||||||
|
#template metas "grib2/meta.def";
|
||||||
}
|
}
|
||||||
|
|
||||||
lookup[1] sectionNumber(4) ;
|
|
||||||
|
|
||||||
if (sectionNumber == 6 or new() ) {
|
|
||||||
position sectionPosition;
|
|
||||||
template section_6 "grib2/section.6.def";
|
|
||||||
}
|
|
||||||
|
|
||||||
lookup[1] sectionNumber(4) ;
|
|
||||||
|
|
||||||
if (sectionNumber == 7 or new() ) {
|
|
||||||
position sectionPosition;
|
|
||||||
template section_7 "grib2/section.7.def";
|
|
||||||
}
|
|
||||||
|
|
||||||
#template metas "grib2/meta.def";
|
|
||||||
|
|
Loading…
Reference in New Issue