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

« back to all changes in this revision

Viewing changes to grib1/data.spectral_simple.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
# For grib1 -> grib2
 
9
#constant dataRepresentationTemplateNumber = 50;
 
10
 
 
11
ibmfloat realPart ;
 
12
position offsetBeforeData;
 
13
transient P=0;
 
14
 
 
15
if (gribex_mode_on()) {
 
16
  transient computeLaplacianOperator=0 : hidden;
 
17
} else {
 
18
  transient computeLaplacianOperator=1 : hidden;
 
19
}
 
20
 
 
21
meta codedValues data_g1simple_packing(
 
22
   section4Length,
 
23
   offsetBeforeData,
 
24
   offsetSection4,
 
25
   unitsFactor,
 
26
   unitsBias,
 
27
   changingPrecision,
 
28
   numberOfCodedValues,
 
29
   bitsPerValue,
 
30
   referenceValue,
 
31
   binaryScaleFactor,
 
32
   decimalScaleFactor,
 
33
   halfByte
 
34
): read_only;
 
35
 
 
36
meta values data_g1shsimple_packing(codedValues,realPart) : dump;
 
37
alias data.packedValues = values; 
 
38
meta numberOfCodedValues g1number_of_coded_values_sh_simple(bitsPerValue,offsetBeforeData,offsetAfterData,halfByte,numberOfValues) : dump;
 
39
 
 
40
template statistics "common/statistics_spectral.def";