# Copyright 2005-2007 ECMWF
# 
# Licensed under the GNU Lesser General Public License which
# incorporates the terms and conditions of version 3 of the GNU
# General Public License.
# See LICENSE and gpl-3.0.txt for details.

constant grib2divider   = 1000000;
transient  missingValue =  9999;
constant ieeeFloats   = 1 : edition_specific;


ascii[4]     identifier;
ascii[2]     reserved : hidden;
codetable[1] discipline 'grib2/0.0.table';
unsigned[1]  editionNumber : edition_specific;
length[8]    totalLength;


template     core "grib2/sections.def";

lookup[4] endOfProduct(0);

  if(endOfProduct != `7777`){
      template     core "grib2/sections.def";
  }

  template     section8 "grib2/section.8.def";

