Go to the documentation of this file.
19 :
ProfileCheckBase(options, profileIndices, profileDataHandler, profileCheckValidator)
37 const std::vector <float> &pressures =
49 if (pressures.empty()) {
56 bool numLevelsToCheckOK = (numLevelsToCheck > 0);
59 bool pressOrderOK =
true;
60 for (
int jlev = 0; jlev < numLevelsToCheck - 1; ++jlev) {
61 pressOrderOK = pressOrderOK && (pressures[jlev] >= pressures[jlev + 1]);
62 if (!pressOrderOK)
break;
66 bool maxPressOK = (pressures.size() > 0 ?
71 bool minPressOK = (pressures.size() > 0 ?
75 oops::Log::debug() <<
" -> numLevelsToCheckOK: " << numLevelsToCheckOK << std::endl;
80 result_ = numLevelsToCheckOK && pressOrderOK && maxPressOK && minPressOK;
86 for (
int jlev = 0; jlev < numLevelsToCheck; ++jlev) {
void runCheck() override
Run check.
Retrieve and store data for individual profiles. To do this, first the vector of values in the entire...
ProfileCheckBasic(const ProfileConsistencyCheckParameters &options, const ProfileIndices &profileIndices, ProfileDataHandler &profileDataHandler, ProfileCheckValidator &profileCheckValidator)
const ProfileIndices & profileIndices_
Indices of profile's observations in the entire sample.
Determine indices of observations making up individual profiles. The indices are computed with respec...
oops::Parameter< bool > flagBasicChecksFail
Set flags for failed basic checks?
ProfileDataHandler & profileDataHandler_
Profile data handler.
int getNumLevelsToCheck() const
Return number of levels to which QC checks should be applied.
oops::Parameter< float > BChecks_maxValidP
Maximum value of pressure (Pa)
Profile QC check validator.
static constexpr const char *const qcflags_eastward_wind
static constexpr const char *const qcflags_geopotential_height
Profile QC checker base class.
const ProfileConsistencyCheckParameters & options_
Configurable parameters.
bool result_
Result of basic checks.
oops::Parameter< bool > BChecks_Skip
static constexpr const char *const obs_air_pressure
Options controlling the operation of the ProfileConsistencyChecks filter.
static ProfileCheckMaker< ProfileCheckBasic > makerProfileCheckBasic_("Basic")
static constexpr const char *const qcflags_air_temperature
@ FinalRejectFlag
Final QC flag.
std::vector< T > & get(const std::string &fullname)
oops::Parameter< float > BChecks_minValidP
Minimum value of pressure (Pa)