FV3 Bundle
ufo/src/ufo/LinearObsOperator.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2018 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_LINEAROBSOPERATOR_H_
9 #define UFO_LINEAROBSOPERATOR_H_
10 
11 #include <boost/noncopyable.hpp>
12 #include <boost/scoped_ptr.hpp>
13 
14 #include "oops/util/Printable.h"
15 
16 // Forward declarations
17 namespace eckit {
18  class Configuration;
19 }
20 
21 namespace oops {
22  class Variables;
23 }
24 
25 namespace ioda {
26  class ObsSpace;
27  class ObsVector;
28 }
29 
30 namespace ufo {
31  class GeoVaLs;
32  class ObsBias;
33  class ObsBiasIncrement;
34  class LinearObsOperatorBase;
35 
36 // -----------------------------------------------------------------------------
37 
38 class LinearObsOperator : public util::Printable,
39  private boost::noncopyable {
40  public:
41  LinearObsOperator(const ioda::ObsSpace &, const eckit::Configuration &);
43 
44 /// Obs Operator
45  void setTrajectory(const GeoVaLs &, const ObsBias &);
46  void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const;
47  void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const;
48 
49 /// Operator input required from Model
50  const oops::Variables & variables() const;
51 
52  private:
53  void print(std::ostream &) const;
54  boost::scoped_ptr<LinearObsOperatorBase> oper_;
55 };
56 
57 // -----------------------------------------------------------------------------
58 
59 } // namespace ufo
60 
61 #endif // UFO_LINEAROBSOPERATOR_H_
const oops::Variables & variables() const
Operator input required from Model.
ObsVector class to handle vectors in observation space for IODA.
void print(std::ostream &) const
LinearObsOperator(const ioda::ObsSpace &, const eckit::Configuration &)
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const
Wrapper around ObsHelpQG, mostly to hide the factory.
The namespace for the main oops code.
GeoVaLs: geophysical values at locations.
boost::scoped_ptr< LinearObsOperatorBase > oper_
void setTrajectory(const GeoVaLs &, const ObsBias &)
Obs Operator.
Class to handle observation bias parameters.
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const