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


# START 2/template.4.20 ----------------------------------------------------------------------
# TEMPLATE 4.20, Radar product
#  Parameter category
codetable[1] parameterCategory ('4.1.[discipline:l].table',masterDir,localDir) : dump;

#  Parameter number
codetable[1] parameterNumber ('4.2.[discipline:l].[parameterCategory:l].table',masterDir,localDir)  : dump;
meta parameterUnits codetable_units(parameterNumber) : dump;
meta parameterName  codetable_title(parameterNumber) : dump;

#  Type of generating process
codetable[1] typeOfGeneratingProcess ('4.3.table',masterDir,localDir) : dump;

#  Number of radar sites used
unsigned[1] numberOfRadarSitesUsed  : dump;

#  Indicator of unit of time range
codetable[1] indicatorOfUnitOfTimeRange ('4.4.table',masterDir,localDir)  : dump;
alias defaultStepUnits = one; # 1 means Hour. See code table 4.4
template_nofail default_step_units "grib2/localConcepts/[centre:s]/default_step_units.def";
codetable[1] stepUnits 'stepUnits.table' = defaultStepUnits : transient,dump,no_copy;

#  Site latitude
# (in 10-6 degree)
unsigned[4] siteLatitude  : dump;

#  Site longitude
# (in 10-6 degree)
unsigned[4] siteLongitude  : dump;

#  Site elevation
# (meters)
unsigned[2] siteElevation  : dump;

#  Site ID
# (alphanumeric)
unsigned[4] siteId  : dump;

#  Site ID
# (numeric)
unsigned[2] siteId  : dump;

#  Operating mode
codetable[1] operatingMode ('4.12.table',masterDir,localDir) : dump;

#  Reflectivity calibration constant
# (tenths of dB)
unsigned[1] reflectivityCalibrationConstant  : dump;

#  Quality control indicator
codetable[1] qualityControlIndicator ('4.13.table',masterDir,localDir) : dump;

#  Clutter filter indicator
codetable[1] clutterFilterIndicator ('4.14.table',masterDir,localDir) : dump;

#  Constant antenna elevation angle
# (tenths of degree true)
unsigned[1] constantAntennaElevationAngle  : dump;

#  Accumulation interval
# (minutes)
unsigned[2] accumulationInterval  : dump;

#  Reference reflectivity for echo top
# (dB)
unsigned[1] referenceReflectivityForEchoTop  : dump;

#  Range bin spacing
# (meters)
unsigned[3] rangeBinSpacing  : dump;

#  Radial angular spacing
# (tenths of degree true)
unsigned[2] radialAngularSpacing  : dump;


# END   2/template.4.20 ----------------------------------------------------------------------
