UFO
ObsDerivativeCheck.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2018-2020 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_OBSDERIVATIVECHECK_H_
9 #define UFO_FILTERS_OBSDERIVATIVECHECK_H_
10 
11 #include <memory>
12 #include <ostream>
13 #include <string>
14 #include <vector>
15 
16 #include "oops/util/ObjectCounter.h"
17 #include "ufo/filters/FilterBase.h"
18 #include "ufo/filters/QCflags.h"
19 
20 namespace eckit {
21  class Configuration;
22 }
23 
24 namespace ioda {
25  template <typename DATATYPE> class ObsDataVector;
26  class ObsSpace;
27 }
28 
29 namespace ufo {
30 
31 /// Derivative check: check if the derivative of one variable with respect to another
32 // is within some range
33 
35  private util::ObjectCounter<ObsDerivativeCheck> {
36  public:
37  static const std::string classname() {return "ufo::ObsDerivativeCheck";}
38 
39  ObsDerivativeCheck(ioda::ObsSpace &, const eckit::Configuration &,
40  std::shared_ptr<ioda::ObsDataVector<int> >,
41  std::shared_ptr<ioda::ObsDataVector<float> >);
43 
44  private:
45  void print(std::ostream &) const override;
46  void applyFilter(const std::vector<bool> &, const Variables &,
47  std::vector<std::vector<bool>> &) const override;
48  int qcFlag() const override {return QCflags::derivative;}
49 };
50 
51 } // namespace ufo
52 
53 #endif // UFO_FILTERS_OBSDERIVATIVECHECK_H_
Base class for UFO QC filters.
Definition: FilterBase.h:45
Derivative check: check if the derivative of one variable with respect to another.
ObsDerivativeCheck(ioda::ObsSpace &, const eckit::Configuration &, std::shared_ptr< ioda::ObsDataVector< int > >, std::shared_ptr< ioda::ObsDataVector< float > >)
static const std::string classname()
void print(std::ostream &) const override
int qcFlag() const override
void applyFilter(const std::vector< bool > &, const Variables &, std::vector< std::vector< bool >> &) const override
Forward declarations.
Definition: ObsAodExt.h:21
Forward declarations.
Definition: ObsAodExt.h:25
constexpr int derivative
Definition: QCflags.h:33
Definition: RunCRTM.h:27