2019-04-15 13:44:45 +00:00
|
|
|
# Copyright 2005-2019 ECMWF.
|
2014-07-04 13:52:04 +00:00
|
|
|
#
|
|
|
|
# This software is licensed under the terms of the Apache Licence Version 2.0
|
|
|
|
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
|
|
|
|
#
|
|
|
|
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
|
|
|
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
|
|
|
#
|
|
|
|
|
|
|
|
ascii[4] identifier = "BUFR" : read_only,hidden;
|
|
|
|
alias identifier=identifier;
|
|
|
|
|
|
|
|
unsigned[3] section1Length;
|
|
|
|
|
2016-07-19 12:58:33 +00:00
|
|
|
unsigned[1] edition = 1 : dump;
|
2016-02-17 08:45:48 +00:00
|
|
|
alias editionNumber=edition;
|
2014-07-04 13:52:04 +00:00
|
|
|
|
|
|
|
template section_1 "bufr/section.1.1.def" ;
|
|
|
|
|
2016-07-19 10:52:55 +00:00
|
|
|
flagbit localSectionPresent(section1Flags,7) = 1;
|
|
|
|
alias section2Present=localSectionPresent;
|
2014-07-04 13:52:04 +00:00
|
|
|
|
2016-07-19 10:52:55 +00:00
|
|
|
|
|
|
|
if(localSectionPresent){
|
2014-07-04 13:52:04 +00:00
|
|
|
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;
|
|
|
|
|