1
# Copyright 2005-2007 ECMWF
3
# Licensed under the GNU Lesser General Public License which
4
# incorporates the terms and conditions of version 3 of the GNU
5
# General Public License.
6
# See LICENSE and gpl-3.0.txt for details.
9
position offsetSection1;
10
length[4] section1Length ;
11
meta section1Pointer section_pointer(offsetSection1,section1Length,1);
13
unsigned[1] numberOfSection = 1 :read_only;
15
codetable[2] centre 'grib1/0.table' : dump,string_type;
17
alias parameter.centre=centre;
18
alias identificationOfOriginatingGeneratingCentre=centre;
19
alias ls.centre=centre;
20
alias originatingCentre=centre;
23
unsigned[2] subCentre : dump;
24
alias identificationOfOriginatingGeneratingSubCentre=subCentre;
27
alias centreForLocal=subCentre;
29
alias centreForLocal=centre;
32
codetable[1] tablesVersion 'grib2/tables/1.0.table' = 5 : edition_specific;
33
alias gribMasterTablesVersionNumber=tablesVersion;
35
transient masterDir="grib2/tables/[tablesVersion]";
36
when (tablesVersion!=255) {
37
set masterDir="grib2/tables/[tablesVersion]";
39
set masterDir="grib2/tables/4";
42
# Version number of GRIB Local Tables used to augment Master Tables
44
codetable[1] localTablesVersion 'grib2/tables/[tablesVersion]/1.1.table' ;
45
alias versionNumberOfGribLocalTables=localTablesVersion;
47
transient localDir="";
48
when (localTablesVersion != 0) {
49
set localDir="grib2/tables/local/[centre]/[localTablesVersion]";
54
# Significance of Reference Time
55
codetable[1] significanceOfReferenceTime ('1.2.table',masterDir,localDir) = 1 : dump;
76
meta dataDate g2date(year,month,day) : dump;
77
alias mars.date = dataDate;
78
alias ls.date = dataDate;
80
meta julianDay julian_day(dataDate,hour,minute,second) : edition_specific;
82
meta dataTime time(hour,minute,second) : dump;
83
alias mars.time = dataTime;
86
# Production status of processed data in this GRIB message
87
codetable[1] productionStatusOfProcessedData ('1.3.table',masterDir,localDir) : dump;
89
# Type of processed data in this GRIB message
90
codetable[1] typeOfProcessedData ('1.4.table',masterDir,localDir) = 2 : dump;
92
alias ls.dataType=typeOfProcessedData;
94
meta md5Section1 md5(offsetSection1,section1Length);