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.
|
2014-06-21 21:28:40 +00:00
|
|
|
#
|
2013-03-25 12:04:10 +00:00
|
|
|
# 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-06-21 21:28:40 +00:00
|
|
|
position offsetSection4;
|
|
|
|
section_length[3] section4Length ;
|
2013-03-25 12:04:10 +00:00
|
|
|
unsigned[1] reserved = 0;
|
2014-06-21 21:28:40 +00:00
|
|
|
position offsetBeforeData;
|
|
|
|
|
2015-06-08 14:12:30 +00:00
|
|
|
template dataKeys "bufr/dataKeys.def";
|
|
|
|
|
2015-10-28 11:46:53 +00:00
|
|
|
meta numericValues bufr_data_array(offsetSection4,offsetBeforeData,offsetEndSection4,section4Length, numberOfSubsets,expandedCodes,expandedFlags, elementsDescriptorsIndex,compressedData,dataKeys);
|
2015-08-27 13:20:24 +00:00
|
|
|
meta stringValues bufr_string_values(numericValues);
|
2014-06-21 21:28:40 +00:00
|
|
|
|
2014-11-17 14:53:05 +00:00
|
|
|
meta unpack unpack_bufr_values(numericValues) ;
|
2015-09-03 14:49:24 +00:00
|
|
|
meta pack pack_bufr_values(numericValues) ;
|
2014-06-21 21:28:40 +00:00
|
|
|
|
2015-06-18 10:22:16 +00:00
|
|
|
#when (changed(unexpandedDescriptors)) {
|
2015-06-03 13:52:29 +00:00
|
|
|
# resize data section and unpack
|
2015-06-18 10:22:16 +00:00
|
|
|
# set unpack=3;
|
|
|
|
#}
|
2015-06-03 13:52:29 +00:00
|
|
|
|
2013-03-25 12:04:10 +00:00
|
|
|
section_padding section4Padding;
|
2014-06-21 21:28:40 +00:00
|
|
|
position offsetEndSection4;
|
|
|
|
meta md5Data md5(offsetSection4,section4Length);
|
2015-03-02 17:00:24 +00:00
|
|
|
alias dataAccessors=numericValues;
|
2015-02-23 11:13:41 +00:00
|
|
|
|