UFO
ProfileCheckHistory.cc
Go to the documentation of this file.
1
/*
2
* (C) Crown copyright 2020, Met Office
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
#include "
ufo/profile/ProfileCheckHistory.h
"
9
10
namespace
ufo
{
11
12
static
ProfileCheckMaker<ProfileCheckHistory>
13
makerProfileCheckHistory_
(
"History"
);
14
15
ProfileCheckHistory::ProfileCheckHistory
16
(
const
ConventionalProfileProcessingParameters
&options)
17
:
ProfileCheckBase
(options)
18
{}
19
20
void
ProfileCheckHistory::runCheck
(
ProfileDataHandler
&profileDataHandler)
21
{
22
oops::Log::debug
() <<
" History check"
<< std::endl;
23
24
const
size_t
nprofs = profileDataHandler.
getObsdb
().nrecs();
25
26
// Vector of profiles containing data for the history check.
27
std::vector <ProfileDataHistory> profiles;
28
for
(
size_t
jprof = 0; jprof < nprofs; ++jprof) {
29
profileDataHandler.
initialiseNextProfile
();
30
ProfileDataHistory
profile
(profileDataHandler);
31
profile
.fill();
32
profiles.emplace_back(
profile
);
33
}
34
35
// todo: this is how to access data within individual profiles
36
/*
37
for (auto &profile : profiles) {
38
const std::vector<float> &U = profile.get<float>(ufo::VariableNames::obs_eastward_wind);
39
}
40
*/
41
}
42
}
// namespace ufo
ProfileCheckHistory.h
ufo::ConventionalProfileProcessingParameters
Options controlling the operation of the ConventionalProfileProcessing filter.
Definition:
ConventionalProfileProcessingParameters.h:36
ufo::ProfileCheckBase
Profile QC checker base class.
Definition:
ProfileCheckBase.h:38
ufo::ProfileCheckHistory::ProfileCheckHistory
ProfileCheckHistory(const ConventionalProfileProcessingParameters &options)
Definition:
ProfileCheckHistory.cc:16
ufo::ProfileCheckHistory::runCheck
void runCheck(ProfileDataHandler &profileDataHandler) override
Run check.
Definition:
ProfileCheckHistory.cc:20
ufo::ProfileDataHandler
Retrieve and store data for individual profiles. To do this, first the vector of values in the entire...
Definition:
ProfileDataHandler.h:50
ufo::ProfileDataHandler::initialiseNextProfile
void initialiseNextProfile()
Definition:
ProfileDataHandler.cc:43
ufo::ProfileDataHandler::getObsdb
ioda::ObsSpace & getObsdb()
Return obsdb.
Definition:
ProfileDataHandler.h:148
ufo::QCflags::profile
constexpr int profile
Definition:
QCflags.h:34
ufo_radiancerttov_utils_mod::debug
logical, public debug
Definition:
ufo_radiancerttov_utils_mod.F90:121
ufo
Definition:
RunCRTM.h:27
ufo::makerProfileCheckHistory_
static ProfileCheckMaker< ProfileCheckHistory > makerProfileCheckHistory_("History")
mpas-bundle
ufo
src
ufo
profile
ProfileCheckHistory.cc
Generated on Wed Sep 8 2021 16:37:37 for UFO by
1.9.1