FV3 Bundle
ObsInsituTemperature.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 "eckit/config/Configuration.h"
17 
18 #include "ioda/ObsSpace.h"
19 #include "ioda/ObsVector.h"
20 
21 #include "oops/base/Variables.h"
22 
23 #include "ufo/GeoVaLs.h"
24 #include "ufo/ObsBias.h"
25 #include "ufo/ObsBiasIncrement.h"
26 
27 namespace ufo {
28 
29 // -----------------------------------------------------------------------------
30 static ObsOperatorMaker<ObsInsituTemperature> makerInsituTemperature_("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() << "ObsInsituTemperature created." << std::endl;
43 }
44 
45 // -----------------------------------------------------------------------------
46 
49  oops::Log::trace() << "ObsInsituTemperature destructed" << std::endl;
50 }
51 
52 // -----------------------------------------------------------------------------
53 
55  const ObsBias & bias) const {
57  odb_, ovec.size(), ovec.toFortran(), bias.toFortran());
58 }
59 
60 // -----------------------------------------------------------------------------
61 
62 void ObsInsituTemperature::print(std::ostream & os) const {
63  os << "ObsInsituTemperature::print not implemented";
64 }
65 
66 // -----------------------------------------------------------------------------
67 
68 } // namespace ufo
std::size_t size() const
ObsVector class to handle vectors in observation space for IODA.
void ufo_insitutemperature_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &, const F90obias &)
ObsInsituTemperature(const ioda::ObsSpace &, const eckit::Configuration &)
boost::scoped_ptr< const oops::Variables > varin_
const ioda::ObsSpace & odb_
const double & toFortran() const
void ufo_insitutemperature_delete_f90(F90hop &)
static ObsOperatorMaker< ObsInsituTemperature > makerInsituTemperature_("InsituTemperature")
Wrapper around ObsHelpQG, mostly to hide the factory.
GeoVaLs: geophysical values at locations.
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
Class to handle observation bias parameters.
void ufo_insitutemperature_setup_f90(F90hop &, const eckit::Configuration *const *)
void print(std::ostream &) const