UFO
ObsExampleTLAD.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 TOOLS_NEW_OBSOP_EXAMPLE_OBSEXAMPLETLAD_H_
9 #define TOOLS_NEW_OBSOP_EXAMPLE_OBSEXAMPLETLAD_H_
10 
11 #include <ostream>
12 #include <string>
13 
14 #include "oops/base/Variables.h"
15 #include "oops/util/ObjectCounter.h"
16 
17 #include "ufo/example/ObsExampleTLAD.interface.h"
19 
20 // Forward declarations
21 namespace eckit {
22  class Configuration;
23 }
24 
25 namespace ioda {
26  class ObsSpace;
27  class ObsVector;
28 }
29 
30 namespace ufo {
31  class GeoVaLs;
32  class ObsBias;
33 
34 // -----------------------------------------------------------------------------
35 /// Example TL/AD observation operator class
37  private util::ObjectCounter<ObsExampleTLAD> {
38  public:
39  static const std::string classname() {return "ufo::ObsExampleTLAD";}
40 
41  ObsExampleTLAD(const ioda::ObsSpace &, const eckit::Configuration &);
42  virtual ~ObsExampleTLAD();
43 
44  // Obs Operators
45  void setTrajectory(const GeoVaLs &, const ObsBias &, ObsDiagnostics &) override;
46  void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override;
47  void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override;
48 
49  // Other
50  const oops::Variables & requiredVars() const override {return varin_;}
51 
52  int & toFortran() {return keyOper_;}
53  const int & toFortran() const {return keyOper_;}
54 
55  private:
56  void print(std::ostream &) const override;
58  const ioda::ObsSpace& odb_;
59  oops::Variables varin_;
60 };
61 
62 // -----------------------------------------------------------------------------
63 
64 } // namespace ufo
65 #endif // TOOLS_NEW_OBSOP_EXAMPLE_OBSEXAMPLETLAD_H_
ufo::ObsExampleTLAD::setTrajectory
void setTrajectory(const GeoVaLs &, const ObsBias &, ObsDiagnostics &) override
Obs Operator.
Definition: ObsExampleTLAD.cc:43
ufo::ObsExampleTLAD::print
void print(std::ostream &) const override
Definition: ObsExampleTLAD.cc:67
ufo::ObsExampleTLAD::varin_
oops::Variables varin_
Definition: ObsExampleTLAD.h:59
ufo::ObsExampleTLAD::requiredVars
const oops::Variables & requiredVars() const override
Operator input required from Model.
Definition: ObsExampleTLAD.h:50
LinearObsOperatorBase.h
ioda
Definition: ObsAtmSfcInterp.h:24
ufo
Definition: RunCRTM.h:27
ufo::F90hop
int F90hop
Definition: Fortran.h:18
ufo::ObsExampleTLAD::~ObsExampleTLAD
virtual ~ObsExampleTLAD()
Definition: ObsExampleTLAD.cc:36
ufo::ObsBias
Class to handle observation bias parameters.
Definition: ObsBias.h:44
eckit
Forward declarations.
Definition: ObsAtmSfcInterp.h:20
ufo::ObsExampleTLAD::toFortran
int & toFortran()
Definition: ObsExampleTLAD.h:52
ufo::ObsDiagnostics
Definition: src/ufo/ObsDiagnostics.h:35
ufo::ObsExampleTLAD::toFortran
const int & toFortran() const
Definition: ObsExampleTLAD.h:53
ufo::ObsExampleTLAD::simulateObsTL
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override
Definition: ObsExampleTLAD.cc:51
ufo::ObsExampleTLAD::keyOper_
F90hop keyOper_
Definition: ObsExampleTLAD.h:57
ufo::GeoVaLs
GeoVaLs: geophysical values at locations.
Definition: src/ufo/GeoVaLs.h:39
ufo::ObsExampleTLAD::simulateObsAD
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override
Definition: ObsExampleTLAD.cc:59
ufo::ObsExampleTLAD::odb_
const ioda::ObsSpace & odb_
Definition: ObsExampleTLAD.h:58
ufo::ObsExampleTLAD::classname
static const std::string classname()
Definition: ObsExampleTLAD.h:39
ufo::ObsExampleTLAD::ObsExampleTLAD
ObsExampleTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsExampleTLAD.cc:26
ufo::LinearObsOperatorBase
Base class for observation operators.
Definition: LinearObsOperatorBase.h:35
ufo::ObsExampleTLAD
Example TL/AD observation operator class.
Definition: ObsExampleTLAD.h:37