GRIB2: Handle from partial message. Try 01

This commit is contained in:
Shahram Najm 2023-06-29 10:03:02 +00:00 committed by shahramn
parent c5bc38a452
commit 0c3d0c0bfa
1 changed files with 23 additions and 19 deletions

View File

@ -1,5 +1,7 @@
# (C) Copyright 2005- ECMWF.
meta headersOnly headers_only();
lookup[1] sectionNumber(4) ;
if(sectionNumber == 1 or new() ){
@ -42,23 +44,25 @@ meta md5Headers md5(startOfHeaders,lengthOfHeaders);
lookup[1] sectionNumber(4) ;
if (sectionNumber == 5 or new() ) {
position sectionPosition;
template section_5 "grib2/section.5.def";
if (!headersOnly) {
if (sectionNumber == 5 or new() ) {
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";