UFO
ObsGroundgnssMetOffice.cc
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2021 Met Office
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 
29  const eckit::Configuration & config)
30  : ObsOperatorBase(odb, config), keyOperGroundgnssMetOffice_(0), odb_(odb), varin_()
31 {
32  const std::vector<std::string> vv{"air_pressure_levels", "specific_humidity",
33  "geopotential_height", "geopotential_height_levels"};
34  varin_.reset(new oops::Variables(vv));
35 
36  const eckit::LocalConfiguration obsOptions(config, "obs options");
37  const eckit::Configuration *configc = &obsOptions;
39 
40  oops::Log::trace() << "ObsGroundgnssMetOffice created." << std::endl;
41 }
42 
43 // -----------------------------------------------------------------------------
44 
47  oops::Log::trace() << "ObsGroundgnssMetOffice destructed" << std::endl;
48 }
49 
50 // -----------------------------------------------------------------------------
51 
52 void ObsGroundgnssMetOffice::simulateObs(const GeoVaLs & gom, ioda::ObsVector & ovec,
53  ObsDiagnostics &) const {
55  ovec.size(), ovec.toFortran());
56 }
57 
58 // -----------------------------------------------------------------------------
59 
60 void ObsGroundgnssMetOffice::print(std::ostream & os) const {
61  os << "ObsGroundgnssMetOffice::print not implemented";
62 }
63 
64 // -----------------------------------------------------------------------------
65 
66 } // namespace ufo
GeoVaLs: geophysical values at locations.
void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override
Obs Operator.
std::unique_ptr< const oops::Variables > varin_
void print(std::ostream &) const override
ObsGroundgnssMetOffice(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: RunCRTM.h:27
void ufo_groundgnss_metoffice_delete_f90(F90hop &)
static ObsOperatorMaker< ObsGroundgnssMetOffice > makerGroundgnssMetOffice_("GroundgnssMetOffice")
void ufo_groundgnss_metoffice_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &)
void ufo_groundgnss_metoffice_setup_f90(F90hop &, const eckit::Configuration *const *)
Interface to Fortran UFO routines.