UFO
ObsGnssroBendMetOffice.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 
8 #include <ostream>
9 #include <string>
10 #include <vector>
11 
12 #include "ioda/ObsVector.h"
13 
14 #include "oops/base/Variables.h"
15 #include "oops/util/Logger.h"
16 
17 #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), keyOperGnssroBendMetOffice_(0), odb_(odb), varin_()
31 {
32  parameters_.validateAndDeserialize(config);
34 
35  const std::vector<std::string> vv{"air_pressure_levels", "specific_humidity",
36  "geopotential_height", "geopotential_height_levels"};
37  varin_.reset(new oops::Variables(vv));
38 
40  obsOptions.vertInterpOPS,
41  obsOptions.pseudoLevels,
42  obsOptions.minTempGrad);
43 
44  oops::Log::trace() << "ObsGnssroBendMetOffice created." << std::endl;
45 }
46 
47 // -----------------------------------------------------------------------------
48 
51  oops::Log::trace() << "ObsGnssroBendMetOffice destructed" << std::endl;
52 }
53 
54 // -----------------------------------------------------------------------------
55 
56 void ObsGnssroBendMetOffice::simulateObs(const GeoVaLs & gom, ioda::ObsVector & ovec,
57  ObsDiagnostics & ydiags) const {
58  oops::Log::trace() << "Starting simulateObs" << std::endl;
60  ovec.size(), ovec.toFortran(), ydiags.toFortran());
61  oops::Log::trace() << "Finishing simulateObs" << std::endl;
62 }
63 
64 // -----------------------------------------------------------------------------
65 
66 void ObsGnssroBendMetOffice::print(std::ostream & os) const {
67  os << "ObsGnssroBendMetOffice::print not implemented";
68 }
69 
70 // -----------------------------------------------------------------------------
71 
72 } // namespace ufo
GeoVaLs: geophysical values at locations.
ObsGnssroBendMetOffice(const ioda::ObsSpace &, const eckit::Configuration &)
void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override
Obs Operator.
ObsGnssroBendMetOfficeParameters parameters_
std::unique_ptr< const oops::Variables > varin_
void print(std::ostream &) const override
Configuration options recognized by the bending angle operator.
oops::Parameter< bool > pseudoLevels
Whether to use pseudo-levels in the calculation.
oops::Parameter< ObsGnssroBendMetOfficeOptions > obsOptions
Obs Options - settings for the observation operator.
Definition: RunCRTM.h:27
void ufo_gnssro_bendmetoffice_delete_f90(F90hop &)
void ufo_gnssro_bendmetoffice_setup_f90(F90hop &, const bool &, const bool &, const float &)
Interface to Fortran UFO routines.
void ufo_gnssro_bendmetoffice_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &, const F90goms &)
static ObsOperatorMaker< ObsGnssroBendMetOffice > makerGnssroBendMetOffice_("GnssroBendMetOffice")