UFO
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 // -----------------------------------------------------------------------------
27 // -----------------------------------------------------------------------------
28 
29 ObsGnssroRefTLAD::ObsGnssroRefTLAD(const ioda::ObsSpace & odb, const eckit::Configuration & config)
30  : LinearObsOperatorBase(odb), keyOperGnssroRef_(0), varin_()
31 {
32  const eckit::LocalConfiguration obsOptions(config, "obs options");
33 
35  const std::vector<std::string> vv{"air_temperature", "specific_humidity", "air_pressure"};
36 
37  varin_.reset(new oops::Variables(vv));
38  oops::Log::info() << "ObsGnssroRefTLAD vars: " << *varin_ << std::endl;
39  oops::Log::trace() << "ObsGnssroRefTLAD created" << std::endl;
40 }
41 
42 // -----------------------------------------------------------------------------
43 
46  oops::Log::trace() << "ObsGnssroRefTLAD destructed" << std::endl;
47 }
48 
49 // -----------------------------------------------------------------------------
50 
53 }
54 
55 // -----------------------------------------------------------------------------
56 
57 void ObsGnssroRefTLAD::simulateObsTL(const GeoVaLs & geovals, ioda::ObsVector & ovec) const {
59  ovec.size(), ovec.toFortran());
60 }
61 
62 // -----------------------------------------------------------------------------
63 
64 void ObsGnssroRefTLAD::simulateObsAD(GeoVaLs & geovals, const ioda::ObsVector & ovec) 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
GeoVaLs: geophysical values at locations.
const ioda::ObsSpace & obsspace() const
The space containing the observations to be simulated by this operator.
void print(std::ostream &) const override
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override
std::unique_ptr< const oops::Variables > varin_
ObsGnssroRefTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
void setTrajectory(const GeoVaLs &, ObsDiagnostics &) override
Obs Operator.
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override
Definition: RunCRTM.h:27
void ufo_gnssro_ref_tlad_setup_f90(F90hop &, const eckit::Configuration &)
Interface to Fortran UFO routines.
void ufo_gnssro_ref_tlad_settraj_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &)
void ufo_gnssro_ref_tlad_delete_f90(F90hop &)
static LinearObsOperatorMaker< ObsGnssroRefTLAD > makerGnssroRefTL_("GnssroRef")
void ufo_gnssro_ref_simobs_ad_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &)
void ufo_gnssro_ref_simobs_tl_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &)