FV3 Bundle
ObsAodTLAD.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 #include "ioda/ObsVector.h"
15 
16 #include "oops/base/Variables.h"
17 #include "oops/util/Logger.h"
18 
19 #include "ufo/GeoVaLs.h"
20 #include "ufo/ObsBias.h"
21 
22 namespace ufo {
23 
24 // -----------------------------------------------------------------------------
25 static LinearObsOperatorMaker<ObsAodTLAD> makerAodTL_("Aod");
26 // -----------------------------------------------------------------------------
27 
28 ObsAodTLAD::ObsAodTLAD(const ioda::ObsSpace & odb, const eckit::Configuration & config)
29  : keyOperAod_(0), varin_(), odb_(odb)
30 {
31  const eckit::Configuration * configc = &config;
33  const std::vector<std::string> vv{"temperature", "humidity_mixing_ratio",
34  "air_pressure", "air_pressure_levels",
35  "sulf", "bc1", "bc2", "oc1", "oc2", "dust1", "dust2", "dust3", "dust4", "dust5",
36  "seas1", "seas2", "seas3", "seas4", "p25"};
37  varin_.reset(new oops::Variables(vv));
38  oops::Log::trace() << "ObsAodTLAD created" << std::endl;
39 }
40 
41 // -----------------------------------------------------------------------------
42 
44  oops::Log::trace() << "ObsAodTLAD destructed" << std::endl;
45 }
46 
47 // -----------------------------------------------------------------------------
48 
49 void ObsAodTLAD::setTrajectory(const GeoVaLs & geovals, const ObsBias & bias) {
51 }
52 
53 // -----------------------------------------------------------------------------
54 
55 void ObsAodTLAD::simulateObsTL(const GeoVaLs & geovals, ioda::ObsVector & ovec,
56  const ObsBiasIncrement & bias) const {
58  ovec.size(), ovec.toFortran());
59 }
60 
61 // -----------------------------------------------------------------------------
62 
63 void ObsAodTLAD::simulateObsAD(GeoVaLs & geovals, const ioda::ObsVector & ovec,
64  ObsBiasIncrement & bias) const {
66  ovec.size(), ovec.toFortran());
67 }
68 
69 // -----------------------------------------------------------------------------
70 
71 void ObsAodTLAD::print(std::ostream & os) const {
72  os << "ObsAodTLAD::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_
Definition: ObsAodTLAD.h:61
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const
Definition: ObsAodTLAD.cc:63
void print(std::ostream &) const
Definition: ObsAodTLAD.cc:71
const double & toFortran() const
Wrapper around ObsHelpQG, mostly to hide the factory.
GeoVaLs: geophysical values at locations.
void setTrajectory(const GeoVaLs &, const ObsBias &)
Obs Operator.
Definition: ObsAodTLAD.cc:49
void ufo_aod_tlad_setup_f90(F90hop &, const eckit::Configuration *const *)
void ufo_aod_simobs_ad_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &)
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const
Definition: ObsAodTLAD.cc:55
ObsAodTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsAodTLAD.cc:28
Class to handle observation bias parameters.
F90hop keyOperAod_
Definition: ObsAodTLAD.h:59
virtual ~ObsAodTLAD()
Definition: ObsAodTLAD.cc:43
void ufo_aod_simobs_tl_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &)
static LinearObsOperatorMaker< ObsAodTLAD > makerAodTL_("Aod")
void ufo_aod_tlad_settraj_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &)
const ioda::ObsSpace & odb_
Definition: ObsAodTLAD.h:60