FV3 Bundle
ObsGnssroRefTLAD.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 
15 #include "ioda/ObsSpace.h"
16 #include "ioda/ObsVector.h"
17 
18 #include "oops/base/Variables.h"
19 #include "oops/util/Logger.h"
20 
21 #include "ufo/GeoVaLs.h"
22 
23 namespace ufo {
24 
25 // -----------------------------------------------------------------------------
26 static LinearObsOperatorMaker<ObsGnssroRefTLAD> makerGnssroRefTL_("GnssroRef");
27 // -----------------------------------------------------------------------------
28 
29 ObsGnssroRefTLAD::ObsGnssroRefTLAD(const ioda::ObsSpace & odb, const eckit::Configuration & config)
30  : keyOperGnssroRef_(0), varin_(), odb_(odb)
31 {
32  const eckit::Configuration * configc = &config;
34  const std::vector<std::string> vv{"temperature", "specific_humidity", "air_pressure",
35  "geopotential_height"};
36  varin_.reset(new oops::Variables(vv));
37  oops::Log::trace() << "ObsGnssroRefTLAD created" << std::endl;
38 }
39 
40 // -----------------------------------------------------------------------------
41 
44  oops::Log::trace() << "ObsGnssroRefTLAD destructed" << std::endl;
45 }
46 
47 // -----------------------------------------------------------------------------
48 
49 void ObsGnssroRefTLAD::setTrajectory(const GeoVaLs & geovals, const ObsBias & bias) {
51 }
52 
53 // -----------------------------------------------------------------------------
54 
56  const ObsBiasIncrement & bias) const {
58  ovec.size(), ovec.toFortran());
59 }
60 
61 // -----------------------------------------------------------------------------
62 
64  ObsBiasIncrement & bias) const {
66  ovec.size(), ovec.toFortran());
67 }
68 
69 // -----------------------------------------------------------------------------
70 
71 void ObsGnssroRefTLAD::print(std::ostream & os) const {
72  os << "ObsGnssroRefTLAD::print not implemented" << std::endl;
73 }
74 
75 // -----------------------------------------------------------------------------
76 
77 } // namespace ufo
std::size_t size() const
ObsVector class to handle vectors in observation space for IODA.
boost::scoped_ptr< const oops::Variables > varin_
void ufo_gnssro_ref_tlad_setup_f90(F90hop &, const eckit::Configuration *const *)
const double & toFortran() const
Wrapper around ObsHelpQG, mostly to hide the factory.
GeoVaLs: geophysical values at locations.
ObsGnssroRefTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
void print(std::ostream &) const
void ufo_gnssro_ref_simobs_tl_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &)
void ufo_gnssro_ref_tlad_delete_f90(F90hop &)
void ufo_gnssro_ref_simobs_ad_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &)
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const
const ioda::ObsSpace & odb_
static LinearObsOperatorMaker< ObsGnssroRefTLAD > makerGnssroRefTL_("GnssroRef")
Class to handle observation bias parameters.
void setTrajectory(const GeoVaLs &, const ObsBias &)
Obs Operator.
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const
void ufo_gnssro_ref_tlad_settraj_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &)