FV3 Bundle
ObsRadiosondeTLAD.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 <boost/scoped_ptr.hpp>
15 
16 #include "ioda/ObsSpace.h"
17 #include "ioda/ObsVector.h"
18 
19 #include "oops/base/Variables.h"
20 #include "oops/util/Logger.h"
21 
22 #include "ufo/GeoVaLs.h"
23 #include "ufo/ObsBias.h"
24 #include "ufo/ObsBiasIncrement.h"
25 
26 namespace ufo {
27 
28 // -----------------------------------------------------------------------------
29 static LinearObsOperatorMaker<ObsRadiosondeTLAD> makerRadiosondeTL_("Radiosonde");
30 // -----------------------------------------------------------------------------
31 
33  const eckit::Configuration & config)
34  : keyOperRadiosonde_(0), varin_(), odb_(odb)
35 {
36  const eckit::Configuration * configc = &config;
38  const std::vector<std::string> vv{"virtual_temperature"};
39  varin_.reset(new oops::Variables(vv));
40  oops::Log::trace() << "ObsRadiosondeTLAD created" << std::endl;
41 }
42 
43 // -----------------------------------------------------------------------------
44 
47  oops::Log::trace() << "ObsRadiosondeTLAD destructed" << std::endl;
48 }
49 
50 // -----------------------------------------------------------------------------
51 
52 void ObsRadiosondeTLAD::setTrajectory(const GeoVaLs & geovals, const ObsBias & bias) {
54 }
55 
56 // -----------------------------------------------------------------------------
57 
59  const ObsBiasIncrement & bias) const {
61  ovec.size(), ovec.toFortran());
62 }
63 
64 // -----------------------------------------------------------------------------
65 
67  ObsBiasIncrement & bias) const {
69  ovec.size(), ovec.toFortran());
70 }
71 
72 // -----------------------------------------------------------------------------
73 
74 void ObsRadiosondeTLAD::print(std::ostream & os) const {
75  os << "ObsRadiosondeTLAD::print not implemented" << std::endl;
76 }
77 
78 // -----------------------------------------------------------------------------
79 
80 } // namespace ufo
std::size_t size() const
ObsVector class to handle vectors in observation space for IODA.
const ioda::ObsSpace & odb_
const double & toFortran() const
void ufo_radiosonde_tlad_setup_f90(F90hop &, const eckit::Configuration *const *)
void ufo_radiosonde_tlad_delete_f90(F90hop &)
void ufo_radiosonde_simobs_tl_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &)
Wrapper around ObsHelpQG, mostly to hide the factory.
GeoVaLs: geophysical values at locations.
void ufo_radiosonde_simobs_ad_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &)
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const
void setTrajectory(const GeoVaLs &, const ObsBias &)
Obs Operator.
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const
void print(std::ostream &) const
void ufo_radiosonde_tlad_settraj_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &)
Class to handle observation bias parameters.
static LinearObsOperatorMaker< ObsRadiosondeTLAD > makerRadiosondeTL_("Radiosonde")
ObsRadiosondeTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
boost::scoped_ptr< const oops::Variables > varin_