12 static ProfileCheckMaker<ProfileCheckBackgroundTemperature>
26 const std::vector <float> &Latitude =
28 const std::vector <float> &pressures =
30 const std::vector <float> &tObs =
32 const std::vector <float> &tObsErr =
34 const std::vector <float> &tBkg =
36 const std::vector <float> &tBkgErr =
38 std::vector <float> &tPGE =
40 std::vector <float> &tPGEBd =
42 std::vector <int> &tFlags =
44 const std::vector <int> &timeFlags =
46 const std::vector <float> &tObsCorrection =
49 if (!oops::allVectorsSameNonZeroSize(Latitude, pressures,
50 tObs, tObsErr, tBkg, tBkgErr,
51 tPGE, tFlags, timeFlags, tObsCorrection)) {
52 oops::Log::warning() <<
"At least one vector is the wrong size. "
53 <<
"Check will not be performed." << std::endl;
54 oops::Log::warning() <<
"Vector sizes: "
55 << oops::listOfVectorSizes(Latitude, pressures,
56 tObs, tObsErr, tBkg, tBkgErr,
57 tPGE, tFlags, timeFlags, tObsCorrection)
62 std::vector <float> tObsFinal;
68 std::vector <float> BackgrErrT(numProfileLevels, 0);
69 for (
int jlev = 0; jlev < numProfileLevels; ++jlev) {
70 BackgrErrT[jlev] = tBkgErr[jlev];
78 for (
int jlev = 0; jlev < numProfileLevels; ++jlev) {
79 if (pressures[jlev] <= Psplit) {
92 for (
int jlev = 0; jlev < numProfileLevels; ++jlev) {
94 tPGE[jlev] = 0.5 + 0.5 * tPGE[jlev];
96 tPGE[jlev] = 0.5 + 0.5 * tPGE[jlev];
98 tPGE[jlev] = 0.5 + 0.5 * tPGE[jlev];
Options controlling the operation of the ConventionalProfileProcessing filter.
oops::Parameter< float > BkCheck_Psplit_extratropics
Pressure threshold above which extra representivity error occurs in extratropics (Pa).
oops::Parameter< float > BkCheck_Psplit_latitude_tropics
oops::Parameter< float > BkCheck_Psplit_tropics
Pressure threshold above which extra representivity error occurs in tropics (Pa).
oops::Parameter< float > BkCheck_ErrorInflationAbovePsplit
Error inflation factor above Psplit.
oops::Parameter< float > BkCheck_PdBad_t
Prior probability of 'bad' observations for T.
ProbabilityOfGrossErrorParameters PGEParameters
Parameters related to PGE calculations.
oops::Parameter< bool > modellevels
Have the observation and model values been averaged onto model levels?
oops::Parameter< float > BkCheck_ErrorInflationBelowPsplit
Error inflation factor below Psplit.
void runCheck(ProfileDataHandler &profileDataHandler) override
Run check.
ProfileCheckBackgroundTemperature(const ConventionalProfileProcessingParameters &options)
Profile QC checker base class.
const float missingValueFloat
Missing value (float)
const ConventionalProfileProcessingParameters & options_
Configurable parameters.
void correctVector(const std::vector< T > &v1, const std::vector< T > &v2, std::vector< T > &vout)
Apply correction to vector of values.
Retrieve and store data for individual profiles. To do this, first the vector of values in the entire...
std::vector< T > & get(const std::string &fullname)
int getNumProfileLevels() const
Return number of levels to which QC checks should be applied.
std::vector< float > & getObsDiag(const std::string &variableName)
Get ObsDiags for a particular profile.
@ InterpolationFlag
Interpolation check flag.
@ SuperadiabatFlag
Superadiabatic check flag.
@ HydrostaticFlag
Hydrostatic check flag.
@ PermRejectFlag
Blacklisted data.
void BayesianPGEUpdate(const ProbabilityOfGrossErrorParameters &options, const std::vector< float > &obsVal, const std::vector< float > &obsErr, const std::vector< float > &bkgVal, const std::vector< float > &bkgErr, const std::vector< float > &PdBad, const bool ModelLevels, std::vector< int > &flags, std::vector< float > &PGE, std::vector< float > &PGEBd, float ErrVarMax, const std::vector< float > *obsVal2, const std::vector< float > *bkgVal2)
Bayesian update of probability of gross error (PGE)
static ProfileCheckMaker< ProfileCheckBackgroundTemperature > makerProfileCheckBackgroundTemperature_("BackgroundTemperature")
static constexpr const char *const obserr_air_temperature
static constexpr const char *const hofx_air_temperature
static constexpr const char *const obs_air_temperature
static constexpr const char *const Latitude
static constexpr const char *const pge_air_temperature
static constexpr const char *const pgebd_air_temperature
static constexpr const char *const qcflags_time
static constexpr const char *const obs_air_pressure
static constexpr const char *const qcflags_air_temperature
static constexpr const char *const obscorrection_air_temperature
static constexpr const char *const bkgerr_air_temperature