FV3 Bundle
ObsOperatorQG.cc
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 #include "model/ObsOperatorQG.h"
12 
13 #include "eckit/config/Configuration.h"
14 #include "model/GomQG.h"
15 #include "model/ObsBias.h"
16 #include "model/ObsOpBaseQG.h"
17 #include "model/ObsSpaceQG.h"
18 #include "model/ObsVecQG.h"
19 #include "oops/base/Variables.h"
20 
21 namespace qg {
22 
23 // -----------------------------------------------------------------------------
24 
25 ObsOperatorQG::ObsOperatorQG(const ObsSpaceQG & os, const eckit::Configuration & conf)
26  : oper_(ObsOpFactory::create(os, conf))
27 {}
28 
29 // -----------------------------------------------------------------------------
30 
32 
33 // -----------------------------------------------------------------------------
34 
35 void ObsOperatorQG::simulateObs(const GomQG & gvals, ObsVecQG & yy, const ObsBias & bias) const {
36  oper_->simulateObs(gvals, yy, bias);
37 }
38 
39 // -----------------------------------------------------------------------------
40 
42  return oper_->variables();
43 }
44 
45 // -----------------------------------------------------------------------------
46 
47 void ObsOperatorQG::print(std::ostream & os) const {
48  os << *oper_;
49 }
50 
51 // -----------------------------------------------------------------------------
52 
53 } // namespace qg
GomQG class to handle local model values for QG model.
Definition: GomQG.h:31
boost::scoped_ptr< ObsOpBaseQG > oper_
Definition: ObsOperatorQG.h:53
Definition: conf.py:1
subroutine, public create(self, c_conf)
Obs Operator Factory.
Definition: ObsOpBaseQG.h:49
const oops::Variables & variables() const
Other.
ObsOperatorQG(const ObsSpaceQG &, const eckit::Configuration &)
Class to handle observation bias parameters.
void simulateObs(const GomQG &, ObsVecQG &, const ObsBias &) const
Obs Operator.
void print(std::ostream &) const
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
The namespace for the qg model.