UFO
ObsAodGeos.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 ObsAodGeos::ObsAodGeos(const ioda::ObsSpace & odb,
31  const eckit::Configuration & config)
32  : ObsOperatorBase(odb, config), keyOper_(0), odb_(odb), varin_()
33 {
34  ufo_aodgeos_setup_f90(keyOper_, config, odb.obsvariables(), varin_);
35 
36  oops::Log::trace() << "ObsAodGeos created." << std::endl;
37 }
38 
39 // -----------------------------------------------------------------------------
40 
43  oops::Log::trace() << "ObsAodGeos destructed" << std::endl;
44 }
45 
46 // -----------------------------------------------------------------------------
47 
48 void ObsAodGeos::simulateObs(const GeoVaLs & gv, ioda::ObsVector & ovec, ObsDiagnostics &) const {
49  ufo_aodgeos_simobs_f90(keyOper_, gv.toFortran(), odb_, ovec.nvars(), ovec.nlocs(),
50  ovec.toFortran());
51  oops::Log::trace() << "ObsAodGeos: observation operator run" << std::endl;
52 }
53 
54 // -----------------------------------------------------------------------------
55 
56 void ObsAodGeos::print(std::ostream & os) const {
57  os << "ObsAodGeos::print not implemented";
58 }
59 
60 // -----------------------------------------------------------------------------
61 
62 } // namespace ufo
GeoVaLs: geophysical values at locations.
oops::Variables varin_
Definition: ObsAodGeos.h:59
ObsAodGeos(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsAodGeos.cc:30
const ioda::ObsSpace & odb_
Definition: ObsAodGeos.h:58
void print(std::ostream &) const override
Definition: ObsAodGeos.cc:56
virtual ~ObsAodGeos()
Definition: ObsAodGeos.cc:41
void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override
Obs Operator.
Definition: ObsAodGeos.cc:48
F90hop keyOper_
Definition: ObsAodGeos.h:57
Definition: RunCRTM.h:27
void ufo_aodgeos_setup_f90(F90hop &, const eckit::Configuration &, const oops::Variables &, oops::Variables &)
Interface to Fortran UFO aodgeos routines.
void ufo_aodgeos_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const int &, double &)
void ufo_aodgeos_delete_f90(F90hop &)
static ObsOperatorMaker< ObsAodGeos > makerAodGeos_("AodGeos")