FV3 Bundle
ObsGnssroBndGSI.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<ObsGnssroBndGSI> makerGnssroBndGSI_("GnssroBndGSI");
26 // -----------------------------------------------------------------------------
27 
28 ObsGnssroBndGSI::ObsGnssroBndGSI(const ioda::ObsSpace & odb, const eckit::Configuration & config)
29  : keyOperGnssroBndGSI_(0), varin_(), odb_(odb)
30 {
31  const std::vector<std::string> vv{"temperature", "specific_humidity", "air_pressure",
32  "air_pressure_levels", "geopotential_height_levels"};
33 
34  varin_.reset(new oops::Variables(vv));
35  const eckit::Configuration * configc = &config;
37  oops::Log::trace() << "ObsGnssroBndGSI created." << std::endl;
38 }
39 
40 // -----------------------------------------------------------------------------
41 
44  oops::Log::trace() << "ObsGnssroBndGSI destructed" << std::endl;
45 }
46 
47 // -----------------------------------------------------------------------------
48 
50  const ObsBias & bias) const {
52  ovec.size(), ovec.toFortran(), bias.toFortran());
53 }
54 
55 // -----------------------------------------------------------------------------
56 
57 void ObsGnssroBndGSI::print(std::ostream & os) const {
58  os << "ObsGnssroBndGSI::print not implemented";
59 }
60 
61 // -----------------------------------------------------------------------------
62 
63 } // namespace ufo
static ObsOperatorMaker< ObsGnssroBndGSI > makerGnssroBndGSI_("GnssroBndGSI")
std::size_t size() const
ObsVector class to handle vectors in observation space for IODA.
const double & toFortran() const
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
Wrapper around ObsHelpQG, mostly to hide the factory.
const ioda::ObsSpace & odb_
GeoVaLs: geophysical values at locations.
ObsGnssroBndGSI(const ioda::ObsSpace &, const eckit::Configuration &)
boost::scoped_ptr< const oops::Variables > varin_
void ufo_gnssro_bndgsi_setup_f90(F90hop &, const eckit::Configuration *const *)
Interface to Fortran UFO routines.
Class to handle observation bias parameters.
void ufo_gnssro_bndgsi_delete_f90(F90hop &)
void ufo_gnssro_bndgsi_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &, const F90obias &)
void print(std::ostream &) const