UFO
ObsBiasOperator.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2021 UCAR
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_OBSBIASOPERATOR_H_
9 #define UFO_OBSBIASOPERATOR_H_
10 
11 #include "oops/util/Printable.h"
12 
13 // forward declarations
14 
15 namespace ioda {
16  class ObsSpace;
17  class ObsVector;
18 }
19 
20 namespace ufo {
21  class GeoVaLs;
22  class ObsBias;
23  class ObsDiagnostics;
24 
25 /// \brief Application of bias correction.
26 /// \details Bias correction is computed as a linear combination of bias
27 /// predictors using bias correction coefficients, both specified in ObsBias class.
28 class ObsBiasOperator : public util::Printable {
29  public:
30  explicit ObsBiasOperator(ioda::ObsSpace &);
31 
32  /// Compute bias correction
33  void computeObsBias(const GeoVaLs &, ioda::ObsVector &, const ObsBias &, ObsDiagnostics &) const;
34 
35  private:
36  /// Print details (used for logging)
37  void print(std::ostream &) const override;
38 
39  /// ObsSpace used for computing predictors
40  ioda::ObsSpace & odb_;
41 };
42 
43 // -----------------------------------------------------------------------------
44 
45 } // namespace ufo
46 
47 #endif // UFO_OBSBIASOPERATOR_H_
GeoVaLs: geophysical values at locations.
Application of bias correction.
void print(std::ostream &) const override
Print details (used for logging)
void computeObsBias(const GeoVaLs &, ioda::ObsVector &, const ObsBias &, ObsDiagnostics &) const
Compute bias correction.
ObsBiasOperator(ioda::ObsSpace &)
ioda::ObsSpace & odb_
ObsSpace used for computing predictors.
Forward declarations.
Definition: ObsAodExt.h:25
Definition: RunCRTM.h:27