# 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.

# START 1/local use section ----------------------------------------------------------------------
# LOCAL DWD 254
# manually edited by sborcher
#
# local use section 2 of DWD (deterministic system + synthetic radar volume scan)
# -------------------------------------------------------------------------------
# local.78.124.def = local.78.254.def + local.78.single_radar_scan.def
#
# Unfortunately, we cannot use:
#   include "grib2/local.78.254.def" ; 
# because the last line in this file:
#   meta localValidityDate sprintf("%d",localValidityDateL): dump;
# is missing a "no_copy," before the "dump". 
# So we have no choice but to repeat the content of "local.78.254.def" here:

alias grib2LocalSectionNumber = localDefinitionNumber : dump;

unsigned[1] localHostIdentifier: dump;
unsigned[2] localCreationDateYear: dump;
unsigned[1] localCreationDateMonth: dump;
unsigned[1] localCreationDateDay: dump;
unsigned[1] localCreationDateHour: dump;
unsigned[1] localCreationDateMinute: dump;
unsigned[1] localCreationDateSecond: dump;
unsigned[2] localValidityDateYear: dump;
unsigned[1] localValidityDateMonth: dump;
unsigned[1] localValidityDateDay: dump;
unsigned[1] localValidityDateHour: dump;
unsigned[1] localValidityDateMinute: dump;
unsigned[1] localValidityDateSecond: dump;
unsigned[2] localInformationNumber: dump;
unsigned[2] localVersionNumber: dump;
unsigned[2] localNumberOfExperiment: dump;

meta localDecodeDateL evaluate(localCreationDateYear*10000000000 + localCreationDateMonth*100000000 + localCreationDateDay*1000000 + localCreationDateHour*10000 + localCreationDateMinute*100 + localCreationDateSecond);
meta localDecodeDate sprintf("%d",localDecodeDateL): no_copy, dump;
meta localValidityDateL evaluate(localValidityDateYear*10000000000 + localValidityDateMonth*100000000 + localValidityDateDay*1000000 + localValidityDateHour*10000 + localValidityDateMinute*100 + localValidityDateSecond);
meta localValidityDate sprintf("%d",localValidityDateL): no_copy, dump;
 
include "grib2/local.78.single_radar_scan.def" ;
