eccodes/definitions/bufr/boot_edition_0.def

29 lines
716 B
Modula-2
Raw Permalink Normal View History

2020-01-28 14:32:34 +00:00
# (C) Copyright 2005- ECMWF.
2016-08-02 12:59:17 +00:00
ascii[4] identifier = "BUFR" : read_only,hidden;
alias identifier=identifier;
unsigned[3] section1Length;
unsigned[1] edition = 0 : dump;
alias editionNumber=edition;
2019-04-25 15:51:02 +00:00
template section_1 "bufr/section.1.1.def";
2016-08-02 12:59:17 +00:00
flagbit localSectionPresent(section1Flags,7) = 1;
alias section2Present=localSectionPresent;
alias localUsePresent=localSectionPresent;
2016-08-02 12:59:17 +00:00
if(localSectionPresent){
2019-04-25 15:51:02 +00:00
template section_2 "bufr/section.2.def";
2016-08-02 12:59:17 +00:00
}
else {
transient section2Length = 0;
}
2019-04-25 15:51:02 +00:00
template section_3 "bufr/section.3.def";
template section_4 "bufr/section.4.def";
template section_5 "bufr/section.5.def";
2016-08-02 12:59:17 +00:00
transient totalLength = section1Length + section2Length + section3Length + section4Length + 8;