FV3 Bundle
ObsWSpeedQG.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2009-2016 ECMWF.
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  * In applying this licence, ECMWF does not waive the privileges and immunities
7  * granted to it by virtue of its status as an intergovernmental organisation nor
8  * does it submit to any jurisdiction.
9  */
10 
11 #ifndef QG_MODEL_OBSWSPEEDQG_H_
12 #define QG_MODEL_OBSWSPEEDQG_H_
13 
14 #include <ostream>
15 #include <string>
16 
17 #include <boost/shared_ptr.hpp>
18 
19 #include "model/ObsOpBaseQG.h"
20 #include "model/ObsSpaceQG.h"
21 #include "model/QgTraits.h"
22 #include "oops/base/Variables.h"
23 #include "oops/util/ObjectCounter.h"
24 
25 // Forward declarations
26 namespace eckit {
27  class Configuration;
28 }
29 
30 namespace qg {
31  class GomQG;
32  class LocationsQG;
33  class ObsBias;
34  class ObsBiasIncrement;
35  class ObsVecQG;
36 
37 // -----------------------------------------------------------------------------
38 /// Wind speed observation for QG model.
39 
40 class ObsWSpeedQG : public ObsOpBaseQG,
41  private util::ObjectCounter<ObsWSpeedQG> {
42  public:
43  static const std::string classname() {return "qg::ObsWSpeedQG";}
44 
45  ObsWSpeedQG(const ObsSpaceQG &, const eckit::Configuration &);
46  virtual ~ObsWSpeedQG();
47 
48 // Obs Operator
49  void simulateObs(const GomQG &, ObsVecQG &, const ObsBias &) const;
50 
51 // Other
52  const oops::Variables & variables() const override {return varin_;}
53 
54  int & toFortran() {return keyOperWspeed_;}
55  const int & toFortran() const {return keyOperWspeed_;}
56 
57  private:
58  void print(std::ostream &) const;
61 };
62 // -----------------------------------------------------------------------------
63 
64 } // namespace qg
65 #endif // QG_MODEL_OBSWSPEEDQG_H_
GomQG class to handle local model values for QG model.
Definition: GomQG.h:31
const oops::Variables varin_
Definition: ObsWSpeedQG.h:60
Base class for observation operators.
Definition: ObsOpBaseQG.h:30
void simulateObs(const GomQG &, ObsVecQG &, const ObsBias &) const
Obs Operator.
Definition: ObsWSpeedQG.cc:47
Class to handle observation bias parameters.
static const std::string classname()
Definition: ObsWSpeedQG.h:43
const oops::Variables & variables() const override
Other.
Definition: ObsWSpeedQG.h:52
void print(std::ostream &) const
Definition: ObsWSpeedQG.cc:54
int F90hop
Definition: QgFortran.h:48
Wind speed observation for QG model.
Definition: ObsWSpeedQG.h:40
int & toFortran()
Definition: ObsWSpeedQG.h:54
ObsWSpeedQG(const ObsSpaceQG &, const eckit::Configuration &)
Definition: ObsWSpeedQG.cc:30
virtual ~ObsWSpeedQG()
Definition: ObsWSpeedQG.cc:40
ObsVecQG class to handle vectors in observation space for QG model.
Definition: ObsVecQG.h:27
Wrapper around ObsHelpQG, mostly to hide the factory.
Definition: ObsSpaceQG.h:35
F90hop keyOperWspeed_
Definition: ObsWSpeedQG.h:59
const int & toFortran() const
Definition: ObsWSpeedQG.h:55
The namespace for the qg model.