OOPS
ObsStreamQG.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_OBSSTREAMQG_H_
12 #define QG_MODEL_OBSSTREAMQG_H_
13 
14 #include <memory>
15 #include <ostream>
16 #include <string>
17 
18 #include "oops/base/Variables.h"
19 #include "oops/util/ObjectCounter.h"
20 
21 #include "oops/qg/ObsOpBaseQG.h"
22 #include "oops/qg/ObsSpaceQG.h"
23 #include "oops/qg/QgTraits.h"
24 
25 // Forward declarations
26 namespace eckit {
27  class Configuration;
28 }
29 
30 namespace qg {
31  class GomQG;
32  class ObsBias;
33  class ObsVecQG;
34 
35 // -----------------------------------------------------------------------------
36 /// Streamfunction observation for QG model.
37 
38 class ObsStreamQG : public ObsOpBaseQG,
39  private util::ObjectCounter<ObsStreamQG> {
40  public:
41  static const std::string classname() {return "qg::ObsStreamQG";}
42 
43  ObsStreamQG(const ObsSpaceQG &, const eckit::Configuration &);
44 
45 // Obs Operator
46  void simulateObs(const GomQG &, ObsVecQG &, const ObsBias &) const override;
47 
48 // Other
49  const oops::Variables & requiredVars() const override {return varin_;}
50  std::unique_ptr<LocationsQG> locations(const util::DateTime &,
51  const util::DateTime &) const override;
52 
53  private:
54  void print(std::ostream &) const override;
55  const ObsSpaceQG & obsdb_;
57 };
58 // -----------------------------------------------------------------------------
59 
60 } // namespace qg
61 #endif // QG_MODEL_OBSSTREAMQG_H_
qg
The namespace for the qg model.
Definition: qg/model/AnalyticInit.cc:13
qg::ObsStreamQG::obsdb_
const ObsSpaceQG & obsdb_
Definition: ObsStreamQG.h:55
qg::ObsBias
Class to handle observation bias parameters.
Definition: qg/model/ObsBias.h:37
qg::ObsStreamQG::requiredVars
const oops::Variables & requiredVars() const override
Other.
Definition: ObsStreamQG.h:49
qg::ObsSpaceQG
ObsSpace for QG model.
Definition: ObsSpaceQG.h:44
qg::ObsStreamQG::varin_
const oops::Variables varin_
Definition: ObsStreamQG.h:56
eckit
Definition: FieldL95.h:22
qg::GomQG
GomQG class to handle local model values for QG model.
Definition: GomQG.h:33
qg::ObsOpBaseQG
Base class for observation operators.
Definition: ObsOpBaseQG.h:36
qg::ObsStreamQG::classname
static const std::string classname()
Definition: ObsStreamQG.h:41
qg::ObsVecQG
ObsVecQG class to handle vectors in observation space for QG model.
Definition: ObsVecQG.h:34
qg::ObsStreamQG::simulateObs
void simulateObs(const GomQG &, ObsVecQG &, const ObsBias &) const override
Obs Operator.
Definition: ObsStreamQG.cc:37
qg::ObsStreamQG::print
void print(std::ostream &) const override
Definition: ObsStreamQG.cc:51
qg::ObsStreamQG::locations
std::unique_ptr< LocationsQG > locations(const util::DateTime &, const util::DateTime &) const override
Definition: ObsStreamQG.cc:44
oops::Variables
Definition: oops/base/Variables.h:23
qg::ObsStreamQG
Streamfunction observation for QG model.
Definition: ObsStreamQG.h:39
Variables.h
qg::ObsStreamQG::ObsStreamQG
ObsStreamQG(const ObsSpaceQG &, const eckit::Configuration &)
Definition: ObsStreamQG.cc:29