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