FV3 Bundle
ObsInsituTemperatureTLAD.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<ObsInsituTemperatureTLAD>
30  makerInsituTemperatureTLAD_("InsituTemperature");
31 // -----------------------------------------------------------------------------
32 
34  const eckit::Configuration & config)
35  : keyOperInsituTemperature_(0), varin_(), odb_(odb)
36 {
37  const eckit::Configuration * configc = &config;
39  const std::vector<std::string> vv{"ocean_potential_temperature", "ocean_salinity",
40  "ocean_layer_thickness"};
41  varin_.reset(new oops::Variables(vv));
42  oops::Log::trace() << "ObsInsituTemperatureTLAD created" << std::endl;
43 }
44 
45 // -----------------------------------------------------------------------------
46 
49  oops::Log::trace() << "ObsInsituTemperatureTLAD destrcuted" << std::endl;
50 }
51 
52 // -----------------------------------------------------------------------------
53 
54 void ObsInsituTemperatureTLAD::setTrajectory(const GeoVaLs & geovals, const ObsBias & bias) {
56  odb_);
57 }
58 
59 // -----------------------------------------------------------------------------
60 
62  const ObsBiasIncrement & bias) const {
64  odb_, ovec.size(), ovec.toFortran());
65 }
66 
67 // -----------------------------------------------------------------------------
68 
70  ObsBiasIncrement & bias) const {
72  odb_, ovec.size(), ovec.toFortran());
73 }
74 
75 // -----------------------------------------------------------------------------
76 
77 void ObsInsituTemperatureTLAD::print(std::ostream & os) const {
78  os << "ObsInsituTemperatureTLAD::print not implemented" << std::endl;
79 }
80 
81 // -----------------------------------------------------------------------------
82 
83 } // namespace ufo
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const
std::size_t size() const
ObsVector class to handle vectors in observation space for IODA.
void ufo_insitutemperature_simobs_tl_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &)
boost::scoped_ptr< const oops::Variables > varin_
void ufo_insitutemperature_simobs_ad_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &)
void setTrajectory(const GeoVaLs &, const ObsBias &)
Obs Operator.
void ufo_insitutemperature_tlad_delete_f90(F90hop &)
const double & toFortran() const
Wrapper around ObsHelpQG, mostly to hide the factory.
ObsInsituTemperatureTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
GeoVaLs: geophysical values at locations.
void ufo_insitutemperature_tlad_settraj_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &)
Class to handle observation bias parameters.
static LinearObsOperatorMaker< ObsInsituTemperatureTLAD > makerInsituTemperatureTLAD_("InsituTemperature")
void print(std::ostream &) const
void ufo_insitutemperature_tlad_setup_f90(F90hop &, const eckit::Configuration *const *)