UFO
ObsScatwindNeutralMetOffice.cc
Go to the documentation of this file.
1 /*
2  * (C) British Crown Copyright 2020 Met Office
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 // -----------------------------------------------------------------------------
22 static ObsOperatorMaker<ObsScatwindNeutralMetOffice>
23  makerScatwindNeutralMetOffice_("ScatwindNeutralMetOffice");
24 // -----------------------------------------------------------------------------
25 
27  const eckit::Configuration & config)
28  : ObsOperatorBase(odb, config), keyOperScatwindNeutralMetOffice_(0),
29  odb_(odb), varin_()
30 {
32  config, odb.obsvariables(), varin_);
33 
34  oops::Log::trace() << "ObsScatwindNeutralMetOffice created." << std::endl;
35 }
36 
37 // -----------------------------------------------------------------------------
38 
41  oops::Log::trace() << "ObsScatwindNeutralMetOffice destructed" << std::endl;
42 }
43 
44 // -----------------------------------------------------------------------------
45 
46 void ObsScatwindNeutralMetOffice::simulateObs(const GeoVaLs & gom, ioda::ObsVector & ovec,
47  ObsDiagnostics &) const {
48  oops::Log::trace() << "ObsScatwindNeutralMetOffice::simulateObs entered" << std::endl;
49 
51  gom.toFortran(), odb_,
52  ovec.nvars(), ovec.nlocs(), ovec.toFortran());
53 
54  oops::Log::trace() << "ObsScatwindNeutralMetOffice::simulateObs exit" << std::endl;
55 }
56 
57 // -----------------------------------------------------------------------------
58 
59 void ObsScatwindNeutralMetOffice::print(std::ostream & os) const {
60  os << "ObsScatwindNeutralMetOffice::print not implemented";
61 }
62 
63 // -----------------------------------------------------------------------------
64 
65 } // namespace ufo
GeoVaLs: geophysical values at locations.
ObsScatwindNeutralMetOffice(const ioda::ObsSpace &, const eckit::Configuration &)
void print(std::ostream &) const override
void simulateObs(const GeoVaLs &, ioda::ObsVector &, ObsDiagnostics &) const override
Obs Operator.
Definition: RunCRTM.h:27
static ObsOperatorMaker< ObsScatwindNeutralMetOffice > makerScatwindNeutralMetOffice_("ScatwindNeutralMetOffice")
void ufo_scatwind_neutralmetoffice_delete_f90(F90hop &)
void ufo_scatwind_neutralmetoffice_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const int &, double &)
void ufo_scatwind_neutralmetoffice_setup_f90(F90hop &, const eckit::Configuration &, const oops::Variables &, oops::Variables &)
Interface to Fortran UFO routines.