# Copyright 2005-2016 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.
#

# Definition 11, Supplementary data used by the analysis

unsigned[2] yearOfAnalysis   = year   : dump;
unsigned[1] monthOfAnalysis  = month  : dump;
unsigned[1] dayOfAnalysis    = day    : dump;
unsigned[1] hourOfAnalysis   = hour   : dump;
unsigned[1] minuteOfAnalysis = minute : dump;

codetable[2] originatingCentreOfAnalysis 'grib1/0.table' = originatingCentre : dump,string_type;

unsigned[2] subcentreOfAnalysis = subCentre : dump;

constant secondsOfAnalysis = 0;

meta dateOfAnalysis  g2date(yearOfAnalysis,monthOfAnalysis,dayOfAnalysis) : dump;
meta timeOfAnalysis  time(hourOfAnalysis,minuteOfAnalysis,secondsOfAnalysis) : dump;

alias date = dateOfAnalysis;
alias time = timeOfAnalysis;
