FV3 Bundle
ObsGnssroRef.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_ATMOSPHERE_GNSSRO_REFGSI_OBSGNSSROREF_H_
9 #define UFO_ATMOSPHERE_GNSSRO_REFGSI_OBSGNSSROREF_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"
19 #include "ufo/ObsOperatorBase.h"
20 
21 namespace eckit {
22  class Configuration;
23 }
24 
25 namespace ioda {
26  class ObsSpace;
27  class ObsVector;
28 }
29 
30 namespace ufo {
31  class GeoVaLs;
32  class ObsBias;
33 
34 // -----------------------------------------------------------------------------
35 
36 /// GnssroRef observation operator
38  private util::ObjectCounter<ObsGnssroRef> {
39  public:
40  static const std::string classname() {return "ufo::ObsGnssroRef";}
41 
42  ObsGnssroRef(const ioda::ObsSpace &, const eckit::Configuration &);
43  virtual ~ObsGnssroRef();
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 keyOperGnssroRef_;}
52  const int & toFortran() const {return keyOperGnssroRef_;}
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 
65 #endif // UFO_ATMOSPHERE_GNSSRO_REFGSI_OBSGNSSROREF_H_
const oops::Variables & variables() const
Operator input required from Model.
Definition: ObsGnssroRef.h:49
ObsVector class to handle vectors in observation space for IODA.
static const std::string classname()
Definition: ObsGnssroRef.h:40
const ioda::ObsSpace & odb_
Definition: ObsGnssroRef.h:57
Base class for observation operators.
F90hop keyOperGnssroRef_
Definition: ObsGnssroRef.h:56
Wrapper around ObsHelpQG, mostly to hide the factory.
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
Definition: ObsGnssroRef.cc:48
GeoVaLs: geophysical values at locations.
ObsGnssroRef(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsGnssroRef.cc:28
boost::scoped_ptr< const oops::Variables > varin_
Definition: ObsGnssroRef.h:58
const int & toFortran() const
Definition: ObsGnssroRef.h:52
void print(std::ostream &) const
Definition: ObsGnssroRef.cc:56
virtual ~ObsGnssroRef()
Definition: ObsGnssroRef.cc:41
Class to handle observation bias parameters.
GnssroRef observation operator.
Definition: ObsGnssroRef.h:37