UFO
src/ufo/LinearObsBiasOperator.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_LINEAROBSBIASOPERATOR_H_
9 #define UFO_LINEAROBSBIASOPERATOR_H_
10 
11 #include <vector>
12 
13 #include "oops/util/Printable.h"
14 
15 namespace ioda {
16  class ObsSpace;
17  class ObsVector;
18 }
19 
20 namespace ufo {
21  class GeoVaLs;
22  class ObsBias;
23  class ObsBiasIncrement;
24  class ObsDiagnostics;
25 
26 /// Tangent linear and adjoint of the linear combination bias correction operator
27 class LinearObsBiasOperator : public util::Printable {
28  public:
29  explicit LinearObsBiasOperator(ioda::ObsSpace &);
30 
31  /// Set trajectory (save predictors)
32  void setTrajectory(const GeoVaLs &, const ObsBias &, ObsDiagnostics &);
33  /// Compute TL of bias correction
34  void computeObsBiasTL(const GeoVaLs &, const ObsBiasIncrement &,
35  ioda::ObsVector &) const;
36  /// Compute adjoint of bias correction
38  const ioda::ObsVector &) const;
39 
40  private:
41  /// Print used for logging
42  void print(std::ostream &) const override;
43 
44  /// ObsSpace used for this bias correction
45  ioda::ObsSpace & odb_;
46 
47  /// predictors values; set in setTrajectory
48  std::vector<ioda::ObsVector> predData_;
49 };
50 
51 // -----------------------------------------------------------------------------
52 
53 } // namespace ufo
54 
55 #endif // UFO_LINEAROBSBIASOPERATOR_H_
GeoVaLs: geophysical values at locations.
Tangent linear and adjoint of the linear combination bias correction operator.
void computeObsBiasTL(const GeoVaLs &, const ObsBiasIncrement &, ioda::ObsVector &) const
Compute TL of bias correction.
LinearObsBiasOperator(ioda::ObsSpace &)
std::vector< ioda::ObsVector > predData_
predictors values; set in setTrajectory
ioda::ObsSpace & odb_
ObsSpace used for this bias correction.
void computeObsBiasAD(GeoVaLs &, ObsBiasIncrement &, const ioda::ObsVector &) const
Compute adjoint of bias correction.
void print(std::ostream &) const override
Print used for logging.
void setTrajectory(const GeoVaLs &, const ObsBias &, ObsDiagnostics &)
Set trajectory (save predictors)
Contains increments to bias correction coefficients.
Forward declarations.
Definition: ObsAodExt.h:25
Definition: RunCRTM.h:27