UFO
RejectObs.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2018 UCAR
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_ACTIONS_REJECTOBS_H_
9 #define UFO_FILTERS_ACTIONS_REJECTOBS_H_
10 
11 #include <vector>
12 
13 #include "oops/util/parameters/OptionalParameter.h"
15 #include "ufo/filters/Variables.h"
16 
17 namespace ufo {
18 
19 class ObsFilterData;
20 
21 // -----------------------------------------------------------------------------
22 
25 
26  // No extra parameters needed.
27 };
28 
29 // -----------------------------------------------------------------------------
30 
31 /// The default action of a QC filter: reject observations flagged by the filter.
32 class RejectObs : public FilterActionBase {
33  public:
34  /// The type of parameters accepted by the constructor of this action.
35  /// This typedef is used by the FilterActionFactory.
37 
38  explicit RejectObs(const Parameters_ &);
40 
41  void apply(const Variables &, const std::vector<std::vector<bool>> &,
42  const ObsFilterData &, int,
44  const ufo::Variables & requiredVariables() const override {return allvars_;}
45  private:
48 };
49 
50 // -----------------------------------------------------------------------------
51 
52 } // namespace ufo
53 
54 #endif // UFO_FILTERS_ACTIONS_REJECTOBS_H_
Parameters controlling a filter action.
ObsFilterData provides access to all data related to an ObsFilter.
The default action of a QC filter: reject observations flagged by the filter.
Definition: RejectObs.h:32
void apply(const Variables &, const std::vector< std::vector< bool >> &, const ObsFilterData &, int, ioda::ObsDataVector< int > &, ioda::ObsDataVector< float > &) const override
Definition: RejectObs.cc:28
const ufo::Variables & requiredVariables() const override
Definition: RejectObs.h:44
Variables allvars_
Definition: RejectObs.h:46
Parameters_ parameters_
Definition: RejectObs.h:47
RejectObs(const Parameters_ &)
Definition: RejectObs.cc:22
RejectObsParameters Parameters_
Definition: RejectObs.h:36
OOPS_CONCRETE_PARAMETERS(RejectObsParameters, FilterActionParametersBase)
Definition: RunCRTM.h:27