UFO
TrackCheckUtilsParameters.h
Go to the documentation of this file.
1 /*
2  * (C) 2021 Crown Copyright Met Office. All rights reserved.
3  * This software is licensed under the terms of the Apache Licence Version 2.0
4  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
5  */
6 
7 #ifndef UFO_FILTERS_TRACKCHECKUTILSPARAMETERS_H_
8 #define UFO_FILTERS_TRACKCHECKUTILSPARAMETERS_H_
9 
10 #include "oops/util/parameters/OptionalParameter.h"
11 #include "oops/util/parameters/Parameters.h"
14 
15 namespace eckit {
16 class Configuration;
17 }
18 
19 namespace ufo {
20 
23  };
26  static constexpr char enumTypeName[] = "SurfaceObservationSubtype";
27  static constexpr util::NamedEnumerator<SurfaceObservationSubtype> namedValues[] = {
39  };
40  };
41 } // namespace ufo
42 
43 namespace oops {
44 
45 template<>
46 struct ParameterTraits<ufo::SurfaceObservationSubtype> :
47  public EnumParameterTraits<ufo::SurfaceObservationSubtypeParameterTraitsHelper>
48 {};
49 
50 } // namespace oops
51 
52 namespace ufo {
53 
54 /// \brief Options controlling the operation of the track check filter.
56  OOPS_ABSTRACT_PARAMETERS(TrackCheckUtilsParameters, FilterParametersBase)
57 
58  public:
59  /// Variable storing integer-valued or string-valued station IDs.
60  /// Observations taken by each station are checked separately.
61  ///
62  /// If not set and observations were grouped into records when the observation space was
63  /// constructed, each record is assumed to consist of observations taken by a separate
64  /// station. If not set and observations were not grouped into records, all observations are
65  /// assumed to have been taken by a single station.
66  ///
67  /// Note: the variable used to group observations into records can be set with the
68  /// \c obs space.obsdatain.obsgrouping.groupvariable YAML option.
69  oops::OptionalParameter<Variable> stationIdVariable{
70  "station_id_variable", this};
71 };
72 
73 } // namespace ufo
74 
75 #endif // UFO_FILTERS_TRACKCHECKUTILSPARAMETERS_H_
Parameters shared by all filters having a default action (typically "reject").
Options controlling the operation of the track check filter.
oops::OptionalParameter< Variable > stationIdVariable
Forward declarations.
Definition: ObsAodExt.h:21
Definition: RunCRTM.h:27
static constexpr util::NamedEnumerator< SurfaceObservationSubtype > namedValues[]