UFO
ObsAtmSfcInterp.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 
12 #include "oops/util/Logger.h"
13 
14 #include "ioda/ObsVector.h"
15 
16 #include "ufo/GeoVaLs.h"
17 #include "ufo/ObsDiagnostics.h"
18 
19 namespace ufo {
20 
21 // -----------------------------------------------------------------------------
23 // -----------------------------------------------------------------------------
24 
25 ObsAtmSfcInterp::ObsAtmSfcInterp(const ioda::ObsSpace & odb, const eckit::Configuration & config)
26  : ObsOperatorBase(odb, config), keyOperAtmSfcInterp_(0),
27  odb_(odb), varin_()
28 {
29  ufo_atmsfcinterp_setup_f90(keyOperAtmSfcInterp_, config, odb.obsvariables(), varin_);
30 
31  oops::Log::trace() << "ObsAtmSfcInterp created." << std::endl;
32 }
33 
34 // -----------------------------------------------------------------------------
35 
38  oops::Log::trace() << "ObsAtmSfcInterp destructed" << std::endl;
39 }
40 
41 // -----------------------------------------------------------------------------
42 
43 void ObsAtmSfcInterp::simulateObs(const GeoVaLs & gom, ioda::ObsVector & ovec,
44  ObsDiagnostics &) const {
46  ovec.nvars(), ovec.nlocs(), ovec.toFortran());
47  oops::Log::trace() << "ObsAtmSfcInterp: observation operator executed" << std::endl;
48 }
49 
50 // -----------------------------------------------------------------------------
51 
52 void ObsAtmSfcInterp::print(std::ostream & os) const {
53  os << "ObsAtmSfcInterp::print not implemented";
54 }
55 
56 // -----------------------------------------------------------------------------
57 
58 } // namespace ufo
ufo::ObsAtmSfcInterp::ObsAtmSfcInterp
ObsAtmSfcInterp(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsAtmSfcInterp.cc:25
ufo::ObsAtmSfcInterp::varin_
oops::Variables varin_
Definition: ObsAtmSfcInterp.h:57
ufo::ObsAtmSfcInterp::~ObsAtmSfcInterp
virtual ~ObsAtmSfcInterp()
Definition: ObsAtmSfcInterp.cc:36
ufo::ObsAtmSfcInterp::simulateObs
void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override
Obs Operator.
Definition: ObsAtmSfcInterp.cc:43
ufo::ObsAtmSfcInterp::print
void print(std::ostream &) const override
Definition: ObsAtmSfcInterp.cc:52
ufo::ObsAtmSfcInterp::keyOperAtmSfcInterp_
F90hop keyOperAtmSfcInterp_
Definition: ObsAtmSfcInterp.h:55
ufo
Definition: RunCRTM.h:27
ufo::ObsOperatorBase
Base class for observation operators.
Definition: ObsOperatorBase.h:37
ufo::GeoVaLs::toFortran
int & toFortran()
Definition: src/ufo/GeoVaLs.h:80
ufo::ufo_atmsfcinterp_delete_f90
void ufo_atmsfcinterp_delete_f90(F90hop &)
ufo::makerGSISfcModel_
static ObsOperatorMaker< ObsAtmSfcInterp > makerGSISfcModel_("GSISfcModel")
ufo::ObsDiagnostics
Definition: src/ufo/ObsDiagnostics.h:35
ufo::ObsOperatorMaker
Definition: ObsOperatorBase.h:78
ObsAtmSfcInterp.h
ufo::GeoVaLs
GeoVaLs: geophysical values at locations.
Definition: src/ufo/GeoVaLs.h:39
ufo::ObsAtmSfcInterp::odb_
const ioda::ObsSpace & odb_
Definition: ObsAtmSfcInterp.h:56
ufo::ufo_atmsfcinterp_setup_f90
void ufo_atmsfcinterp_setup_f90(F90hop &, const eckit::Configuration &, const oops::Variables &, oops::Variables &)
Interface to Fortran UFO atmsfcinterp routines.
ufo::ufo_atmsfcinterp_simobs_f90
void ufo_atmsfcinterp_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const int &, double &)