UFO
|
#include <BayesianBackgroundQCFlags.h>
Public Types | |
typedef BayesianBackgroundQCFlagsParameters | Parameters_ |
Public Member Functions | |
BayesianBackgroundQCFlags (ioda::ObsSpace &, const Parameters_ &, std::shared_ptr< ioda::ObsDataVector< int > >, std::shared_ptr< ioda::ObsDataVector< float > >) | |
~BayesianBackgroundQCFlags () | |
![]() | |
FilterBase (ioda::ObsSpace &, const FilterParametersBaseWithAbstractAction ¶meters, std::shared_ptr< ioda::ObsDataVector< int > >, std::shared_ptr< ioda::ObsDataVector< float > >) | |
FilterBase (ioda::ObsSpace &, const eckit::Configuration &, std::shared_ptr< ioda::ObsDataVector< int > >, std::shared_ptr< ioda::ObsDataVector< float > >) | |
~FilterBase () | |
![]() | |
ObsProcessorBase (ioda::ObsSpace &, bool deferToPost, std::shared_ptr< ioda::ObsDataVector< int > >, std::shared_ptr< ioda::ObsDataVector< float > >) | |
~ObsProcessorBase () | |
void | preProcess () override |
void | priorFilter (const GeoVaLs &) override |
void | postFilter (const ioda::ObsVector &, const ioda::ObsVector &, const ObsDiagnostics &) override |
oops::Variables | requiredVars () const override |
oops::Variables | requiredHdiagnostics () const override |
Static Public Member Functions | |
static const std::string | classname () |
Private Member Functions | |
void | print (std::ostream &) const override |
void | applyFilter (const std::vector< bool > &, const Variables &, std::vector< std::vector< bool >> &) const override |
int | qcFlag () const override |
std::string | getPGEsubstituteName (const std::string &varname) const |
void | setFlags (const std::string &varname, const std::vector< bool > &apply, std::vector< bool > &flagged) const |
Private Attributes | |
Parameters_ | parameters_ |
Parameters used in this filter. More... | |
Additional Inherited Members | |
![]() | |
const eckit::LocalConfiguration | config_ |
ufo::Variables | filtervars_ |
![]() | |
ioda::ObsSpace & | obsdb_ |
std::shared_ptr< ioda::ObsDataVector< int > > | flags_ |
std::shared_ptr< ioda::ObsDataVector< float > > | obserr_ |
ufo::Variables | allvars_ |
ObsFilterData | data_ |
BayesianBackgroundQCFlags: apply QC flags based on values of probability of gross error (PGE). If the PGE is larger than the threshold PGEcrit
then the observation is rejected. If the Bayesian background or buddy checks were applied, use the PGE that was obtained from those checks. Sometimes the PGE of one variable is used to set the QC flags of another; this happens for (e.g.) wind u and v components.
todo(UKMO): deal with Pstar/Pmsl and u10AmbWind/v10AmbWind (as they are known in OPS). These are each treated slightly differently in the OPS code.
Definition at line 59 of file BayesianBackgroundQCFlags.h.
Definition at line 62 of file BayesianBackgroundQCFlags.h.
ufo::BayesianBackgroundQCFlags::BayesianBackgroundQCFlags | ( | ioda::ObsSpace & | obsdb, |
const Parameters_ & | parameters, | ||
std::shared_ptr< ioda::ObsDataVector< int > > | flags, | ||
std::shared_ptr< ioda::ObsDataVector< float > > | obserr | ||
) |
Definition at line 24 of file BayesianBackgroundQCFlags.cc.
ufo::BayesianBackgroundQCFlags::~BayesianBackgroundQCFlags | ( | ) |
Definition at line 34 of file BayesianBackgroundQCFlags.cc.
|
overrideprivatevirtual |
Implements ufo::FilterBase.
Definition at line 118 of file BayesianBackgroundQCFlags.cc.
|
inlinestatic |
Definition at line 64 of file BayesianBackgroundQCFlags.h.
|
private |
Get the name of the variable whose PGE is tested in order to set the QC flags for the variable varname
. By default, varname
is returned by this routine; any substitutions are listed in the PGEsubstituteNames
parameter.
Definition at line 38 of file BayesianBackgroundQCFlags.cc.
|
overrideprivatevirtual |
Implements ufo::FilterBase.
Definition at line 129 of file BayesianBackgroundQCFlags.cc.
|
inlineoverrideprivatevirtual |
Implements ufo::FilterBase.
Definition at line 75 of file BayesianBackgroundQCFlags.h.
|
private |
Set flags for the variable varname
given the apply
vector. Set both integer bitmap flags and an overall filter flag (bayesianQC).
Definition at line 47 of file BayesianBackgroundQCFlags.cc.
|
private |
Parameters used in this filter.
Definition at line 90 of file BayesianBackgroundQCFlags.h.