2020-01-28 14:32:34 +00:00
|
|
|
# (C) Copyright 2005- ECMWF.
|
2013-03-25 12:04:10 +00:00
|
|
|
|
|
|
|
# TEMPLATE 5.2, Grid point data - complex packing
|
|
|
|
|
2024-01-16 12:40:17 +00:00
|
|
|
include "grib2/template.5.packing.def"
|
|
|
|
include "grib2/template.5.original_values.def"
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2023-08-16 14:03:40 +00:00
|
|
|
# Group splitting method used
|
2013-03-25 12:04:10 +00:00
|
|
|
codetable[1] groupSplittingMethodUsed ('5.4.table',masterDir,localDir);
|
|
|
|
|
2023-08-16 14:03:40 +00:00
|
|
|
# Missing value management used
|
2013-03-25 12:04:10 +00:00
|
|
|
codetable[1] missingValueManagementUsed ('5.5.table',masterDir,localDir);
|
|
|
|
|
2023-08-16 14:03:40 +00:00
|
|
|
# Primary missing value substitute
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[4] primaryMissingValueSubstitute ;
|
|
|
|
|
2023-08-16 14:03:40 +00:00
|
|
|
# Secondary missing value substitute
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[4] secondaryMissingValueSubstitute ;
|
|
|
|
|
2023-08-16 14:03:40 +00:00
|
|
|
# NG - Number of groups of data values into which field is split
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[4] numberOfGroupsOfDataValues ;
|
|
|
|
|
2023-11-26 18:05:43 +00:00
|
|
|
alias NG = numberOfGroupsOfDataValues;
|
2023-08-16 14:03:40 +00:00
|
|
|
# Reference for group widths
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[1] referenceForGroupWidths ;
|
|
|
|
|
2023-08-16 14:03:40 +00:00
|
|
|
# Number of bits used for the group widths
|
2019-01-10 18:10:41 +00:00
|
|
|
# (after the reference value in octet 36 has been removed)
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[1] numberOfBitsUsedForTheGroupWidths ;
|
|
|
|
|
2023-08-16 14:03:40 +00:00
|
|
|
# Reference for group lengths
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[4] referenceForGroupLengths ;
|
|
|
|
|
2023-08-16 14:03:40 +00:00
|
|
|
# Length increment for the group lengths
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[1] lengthIncrementForTheGroupLengths ;
|
|
|
|
|
2023-08-16 14:03:40 +00:00
|
|
|
# True length of last group
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[4] trueLengthOfLastGroup ;
|
|
|
|
|
2023-08-16 14:03:40 +00:00
|
|
|
# Number of bits used for the scaled group lengths
|
2013-03-25 12:04:10 +00:00
|
|
|
# (after subtraction of the reference value given in octets 38-41 and division
|
2019-01-10 18:10:41 +00:00
|
|
|
# by the length increment given in octet 42)
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[1] numberOfBitsForScaledGroupLengths ;
|
|
|
|
alias numberOfBitsUsedForTheScaledGroupLengths=numberOfBitsForScaledGroupLengths;
|