UFO
ObsGnssroRefMetOffice.cc
Go to the documentation of this file.
1 /*
2  * (C) British Crown 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 
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 Parameters_ & parameters)
30  : ObsOperatorBase(odb), keyOperGnssroRefMetOffice_(0), odb_(odb), varin_(),
31  parameters_(parameters)
32 {
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() << "ObsGnssroRefMetOffice created." << std::endl;
45 }
46 
47 // -----------------------------------------------------------------------------
48 
51  oops::Log::trace() << "ObsGnssroRefMetOffice destructed" << std::endl;
52 }
53 
54 // -----------------------------------------------------------------------------
55 
56 void ObsGnssroRefMetOffice::simulateObs(const GeoVaLs & gom, ioda::ObsVector & ovec,
57  ObsDiagnostics & ydiags) const {
59  ovec.size(), ovec.toFortran(), ydiags.toFortran());
60 }
61 
62 // -----------------------------------------------------------------------------
63 
64 void ObsGnssroRefMetOffice::print(std::ostream & os) const {
65  os << "ObsGnssroRefMetOffice: config = " << parameters_ << std::endl;
66 }
67 
68 // -----------------------------------------------------------------------------
69 
70 } // namespace ufo
GeoVaLs: geophysical values at locations.
const ioda::ObsSpace & odb_
void print(std::ostream &) const override
ObsGnssroRefMetOffice(const ioda::ObsSpace &, const Parameters_ &)
std::unique_ptr< const oops::Variables > varin_
void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override
Obs Operator.
Configuration options recognized by the refractivity operator.
oops::Parameter< bool > pseudoLevels
Whether to use pseudo-levels in the calculation.
Configuration options recognized by the refractivity operator.
oops::Parameter< ObsGnssroRefMetOfficeOptions > obsOptions
Obs Options - settings for the observation operator.
Definition: RunCRTM.h:27
void ufo_gnssro_refmetoffice_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &, const F90goms &)
void ufo_gnssro_refmetoffice_setup_f90(F90hop &, const bool &, const bool &, const float &)
Interface to Fortran UFO routines.
static ObsOperatorMaker< ObsGnssroRefMetOffice > makerGnssroRefMetOffice_("GnssroRefMetOffice")
void ufo_gnssro_refmetoffice_delete_f90(F90hop &)