UFO
ObsGeosAodTLAD.cc
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2019 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 
16 #include "oops/util/Logger.h"
17 #include "ufo/GeoVaLs.h"
18 #include "ufo/ObsBias.h"
19 
20 namespace ufo {
21 
22 // -----------------------------------------------------------------------------
24 // -----------------------------------------------------------------------------
25 
26 ObsGeosAodTLAD::ObsGeosAodTLAD(const ioda::ObsSpace & odb,
27  const eckit::Configuration & config)
28  : keyOper_(0), odb_(odb), varin_()
29 {
30  ufo_geosaod_tlad_setup_f90(keyOper_, config, odb.obsvariables(), varin_);
31 
32  oops::Log::trace() << "ObsGeosAodTLAD created" << std::endl;
33 }
34 
35 // -----------------------------------------------------------------------------
36 
39  oops::Log::trace() << "ObsGeosAodTLAD destructed" << std::endl;
40 }
41 
42 // -----------------------------------------------------------------------------
43 
45  const ObsBias & bias, ObsDiagnostics &) {
46  oops::Log::trace() << "ObsGeosAodTLAD: trajectory entering" << std::endl;
48  oops::Log::trace() << "ObsGeosAodTLAD: set trajectory exiting" << std::endl;
49 }
50 
51 // -----------------------------------------------------------------------------
52 
53 void ObsGeosAodTLAD::simulateObsTL(const GeoVaLs & geovals, ioda::ObsVector & ovec) const {
55  ovec.nvars(), ovec.nlocs(), ovec.toFortran());
56  oops::Log::trace() << "ObsGeosAodTLAD: TL observation operator run" << std::endl;
57 }
58 
59 // -----------------------------------------------------------------------------
60 
61 void ObsGeosAodTLAD::simulateObsAD(GeoVaLs & geovals, const ioda::ObsVector & ovec) const {
63  ovec.nvars(), ovec.nlocs(), ovec.toFortran());
64  oops::Log::trace() << "ObsGeosAodTLAD: adjoint observation operator run" << std::endl;
65 }
66 
67 // -----------------------------------------------------------------------------
68 
69 void ObsGeosAodTLAD::print(std::ostream & os) const {
70  os << "ObsGeosAodTLAD::print not implemented" << std::endl;
71 }
72 
73 // -----------------------------------------------------------------------------
74 
75 } // namespace ufo
ufo::ObsGeosAodTLAD::~ObsGeosAodTLAD
virtual ~ObsGeosAodTLAD()
Definition: ObsGeosAodTLAD.cc:37
ufo::ObsGeosAodTLAD::setTrajectory
void setTrajectory(const GeoVaLs &, const ObsBias &, ObsDiagnostics &) override
Obs Operator.
Definition: ObsGeosAodTLAD.cc:44
ObsBias.h
ufo::ObsGeosAodTLAD::keyOper_
F90hop keyOper_
Definition: ObsGeosAodTLAD.h:58
ufo::ufo_geosaod_tlad_settraj_f90
void ufo_geosaod_tlad_settraj_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &)
ObsGeosAodTLAD.h
ufo::ufo_geosaod_tlad_delete_f90
void ufo_geosaod_tlad_delete_f90(F90hop &)
ufo
Definition: RunCRTM.h:27
ufo::ObsGeosAodTLAD::ObsGeosAodTLAD
ObsGeosAodTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsGeosAodTLAD.cc:26
ufo::ObsGeosAodTLAD::odb_
const ioda::ObsSpace & odb_
Definition: ObsGeosAodTLAD.h:59
ufo::ufo_geosaod_tlad_setup_f90
void ufo_geosaod_tlad_setup_f90(F90hop &, const eckit::Configuration &, const oops::Variables &, oops::Variables &)
Interface to Fortran UFO geosaod routines.
ufo::GeoVaLs::toFortran
int & toFortran()
Definition: src/ufo/GeoVaLs.h:80
ufo::ObsBias
Class to handle observation bias parameters.
Definition: ObsBias.h:44
ufo::ObsDiagnostics
Definition: src/ufo/ObsDiagnostics.h:35
ufo::ObsGeosAodTLAD::print
void print(std::ostream &) const override
Definition: ObsGeosAodTLAD.cc:69
ufo::GeoVaLs
GeoVaLs: geophysical values at locations.
Definition: src/ufo/GeoVaLs.h:39
ufo::ufo_geosaod_simobs_ad_f90
void ufo_geosaod_simobs_ad_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const int &, const double &)
ufo::makerGeosAodTL_
static LinearObsOperatorMaker< ObsGeosAodTLAD > makerGeosAodTL_("GeosAod")
ufo::ObsGeosAodTLAD::simulateObsAD
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override
Definition: ObsGeosAodTLAD.cc:61
ufo::ufo_geosaod_simobs_tl_f90
void ufo_geosaod_simobs_tl_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const int &, double &)
ufo::ObsGeosAodTLAD::varin_
oops::Variables varin_
Definition: ObsGeosAodTLAD.h:60
ufo::ObsGeosAodTLAD::simulateObsTL
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override
Definition: ObsGeosAodTLAD.cc:53
ufo::LinearObsOperatorMaker
Definition: LinearObsOperatorBase.h:72