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