UFO
ObsAtmSfcInterp.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_ATMSFCINTERP_OBSATMSFCINTERP_H_
9 #define UFO_ATMSFCINTERP_OBSATMSFCINTERP_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 ObsBias;
32  class ObsDiagnostics;
33 
34 // -----------------------------------------------------------------------------
35 /// AtmSfcInterp observation operator class
37  private util::ObjectCounter<ObsAtmSfcInterp> {
38  public:
39  static const std::string classname() {return "ufo::ObsAtmSfcInterp";}
40 
41  ObsAtmSfcInterp(const ioda::ObsSpace &, const eckit::Configuration &);
42  virtual ~ObsAtmSfcInterp();
43 
44 // Obs Operator
45  void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override;
46 
47 // Other
48  const oops::Variables & requiredVars() const override {return varin_;}
49 
50  int & toFortran() {return keyOperAtmSfcInterp_;}
51  const int & toFortran() const {return keyOperAtmSfcInterp_;}
52 
53  private:
54  void print(std::ostream &) const override;
56  const ioda::ObsSpace& odb_;
57  oops::Variables varin_;
58 };
59 
60 // -----------------------------------------------------------------------------
61 
62 } // namespace ufo
63 #endif // UFO_ATMSFCINTERP_OBSATMSFCINTERP_H_
ufo::ObsAtmSfcInterp::ObsAtmSfcInterp
ObsAtmSfcInterp(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsAtmSfcInterp.cc:25
ufo::ObsAtmSfcInterp::varin_
oops::Variables varin_
Definition: ObsAtmSfcInterp.h:57
ufo::ObsAtmSfcInterp::~ObsAtmSfcInterp
virtual ~ObsAtmSfcInterp()
Definition: ObsAtmSfcInterp.cc:36
ufo::ObsAtmSfcInterp::simulateObs
void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override
Obs Operator.
Definition: ObsAtmSfcInterp.cc:43
ufo::ObsAtmSfcInterp::print
void print(std::ostream &) const override
Definition: ObsAtmSfcInterp.cc:52
ufo::ObsAtmSfcInterp::keyOperAtmSfcInterp_
F90hop keyOperAtmSfcInterp_
Definition: ObsAtmSfcInterp.h:55
ufo::ObsAtmSfcInterp::requiredVars
const oops::Variables & requiredVars() const override
Operator input required from Model.
Definition: ObsAtmSfcInterp.h:48
ioda
Definition: ObsAtmSfcInterp.h:24
ufo
Definition: RunCRTM.h:27
ufo::F90hop
int F90hop
Definition: Fortran.h:18
ufo::ObsAtmSfcInterp
AtmSfcInterp observation operator class.
Definition: ObsAtmSfcInterp.h:37
ObsOperatorBase.h
ufo::ObsOperatorBase
Base class for observation operators.
Definition: ObsOperatorBase.h:37
eckit
Forward declarations.
Definition: ObsAtmSfcInterp.h:20
ufo::ObsDiagnostics
Definition: src/ufo/ObsDiagnostics.h:35
ufo::ObsAtmSfcInterp::toFortran
int & toFortran()
Definition: ObsAtmSfcInterp.h:50
ufo::GeoVaLs
GeoVaLs: geophysical values at locations.
Definition: src/ufo/GeoVaLs.h:39
ufo::ObsAtmSfcInterp::classname
static const std::string classname()
Definition: ObsAtmSfcInterp.h:39
ObsAtmSfcInterp.interface.h
ufo::ObsAtmSfcInterp::odb_
const ioda::ObsSpace & odb_
Definition: ObsAtmSfcInterp.h:56
ufo::ObsAtmSfcInterp::toFortran
const int & toFortran() const
Definition: ObsAtmSfcInterp.h:51