FV3 Bundle
ObsOperator.cc
Go to the documentation of this file.
1 /*
2  * (C) Copyright 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 #include "ufo/ObsOperator.h"
9 
10 #include "eckit/config/Configuration.h"
11 #include "ioda/ObsSpace.h"
12 #include "ioda/ObsVector.h"
13 #include "oops/base/Variables.h"
14 #include "ufo/GeoVaLs.h"
15 #include "ufo/ObsBias.h"
16 #include "ufo/ObsOperatorBase.h"
17 
18 namespace ufo {
19 
20 // -----------------------------------------------------------------------------
21 
22 ObsOperator::ObsOperator(const ioda::ObsSpace & os, const eckit::Configuration & conf)
23  : oper_(ObsOperatorFactory::create(os, conf))
24 {}
25 
26 // -----------------------------------------------------------------------------
27 
29 
30 // -----------------------------------------------------------------------------
31 
33  const ObsBias & bias) const {
34  oper_->simulateObs(gvals, yy, bias);
35 }
36 
37 // -----------------------------------------------------------------------------
38 
40  return oper_->variables();
41 }
42 
43 // -----------------------------------------------------------------------------
44 
45 void ObsOperator::print(std::ostream & os) const {
46  os << *oper_;
47 }
48 
49 // -----------------------------------------------------------------------------
50 
51 } // namespace ufo
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
Definition: ObsOperator.cc:32
ObsVector class to handle vectors in observation space for IODA.
ObsOperator(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsOperator.cc:22
void print(std::ostream &) const
Definition: ObsOperator.cc:45
Definition: conf.py:1
subroutine, public create(self, c_conf)
Wrapper around ObsHelpQG, mostly to hide the factory.
GeoVaLs: geophysical values at locations.
const oops::Variables & variables() const
Operator input required from Model.
Definition: ObsOperator.cc:39
boost::scoped_ptr< ObsOperatorBase > oper_
Class to handle observation bias parameters.
Obs Operator Factory.