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