UFO
TrackCheckUtilsParameters.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2019 Met Office UK
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  */
7 
8 #ifndef UFO_FILTERS_TRACKCHECKUTILSPARAMETERS_H_
9 #define UFO_FILTERS_TRACKCHECKUTILSPARAMETERS_H_
10 
11 #include "oops/util/parameters/OptionalParameter.h"
12 #include "oops/util/parameters/Parameters.h"
14 
15 namespace eckit {
16 class Configuration;
17 }
18 
19 namespace ufo {
20 
21 /// \brief Options controlling the operation of the track check filter.
22 class TrackCheckUtilsParameters : public oops::Parameters {
23  // TODO(wsmigaj/aweinbren): Refactor TrackCheckUtils::groupObservationsByStation to avoid creating
24  // a TrackCheckUtilsParameters object and then replace OOPS_CONCRETE_PARAMETERS with
25  // OOPS_ABSTRACT_PARAMETERS.
26  OOPS_CONCRETE_PARAMETERS(TrackCheckUtilsParameters, Parameters)
27 
28  public:
29  /// Variable storing integer-valued or string-valued station IDs.
30  /// Observations taken by each station are checked separately.
31  ///
32  /// If not set and observations were grouped into records when the observation space was
33  /// constructed, each record is assumed to consist of observations taken by a separate
34  /// station. If not set and observations were not grouped into records, all observations are
35  /// assumed to have been taken by a single station.
36  ///
37  /// Note: the variable used to group observations into records can be set with the
38  /// \c obs space.obsdatain.obsgrouping.group_variable YAML option.
39  oops::OptionalParameter<Variable> stationIdVariable{
40  "station_id_variable", this};
41 };
42 
43 } // namespace ufo
44 
45 #endif // UFO_FILTERS_TRACKCHECKUTILSPARAMETERS_H_
ufo
Definition: RunCRTM.h:27
ufo::TrackCheckUtilsParameters::stationIdVariable
oops::OptionalParameter< Variable > stationIdVariable
Definition: TrackCheckUtilsParameters.h:39
eckit
Forward declarations.
Definition: ObsAtmSfcInterp.h:20
ufo::TrackCheckUtilsParameters
Options controlling the operation of the track check filter.
Definition: TrackCheckUtilsParameters.h:22
ParameterTraitsVariable.h