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 
9 
10 namespace ufo {
11 
12  static ProfileCheckMaker<ProfileCheckHistory>
14 
17  : ProfileCheckBase(options)
18  {}
19 
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
Options controlling the operation of the ConventionalProfileProcessing filter.
Profile QC checker base class.
ProfileCheckHistory(const ConventionalProfileProcessingParameters &options)
void runCheck(ProfileDataHandler &profileDataHandler) override
Run check.
Retrieve and store data for individual profiles. To do this, first the vector of values in the entire...
ioda::ObsSpace & getObsdb()
Return obsdb.
constexpr int profile
Definition: QCflags.h:34
Definition: RunCRTM.h:27
static ProfileCheckMaker< ProfileCheckHistory > makerProfileCheckHistory_("History")