~ubuntu-branches/ubuntu/precise/grib-def/precise

« back to all changes in this revision

Viewing changes to grib1/local.7.def

  • Committer: Bazaar Package Importer
  • Author(s): Enrico Zini
  • Date: 2009-10-14 10:57:24 UTC
  • Revision ID: james.westby@ubuntu.com-20091014105724-p6kx0exiu8risykl
Tags: upstream-1.8.0.1
ImportĀ upstreamĀ versionĀ 1.8.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2005-2007 ECMWF
 
2
#
 
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.
 
7
 
 
8
# START 1/local.7.1 ----------------------------------------------------------------------
 
9
# LOCAL 7 1
 
10
#
 
11
# KWBC localDefinitionTemplate_001
 
12
# --------------------------------
 
13
#
 
14
# Description            Octet    Code    Ksec1    Count
 
15
# -----------            -----    ----    -----    -----
 
16
#
 
17
#sectionLength                   1       L3      n/a     ignore
 
18
#applicationIdentifier           41      I1      37      -
 
19
#type                            42      I1      38      -
 
20
#identificationNumber            43      I1      39      -
 
21
#productIdentifier               44      I1      40      -
 
22
#spatialSmoothingOfProduct       45      I1      41      -
 
23
#!
 
24
#if_ge_46                        -       IF_GT   45      sectionLength
 
25
#probProductDefinition           46      I1      42      -
 
26
#probabilityType                 47      I1      43      -
 
27
#lowerLimit                      48      I4      44      -
 
28
#upperLimit                      52      I4      45      -
 
29
#padding                         56      PAD     n/a     5
 
30
#endif_ge_46                     -       ENDIF   if_ge_46
 
31
#!
 
32
#if_ge_61                        -       IF_GT   60      sectionLength
 
33
#ensembleSize                    61      I1      46      -
 
34
#clusterSize                     62      I1      47      -
 
35
#numberOfClusters                63      I1      48      -
 
36
#clusteringMethod                64      I1      49      -
 
37
#northLatitudeOfCluster          65      S3      50      -
 
38
#southLatitudeOfCluster          68      S3      51      -
 
39
#westLongitudeOfCluster          71      S3      52      -
 
40
#eastLongitudeOfCluster          74      S3      53      -
 
41
#clusterMember1                  77      I1      54      -
 
42
#clusterMember2                  78      I1      55      -
 
43
#clusterMember3                  79      I1      56      -
 
44
#clusterMember4                  80      I1      57      -
 
45
#clusterMember5                  81      I1      58      -
 
46
#clusterMember6                  82      I1      59      -
 
47
#clusterMember7                  83      I1      60      -
 
48
#clusterMember8                  84      I1      61      -
 
49
#clusterMember9                  85      I1      62      -
 
50
#clusterMember10                 86      I1      63      -
 
51
#endif_ge_61                     -       ENDIF   if_ge_61
 
52
 
 
53
#applicationIdentifier           1= ensemble
 
54
 
 
55
unsigned[1] applicationIdentifier : dump ; # 1= ensemble
 
56
unsigned[1] type : dump ;                  # 1=unperturbed control forecast,2=individual negative perturbed fcst 3=individual positive perturbed fcst, 4=cluster, 5=whole cluster
 
57
unsigned[1] identificationNumber : dump ;  # if(type=1) { 1=high resolution control fcst, 2=low resolution control fcst} else { ensemble number }
 
58
unsigned[1] productIdentifier  : dump;     # 1= full field, 2=weighted mean, 3= etc
 
59
unsigned[1] spatialSmoothingOfProduct : dump ;
 
60
#
 
61
constant sectionLengthLimitForProbability = 45 : dump;
 
62
if(section1Length > sectionLengthLimitForProbability)
 
63
{
 
64
  unsigned[1] probProductDefinition  : dump;
 
65
  unsigned[1] probabilityType  : dump;
 
66
  unsigned[4] lowerLimit  : dump;
 
67
  unsigned[4] upperLimit  : dump;
 
68
 
 
69
    # padding
 
70
    pad padding_local_7_1(5);
 
71
}
 
72
 
 
73
#
 
74
constant sectionLengthLimitForEnsembles = 60;
 
75
 
 
76
if(section1Length > sectionLengthLimitForEnsembles)
 
77
{
 
78
  unsigned[1] ensembleSize : dump ;
 
79
  unsigned[1] clusterSize  : dump;
 
80
  unsigned[1] numberOfClusters : dump ;
 
81
  unsigned[1] clusteringMethod : dump ;
 
82
  signed[3] northLatitudeOfCluster : dump ;
 
83
  signed[3] southLatitudeOfCluster : dump ;
 
84
  signed[3] westLongitudeOfCluster : dump ;
 
85
  signed[3] eastLongitudeOfCluster : dump ;
 
86
  unsigned[1] clusterMember1 : dump ;
 
87
  unsigned[1] clusterMember2 : dump ;
 
88
  unsigned[1] clusterMember3 : dump ;
 
89
  unsigned[1] clusterMember4 : dump ;
 
90
  unsigned[1] clusterMember5 : dump ;
 
91
  unsigned[1] clusterMember6 : dump ;
 
92
  unsigned[1] clusterMember7 : dump ;
 
93
  unsigned[1] clusterMember8 : dump ;
 
94
  unsigned[1] clusterMember9 : dump ;
 
95
  unsigned[1] clusterMember10 : dump ;
 
96
}
 
97
 
 
98
# END   1/local.7.1 ----------------------------------------------------------------------