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  : keyOperGnssroRef_(0), odb_(odb), 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 
51 void ObsGnssroRefTLAD::setTrajectory(const GeoVaLs & geovals, const ObsBias & bias,
52  ObsDiagnostics &) {
54 }
55 
56 // -----------------------------------------------------------------------------
57 
58 void ObsGnssroRefTLAD::simulateObsTL(const GeoVaLs & geovals, ioda::ObsVector & ovec) const {
60  ovec.size(), ovec.toFortran());
61 }
62 
63 // -----------------------------------------------------------------------------
64 
65 void ObsGnssroRefTLAD::simulateObsAD(GeoVaLs & geovals, const ioda::ObsVector & ovec) const {
67  ovec.size(), ovec.toFortran());
68 }
69 
70 // -----------------------------------------------------------------------------
71 
72 void ObsGnssroRefTLAD::print(std::ostream & os) const {
73  os << "ObsGnssroRefTLAD::print not implemented" << std::endl;
74 }
75 
76 // -----------------------------------------------------------------------------
77 
78 } // namespace ufo
ufo::ufo_gnssro_ref_tlad_setup_f90
void ufo_gnssro_ref_tlad_setup_f90(F90hop &, const eckit::Configuration &)
Interface to Fortran UFO routines.
ufo::ufo_gnssro_ref_tlad_delete_f90
void ufo_gnssro_ref_tlad_delete_f90(F90hop &)
ufo::ObsGnssroRefTLAD::varin_
std::unique_ptr< const oops::Variables > varin_
Definition: ObsGnssroRefTLAD.h:60
ufo::ObsGnssroRefTLAD::odb_
const ioda::ObsSpace & odb_
Definition: ObsGnssroRefTLAD.h:59
ufo::ObsGnssroRefTLAD::simulateObsAD
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override
Definition: ObsGnssroRefTLAD.cc:65
ufo::ObsGnssroRefTLAD::print
void print(std::ostream &) const override
Definition: ObsGnssroRefTLAD.cc:72
ufo
Definition: RunCRTM.h:27
ufo::GeoVaLs::toFortran
int & toFortran()
Definition: src/ufo/GeoVaLs.h:80
ufo::ObsBias
Class to handle observation bias parameters.
Definition: ObsBias.h:44
ufo::ObsGnssroRefTLAD::ObsGnssroRefTLAD
ObsGnssroRefTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsGnssroRefTLAD.cc:29
ufo::ObsGnssroRefTLAD::keyOperGnssroRef_
F90hop keyOperGnssroRef_
Definition: ObsGnssroRefTLAD.h:58
ufo::ufo_gnssro_ref_simobs_tl_f90
void ufo_gnssro_ref_simobs_tl_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &)
ufo::ObsDiagnostics
Definition: src/ufo/ObsDiagnostics.h:35
ufo::ufo_gnssro_ref_simobs_ad_f90
void ufo_gnssro_ref_simobs_ad_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &)
ufo::GeoVaLs
GeoVaLs: geophysical values at locations.
Definition: src/ufo/GeoVaLs.h:39
ufo::ufo_gnssro_ref_tlad_settraj_f90
void ufo_gnssro_ref_tlad_settraj_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &)
ufo::ObsGnssroRefTLAD::simulateObsTL
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override
Definition: ObsGnssroRefTLAD.cc:58
ufo::ObsGnssroRefTLAD::setTrajectory
void setTrajectory(const GeoVaLs &, const ObsBias &, ObsDiagnostics &) override
Obs Operator.
Definition: ObsGnssroRefTLAD.cc:51
ufo::ObsGnssroRefTLAD::~ObsGnssroRefTLAD
virtual ~ObsGnssroRefTLAD()
Definition: ObsGnssroRefTLAD.cc:44
ufo::makerGnssroRefTL_
static LinearObsOperatorMaker< ObsGnssroRefTLAD > makerGnssroRefTL_("GnssroRef")
ObsGnssroRefTLAD.h
ufo::LinearObsOperatorMaker
Definition: LinearObsOperatorBase.h:72