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