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  oops::Variables simulatedVars() const override {return operatorVars_;}
51 
52  int & toFortran() {return keyOperAtmSfcInterp_;}
53  const int & toFortran() const {return keyOperAtmSfcInterp_;}
54 
55  private:
56  void print(std::ostream &) const override;
58  const ioda::ObsSpace& odb_;
59  oops::Variables varin_;
60  oops::Variables operatorVars_;
61 };
62 
63 // -----------------------------------------------------------------------------
64 
65 } // namespace ufo
66 #endif // UFO_ATMSFCINTERP_OBSATMSFCINTERP_H_
GeoVaLs: geophysical values at locations.
AtmSfcInterp observation operator class.
oops::Variables operatorVars_
oops::Variables varin_
const ioda::ObsSpace & odb_
const oops::Variables & requiredVars() const override
Operator input required from Model.
static const std::string classname()
void print(std::ostream &) const override
ObsAtmSfcInterp(const ioda::ObsSpace &, const eckit::Configuration &)
void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override
Obs Operator.
oops::Variables simulatedVars() const override
List of variables simulated by this operator.
const int & toFortran() const
Forward declarations.
Definition: ObsAodExt.h:21
Forward declarations.
Definition: ObsAodExt.h:25
Definition: RunCRTM.h:27
int F90hop
Definition: Fortran.h:18