UFO
AcceptObs.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2021 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_ACTIONS_ACCEPTOBS_H_
9 #define UFO_FILTERS_ACTIONS_ACCEPTOBS_H_
10 
11 #include <vector>
12 
14 #include "ufo/filters/Variables.h"
15 
16 namespace ufo {
17 
18 class ObsFilterData;
19 
20 // -----------------------------------------------------------------------------
21 
24  // No extra parameters needed
25 };
26 
27 // -----------------------------------------------------------------------------
28 
29 /// Reset the QC flag of observations flagged by the filter to 'pass' except for those whose current
30 /// QC flag is 'missing', 'preQC' or 'Hfailed'.
31 class AcceptObs : public FilterActionBase {
32  public:
34 
35  explicit AcceptObs(const Parameters_ &);
36 
37  void apply(const Variables &, const std::vector<std::vector<bool>> &,
38  const ObsFilterData &, int,
40 
41  const ufo::Variables & requiredVariables() const override {return allvars_;}
42 
43  private:
45 };
46 
47 // -----------------------------------------------------------------------------
48 
49 } // namespace ufo
50 
51 #endif // UFO_FILTERS_ACTIONS_ACCEPTOBS_H_
const ufo::Variables & requiredVariables() const override
Definition: AcceptObs.h:41
AcceptObs(const Parameters_ &)
Definition: AcceptObs.cc:22
Variables allvars_
Definition: AcceptObs.h:44
void apply(const Variables &, const std::vector< std::vector< bool >> &, const ObsFilterData &, int, ioda::ObsDataVector< int > &, ioda::ObsDataVector< float > &) const override
Definition: AcceptObs.cc:28
AcceptObsParameters Parameters_
Definition: AcceptObs.h:33
OOPS_CONCRETE_PARAMETERS(AcceptObsParameters, FilterActionParametersBase)
Parameters controlling a filter action.
ObsFilterData provides access to all data related to an ObsFilter.
Definition: RunCRTM.h:27