File: boot_edition_0.def

package info (click to toggle)
eccodes 2.46.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 154,956 kB
  • sloc: cpp: 163,970; ansic: 26,310; sh: 22,006; f90: 6,854; perl: 6,361; python: 5,352; java: 2,226; javascript: 1,427; yacc: 854; fortran: 543; lex: 359; makefile: 279; xml: 183; awk: 66
file content (34 lines) | stat: -rw-r--r-- 866 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# (C) Copyright 2005- ECMWF.

ascii[4] identifier  = "BUFR" : read_only,hidden;
alias identifier=identifier;

unsigned[3] section1Length;

unsigned[1] edition = 0 : dump;
alias editionNumber=edition;

template section_1 "bufr/section.1.1.def";

flagbit localSectionPresent(section1Flags,7) = 1;
alias section2Present=localSectionPresent;
alias localUsePresent=localSectionPresent;

if (localSectionPresent) {
   template section_2 "bufr/section.2.def";
}
else {
   transient section2Length = 0;
}

template section_3 "bufr/section.3.def";
template section_4 "bufr/section.4.def";
template section_5 "bufr/section.5.def";

transient totalLength = section1Length + section2Length + section3Length + section4Length + 8;

# Edition 0 does not have these
transient typicalYear = 0;
transient typicalMonth = 0;
transient typicalDay = 0;
transient bufrHeaderSubCentre = 0;