FV3 Bundle
ObsWSpeedTLAD.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_OBSWSPEEDTLAD_H_
12 #define QG_MODEL_OBSWSPEEDTLAD_H_
13 
14 #include <string>
15 
16 #include <boost/shared_ptr.hpp>
17 
18 #include "model/GomQG.h"
19 #include "model/ObsOpBaseTLAD.h"
20 #include "oops/base/Variables.h"
21 #include "oops/util/ObjectCounter.h"
22 
23 // Forward declarations
24 namespace eckit {
25  class Configuration;
26 }
27 
28 namespace qg {
29  class ObsBias;
30  class ObsBiasIncrement;
31  class ObsSpaceQG;
32  class ObsVecQG;
33 
34 // -----------------------------------------------------------------------------
35 /// Wind speed TL/AD observation operator for QG model.
36 
38  private util::ObjectCounter<ObsWSpeedTLAD> {
39  public:
40  static const std::string classname() {return "qg::ObsWSpeedTLAD";}
41 
42  ObsWSpeedTLAD(const ObsSpaceQG &, const eckit::Configuration &);
43  virtual ~ObsWSpeedTLAD();
44 
45 // Obs Operators
46  void setTrajectory(const GomQG &, const ObsBias &) override;
47  void simulateObsTL(const GomQG &, ObsVecQG &, const ObsBiasIncrement &) const override;
48  void simulateObsAD(GomQG &, const ObsVecQG &, ObsBiasIncrement &) const override;
49 
50 // Other
51  const oops::Variables & variables() const override {return varin_;}
52 
53  int & toFortran() {return keyOperWspeed_;}
54  const int & toFortran() const {return keyOperWspeed_;}
55 
56  private:
57  void print(std::ostream &) const override;
61 };
62 // -----------------------------------------------------------------------------
63 
64 } // namespace qg
65 #endif // QG_MODEL_OBSWSPEEDTLAD_H_
static const std::string classname()
Definition: ObsWSpeedTLAD.h:40
GomQG class to handle local model values for QG model.
Definition: GomQG.h:31
const oops::Variables varin_
Definition: ObsWSpeedTLAD.h:60
ObsWSpeedTLAD(const ObsSpaceQG &, const eckit::Configuration &)
virtual ~ObsWSpeedTLAD()
void print(std::ostream &) const override
Base class for observation operators.
Definition: ObsOpBaseTLAD.h:32
void simulateObsTL(const GomQG &, ObsVecQG &, const ObsBiasIncrement &) const override
Wind speed TL/AD observation operator for QG model.
Definition: ObsWSpeedTLAD.h:37
const oops::Variables & variables() const override
Other.
Definition: ObsWSpeedTLAD.h:51
Class to handle observation bias parameters.
int F90hop
Definition: QgFortran.h:48
void setTrajectory(const GomQG &, const ObsBias &) override
Obs Operator.
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
void simulateObsAD(GomQG &, const ObsVecQG &, ObsBiasIncrement &) const override
const int & toFortran() const
Definition: ObsWSpeedTLAD.h:54
The namespace for the qg model.