FV3 Bundle
ObsAodTLAD.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_CONSTITUENTS_AOD_OBSAODTLAD_H_
9 #define UFO_CONSTITUENTS_AOD_OBSAODTLAD_H_
10 
11 #include <ostream>
12 #include <string>
13 
14 #include <boost/scoped_ptr.hpp>
15 
16 #include "oops/base/Variables.h"
17 #include "oops/util/ObjectCounter.h"
20 
21 // Forward declarations
22 namespace eckit {
23  class Configuration;
24 }
25 
26 namespace ioda {
27  class ObsSpace;
28  class ObsVector;
29 }
30 
31 namespace ufo {
32  class GeoVaLs;
33  class ObsBias;
34  class ObsBiasIncrement;
35 
36 // -----------------------------------------------------------------------------
37 /// Aod (currently only temperature) observation for UFO.
39  private util::ObjectCounter<ObsAodTLAD> {
40  public:
41  static const std::string classname() {return "ufo::ObsAodTLAD";}
42 
43  ObsAodTLAD(const ioda::ObsSpace &, const eckit::Configuration &);
44  virtual ~ObsAodTLAD();
45 
46  // Obs Operators
47  void setTrajectory(const GeoVaLs &, const ObsBias &);
48  void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const;
49  void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const;
50 
51  // Other
52  const oops::Variables & variables() const {return *varin_;}
53 
54  int & toFortran() {return keyOperAod_;}
55  const int & toFortran() const {return keyOperAod_;}
56 
57  private:
58  void print(std::ostream &) const;
61  boost::scoped_ptr<const oops::Variables> varin_;
62 };
63 
64 // -----------------------------------------------------------------------------
65 
66 } // namespace ufo
67 #endif // UFO_CONSTITUENTS_AOD_OBSAODTLAD_H_
Base class for observation operators.
ObsVector class to handle vectors in observation space for IODA.
boost::scoped_ptr< const oops::Variables > varin_
Definition: ObsAodTLAD.h:61
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const
Definition: ObsAodTLAD.cc:63
void print(std::ostream &) const
Definition: ObsAodTLAD.cc:71
Wrapper around ObsHelpQG, mostly to hide the factory.
GeoVaLs: geophysical values at locations.
void setTrajectory(const GeoVaLs &, const ObsBias &)
Obs Operator.
Definition: ObsAodTLAD.cc:49
const int & toFortran() const
Definition: ObsAodTLAD.h:55
static const std::string classname()
Definition: ObsAodTLAD.h:41
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const
Definition: ObsAodTLAD.cc:55
ObsAodTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsAodTLAD.cc:28
Aod (currently only temperature) observation for UFO.
Definition: ObsAodTLAD.h:38
Class to handle observation bias parameters.
F90hop keyOperAod_
Definition: ObsAodTLAD.h:59
virtual ~ObsAodTLAD()
Definition: ObsAodTLAD.cc:43
int & toFortran()
Definition: ObsAodTLAD.h:54
const oops::Variables & variables() const
Operator input required from Model.
Definition: ObsAodTLAD.h:52
const ioda::ObsSpace & odb_
Definition: ObsAodTLAD.h:60