eccodes/definitions/grib2/template.5.42.def

26 lines
954 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
# TEMPLATE 5.42, Grid point data - CCSDS recommended lossless compression
2013-03-25 12:04:10 +00:00
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
unsigned[1] ccsdsFlags : dump;
2016-10-27 17:59:00 +00:00
alias ccsdsCompressionOptionsMask=ccsdsFlags;
2013-03-25 12:04:10 +00:00
2023-11-26 18:05:43 +00:00
flagbit AEC_DATA_SIGNED_OPTION_MASK(ccsdsFlags,0) = 0;
2016-07-13 17:28:37 +00:00
# AEC_DATA_3BYTE_OPTION_MASK was switched on in order to allow data stored
# with 17 <=bitsPerValue<= 24 to be stored in 3 rather than 4 bytes.
# This eliminates discretization errors that were occurring when it was off.
2023-11-26 18:05:43 +00:00
flagbit AEC_DATA_3BYTE_OPTION_MASK(ccsdsFlags,1) = 1;
2016-07-13 17:28:37 +00:00
flagbit AEC_DATA_MSB_OPTION_MASK(ccsdsFlags,2) = 1;
flagbit AEC_DATA_PREPROCESS_OPTION_MASK(ccsdsFlags,3) = 1;
flagbit AEC_RESTRICTED_OPTION_MASK(ccsdsFlags,4) = 0;
flagbit AEC_PAD_RSI_OPTION_MASK(ccsdsFlags,5) = 0;
2013-03-25 12:04:10 +00:00
unsigned[1] ccsdsBlockSize = 32 : dump;
2021-02-06 13:07:35 +00:00
unsigned[2] ccsdsRsi = 128 : dump;
2016-10-27 17:59:00 +00:00
alias referenceSampleInterval=ccsdsRsi;