2015-12-31 12:44:51 +00:00
|
|
|
# Copyright 2005-2016 ECMWF.
|
2013-03-25 12:04:10 +00:00
|
|
|
#
|
|
|
|
# This software is licensed under the terms of the Apache Licence Version 2.0
|
|
|
|
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
|
|
|
|
#
|
|
|
|
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
|
|
|
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
|
|
|
#
|
|
|
|
|
2014-08-28 09:11:51 +00:00
|
|
|
# TEMPLATE 5.42, Grid point and spectral data - CCSDS
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2015-07-28 09:50:26 +00:00
|
|
|
include "grib2/template.5.packing.def";
|
|
|
|
include "grib2/template.5.original_values.def";
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2014-08-28 09:11:51 +00:00
|
|
|
unsigned[1] ccsdsFlags : dump;
|
2013-03-25 12:04:10 +00:00
|
|
|
|
2014-08-28 09:11:51 +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 occuring when it was off.
|
2016-05-24 14:02:26 +00:00
|
|
|
flagbit AEC_DATA_3BYTE_OPTION_MASK(ccsdsFlags,1) = 1;
|
2016-07-13 17:28:37 +00:00
|
|
|
|
2014-08-28 09:11:51 +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
|
|
|
|
2014-08-28 09:11:51 +00:00
|
|
|
unsigned[1] ccsdsBlockSize = 32 : dump;
|
|
|
|
unsigned[2] ccsdsRsi = 128 : dump;
|