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
34
class
ObsDerivativeCheck
:
public
FilterBase
,
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>
>);
42
~ObsDerivativeCheck
();
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_
FilterBase.h
ufo::ObsDerivativeCheck::~ObsDerivativeCheck
~ObsDerivativeCheck()
Definition:
ObsDerivativeCheck.cc:41
ufo::Variables
Definition:
src/ufo/filters/Variables.h:24
ufo::ObsDerivativeCheck::applyFilter
void applyFilter(const std::vector< bool > &, const Variables &, std::vector< std::vector< bool >> &) const override
Definition:
ObsDerivativeCheck.cc:97
ufo::ObsDerivativeCheck::print
void print(std::ostream &) const override
Definition:
ObsDerivativeCheck.cc:241
ufo::ObsDerivativeCheck::ObsDerivativeCheck
ObsDerivativeCheck(ioda::ObsSpace &, const eckit::Configuration &, std::shared_ptr< ioda::ObsDataVector< int > >, std::shared_ptr< ioda::ObsDataVector< float > >)
Definition:
ObsDerivativeCheck.cc:31
ufo::FilterBase
FilterBase: Base class for UFO QC filters.
Definition:
FilterBase.h:42
ioda
Definition:
ObsAtmSfcInterp.h:24
ufo
Definition:
RunCRTM.h:27
eckit
Forward declarations.
Definition:
ObsAtmSfcInterp.h:20
ufo::ObsDerivativeCheck::classname
static const std::string classname()
Definition:
ObsDerivativeCheck.h:37
ufo::QCflags::derivative
constexpr int derivative
Definition:
QCflags.h:28
QCflags.h
ufo::ObsDerivativeCheck
Derivative check: check if the derivative of one variable with respect to another.
Definition:
ObsDerivativeCheck.h:35
ioda::ObsDataVector< int >
ufo::ObsDerivativeCheck::qcFlag
int qcFlag() const override
Definition:
ObsDerivativeCheck.h:48
fv3-bundle
ufo
src
ufo
filters
ObsDerivativeCheck.h
Generated on Sat Oct 24 2020 19:14:55 for UFO by
1.8.18