UFO
ObsGnssroBndNBAM.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_GNSSRO_BNDNBAM_OBSGNSSROBNDNBAM_H_
9 #define UFO_GNSSRO_BNDNBAM_OBSGNSSROBNDNBAM_H_
10 
11 #include <memory>
12 #include <ostream>
13 #include <string>
14 
15 #include "oops/base/Variables.h"
16 #include "oops/util/ObjectCounter.h"
18 #include "ufo/ObsOperatorBase.h"
19 
20 namespace eckit {
21  class Configuration;
22 }
23 
24 namespace ioda {
25  class ObsSpace;
26  class ObsVector;
27 }
28 
29 namespace ufo {
30  class GeoVaLs;
31  class ObsDiagnostics;
32 
33 // -----------------------------------------------------------------------------
34 // Gnssro BndNBAM observation operator
35 // -- to reproduce exactly the operational (2019) NBAM
37  private util::ObjectCounter<ObsGnssroBndNBAM> {
38  public:
39  static const std::string classname() {return "ufo::ObsGnssroBndNBAM";}
40 
41  ObsGnssroBndNBAM(const ioda::ObsSpace &, const eckit::Configuration &);
42  virtual ~ObsGnssroBndNBAM();
43 
44 // Obs Operator
45  void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override;
46 
47 // Other
48  const oops::Variables & requiredVars() const override {return *varin_;}
49 
50  int & toFortran() {return keyOperGnssroBndNBAM_;}
51  const int & toFortran() const {return keyOperGnssroBndNBAM_;}
52 
53  private:
54  void print(std::ostream &) const override;
56  const ioda::ObsSpace& odb_;
57  std::unique_ptr<const oops::Variables> varin_;
58 };
59 
60 // -----------------------------------------------------------------------------
61 
62 } // namespace ufo
63 
64 #endif // UFO_GNSSRO_BNDNBAM_OBSGNSSROBNDNBAM_H_
GeoVaLs: geophysical values at locations.
void print(std::ostream &) const override
std::unique_ptr< const oops::Variables > varin_
void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override
Obs Operator.
static const std::string classname()
const oops::Variables & requiredVars() const override
Operator input required from Model.
ObsGnssroBndNBAM(const ioda::ObsSpace &, const eckit::Configuration &)
const int & toFortran() const
const ioda::ObsSpace & odb_
Forward declarations.
Definition: ObsAodExt.h:21
Forward declarations.
Definition: ObsAodExt.h:25
Definition: RunCRTM.h:27
int F90hop
Definition: Fortran.h:18