File: boot.def

package info (click to toggle)
eccodes 2.44.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 150,248 kB
  • sloc: cpp: 163,056; ansic: 26,308; sh: 21,602; f90: 6,854; perl: 6,363; python: 5,087; java: 2,226; javascript: 1,427; yacc: 854; fortran: 543; lex: 359; makefile: 285; xml: 183; awk: 66
file content (127 lines) | stat: -rw-r--r-- 3,757 bytes parent folder | download | duplicates (2)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# (C) Copyright 2005- ECMWF.
#
# 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.
#
include "parameters_version.def";
constant definitionFilesVersion="2.0.0.0" : hidden;
constant internalVersion=30 : hidden;
meta checkInternalVersion check_internal_version(internalVersion) : hidden;

# ECC-806: Local concepts precedence order
preferLocalConceptsEnvVar = getenv("ECCODES_GRIB_PREFER_LOCAL_CONCEPTS","0") : hidden;
transient preferLocalConcepts = preferLocalConceptsEnvVar : hidden;

constant defaultTypeOfLevel="unknown" : hidden;

gribDataQualityChecks = getenv("ECCODES_GRIB_DATA_QUALITY_CHECKS","0") : hidden;
template GRIB_LIMITS "param_limits.def";

# GRIBEX special boustrophedonic mode. See GRIB-472
# If the environment variable is not defined, the key will be 0
GRIBEX_boustrophedonic = getenv("ECCODES_GRIBEX_BOUSTROPHEDONIC","0") :hidden;

constant zero=0 : hidden;
constant one=1 : hidden;
constant hundred=100 : hidden;
transient truncateLaplacian=0 : hidden;
constant marsDir="mars" : no_copy,hidden;
constant present=1 : hidden;
# alias epsStatistics=zero : hidden;

# Temporary
transient expandBoundingBox = 1 : hidden;

constant defaultParameter = 0 : hidden;
constant defaultName="unknown" :hidden;
constant defaultShortName="unknown" : hidden;
transient truncateDegrees=0 : hidden;
transient dummy = 1 :hidden;
constant unknown="unknown" : hidden;
constant oneConstant=1 : hidden;
constant thousand=1000 :hidden;
constant oneMillionConstant=1000000 : hidden;
constant grib1divider = 1000 : hidden;
meta offset offset_file() : hidden;
meta count count_file() : hidden;
meta countTotal count_total() : hidden;
transient file="unknown" : hidden;
transient changingPrecision=0 : hidden;
transient unitsFactor=1 : hidden;
transient unitsBias=0 : hidden;
constant globalDomain = "g";
transient timeRangeIndicatorFromStepRange=-1 : hidden;
# Format specifiers for converting a number (float or int) into a string
transient formatForDoubles = "%g"  : no_copy,hidden;
transient formatForLongs   = "%ld" : no_copy,hidden;

# ECC-868
transient produceLargeConstantFields = 0 : hidden;

meta libraryVersion library_version() : hidden;

lookup[4] kindOfProduct (0,identifier) : hidden;
# grib templates
# `ABCD` is a number, each letter being a byte

if(kindOfProduct == `GRIB`){
 lookup[1] GRIBEditionNumber (7,editionNumber) : edition_specific;
 template  GRIB "grib[GRIBEditionNumber:l]/boot.def" ;
}

if(kindOfProduct == `BUDG` ){
 template BUDG "budg/boot.def" ;
}

if(kindOfProduct == `DIAG`){
 template DIAG "diag/boot.def" ;
}

if(kindOfProduct == `TIDE`){
 template TIDE "tide/boot.def" ;
}

if(kindOfProduct == `BUFR`){
 template BUFR "bufr/boot.def" ;
 #constant BUFRstr="BUFR"; #ECC-742
 #alias identifier=BUFRstr;
}

if(kindOfProduct == `CDFX`){
 template CDF "cdf/boot.def" ;
 constant CDFstr="netCDF";
 alias ls.identifier=CDFstr;
}

if(kindOfProduct == 17632522 ){
 template GTS "gts/boot.def" ;
 constant GTSstr="GTS";
 alias ls.identifier=GTSstr;
}

if(kindOfProduct == `META` ){
 template METAR "metar/boot.def" ;
 constant METARstr="METAR";
 alias identifier=METARstr;
}

if(kindOfProduct == `TAF ` ){
 template TAF "taf/boot.def" ;
 constant TAFstr="TAF";
 alias ls.identifier=TAFstr;
}

if(kindOfProduct == 2303214662){
 template HDF5 "hdf5/boot.def" ;
 constant HDF5str="HDF5";
 alias ls.identifier=HDF5str;
}

if(kindOfProduct == `WRAP`){
 template WRAP "wrap/boot.def" ;
 constant WRAPstr="WRAP";
 alias ls.identifier=WRAPstr;
}