FV3 Bundle
ObsStericHeight.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_OBSSTERICHEIGHT_H_
9 #define UFO_MARINE_STERICHEIGHT_OBSSTERICHEIGHT_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 
20 #include "ufo/ObsOperatorBase.h"
21 
22 // Forward declarations
23 namespace eckit {
24  class Configuration;
25 }
26 
27 namespace ioda {
28  class ObsVector;
29  class ObsSpace;
30 }
31 
32 namespace ufo {
33  class GeoVaLs;
34  class ObsBias;
35 
36 // -----------------------------------------------------------------------------
37 /// Steric height/ sea-level observation for UFO.
39  private util::ObjectCounter<ObsStericHeight> {
40  public:
41  static const std::string classname() {return "ufo::ObsStericHeight";}
42 
43  ObsStericHeight(const ioda::ObsSpace &, const eckit::Configuration &);
44  virtual ~ObsStericHeight();
45 
46 // Obs Operator
47  void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const;
48 
49 // Other
50  const oops::Variables & variables() const {return *varin_;}
51 
52  int & toFortran() {return keyOperStericHeight_;}
53  const int & toFortran() const {return keyOperStericHeight_;}
54 
55  private:
56  void print(std::ostream &) const;
59  boost::scoped_ptr<const oops::Variables> varin_;
60 };
61 
62 // -----------------------------------------------------------------------------
63 
64 } // namespace ufo
65 #endif // UFO_MARINE_STERICHEIGHT_OBSSTERICHEIGHT_H_
ObsVector class to handle vectors in observation space for IODA.
const int & toFortran() const
Base class for observation operators.
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
Wrapper around ObsHelpQG, mostly to hide the factory.
GeoVaLs: geophysical values at locations.
static const std::string classname()
const ioda::ObsSpace & odb_
ObsStericHeight(const ioda::ObsSpace &, const eckit::Configuration &)
Steric height/ sea-level observation for UFO.
boost::scoped_ptr< const oops::Variables > varin_
void print(std::ostream &) const
const oops::Variables & variables() const
Operator input required from Model.
Class to handle observation bias parameters.