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_
ufo::ObsGnssroBndNBAM::simulateObs
void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override
Obs Operator.
Definition: ObsGnssroBndNBAM.cc:63
ufo::ObsGnssroBndNBAM::varin_
std::unique_ptr< const oops::Variables > varin_
Definition: ObsGnssroBndNBAM.h:57
ufo::ObsGnssroBndNBAM::ObsGnssroBndNBAM
ObsGnssroBndNBAM(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsGnssroBndNBAM.cc:28
ufo::ObsGnssroBndNBAM::~ObsGnssroBndNBAM
virtual ~ObsGnssroBndNBAM()
Definition: ObsGnssroBndNBAM.cc:56
ufo::ObsGnssroBndNBAM
Definition: ObsGnssroBndNBAM.h:37
ioda
Definition: ObsAtmSfcInterp.h:24
ufo
Definition: RunCRTM.h:27
ufo::F90hop
int F90hop
Definition: Fortran.h:18
ufo::ObsGnssroBndNBAM::requiredVars
const oops::Variables & requiredVars() const override
Operator input required from Model.
Definition: ObsGnssroBndNBAM.h:48
ObsOperatorBase.h
ufo::ObsOperatorBase
Base class for observation operators.
Definition: ObsOperatorBase.h:37
eckit
Forward declarations.
Definition: ObsAtmSfcInterp.h:20
ufo::ObsDiagnostics
Definition: src/ufo/ObsDiagnostics.h:35
ufo::ObsGnssroBndNBAM::keyOperGnssroBndNBAM_
F90hop keyOperGnssroBndNBAM_
Definition: ObsGnssroBndNBAM.h:55
ufo::ObsGnssroBndNBAM::toFortran
const int & toFortran() const
Definition: ObsGnssroBndNBAM.h:51
ufo::GeoVaLs
GeoVaLs: geophysical values at locations.
Definition: src/ufo/GeoVaLs.h:39
ufo::ObsGnssroBndNBAM::print
void print(std::ostream &) const override
Definition: ObsGnssroBndNBAM.cc:71
ufo::ObsGnssroBndNBAM::odb_
const ioda::ObsSpace & odb_
Definition: ObsGnssroBndNBAM.h:56
ufo::ObsGnssroBndNBAM::classname
static const std::string classname()
Definition: ObsGnssroBndNBAM.h:39
ufo::ObsGnssroBndNBAM::toFortran
int & toFortran()
Definition: ObsGnssroBndNBAM.h:50
ObsGnssroBndNBAM.interface.h