eccodes/definitions/bufr/section.1.3.def

43 lines
1.4 KiB
Modula-2
Raw Permalink Normal View History

2020-01-28 14:32:34 +00:00
# (C) Copyright 2005- ECMWF.
2013-03-25 12:04:10 +00:00
position offsetSection1;
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
unsigned[1] bufrHeaderSubCentre : dump;
codetable[1] bufrHeaderCentre 'common/c-1.table' : dump;
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;
unsigned[1] dataSubCategory : dump;
unsigned[1] masterTablesVersionNumber : dump;
unsigned[1] localTablesVersionNumber : dump;
2013-03-25 12:04:10 +00:00
2016-02-04 17:43:27 +00:00
transient typicalCentury=21;
2013-03-25 12:04:10 +00:00
unsigned[1] typicalYearOfCentury : dump;
# ECC-1840: Use the 'evaluate' accessor so typicalYear is updated if user changes typicalCentury
meta typicalYear evaluate( (typicalCentury - 1) * 100 + typicalYearOfCentury ) : no_copy;
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;
# unsigned[1] spare; # See ECC-978
transient typicalSecond=0;
meta ls.typicalDate sprintf("%.4d%.2d%.2d",typicalYear,typicalMonth,typicalDay) : dump,no_copy;
meta ls.typicalTime sprintf("%.2d%.2d%.2d",typicalHour,typicalMinute,typicalSecond) :dump,no_copy;
2017-06-08 15:12:44 +00:00
meta typicalDateTime julian_date(typicalYear,typicalMonth,typicalDay,typicalHour,typicalMinute,typicalSecond) ;
2017-05-23 10:28:37 +00:00
2016-02-04 18:06:13 +00:00
alias ls.centre=bufrHeaderCentre;
alias ls.masterTablesVersionNumber=masterTablesVersionNumber;
alias ls.localTablesVersionNumber=localTablesVersionNumber;
2013-03-25 12:04:10 +00:00
section_padding section1Padding;