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