FV3 Bundle
ufo/src/ufo/ObsOperator.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_OBSOPERATOR_H_
9 #define UFO_OBSOPERATOR_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 ObsOperatorBase;
34 
35 // -----------------------------------------------------------------------------
36 
37 class ObsOperator : public util::Printable,
38  private boost::noncopyable {
39  public:
40  ObsOperator(const ioda::ObsSpace &, const eckit::Configuration &);
41  ~ObsOperator();
42 
43 /// Obs Operator
44  void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const;
45 
46 /// Operator input required from Model
47  const oops::Variables & variables() const;
48 
49  private:
50  void print(std::ostream &) const;
51  boost::scoped_ptr<ObsOperatorBase> oper_;
52 };
53 
54 // -----------------------------------------------------------------------------
55 
56 } // namespace ufo
57 
58 #endif // UFO_OBSOPERATOR_H_
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
Definition: ObsOperator.cc:32
ObsVector class to handle vectors in observation space for IODA.
ObsOperator(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsOperator.cc:22
void print(std::ostream &) const
Definition: ObsOperator.cc:45
Wrapper around ObsHelpQG, mostly to hide the factory.
The namespace for the main oops code.
GeoVaLs: geophysical values at locations.
const oops::Variables & variables() const
Operator input required from Model.
Definition: ObsOperator.cc:39
boost::scoped_ptr< ObsOperatorBase > oper_
Class to handle observation bias parameters.