2019-11-14 13:08:14 +00:00
|
|
|
# Copyright 2005-2019 ECMWF.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
|
|
|
section_length[3] section4Length ;
|
|
|
|
|
|
|
|
unsigned[1] reserved1=0 : hidden;
|
|
|
|
|
|
|
|
flags[1] missingDataFlag 'grib1/1.table';
|
|
|
|
|
2019-12-02 17:53:39 +00:00
|
|
|
unsigned[1] numberOfBytesPerInteger=4;
|
2019-11-14 13:08:14 +00:00
|
|
|
|
|
|
|
unsigned[2] reserved=0 : hidden ;
|
|
|
|
|
|
|
|
unsigned[3] numberOfCharacters ;
|
|
|
|
alias numberOfChars=numberOfCharacters ;
|
|
|
|
|
|
|
|
unsigned[3] numberOfFloats ;
|
|
|
|
|
2019-12-02 17:53:39 +00:00
|
|
|
unsigned[3] numberOfIntegers=0;
|
2019-11-14 13:08:14 +00:00
|
|
|
alias numberOfInts=numberOfIntegers ;
|
|
|
|
|
|
|
|
unsigned[3] numberOfLogicals ;
|
|
|
|
|
|
|
|
unsigned[3] numberOfReservedBytes ;
|
|
|
|
|
|
|
|
unsigned[4] reserved=0 : hidden;
|
|
|
|
unsigned[4] reserved=0 : hidden;
|
|
|
|
unsigned[1] reserved=0 : hidden;
|
|
|
|
|
|
|
|
ibmfloat floatValues[numberOfFloats];
|
|
|
|
alias floatVal=floatValues;
|
|
|
|
|
2019-12-02 17:53:39 +00:00
|
|
|
if(numberOfIntegers) {
|
|
|
|
signed[4] integerValues[numberOfIntegers];
|
|
|
|
}
|
|
|
|
|
|
|
|
#if(numberOfBytesPerInteger == 1) { signed[1] integerValues[numberOfIntegers]; }
|
|
|
|
#if(numberOfBytesPerInteger == 2) { signed[2] integerValues[numberOfIntegers]; }
|
|
|
|
#if(numberOfBytesPerInteger == 3) { signed[3] integerValues[numberOfIntegers]; }
|
|
|
|
#if(numberOfBytesPerInteger == 4) { signed[4] integerValues[numberOfIntegers]; }
|
2019-11-14 13:08:14 +00:00
|
|
|
|
2019-11-14 19:51:26 +00:00
|
|
|
charValues list(numberOfCharacters) {
|
2019-12-02 17:53:39 +00:00
|
|
|
ascii[1] char;
|
2019-11-14 13:08:14 +00:00
|
|
|
}
|
|
|
|
alias charVal=charValues;
|
2019-12-02 17:53:39 +00:00
|
|
|
|
|
|
|
section_padding padding;
|