2019-04-15 13:44:45 +00:00
|
|
|
# Copyright 2005-2019 ECMWF.
|
2013-03-25 12:04:10 +00:00
|
|
|
|
|
|
|
position offsetSection1;
|
2014-07-04 13:52:04 +00:00
|
|
|
section_length[3] section1Length ;
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2016-07-19 12:58:33 +00:00
|
|
|
unsigned[1] masterTableNumber : dump ;
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2017-02-16 18:08:25 +00:00
|
|
|
codetable[2] bufrHeaderCentre 'common/c-11.table' : dump;
|
|
|
|
unsigned[2] bufrHeaderSubCentre : dump;
|
2015-03-04 17:15:48 +00:00
|
|
|
alias ls.centre=bufrHeaderCentre;
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2016-07-19 12:58:33 +00:00
|
|
|
unsigned[1] updateSequenceNumber : dump;
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2019-04-25 15:51:02 +00:00
|
|
|
flags[1] section1Flags 'bufr/section1_flags.table' = 128 : hidden ; # = section 2 present
|
2013-03-25 12:04:10 +00:00
|
|
|
|
|
|
|
unsigned[1] dataCategory : dump;
|
2016-02-17 08:45:48 +00:00
|
|
|
unsigned[1] internationalDataSubCategory = 255 : dump;
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[1] dataSubCategory : dump;
|
2015-02-06 10:11:28 +00:00
|
|
|
unsigned[1] masterTablesVersionNumber : dump;
|
|
|
|
unsigned[1] localTablesVersionNumber : dump;
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2014-07-04 13:52:04 +00:00
|
|
|
unsigned[2] typicalYear : dump;
|
2017-10-12 10:52:26 +00:00
|
|
|
transient typicalYear2 = typicalYear : hidden, no_copy;
|
|
|
|
if (typicalYear<100) {
|
|
|
|
# ECC-556: invalid year corrected. Assume 21st century!
|
|
|
|
transient typicalYear2 = (2000 + typicalYear) : hidden, no_copy;
|
|
|
|
}
|
|
|
|
|
|
|
|
transient typicalYearOfCentury = typicalYear2 % 100;
|
|
|
|
transient typicalCentury = ( typicalYear2 - typicalYearOfCentury ) / 100 + 1 ;
|
2016-02-04 17:43:27 +00:00
|
|
|
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[1] typicalMonth : dump;
|
|
|
|
unsigned[1] typicalDay : dump;
|
|
|
|
unsigned[1] typicalHour : dump;
|
|
|
|
unsigned[1] typicalMinute : dump;
|
2014-07-04 13:52:04 +00:00
|
|
|
unsigned[1] typicalSecond : dump;
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2017-10-12 10:52:26 +00:00
|
|
|
meta ls.typicalDate sprintf("%.4d%.2d%.2d",typicalYear2,typicalMonth,typicalDay) : dump,no_copy,read_only;
|
2016-07-01 14:46:07 +00:00
|
|
|
meta ls.typicalTime sprintf("%.2d%.2d%.2d",typicalHour,typicalMinute,typicalSecond) :dump,no_copy,read_only;
|
|
|
|
|
2017-10-12 10:52:26 +00:00
|
|
|
meta typicalDateTime julian_date(typicalYear2,typicalMonth,typicalDay,typicalHour,typicalMinute,typicalSecond) ;
|
2017-05-23 15:44:05 +00:00
|
|
|
|
2015-01-26 16:07:58 +00:00
|
|
|
alias ls.masterTablesVersionNumber=masterTablesVersionNumber;
|
|
|
|
alias ls.localTablesVersionNumber=localTablesVersionNumber;
|
|
|
|
|
2013-03-25 12:04:10 +00:00
|
|
|
section_padding section1Padding;
|