UFO
ObsAvgKernelTLAD.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2017-2020 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_AVGKERNEL_OBSAVGKERNELTLAD_H_
9 #define UFO_AVGKERNEL_OBSAVGKERNELTLAD_H_
10 
11 #include <ostream>
12 #include <string>
13 
14 #include "oops/base/Variables.h"
15 #include "oops/util/ObjectCounter.h"
18 
19 // Forward declarations
20 namespace eckit {
21  class Configuration;
22 }
23 
24 namespace ioda {
25  class ObsSpace;
26  class ObsVector;
27 }
28 
29 namespace ufo {
30  class GeoVaLs;
31 
32 // -----------------------------------------------------------------------------
33 /// AvgKernel TL/AD observation operator class
35  private util::ObjectCounter<ObsAvgKernelTLAD> {
36  public:
37  static const std::string classname() {return "ufo::ObsAvgKernelTLAD";}
38 
39  ObsAvgKernelTLAD(const ioda::ObsSpace &, const eckit::Configuration &);
40  virtual ~ObsAvgKernelTLAD();
41 
42  // Obs Operators
43  void setTrajectory(const GeoVaLs &, ObsDiagnostics &) override;
44  void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override;
45  void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override;
46 
47  // Other
48  const oops::Variables & requiredVars() const override {return varin_;}
49 
50  int & toFortran() {return keyOperAvgKernel_;}
51  const int & toFortran() const {return keyOperAvgKernel_;}
52 
53  private:
54  void print(std::ostream &) const override;
56  oops::Variables varin_;
57 };
58 
59 // -----------------------------------------------------------------------------
60 
61 } // namespace ufo
62 #endif // UFO_AVGKERNEL_OBSAVGKERNELTLAD_H_
GeoVaLs: geophysical values at locations.
AvgKernel TL/AD observation operator class.
static const std::string classname()
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override
void print(std::ostream &) const override
const oops::Variables & requiredVars() const override
Operator input required from Model.
ObsAvgKernelTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override
oops::Variables varin_
const int & toFortran() const
void setTrajectory(const GeoVaLs &, ObsDiagnostics &) override
Obs Operator.
Forward declarations.
Definition: ObsAodExt.h:21
Forward declarations.
Definition: ObsAodExt.h:25
Definition: RunCRTM.h:27
int F90hop
Definition: Fortran.h:18