UFO
ObsTimeOperTLAD.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2019 UK Met Office
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_TIMEOPER_OBSTIMEOPERTLAD_H_
9 #define UFO_TIMEOPER_OBSTIMEOPERTLAD_H_
10 
11 #include <memory>
12 #include <ostream>
13 #include <string>
14 #include <vector>
15 
16 #include "oops/base/Variables.h"
17 #include "oops/util/ObjectCounter.h"
18 
21 
22 
23 // Forward declarations
24 namespace eckit {
25  class Configuration;
26 }
27 
28 namespace ioda {
29  class ObsSpace;
30  class ObsVector;
31 }
32 
33 namespace ufo {
34  class GeoVaLs;
35  class ObsDiagnostics;
36 
37 // -----------------------------------------------------------------------------
38 /// TimeOper observation operator
40  private util::ObjectCounter<ObsTimeOperTLAD> {
41  public:
42  static const std::string classname() {return "ufo::ObsTimeOperTLAD";}
43 
44  ObsTimeOperTLAD(const ioda::ObsSpace &, const eckit::Configuration &);
45  virtual ~ObsTimeOperTLAD();
46 
47  // Obs Operators
48  void setTrajectory(const GeoVaLs &, ObsDiagnostics &) override;
49  void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override;
50  void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override;
51 
52  // Other
53  const oops::Variables & requiredVars() const override {return actualoperator_->requiredVars();}
54 
55  private:
56  void print(std::ostream &) const override;
57  std::unique_ptr<LinearObsOperatorBase> actualoperator_;
58  std::vector<std::vector<float>> timeWeights_;
59 };
60 
61 // -----------------------------------------------------------------------------
62 
63 } // namespace ufo
64 #endif // UFO_TIMEOPER_OBSTIMEOPERTLAD_H_
GeoVaLs: geophysical values at locations.
TimeOper observation operator.
std::vector< std::vector< float > > timeWeights_
std::unique_ptr< LinearObsOperatorBase > actualoperator_
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override
ObsTimeOperTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
const oops::Variables & requiredVars() const override
Operator input required from Model.
void print(std::ostream &) const override
void setTrajectory(const GeoVaLs &, ObsDiagnostics &) override
Obs Operator.
static const std::string classname()
Forward declarations.
Definition: ObsAodExt.h:21
Forward declarations.
Definition: ObsAodExt.h:25
Definition: RunCRTM.h:27