ECC-297: CCSDS support

This commit is contained in:
Shahram Najm 2016-07-13 18:28:37 +01:00
parent e747815c54
commit 4669430a0c
1 changed files with 5 additions and 0 deletions

View File

@ -15,7 +15,12 @@ include "grib2/template.5.original_values.def";
unsigned[1] ccsdsFlags : dump;
flagbit AEC_DATA_SIGNED_OPTION_MASK(ccsdsFlags,0) = 0;
# 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 occuring when it was off.
flagbit AEC_DATA_3BYTE_OPTION_MASK(ccsdsFlags,1) = 1;
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;