FV3 Bundle
ObsStericHeightTLAD.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_MARINE_STERICHEIGHT_OBSSTERICHEIGHTTLAD_H_
9 #define UFO_MARINE_STERICHEIGHT_OBSSTERICHEIGHTTLAD_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"
18 
21 
22 // Forward declarations
23 namespace eckit {
24  class Configuration;
25 }
26 
27 namespace ioda {
28  class ObsSpace;
29  class ObsVector;
30 }
31 
32 namespace ufo {
33  class GeoVaLs;
34  class ObsBias;
35  class ObsBiasIncrement;
36 
37  // -----------------------------------------------------------------------------
38  /// Simulated Steric height for model.
40  private util::ObjectCounter<ObsStericHeightTLAD> {
41  public:
42  static const std::string classname() {return "ufo::ObsStericHeightTLAD";}
43 
44  ObsStericHeightTLAD(const ioda::ObsSpace &, const eckit::Configuration &);
45  virtual ~ObsStericHeightTLAD();
46 
47  // Obs Operators
48  void setTrajectory(const GeoVaLs &, const ObsBias &);
49  void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const;
50  void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const;
51 
52  // Other
53  const oops::Variables & variables() const {return *varin_;}
54  int & toFortran() {return keyOperStericHeight_;}
55  const int & toFortran() const {return keyOperStericHeight_;}
56  // const GeoVaLs * traj_;
57 
58  private:
59  void print(std::ostream &) const;
61  boost::scoped_ptr<const GeoVaLs> traj_;
62  boost::scoped_ptr<const oops::Variables> varin_;
63  };
64 
65  // -----------------------------------------------------------------------------
66 
67 } // namespace ufo
68 #endif // UFO_MARINE_STERICHEIGHT_OBSSTERICHEIGHTTLAD_H_
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const
Base class for observation operators.
ObsVector class to handle vectors in observation space for IODA.
void print(std::ostream &) const
Wrapper around ObsHelpQG, mostly to hide the factory.
const int & toFortran() const
GeoVaLs: geophysical values at locations.
void setTrajectory(const GeoVaLs &, const ObsBias &)
Obs Operator.
static const std::string classname()
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const
boost::scoped_ptr< const GeoVaLs > traj_
const oops::Variables & variables() const
Operator input required from Model.
ObsStericHeightTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
Class to handle observation bias parameters.
boost::scoped_ptr< const oops::Variables > varin_
Simulated Steric height for model.