UFO
ObsCategoricalTLAD.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_CATEGORICALOPER_OBSCATEGORICALTLAD_H_
9 #define UFO_CATEGORICALOPER_OBSCATEGORICALTLAD_H_
10 
11 #include <map>
12 #include <memory>
13 #include <ostream>
14 #include <string>
15 #include <vector>
16 
17 #include "oops/base/Variables.h"
18 #include "oops/util/ObjectCounter.h"
19 
22 
23 // Forward declarations
24 namespace ioda {
25  class ObsSpace;
26  class ObsVector;
27 }
28 
29 namespace ufo {
30  class GeoVaLs;
31  class ObsDiagnostics;
32 
33 /// \brief Categorical observation operator TL/AD code.
34 /// Please refer to the Categorical observation operator for further documentation.
36  private util::ObjectCounter<ObsCategoricalTLAD> {
37  public:
38  /// The type of parameters accepted by the constructor of this operator.
39  /// This typedef is used by the LinearObsOperatorFactory.
41 
42  static const std::string classname() { return "ufo::ObsCategoricalTLAD"; }
43 
44  ObsCategoricalTLAD(const ioda::ObsSpace &, const Parameters_ &);
45  ~ObsCategoricalTLAD() override;
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  private:
54  void print(std::ostream &) const override;
55 
56  private:
57  /// ObsSpace.
58  const ioda::ObsSpace& odb_;
59 
60  /// Data handler for the Categorical operator and TL/AD code.
62 };
63 
64 // -----------------------------------------------------------------------------
65 
66 } // namespace ufo
67 #endif // UFO_CATEGORICALOPER_OBSCATEGORICALTLAD_H_
GeoVaLs: geophysical values at locations.
Data handler for the Categorical observation operator and TL/AD code.
Configuration options recognized by the Categorical operator.
Categorical observation operator TL/AD code. Please refer to the Categorical observation operator for...
ObsCategoricalTLAD(const ioda::ObsSpace &, const Parameters_ &)
void print(std::ostream &) const override
static const std::string classname()
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override
void setTrajectory(const GeoVaLs &, ObsDiagnostics &) override
Obs Operator.
const ioda::ObsSpace & odb_
ObsSpace.
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override
ObsCategoricalData< LinearObsOperatorBase > data_
Data handler for the Categorical operator and TL/AD code.
const oops::Variables & requiredVars() const override
Operator input required from Model.
ObsCategoricalParameters Parameters_
Forward declarations.
Definition: ObsAodExt.h:25
Definition: RunCRTM.h:27