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