UFO
ProfileCheckRH.h
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 #ifndef UFO_PROFILE_PROFILECHECKRH_H_
9 #define UFO_PROFILE_PROFILECHECKRH_H_
10 
11 #include <algorithm>
12 #include <utility>
13 #include <vector>
14 
19 
20 namespace ufo {
21  class ProfileConsistencyCheckParameters;
22 }
23 
24 namespace ufo {
25 
26  /// \brief Profile QC: relative humidity check.
27  /// - Check for increasing dew-point at the top of cloud levels (cloud errors).
28  /// - Check for large humidity errors at the top of the profile (hi-lev errors).
29 
31  public:
33  const ProfileIndices &profileIndices,
34  ProfileDataHandler &profileDataHandler,
35  ProfileCheckValidator &profileCheckValidator);
36 
37  /// Run check
38  void runCheck() override;
39 
40  /// Fill variables in validator
41  void fillValidator() override;
42 
43  private:
44  /// Observed pressure for selected levels (hPa)
45  std::vector <float> Press_;
46 
47  /// Observed temperature for selected levels (K)
48  std::vector <float> Temp_;
49 
50  /// Observed relative humidity for selected levels (%)
51  std::vector <float> rh_;
52 
53  /// Observed dew point temperature for selected levels (K)
54  std::vector <float> td_;
55 
56  /// Model temperature for selected levels (K)
57  std::vector <float> tbk_;
58 
59  /// Model relative humidity for selected levels (%)
60  std::vector <float> rhbk_;
61 
62  /// Flags for RH checks
63  std::vector <int> FlagH_;
64 
65  /// Indices of selected levels
66  std::vector <int> Indx_;
67  };
68 } // namespace ufo
69 
70 #endif // UFO_PROFILE_PROFILECHECKRH_H_
ufo::ProfileCheckRH::rhbk_
std::vector< float > rhbk_
Model relative humidity for selected levels (%)
Definition: ProfileCheckRH.h:60
ufo::ProfileDataHandler
Retrieve and store data for individual profiles. To do this, first the vector of values in the entire...
Definition: ProfileDataHandler.h:40
ufo::ProfileIndices
Determine indices of observations making up individual profiles. The indices are computed with respec...
Definition: ProfileIndices.h:39
ufo::ProfileCheckRH::runCheck
void runCheck() override
Run check.
Definition: ProfileCheckRH.cc:23
ufo::ProfileCheckRH::tbk_
std::vector< float > tbk_
Model temperature for selected levels (K)
Definition: ProfileCheckRH.h:57
ufo::ProfileCheckValidator
Profile QC check validator.
Definition: ProfileCheckValidator.h:27
ProfileIndices.h
ufo::ProfileCheckRH
Profile QC: relative humidity check.
Definition: ProfileCheckRH.h:30
ufo::ProfileCheckRH::FlagH_
std::vector< int > FlagH_
Flags for RH checks.
Definition: ProfileCheckRH.h:63
ufo
Definition: RunCRTM.h:27
ufo::ProfileCheckRH::Press_
std::vector< float > Press_
Observed pressure for selected levels (hPa)
Definition: ProfileCheckRH.h:45
ufo::ProfileCheckBase
Profile QC checker base class.
Definition: ProfileCheckBase.h:40
ProfileDataHandler.h
ufo::ProfileCheckRH::fillValidator
void fillValidator() override
Fill variables in validator.
Definition: ProfileCheckRH.cc:193
ufo::ProfileConsistencyCheckParameters
Options controlling the operation of the ProfileConsistencyChecks filter.
Definition: ProfileConsistencyCheckParameters.h:33
ProfileCheckValidator.h
ufo::ProfileCheckRH::rh_
std::vector< float > rh_
Observed relative humidity for selected levels (%)
Definition: ProfileCheckRH.h:51
ProfileCheckBase.h
ufo::ProfileCheckRH::Temp_
std::vector< float > Temp_
Observed temperature for selected levels (K)
Definition: ProfileCheckRH.h:48
ufo::ProfileCheckRH::td_
std::vector< float > td_
Observed dew point temperature for selected levels (K)
Definition: ProfileCheckRH.h:54
ufo::ProfileCheckRH::Indx_
std::vector< int > Indx_
Indices of selected levels.
Definition: ProfileCheckRH.h:66
ufo::ProfileCheckRH::ProfileCheckRH
ProfileCheckRH(const ProfileConsistencyCheckParameters &options, const ProfileIndices &profileIndices, ProfileDataHandler &profileDataHandler, ProfileCheckValidator &profileCheckValidator)
Definition: ProfileCheckRH.cc:16