MODULE DEFAULT_obs_def_kind

DART project logo

Jump to DART Documentation Main Index
version information for this file:
$Id: DEFAULT_obs_kind_mod.html 6380 2013-08-05 23:47:11Z nancy $



The observation types supported by DART are defined at the time the programs are compiled. Only those observation types of interest need to be included. This is the input template file which is read by the program preprocess to create the obs_kind_mod.f90 (documented separately in this directory). Information from zero or more special obs_def modules (such as obs_def_1d_state_mod.f90 or obs_def_reanalysis_bufr_mod.f90, documented in the obs_def directory) are incorporated into the template provided by DEFAULT_obs_def_kind. If no special obs_def files are included in the preprocessor namelist, a minimal obs_kind_mod.f90 is created which can only support identity forward observation operators.

To add a new specific observation type, see the obs_def_mod documentation. If adding this type includes defining a new generic observation kind, then the kind must be added to the table in this file, with a unique integer value defined for it. In a planned future update to the preprocess program it is expected that this kinds table will become autogenerated, much like the types table described below, so no editing of this file will be needed. But until then, kinds must be added by here, by hand. And note that they must be added to the template file, DEFAULT_obs_kind_mod.F90 and not the output of the preprocess program, obs_kind_mod.f90. The latter file is overwritten each time preprocess runs, deleting any hand editing done on that file.

The rest of this documentation describes the special formatting that is included in the DEFAULT_obs_kind_mod in order to guide the preprocess program. Two sections of code are inserted into the DEFAULT_obs_def_kind module from each of the special obs_def modules that are requested. The insertion point for each section is denoted by a special comment line that must be included VERBATIM in DEFAULT_obs_kind_mod. These special comment lines and their significance are:

    Each of the observation type identifiers are inserted here, and are given both the parameter and public attributes. The associated integer values are generated sequentially, starting at 1. If a different set of special obs_def modules is specified via the namelist for preprocess, the integer value associated with a given observation type could change so these integers are for use internal to a given program execution only. Observation types are permanently and uniquely identified by a string with character values identical to the integer identifier here. In other words, an observation kind with integer parameter identifier RAW_STATE_VARIABLE will always be associated with a string "RAW_STATE_VARIABLE" (see below).
    The entries for the obs_kind_info table are initialized here. This table has a row for each observation kind defined in the public and integer parameter declarations discussed above. For each obs_kind, the obs_kind info table contains the following information:
    1. The integer index associated with this observation kind. This is the value that is defined in the integer parameter statement above.
    2. A character string with maximum length 32 characters that uniquely identifies the observation kind. This string is identical to the F90 identifier used in the integer parameter statements created above.
    3. A generic variable type referenced by an integer. The obs_kind_mod contains a table that defines an integer parameter that uniquely identifies each generic observation kind. Generic kinds can be associated with both a model state variable or an observation kind. For instance, the generic kind U_WIND_COMPONENT might be associated with model U state variables, with RADIOSONDE_U_WIND_COMPONENT observation kinds, and with ACARS_U_WIND_COMPONENT observation kinds. The distinction between generic kinds and observation types is important and potentially confusing, so be careful to understand this point.
    4. A logical variable indicating whether observations of this kind are to be assimilated in the current experiment. This variable is set from the obs_kind namelist (see obs_kind_mod.html in this directory). The default value here is false when the obs_def_mod is created by the preprocess program.
    5. A logical variable indicating whether observations of this kind are to be evaluated (forward operator computed and recorded) but not assimilated (again set by namelist). The default value here is false when the obs_def_mod is created by the preprocess program.

Terms of Use

DART software - Copyright 2004 - 2013 UCAR.
This open source software is provided by UCAR, "as is",
without charge, subject to all terms of use at

Contact: DART core group
Revision: $Revision: 6380 $
Source: $URL: $
Change Date: $Date: 2013-08-05 17:47:11 -0600 (Mon, 05 Aug 2013) $
Change history:  try "svn log" or "svn diff"