UFO
ObsGeosAod.cc
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2019 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 <set>
12 
13 #include "ioda/ObsVector.h"
14 #include "oops/base/Variables.h"
15 
16 #include "oops/util/IntSetParser.h"
17 #include "oops/util/Logger.h"
18 
19 
20 
21 #include "ufo/GeoVaLs.h"
22 #include "ufo/ObsDiagnostics.h"
23 
24 namespace ufo {
25 
26 // -----------------------------------------------------------------------------
28 // -----------------------------------------------------------------------------
29 
30 ObsGeosAod::ObsGeosAod(const ioda::ObsSpace & odb,
31  const eckit::Configuration & config)
32  : ObsOperatorBase(odb, config), keyOper_(0), odb_(odb), varin_()
33 {
34  ufo_geosaod_setup_f90(keyOper_, config, odb.obsvariables(), varin_);
35 
36  oops::Log::trace() << "ObsGeosAod created." << std::endl;
37 }
38 
39 // -----------------------------------------------------------------------------
40 
43  oops::Log::trace() << "ObsGeosAod destructed" << std::endl;
44 }
45 
46 // -----------------------------------------------------------------------------
47 
48 void ObsGeosAod::simulateObs(const GeoVaLs & gv, ioda::ObsVector & ovec, ObsDiagnostics &) const {
49  ufo_geosaod_simobs_f90(keyOper_, gv.toFortran(), odb_, ovec.nvars(), ovec.nlocs(),
50  ovec.toFortran());
51  oops::Log::trace() << "ObsGeosAod: observation operator run" << std::endl;
52 }
53 
54 // -----------------------------------------------------------------------------
55 
56 void ObsGeosAod::print(std::ostream & os) const {
57  os << "ObsGeosAod::print not implemented";
58 }
59 
60 // -----------------------------------------------------------------------------
61 
62 } // namespace ufo
ufo::ObsGeosAod::varin_
oops::Variables varin_
Definition: ObsGeosAod.h:59
ufo::makerGeosAod_
static ObsOperatorMaker< ObsGeosAod > makerGeosAod_("GeosAod")
ufo::ObsGeosAod::simulateObs
void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override
Obs Operator.
Definition: ObsGeosAod.cc:48
ObsGeosAod.h
ufo::ufo_geosaod_simobs_f90
void ufo_geosaod_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const int &, double &)
ufo::ObsGeosAod::ObsGeosAod
ObsGeosAod(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsGeosAod.cc:30
ufo::ObsGeosAod::~ObsGeosAod
virtual ~ObsGeosAod()
Definition: ObsGeosAod.cc:41
ufo
Definition: RunCRTM.h:27
ufo::ufo_geosaod_delete_f90
void ufo_geosaod_delete_f90(F90hop &)
ufo::ObsGeosAod::keyOper_
F90hop keyOper_
Definition: ObsGeosAod.h:57
ufo::ObsGeosAod::odb_
const ioda::ObsSpace & odb_
Definition: ObsGeosAod.h:58
ufo::ObsOperatorBase
Base class for observation operators.
Definition: ObsOperatorBase.h:37
ufo::GeoVaLs::toFortran
int & toFortran()
Definition: src/ufo/GeoVaLs.h:80
ufo::ufo_geosaod_setup_f90
void ufo_geosaod_setup_f90(F90hop &, const eckit::Configuration &, const oops::Variables &, oops::Variables &)
Interface to Fortran UFO geosaod routines.
ufo::ObsDiagnostics
Definition: src/ufo/ObsDiagnostics.h:35
ufo::ObsOperatorMaker
Definition: ObsOperatorBase.h:78
ufo::GeoVaLs
GeoVaLs: geophysical values at locations.
Definition: src/ufo/GeoVaLs.h:39
ufo::ObsGeosAod::print
void print(std::ostream &) const
Definition: ObsGeosAod.cc:56