FV3 Bundle
ObsAod.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_OBSAOD_H_
9 #define UFO_CONSTITUENTS_AOD_OBSAOD_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/Logger.h"
18 #include "oops/util/ObjectCounter.h"
20 #include "ufo/ObsOperatorBase.h"
21 
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 
35 // -----------------------------------------------------------------------------
36 /// Aod observation for UFO.
37 class ObsAod : public ObsOperatorBase,
38  private util::ObjectCounter<ObsAod> {
39  public:
40  static const std::string classname() {return "ufo::ObsAod";}
41 
42  ObsAod(const ioda::ObsSpace &, const eckit::Configuration &);
43  virtual ~ObsAod();
44 
45 // Obs Operator
46  void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const;
47 
48 // Other
49  const oops::Variables & variables() const {return *varin_;}
50 
51  int & toFortran() {return keyOperAod_;}
52  const int & toFortran() const {return keyOperAod_;}
53 
54  private:
55  void print(std::ostream &) const;
58  boost::scoped_ptr<const oops::Variables> varin_;
59 };
60 
61 // -----------------------------------------------------------------------------
62 
63 } // namespace ufo
64 #endif // UFO_CONSTITUENTS_AOD_OBSAOD_H_
ObsVector class to handle vectors in observation space for IODA.
const oops::Variables & variables() const
Operator input required from Model.
Definition: ObsAod.h:49
void print(std::ostream &) const
Definition: ObsAod.cc:57
static const std::string classname()
Definition: ObsAod.h:40
Base class for observation operators.
virtual ~ObsAod()
Definition: ObsAod.cc:42
F90hop keyOperAod_
Definition: ObsAod.h:56
Wrapper around ObsHelpQG, mostly to hide the factory.
ObsAod(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsAod.cc:27
GeoVaLs: geophysical values at locations.
const ioda::ObsSpace & odb_
Definition: ObsAod.h:57
const int & toFortran() const
Definition: ObsAod.h:52
Class to handle observation bias parameters.
int & toFortran()
Definition: ObsAod.h:51
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
Definition: ObsAod.cc:49
Aod observation for UFO.
Definition: ObsAod.h:37
boost::scoped_ptr< const oops::Variables > varin_
Definition: ObsAod.h:58