UFO
ObsExampleTLAD.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 
12 #include "ioda/ObsSpace.h"
13 #include "ioda/ObsVector.h"
14 #include "oops/base/Variables.h"
15 #include "oops/util/Logger.h"
16 #include "ufo/GeoVaLs.h"
17 #include "ufo/ObsBias.h"
18 #include "ufo/ObsDiagnostics.h"
19 
20 namespace ufo {
21 
22 // -----------------------------------------------------------------------------
24 // -----------------------------------------------------------------------------
25 
26 ObsExampleTLAD::ObsExampleTLAD(const ioda::ObsSpace & odb,
27  const eckit::Configuration & config)
28  : keyOper_(0), odb_(odb), varin_()
29 {
30  ufo_example_tlad_setup_f90(keyOper_, config, odb.obsvariables(), varin_);
31  oops::Log::trace() << "ObsExampleTLAD created" << std::endl;
32 }
33 
34 // -----------------------------------------------------------------------------
35 
38  oops::Log::trace() << "ObsExampleTLAD destructed" << std::endl;
39 }
40 
41 // -----------------------------------------------------------------------------
42 
43 void ObsExampleTLAD::setTrajectory(const GeoVaLs & geovals, const ObsBias & bias,
44  ObsDiagnostics & ydiags) {
46  oops::Log::trace() << "ObsExampleTLAD: trajectory set" << std::endl;
47 }
48 
49 // -----------------------------------------------------------------------------
50 
51 void ObsExampleTLAD::simulateObsTL(const GeoVaLs & geovals, ioda::ObsVector & ovec) const {
53  ovec.size(), ovec.toFortran());
54  oops::Log::trace() << "ObsExampleTLAD: TL observation operator run" << std::endl;
55 }
56 
57 // -----------------------------------------------------------------------------
58 
59 void ObsExampleTLAD::simulateObsAD(GeoVaLs & geovals, const ioda::ObsVector & ovec) const {
61  ovec.size(), ovec.toFortran());
62  oops::Log::trace() << "ObsExampleTLAD: adjoint observation operator run" << std::endl;
63 }
64 
65 // -----------------------------------------------------------------------------
66 
67 void ObsExampleTLAD::print(std::ostream & os) const {
68  os << "ObsExampleTLAD::print not implemented" << std::endl;
69 }
70 
71 // -----------------------------------------------------------------------------
72 
73 } // namespace ufo
ufo::ufo_example_tlad_delete_f90
void ufo_example_tlad_delete_f90(F90hop &)
ufo::ufo_example_tlad_settraj_f90
void ufo_example_tlad_settraj_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const F90goms &)
ufo::ObsExampleTLAD::setTrajectory
void setTrajectory(const GeoVaLs &, const ObsBias &, ObsDiagnostics &) override
Obs Operator.
Definition: ObsExampleTLAD.cc:43
ObsBias.h
ufo::ObsExampleTLAD::print
void print(std::ostream &) const override
Definition: ObsExampleTLAD.cc:67
ufo::ObsExampleTLAD::varin_
oops::Variables varin_
Definition: ObsExampleTLAD.h:59
ufo::makerExampleTL_
static LinearObsOperatorMaker< ObsExampleTLAD > makerExampleTL_("Example")
ObsExampleTLAD.h
ufo
Definition: RunCRTM.h:27
ufo::ufo_example_simobs_tl_f90
void ufo_example_simobs_tl_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &)
ufo::ObsExampleTLAD::~ObsExampleTLAD
virtual ~ObsExampleTLAD()
Definition: ObsExampleTLAD.cc:36
ufo::GeoVaLs::toFortran
int & toFortran()
Definition: src/ufo/GeoVaLs.h:80
ufo::ObsBias
Class to handle observation bias parameters.
Definition: ObsBias.h:44
ufo::ufo_example_simobs_ad_f90
void ufo_example_simobs_ad_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &)
ufo::ObsDiagnostics::toFortran
int & toFortran()
Definition: src/ufo/ObsDiagnostics.h:46
ufo::ObsDiagnostics
Definition: src/ufo/ObsDiagnostics.h:35
ufo::ObsExampleTLAD::simulateObsTL
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override
Definition: ObsExampleTLAD.cc:51
ufo::ObsExampleTLAD::keyOper_
F90hop keyOper_
Definition: ObsExampleTLAD.h:57
ufo::ufo_example_tlad_setup_f90
void ufo_example_tlad_setup_f90(F90hop &, const eckit::Configuration &, const oops::Variables &, oops::Variables &)
Interface to Fortran UFO example routines.
ufo::GeoVaLs
GeoVaLs: geophysical values at locations.
Definition: src/ufo/GeoVaLs.h:39
ufo::ObsExampleTLAD::simulateObsAD
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override
Definition: ObsExampleTLAD.cc:59
ufo::ObsExampleTLAD::odb_
const ioda::ObsSpace & odb_
Definition: ObsExampleTLAD.h:58
ufo::ObsExampleTLAD::ObsExampleTLAD
ObsExampleTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsExampleTLAD.cc:26
ufo::LinearObsOperatorMaker
Definition: LinearObsOperatorBase.h:72