FV3 Bundle
ObsGnssroBndROPP1D.cc
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 
9 
10 #include <ostream>
11 #include <string>
12 #include <vector>
13 
14 #include "ioda/ObsVector.h"
15 
16 #include "oops/base/Variables.h"
17 #include "oops/util/Logger.h"
18 
19 #include "ufo/GeoVaLs.h"
20 #include "ufo/ObsBias.h"
21 
22 namespace ufo {
23 
24 // -----------------------------------------------------------------------------
25 static ObsOperatorMaker<ObsGnssroBndROPP1D> makerGnssroBndROPP1D_("GnssroBndROPP1D");
26 // -----------------------------------------------------------------------------
27 
29  const eckit::Configuration & config)
30  : keyOperGnssroBndROPP1D_(0), varin_(), odb_(odb)
31 {
32  const std::vector<std::string> vv{"temperature", "specific_humidity", "air_pressure",
33  "geopotential_height", "sfc_geopotential_height"};
34 
35  varin_.reset(new oops::Variables(vv));
36  const eckit::Configuration * configc = &config;
38  oops::Log::trace() << "ObsGnssroBndROPP1D created." << std::endl;
39 }
40 
41 // -----------------------------------------------------------------------------
42 
45  oops::Log::trace() << "ObsGnssroBndROPP1D destructed" << std::endl;
46 }
47 
48 // -----------------------------------------------------------------------------
49 
51  const ObsBias & bias) const {
53  ovec.size(), ovec.toFortran(), bias.toFortran());
54 }
55 
56 // -----------------------------------------------------------------------------
57 
58 void ObsGnssroBndROPP1D::print(std::ostream & os) const {
59  os << "ObsGnssroBndROPP1D::print not implemented";
60 }
61 
62 // -----------------------------------------------------------------------------
63 
64 } // namespace ufo
ObsGnssroBndROPP1D(const ioda::ObsSpace &, const eckit::Configuration &)
std::size_t size() const
ObsVector class to handle vectors in observation space for IODA.
static ObsOperatorMaker< ObsGnssroBndROPP1D > makerGnssroBndROPP1D_("GnssroBndROPP1D")
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
const double & toFortran() const
Wrapper around ObsHelpQG, mostly to hide the factory.
GeoVaLs: geophysical values at locations.
void ufo_gnssro_bndropp1d_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &, const F90obias &)
void ufo_gnssro_bndropp1d_delete_f90(F90hop &)
const ioda::ObsSpace & odb_
Class to handle observation bias parameters.
void ufo_gnssro_bndropp1d_setup_f90(F90hop &, const eckit::Configuration *const *)
Interface to Fortran UFO routines.
void print(std::ostream &) const
boost::scoped_ptr< const oops::Variables > varin_