#
#       DATA ACCESS EDITOR example definition file II
#
# This example shows you many of the possibilies you have in defining
# the bahaviour of your Data Access Editor, this is not supposed to look
# like a real Data Access Editor.
#
# If you want to see how this editor looks then do the following:
#
#  1) cp DataAccessDef DataAccessDef.orig
#  2) cp DataAccessDef2 DataAccessDef
#  3) touch DataAccessDef
#  4) make
#  5) restart metview_dev...
#
# NOTE:
#   Write parameter names in capital letters and in your script
#   'DataAccessScript' use these capital letter names. In the Editor
#   the parameter names are shown with underscores replaced by
#   blanks and words in lower case letters except for the first letter.
#
# WARNING:
#   For the moment (with the current version of Metview) do not use
#   parameter names that are an exact copy of the beginning of another
#   parameter name i.e. not:
#      PARAMETER
#      PARAMETER_LEVEL
#   but
#      PARAMETER_NAME
#      PARAMETER_LEVEL
#   are ok.
#



DATA_ACCESS
{

#-----------------------------------------------------------------------
# This parameter will have a numeric input field ('*'=numeric).
# The default environment variable (i.e. no editing of this field)
# in the DataAccessScript would be 'NUMERIC_VALUE=123'.  
#

  NUMERIC_VALUE
  {
    *
  } = 123


#-----------------------------------------------------------------------
# This parameter is allowed to have a string values ('@'=string).
# In the editor the name of this parameter will be 'Text Valued Parameter'
# There is no default value i.e. if this field is not changed then the
# environment variable setting would be 'TEXT_VALUE='.
#

  TEXT_VALUE
  {
    @
  }


# -----------------------------------------------------------------------
# Numeric list valued parameter with '1000/850/700/500/300' as the
# default value. A single numeric value is accepted too (a list with
# only one element).
#

  NUMERIC_LIST
  {
    *
    /
  } = 1000/850/700/500/300


# -----------------------------------------------------------------------
# Text list valued parameter with 'Z/T/U/V/500' as the default value.
# A single text value is accepted too (a list with only one element)
# and numbers are text too!
#

  TEXT_LIST
  {
    @
    /
  } = Z/T/U/V/500


#-----------------------------------------------------------------------
# This parameter will have a fixed menu, with geopotential as default.
#
# For each selection there are two values on a line: the first one is
# shown in the menu and the second one is passed on as the value if this
# parameter is selected:
#
# The returned value would be 'T' if temperature was chosen (environment
# variable would be set to 'MENU=T'). The default would be 'Z'.
#

  MENU
  {
    TEMPERATURE  ;  T 
    GEOPOTENTIAL ;  Z 
  } = Z


#-----------------------------------------------------------------------
# This parameter will not have a menu but a text field (because of '/'
# i.e. list character) and it will accept only one or more values listed.
#
# Valid values would be for example:
#    Z
#    GEOPOTENTIAL
#    U/V
#    T/U/V
# The first and the second one are geopotential only (both forms are
# accepted), the third is for both wind components and the fourth is
# a list of three values.
#

  RESTRICTED_LIST
  {
    TEMPERATURE  ;  T 
    GEOPOTENTIAL ;  Z 
    WIND_U_COMPONENT ; U
    WIND_V_COMPONENT ; V
    /
  } = T


}
