UFO
ObsDomainErrCheck.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2018-2019 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_OBSDOMAINERRCHECK_H_
9 #define UFO_FILTERS_OBSDOMAINERRCHECK_H_
10 
11 #include <memory>
12 #include <ostream>
13 #include <string>
14 #include <vector>
15 
16 #include "oops/util/ObjectCounter.h"
17 #include "oops/util/parameters/RequiredParameter.h"
18 #include "ufo/filters/FilterBase.h"
19 #include "ufo/filters/QCflags.h"
20 
21 namespace eckit {
22  class Configuration;
23 }
24 
25 namespace ioda {
26  template <typename DATATYPE> class ObsDataVector;
27  class ObsSpace;
28 }
29 
30 namespace ufo {
31 
32 /// Parameters controlling the operation of the ObsDomainErrCheck filter.
34  OOPS_CONCRETE_PARAMETERS(ObsDomainErrCheckParameters, FilterParametersBase)
35 
36  public:
37  oops::RequiredParameter<float> infltparameter{"infltparameter", this};
38 };
39 
40 /// AMSU-A scattering check and obserr inflation
41 
43  private util::ObjectCounter<ObsDomainErrCheck> {
44  public:
45  /// The type of parameters accepted by the constructor of this filter.
46  /// This typedef is used by the FilterFactory.
48 
49  static const std::string classname() {return "ufo::ObsDomainErrCheck";}
50 
51  ObsDomainErrCheck(ioda::ObsSpace &, const Parameters_ &,
52  std::shared_ptr<ioda::ObsDataVector<int> >,
53  std::shared_ptr<ioda::ObsDataVector<float> >);
55 
56  private:
57  void print(std::ostream &) const override;
58  void applyFilter(const std::vector<bool> &, const Variables &,
59  std::vector<std::vector<bool>> &) const override;
60  int qcFlag() const override {return QCflags::domain;}
61 
63 };
64 
65 } // namespace ufo
66 
67 #endif // UFO_FILTERS_OBSDOMAINERRCHECK_H_
Base class for UFO QC filters.
Definition: FilterBase.h:45
Parameters shared by all filters having a default action (typically "reject").
AMSU-A scattering check and obserr inflation.
static const std::string classname()
ObsDomainErrCheckParameters Parameters_
void applyFilter(const std::vector< bool > &, const Variables &, std::vector< std::vector< bool >> &) const override
void print(std::ostream &) const override
ObsDomainErrCheck(ioda::ObsSpace &, const Parameters_ &, std::shared_ptr< ioda::ObsDataVector< int > >, std::shared_ptr< ioda::ObsDataVector< float > >)
int qcFlag() const override
Parameters controlling the operation of the ObsDomainErrCheck filter.
oops::RequiredParameter< float > infltparameter
Forward declarations.
Definition: ObsAodExt.h:21
Forward declarations.
Definition: ObsAodExt.h:25
constexpr int domain
Definition: QCflags.h:23
Definition: RunCRTM.h:27