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 
17 
18 namespace ufo {
19  class ConventionalProfileProcessingParameters;
20 }
21 
22 namespace ufo {
23 
24  /// \brief Profile QC: relative humidity check.
25  /// - Check for increasing dew-point at the top of cloud levels (cloud errors).
26  /// - Check for large humidity errors at the top of the profile (hi-lev errors).
27 
29  public:
31 
32  /// Run check
33  void runCheck(ProfileDataHandler &profileDataHandler) override;
34 
35  /// Fill variables in validator
36  void fillValidationData(ProfileDataHandler &profileDataHandler) override;
37 
38  private:
39  /// Observed pressure for selected levels (hPa)
40  std::vector <float> Press_;
41 
42  /// Observed temperature for selected levels (K)
43  std::vector <float> Temp_;
44 
45  /// Observed relative humidity for selected levels (%)
46  std::vector <float> rh_;
47 
48  /// Observed dew point temperature for selected levels (K)
49  std::vector <float> td_;
50 
51  /// Model temperature for selected levels (K)
52  std::vector <float> tbk_;
53 
54  /// Model relative humidity for selected levels (%)
55  std::vector <float> rhbk_;
56 
57  /// Flags for RH checks
58  std::vector <int> FlagH_;
59 
60  /// Indices of selected levels
61  std::vector <int> Indx_;
62  };
63 } // namespace ufo
64 
65 #endif // UFO_PROFILE_PROFILECHECKRH_H_
Options controlling the operation of the ConventionalProfileProcessing filter.
Profile QC checker base class.
Profile QC: relative humidity check.
std::vector< float > rh_
Observed relative humidity for selected levels (%)
std::vector< float > td_
Observed dew point temperature for selected levels (K)
void runCheck(ProfileDataHandler &profileDataHandler) override
Run check.
std::vector< float > Temp_
Observed temperature for selected levels (K)
ProfileCheckRH(const ConventionalProfileProcessingParameters &options)
std::vector< int > Indx_
Indices of selected levels.
std::vector< int > FlagH_
Flags for RH checks.
std::vector< float > rhbk_
Model relative humidity for selected levels (%)
std::vector< float > Press_
Observed pressure for selected levels (hPa)
void fillValidationData(ProfileDataHandler &profileDataHandler) override
Fill variables in validator.
std::vector< float > tbk_
Model temperature for selected levels (K)
Retrieve and store data for individual profiles. To do this, first the vector of values in the entire...
Definition: RunCRTM.h:27