File: boot.def

package info (click to toggle)
grib-def 1.8.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,116 kB
  • sloc: makefile: 1,371; sh: 100
file content (61 lines) | stat: -rw-r--r-- 1,569 bytes parent folder | download
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
# Copyright 2005-2007 ECMWF
#
# Licensed under the GNU Lesser General Public License which
# incorporates the terms and conditions of version 3 of the GNU
# General Public License.
# See LICENSE and gpl-3.0.txt for details.

constant definitionFilesVersion="1.8.0.1";

constant zero=0;
constant one=1;
constant eight=8;
constant eleven=11;
constant false="false";
transient truncateLaplacian=0 : hidden;
constant marsDir="mars" : no_copy,hidden;
constant present=1 : hidden;

constant defaultParameter = 0 : hidden;
constant defaultName="unknown" :hidden;
constant defaultShortName="unknown" : hidden;
transient truncateDegrees=0;
transient dummy = 1 :hidden;
constant unknown="unknown" : hidden;
constant oneConstant=1 : hidden;
constant thousand=1000;
constant oneMillionConstant=1000000 : hidden;
constant grib1divider = 1000 : hidden;
meta offset offset_file();
meta count count_file();
meta countTotal count_total();
transient file="unknown";
transient changingPrecision=0 : hidden;
transient unitsFactor=1.0;
transient unitsBias=0.0;


meta libraryVersion library_version();

lookup[4] kindOfProduct       (0,identifier);
# 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 == `TIDE`){
 template      TIDE "tide/boot.def" ;
}

#if(kindOfProduct == `BUFR`){
# template      BUFR "bufr/boot.def" ;
#}