FV3 Bundle
ObsRadianceTLAD.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 #include "oops/base/Variables.h"
19 #include "oops/util/Logger.h"
20 #include "ufo/GeoVaLs.h"
21 #include "ufo/ObsBias.h"
22 #include "ufo/ObsBiasIncrement.h"
23 
24 namespace ufo {
25 
26 // -----------------------------------------------------------------------------
27 static LinearObsOperatorMaker<ObsRadianceTLAD> makerRadianceTL_("Radiance");
28 // -----------------------------------------------------------------------------
29 
30 ObsRadianceTLAD::ObsRadianceTLAD(const ioda::ObsSpace & odb, const eckit::Configuration & config)
31  : keyOperRadiance_(0), varin_(), odb_(odb)
32 {
33  const std::vector<std::string> vv{"virtual_temperature"};
34  varin_.reset(new oops::Variables(vv));
35  const eckit::LocalConfiguration obsOptions(config, "ObsOptions");
36  const eckit::Configuration * configc = &obsOptions;
38  oops::Log::trace() << "ObsRadianceTLAD created" << std::endl;
39 }
40 
41 // -----------------------------------------------------------------------------
42 
45  oops::Log::trace() << "ObsRadianceTLAD destructed" << std::endl;
46 }
47 
48 // -----------------------------------------------------------------------------
49 
50 void ObsRadianceTLAD::setTrajectory(const GeoVaLs & geovals, const ObsBias & bias) {
52 }
53 
54 // -----------------------------------------------------------------------------
55 
57  const ObsBiasIncrement & bias) const {
59  ovec.size(), ovec.toFortran());
60 }
61 
62 // -----------------------------------------------------------------------------
63 
65  ObsBiasIncrement & bias) const {
67  ovec.size(), ovec.toFortran());
68 }
69 
70 // -----------------------------------------------------------------------------
71 
72 void ObsRadianceTLAD::print(std::ostream & os) const {
73  os << "ObsRadianceTLAD::print not implemented" << std::endl;
74 }
75 
76 // -----------------------------------------------------------------------------
77 
78 } // namespace ufo
void print(std::ostream &) const
std::size_t size() const
static LinearObsOperatorMaker< ObsRadianceTLAD > makerRadianceTL_("Radiance")
ObsVector class to handle vectors in observation space for IODA.
void ufo_radiance_tlad_settraj_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &)
void ufo_radiance_simobs_tl_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &)
ObsRadianceTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
const double & toFortran() const
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const
boost::scoped_ptr< const oops::Variables > varin_
Wrapper around ObsHelpQG, mostly to hide the factory.
GeoVaLs: geophysical values at locations.
void ufo_radiance_tlad_setup_f90(F90hop &, const eckit::Configuration *const *)
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const
void ufo_radiance_tlad_delete_f90(F90hop &)
Class to handle observation bias parameters.
const ioda::ObsSpace & odb_
void setTrajectory(const GeoVaLs &, const ObsBias &)
Obs Operator.
void ufo_radiance_simobs_ad_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &)