1# Copyright 2005-2018 ECMWF. 2# 3# This software is licensed under the terms of the Apache Licence Version 2.0 4# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 5# 6# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by 7# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. 8# 9 10# START 1/local.98.191 ---------------------------------------------------------------------- 11# LOCAL 98 191 12# 13# localDefinitionTemplate_191 14# --------------------------- 15# 16# Description Octet Code Ksec1 Count 17# ----------- ----- ---- ----- ----- 18#localDefinitionNumber 41 I1 37 - 19#class 42 I1 38 - 20#type 43 I1 39 - 21#stream 44 I2 40 - 22#experimentVersionNumber 46 A4 41 - 23#zeroForCompatibilityWithMars 50 PAD 42 2 24#formatVersionMajorNumber 52 I1 44 - 25#formatVersionMinorNumber 53 I1 45 - 26#originalSubCentreIdentifier 54 I1 46 - 27#setToZero 55 PAD 47 4 28#numberOfBytesOfFreeFormatData 59 I2 51 - 29#dataDescriptorBytes 61 BYTES 52 numberOfBytesOfFreeFormatData 30#padToAMultipleOf80Bytes 60 PADFROM n/a 80 31# 32 33 34template mars_labeling "grib1/mars_labeling.def"; 35 36# zeroForCompatibilityWithMars 37pad padding_loc191_1(2); 38 39unsigned[1] formatVersionMajorNumber : dump; 40 41unsigned[1] formatVersionMinorNumber : dump; 42 43unsigned[1] originalSubCentreIdentifier : dump; 44 45# This does not belong here, this is for class=ms,country=de 46alias mars.levelist = level; 47 48 49# setToZero 50 51pad padding_loc191_2(4); 52 53unsigned[2] numberOfBytesOfFreeFormatData : dump; 54 55position offsetFreeFormData; 56#freeFormDataList list(numberOfBytesOfFreeFormatData) { 57# unsigned[1] freeFormData; 58#} 59 60unsigned[1] freeFormData[numberOfBytesOfFreeFormatData] : dump; 61 62# padToAMultipleOf80Bytes 63# -1 comes from gribex 64padtomultiple padding_loc191_3(offsetFreeFormData,80); 65position offsetAfterPadding; 66constant GRIBEXSection1Problem = ( offsetAfterPadding - offsetFreeFormData) % 80 ; 67 68 69 70# END 1/local.98.191 ---------------------------------------------------------------------- 71