UFO
ObsProfileAverageTLAD.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2021 UK 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_PROFILE_OBSPROFILEAVERAGETLAD_H_
9 #define UFO_PROFILE_OBSPROFILEAVERAGETLAD_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 
20 
23 
24 /// Forward declarations
25 namespace eckit {
26  class Configuration;
27 }
28 
29 namespace ioda {
30  class ObsSpace;
31  class ObsVector;
32 }
33 
34 namespace ufo {
35  class GeoVaLs;
36  class ObsDiagnostics;
37 
38 /// \brief TL/AD code for the ProfileAverage observation operator.
40  private util::ObjectCounter<ObsProfileAverageTLAD> {
41  public:
42  static const std::string classname() {return "ufo::ObsProfileAverageTLAD";}
43 
44  ObsProfileAverageTLAD(const ioda::ObsSpace &, const eckit::Configuration &);
45  virtual ~ObsProfileAverageTLAD();
46 
47  void setTrajectory(const GeoVaLs &, ObsDiagnostics &) override;
48  void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override;
49  void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override;
50 
51  const oops::Variables & requiredVars() const override { return data_.requiredVars(); }
52 
53  oops::Variables simulatedVars() const override { return data_.simulatedVars(); }
54 
55  private:
56  void print(std::ostream &) const override;
57 
58  private:
59  /// ObsSpace.
60  const ioda::ObsSpace& odb_;
61 
62  /// Data handler for the ProfileAverage operator and TL/AD code.
64 };
65 
66 // -----------------------------------------------------------------------------
67 
68 } // namespace ufo
69 #endif // UFO_PROFILE_OBSPROFILEAVERAGETLAD_H_
GeoVaLs: geophysical values at locations.
Data handling class for the ProfileAverage observation operator and TL/AD code.
const oops::Variables & requiredVars() const
Return required variables for the operator.
const oops::Variables & simulatedVars() const
Return simulated variables for the operator.
TL/AD code for the ProfileAverage observation operator.
ObsProfileAverageData data_
Data handler for the ProfileAverage operator and TL/AD code.
oops::Variables simulatedVars() const override
List of variables simulated by this operator.
void setTrajectory(const GeoVaLs &, ObsDiagnostics &) override
Obs Operator.
ObsProfileAverageTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
void print(std::ostream &) const override
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override
const oops::Variables & requiredVars() const override
Operator input required from Model.
const ioda::ObsSpace & odb_
ObsSpace.
static const std::string classname()
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override
Forward declarations.
Definition: ObsAodExt.h:21
Forward declarations.
Definition: ObsAodExt.h:25
Definition: RunCRTM.h:27