UFO
MWCLWCheck.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_MWCLWCHECK_H_
9
#define UFO_FILTERS_MWCLWCHECK_H_
10
11
#include <memory>
12
#include <ostream>
13
#include <string>
14
#include <vector>
15
16
#include "oops/base/Variables.h"
17
#include "oops/util/ObjectCounter.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
/// MWCLWCheck: generic quality control based on observation data only
33
34
// Check that observations are within some bounds over some domain
35
36
class
MWCLWCheck
:
public
FilterBase
,
37
private
util::ObjectCounter<MWCLWCheck> {
38
public
:
39
static
const
std::string
classname
() {
return
"ufo::MWCLWCheck"
;}
40
41
MWCLWCheck
(ioda::ObsSpace &,
const
eckit::Configuration &,
42
std::shared_ptr<
ioda::ObsDataVector<int>
>,
43
std::shared_ptr<
ioda::ObsDataVector<float>
>);
44
~MWCLWCheck
();
45
46
private
:
47
void
print
(std::ostream &)
const override
;
48
void
applyFilter
(
const
std::vector<bool> &,
const
Variables
&,
49
std::vector<std::vector<bool>> &)
const override
;
50
int
qcFlag
()
const override
{
return
QCflags::clw
;}
51
52
oops::Variables
invars_
;
53
};
54
55
}
// namespace ufo
56
57
#endif // UFO_FILTERS_MWCLWCHECK_H_
FilterBase.h
ufo::Variables
Definition:
src/ufo/filters/Variables.h:24
ufo::MWCLWCheck::MWCLWCheck
MWCLWCheck(ioda::ObsSpace &, const eckit::Configuration &, std::shared_ptr< ioda::ObsDataVector< int > >, std::shared_ptr< ioda::ObsDataVector< float > >)
Definition:
MWCLWCheck.cc:28
ufo::FilterBase
FilterBase: Base class for UFO QC filters.
Definition:
FilterBase.h:42
ioda
Definition:
ObsAtmSfcInterp.h:24
ufo
Definition:
RunCRTM.h:27
ufo::MWCLWCheck::invars_
oops::Variables invars_
Definition:
MWCLWCheck.h:52
ufo::MWCLWCheck::print
void print(std::ostream &) const override
Definition:
MWCLWCheck.cc:155
ufo::MWCLWCheck::applyFilter
void applyFilter(const std::vector< bool > &, const Variables &, std::vector< std::vector< bool >> &) const override
Definition:
MWCLWCheck.cc:45
eckit
Forward declarations.
Definition:
ObsAtmSfcInterp.h:20
QCflags.h
ufo::QCflags::clw
constexpr int clw
Definition:
QCflags.h:23
ioda::ObsDataVector< int >
ufo::MWCLWCheck
MWCLWCheck: generic quality control based on observation data only.
Definition:
MWCLWCheck.h:37
ufo::MWCLWCheck::qcFlag
int qcFlag() const override
Definition:
MWCLWCheck.h:50
ufo::MWCLWCheck::~MWCLWCheck
~MWCLWCheck()
Definition:
MWCLWCheck.cc:41
ufo::MWCLWCheck::classname
static const std::string classname()
Definition:
MWCLWCheck.h:39
fv3-bundle
ufo
src
ufo
filters
MWCLWCheck.h
Generated on Sat Oct 24 2020 19:14:55 for UFO by
1.8.18