FV3 Bundle
ObsAircraftTLAD.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_ATMOSPHERE_AIRCRAFT_OBSAIRCRAFTTLAD_H_
9 #define UFO_ATMOSPHERE_AIRCRAFT_OBSAIRCRAFTTLAD_H_
10 
11 #include <ostream>
12 #include <string>
13 
14 #include <boost/scoped_ptr.hpp>
15 
16 #include "oops/base/Variables.h"
17 #include "oops/util/ObjectCounter.h"
20 
21 // Forward declarations
22 namespace eckit {
23  class Configuration;
24 }
25 
26 namespace ioda {
27  class ObsSpace;
28  class ObsVector;
29 }
30 
31 namespace ufo {
32  class GeoVaLs;
33  class ObsBias;
34  class ObsBiasIncrement;
35 
36 // -----------------------------------------------------------------------------
37 /// Aircraft (currently only temperature) observation for UFO.
39  private util::ObjectCounter<ObsAircraftTLAD> {
40  public:
41  static const std::string classname() {return "ufo::ObsAircraftTLAD";}
42 
43  ObsAircraftTLAD(const ioda::ObsSpace &, const eckit::Configuration &);
44  virtual ~ObsAircraftTLAD();
45 
46  // Obs Operators
47  void setTrajectory(const GeoVaLs &, const ObsBias &);
48  void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const;
49  void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const;
50 
51  // Other
52  const oops::Variables & variables() const {return *varin_;}
53 
54  int & toFortran() {return keyOperAircraft_;}
55  const int & toFortran() const {return keyOperAircraft_;}
56 
57  private:
58  void print(std::ostream &) const;
61  boost::scoped_ptr<const oops::Variables> varin_;
62 };
63 
64 // -----------------------------------------------------------------------------
65 
66 } // namespace ufo
67 #endif // UFO_ATMOSPHERE_AIRCRAFT_OBSAIRCRAFTTLAD_H_
void print(std::ostream &) const
Base class for observation operators.
ObsVector class to handle vectors in observation space for IODA.
const int & toFortran() const
const ioda::ObsSpace & odb_
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const
Wrapper around ObsHelpQG, mostly to hide the factory.
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const
GeoVaLs: geophysical values at locations.
boost::scoped_ptr< const oops::Variables > varin_
void setTrajectory(const GeoVaLs &, const ObsBias &)
Obs Operator.
Aircraft (currently only temperature) observation for UFO.
ObsAircraftTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
Class to handle observation bias parameters.
const oops::Variables & variables() const
Operator input required from Model.
static const std::string classname()