FV3 Bundle
ObsSeaSurfaceTemp.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/ObsSpace.h"
15 #include "ioda/ObsVector.h"
16 
17 #include "oops/base/Variables.h"
18 
19 #include "ufo/GeoVaLs.h"
20 
21 namespace ufo {
22 
23 // -----------------------------------------------------------------------------
24 static ObsOperatorMaker<ObsSeaSurfaceTemp> makerSeaSurfaceTemp_("SeaSurfaceTemp");
25 // -----------------------------------------------------------------------------
26 
28  const eckit::Configuration & config)
29  : keyOperSeaSurfaceTemp_(0), varin_(), odb_(odb)
30 {
31  const eckit::Configuration * configc = &config;
33  const std::vector<std::string> vv{"ocean_upper_level_temperature"};
34  varin_.reset(new oops::Variables(vv));
35  oops::Log::trace() << "ObsSeaSurfaceTemp created." << std::endl;
36 }
37 
38 // -----------------------------------------------------------------------------
39 
42  oops::Log::trace() << "ObsSeaSurfaceTemp destructed" << std::endl;
43 }
44 
45 // -----------------------------------------------------------------------------
46 
48  const ObsBias & bias) const {
50  ovec.size(), ovec.toFortran(), bias.toFortran());
51 }
52 
53 // -----------------------------------------------------------------------------
54 
55 void ObsSeaSurfaceTemp::print(std::ostream & os) const {
56  os << "ObsSeaSurfaceTemp::print not implemented";
57 }
58 
59 // -----------------------------------------------------------------------------
60 
61 } // namespace ufo
static ObsOperatorMaker< ObsSeaSurfaceTemp > makerSeaSurfaceTemp_("SeaSurfaceTemp")
std::size_t size() const
ObsVector class to handle vectors in observation space for IODA.
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
ObsSeaSurfaceTemp(const ioda::ObsSpace &, const eckit::Configuration &)
const double & toFortran() const
void ufo_seasurfacetemp_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &, const F90obias &)
Wrapper around ObsHelpQG, mostly to hide the factory.
boost::scoped_ptr< const oops::Variables > varin_
const ioda::ObsSpace & odb_
GeoVaLs: geophysical values at locations.
void ufo_seasurfacetemp_delete_f90(F90hop &)
void print(std::ostream &) const
Class to handle observation bias parameters.
void ufo_seasurfacetemp_setup_f90(F90hop &, const eckit::Configuration *const *)