FV3 Bundle
ObsADTTLAD.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<ObsADTTLAD> makerADTTLAD_("ADT");
26 // -----------------------------------------------------------------------------
27 
28  ObsADTTLAD::ObsADTTLAD(const ioda::ObsSpace & odb, const eckit::Configuration & config)
29  : keyOperADT_(0), varin_(), odb_(odb)
30 {
31  const eckit::Configuration * configc = &config;
33  const std::vector<std::string> vv{"sea_surface_height_above_geoid"};
34  varin_.reset(new oops::Variables(vv));
35  oops::Log::trace() << "ObsADTTLAD created" << std::endl;
36 }
37 
38 // -----------------------------------------------------------------------------
39 
42  oops::Log::trace() << "ObsADTTLAD destrcuted" << std::endl;
43 }
44 
45 // -----------------------------------------------------------------------------
46 
47 void ObsADTTLAD::setTrajectory(const GeoVaLs & geovals, const ObsBias & bias) {
48  ufo_adt_tlad_settraj_f90(keyOperADT_, geovals.toFortran()); //, odb_);
49 }
50 
51 // -----------------------------------------------------------------------------
52 
53  void ObsADTTLAD::simulateObsTL(const GeoVaLs & geovals, ioda::ObsVector & ovec,
54  const ObsBiasIncrement & bias) const {
56  ovec.size(), ovec.toFortran());
57 }
58 
59 // -----------------------------------------------------------------------------
60 
61  void ObsADTTLAD::simulateObsAD(GeoVaLs & geovals, const ioda::ObsVector & ovec,
62  ObsBiasIncrement & bias) const {
64  ovec.size(), ovec.toFortran());
65 }
66 
67 // -----------------------------------------------------------------------------
68 
69 void ObsADTTLAD::print(std::ostream & os) const {
70  os << "ObsADTTLAD::print not implemented" << std::endl;
71 }
72 
73 // -----------------------------------------------------------------------------
74 
75 } // namespace ufo
std::size_t size() const
ObsVector class to handle vectors in observation space for IODA.
const double & toFortran() const
boost::scoped_ptr< const oops::Variables > varin_
Definition: ObsADTTLAD.h:64
ObsADTTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsADTTLAD.cc:28
void print(std::ostream &) const
Definition: ObsADTTLAD.cc:69
Wrapper around ObsHelpQG, mostly to hide the factory.
void ufo_adt_tlad_setup_f90(F90hop &, const eckit::Configuration *const *)
void setTrajectory(const GeoVaLs &, const ObsBias &)
Obs Operator.
Definition: ObsADTTLAD.cc:47
GeoVaLs: geophysical values at locations.
void ufo_adt_tlad_delete_f90(F90hop &)
static LinearObsOperatorMaker< ObsADTTLAD > makerADTTLAD_("ADT")
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const
Definition: ObsADTTLAD.cc:61
virtual ~ObsADTTLAD()
Definition: ObsADTTLAD.cc:40
F90hop keyOperADT_
Definition: ObsADTTLAD.h:62
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const
Definition: ObsADTTLAD.cc:53
Class to handle observation bias parameters.
void ufo_adt_simobs_ad_f90(const F90hop &, const F90goms &, const int &, const double &)
void ufo_adt_simobs_tl_f90(const F90hop &, const F90goms &, const int &, const double &)
void ufo_adt_tlad_settraj_f90(const F90hop &, const F90goms &)