FV3 Bundle
ObsADT.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2017 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 #ifndef UFO_MARINE_ADT_OBSADT_H_
9 #define UFO_MARINE_ADT_OBSADT_H_
10 
11 #include <ostream>
12 #include <string>
13 
14 #include <boost/scoped_ptr.hpp>
15 
16 #include "eckit/config/Configuration.h"
17 
18 
19 #include "ioda/ObsSpace.h"
20 #include "ioda/ObsVector.h"
21 
22 #include "oops/base/Variables.h"
23 #include "oops/util/Logger.h"
24 #include "oops/util/ObjectCounter.h"
25 
26 #include "ufo/GeoVaLs.h"
28 #include "ufo/ObsBias.h"
29 #include "ufo/ObsOperatorBase.h"
30 
31 namespace ufo {
32 
33 // -----------------------------------------------------------------------------
34 /// adt observation for UFO.
35 class ObsADT : public ObsOperatorBase,
36  private util::ObjectCounter<ObsADT> {
37  public:
38  static const std::string classname() {return "ufo::ObsADT";}
39 
40  ObsADT(const ioda::ObsSpace &, const eckit::Configuration &);
41  virtual ~ObsADT();
42 
43 // Obs Operator
44  void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const;
45 
46 // Other
47  const oops::Variables & variables() const {return *varin_;}
48 
49  int & toFortran() {return keyOperADT_;}
50  const int & toFortran() const {return keyOperADT_;}
51 
52  private:
53  void print(std::ostream &) const;
56  boost::scoped_ptr<const oops::Variables> varin_;
57 };
58 
59 // -----------------------------------------------------------------------------
60 
61 } // namespace ufo
62 #endif // UFO_MARINE_ADT_OBSADT_H_
const oops::Variables & variables() const
Operator input required from Model.
Definition: ObsADT.h:47
int & toFortran()
Definition: ObsADT.h:49
ObsVector class to handle vectors in observation space for IODA.
virtual ~ObsADT()
Definition: ObsADT.cc:32
Base class for observation operators.
const int & toFortran() const
Definition: ObsADT.h:50
Wrapper around ObsHelpQG, mostly to hide the factory.
GeoVaLs: geophysical values at locations.
void print(std::ostream &) const
Definition: ObsADT.cc:47
boost::scoped_ptr< const oops::Variables > varin_
Definition: ObsADT.h:56
F90hop keyOperADT_
Definition: ObsADT.h:54
ObsADT(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsADT.cc:20
static const std::string classname()
Definition: ObsADT.h:38
adt observation for UFO.
Definition: ObsADT.h:35
Class to handle observation bias parameters.
const ioda::ObsSpace & odb_
Definition: ObsADT.h:55
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
Definition: ObsADT.cc:39