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