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