UFO
ObsGroundgnssROPP.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/ObsDiagnostics.h"
21 
22 namespace ufo {
23 
24 // -----------------------------------------------------------------------------
26 // -----------------------------------------------------------------------------
27 
28 ObsGroundgnssROPP::ObsGroundgnssROPP(const ioda::ObsSpace & odb,
29  const eckit::Configuration & config)
30  : ObsOperatorBase(odb, config), keyOperGroundgnssROPP_(0), odb_(odb), varin_()
31 {
32  const std::vector<std::string> vv{"air_temperature", "specific_humidity", "air_pressure",
33  "geopotential_height", "surface_altitude"};
34  varin_.reset(new oops::Variables(vv));
35 
37  oops::Log::trace() << "ObsGroundgnssROPP created." << std::endl;
38 }
39 
40 // -----------------------------------------------------------------------------
41 
44  oops::Log::trace() << "ObsGroundgnssROPP destructed" << std::endl;
45 }
46 
47 // -----------------------------------------------------------------------------
48 
49 void ObsGroundgnssROPP::simulateObs(const GeoVaLs & gom, ioda::ObsVector & ovec,
50  ObsDiagnostics &) const {
52  ovec.size(), ovec.toFortran());
53 }
54 
55 // -----------------------------------------------------------------------------
56 
57 void ObsGroundgnssROPP::print(std::ostream & os) const {
58  os << "ObsGroundgnssROPP::print not implemented";
59 }
60 
61 // -----------------------------------------------------------------------------
62 
63 } // namespace ufo
GeoVaLs: geophysical values at locations.
void print(std::ostream &) const override
std::unique_ptr< const oops::Variables > varin_
const ioda::ObsSpace & odb_
void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override
Obs Operator.
ObsGroundgnssROPP(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: RunCRTM.h:27
static ObsOperatorMaker< ObsGroundgnssROPP > makerGroundgnssROPP_("GroundgnssROPP")
void ufo_groundgnss_ropp_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &)
void ufo_groundgnss_ropp_delete_f90(F90hop &)
void ufo_groundgnss_ropp_setup_f90(F90hop &, const eckit::Configuration &)
Interface to Fortran UFO routines.