eccodes/definitions/grib2/template.5.packing.def

24 lines
843 B
Modula-2
Raw Normal View History

2020-01-28 14:32:34 +00:00
# (C) Copyright 2005- ECMWF.
2013-03-25 12:04:10 +00:00
# Reference value (R)
# The copy_ok means that the value is copied when changing the representation
# e.g. from jpeg to simple packing.
ieeefloat referenceValue : read_only, copy_ok;
2013-03-25 12:04:10 +00:00
meta referenceValueError reference_value_error(referenceValue,ieee);
# Binary scale factor (E)
signed[2] binaryScaleFactor : read_only, copy_ok;
2013-03-25 12:04:10 +00:00
# Decimal scale factor (D)
signed[2] decimalScaleFactor ;
2013-03-25 12:04:10 +00:00
# Try different values of binaryScaleFactor and decimalScaleFactor to reduce packing error
transient optimizeScaleFactor = 0;
2013-03-25 12:04:10 +00:00
# Number of bits used for each packed value for simple packing, or for each group reference value for complex packing or spatial differencing
2013-03-25 12:04:10 +00:00
unsigned[1] bitsPerValue;
alias numberOfBits = bitsPerValue;
alias numberOfBitsContainingEachPackedValue = bitsPerValue;
alias accuracy = bitsPerValue;