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
ufo::makerGnssroRef_
static ObsOperatorMaker< ObsGnssroRef > makerGnssroRef_("GnssroRef")
ufo::ObsGnssroRef::keyOperGnssroRef_
F90hop keyOperGnssroRef_
Definition: ObsGnssroRef.h:55
ufo::ObsGnssroRef::~ObsGnssroRef
virtual ~ObsGnssroRef()
Definition: ObsGnssroRef.cc:43
ufo::ObsGnssroRef::odb_
const ioda::ObsSpace & odb_
Definition: ObsGnssroRef.h:56
ufo::ObsGnssroRef::simulateObs
void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override
Obs Operator.
Definition: ObsGnssroRef.cc:50
ufo
Definition: RunCRTM.h:27
ufo::ObsGnssroRef::ObsGnssroRef
ObsGnssroRef(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsGnssroRef.cc:28
ObsGnssroRef.h
ufo::ObsOperatorBase
Base class for observation operators.
Definition: ObsOperatorBase.h:37
ufo::GeoVaLs::toFortran
int & toFortran()
Definition: src/ufo/GeoVaLs.h:80
ufo::ufo_gnssro_ref_setup_f90
void ufo_gnssro_ref_setup_f90(F90hop &, const eckit::Configuration &)
Interface to Fortran UFO routines.
ufo::ObsDiagnostics
Definition: src/ufo/ObsDiagnostics.h:35
ufo::ObsGnssroRef::varin_
std::unique_ptr< const oops::Variables > varin_
Definition: ObsGnssroRef.h:57
ufo::ufo_gnssro_ref_simobs_f90
void ufo_gnssro_ref_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &)
ufo::ObsOperatorMaker
Definition: ObsOperatorBase.h:78
ufo::GeoVaLs
GeoVaLs: geophysical values at locations.
Definition: src/ufo/GeoVaLs.h:39
ufo::ufo_gnssro_ref_delete_f90
void ufo_gnssro_ref_delete_f90(F90hop &)
ufo::ObsGnssroRef::print
void print(std::ostream &) const override
Definition: ObsGnssroRef.cc:58