UFO
ObsCompositeTLAD.h
Go to the documentation of this file.
1 /*
2  * (C) Crown copyright 2021, 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_COMPOSITEOPER_OBSCOMPOSITETLAD_H_
9 #define UFO_COMPOSITEOPER_OBSCOMPOSITETLAD_H_
10 
11 #include <memory>
12 #include <ostream>
13 #include <string>
14 #include <vector>
15 
16 #include "oops/base/Variables.h"
17 #include "oops/util/ObjectCounter.h"
18 
21 
22 // Forward declarations
23 namespace ioda {
24  class ObsSpace;
25  class ObsVector;
26 }
27 
28 namespace ufo {
29  class GeoVaLs;
30  class ObsDiagnostics;
31 
32 // -----------------------------------------------------------------------------
33 /// Composite TL/AD observation operator class
35  private util::ObjectCounter<ObsCompositeTLAD> {
36  public:
37  /// The type of parameters accepted by the constructor of this operator.
38  /// This typedef is used by the LinearObsOperatorFactory.
40 
41  static const std::string classname() { return "ufo::ObsCompositeTLAD"; }
42 
43  ObsCompositeTLAD(const ioda::ObsSpace &, const Parameters_ &);
44  ~ObsCompositeTLAD() override;
45 
46  void setTrajectory(const GeoVaLs &, ObsDiagnostics &) override;
47  void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override;
48  void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override;
49 
50  const oops::Variables & requiredVars() const override { return requiredVars_; }
51 
52  oops::Variables simulatedVars() const override;
53 
54  private:
55  void print(std::ostream &) const override;
56 
57  private:
58  std::vector<std::unique_ptr<LinearObsOperatorBase>> components_;
59  oops::Variables requiredVars_;
60 };
61 
62 // -----------------------------------------------------------------------------
63 
64 } // namespace ufo
65 #endif // UFO_COMPOSITEOPER_OBSCOMPOSITETLAD_H_
GeoVaLs: geophysical values at locations.
Configuration options recognized by the Composite operator.
Composite TL/AD observation operator class.
oops::Variables requiredVars_
ObsCompositeTLAD(const ioda::ObsSpace &, const Parameters_ &)
oops::Variables simulatedVars() const override
List of variables simulated by this operator.
const oops::Variables & requiredVars() const override
Operator input required from Model.
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override
ObsCompositeParameters Parameters_
std::vector< std::unique_ptr< LinearObsOperatorBase > > components_
static const std::string classname()
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override
void setTrajectory(const GeoVaLs &, ObsDiagnostics &) override
Obs Operator.
void print(std::ostream &) const override
Forward declarations.
Definition: ObsAodExt.h:25
Definition: RunCRTM.h:27