UFO
ObsGnssroRef.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 ObsGnssroRef::ObsGnssroRef(const ioda::ObsSpace & odb, const eckit::Configuration & config)
29  : ObsOperatorBase(odb, config), keyOperGnssroRef_(0), odb_(odb), varin_()
30 {
31  const std::vector<std::string> vv{"air_temperature", "specific_humidity", "air_pressure",
32  "geopotential_height"};
33  varin_.reset(new oops::Variables(vv));
34 
35  const eckit::LocalConfiguration obsOptions(config, "obs options");
36 
38  oops::Log::trace() << "ObsGnssroRef created." << std::endl;
39 }
40 
41 // -----------------------------------------------------------------------------
42 
45  oops::Log::trace() << "ObsGnssroRef destructed" << std::endl;
46 }
47 
48 // -----------------------------------------------------------------------------
49 
50 void ObsGnssroRef::simulateObs(const GeoVaLs & gom, ioda::ObsVector & ovec,
51  ObsDiagnostics &) const {
53  ovec.size(), ovec.toFortran());
54 }
55 
56 // -----------------------------------------------------------------------------
57 
58 void ObsGnssroRef::print(std::ostream & os) const {
59  os << "ObsGnssroRef::print not implemented";
60 }
61 
62 // -----------------------------------------------------------------------------
63 
64 } // namespace ufo
GeoVaLs: geophysical values at locations.
F90hop keyOperGnssroRef_
Definition: ObsGnssroRef.h:55
std::unique_ptr< const oops::Variables > varin_
Definition: ObsGnssroRef.h:57
ObsGnssroRef(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsGnssroRef.cc:28
const ioda::ObsSpace & odb_
Definition: ObsGnssroRef.h:56
void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override
Obs Operator.
Definition: ObsGnssroRef.cc:50
void print(std::ostream &) const override
Definition: ObsGnssroRef.cc:58
virtual ~ObsGnssroRef()
Definition: ObsGnssroRef.cc:43
Definition: RunCRTM.h:27
void ufo_gnssro_ref_delete_f90(F90hop &)
void ufo_gnssro_ref_setup_f90(F90hop &, const eckit::Configuration &)
Interface to Fortran UFO routines.
void ufo_gnssro_ref_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &)
static ObsOperatorMaker< ObsGnssroRef > makerGnssroRef_("GnssroRef")