UFO
ObsCoolSkinTLAD.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 #include <string>
12 #include <vector>
13 
14 #include "ioda/ObsSpace.h"
15 #include "ioda/ObsVector.h"
16 #include "oops/base/Variables.h"
17 #include "oops/util/Logger.h"
18 #include "ufo/GeoVaLs.h"
19 
20 namespace ufo {
21 
22 // -----------------------------------------------------------------------------
24 // -----------------------------------------------------------------------------
25 
26 ObsCoolSkinTLAD::ObsCoolSkinTLAD(const ioda::ObsSpace & odb, const eckit::Configuration & config)
27  : LinearObsOperatorBase(odb), keyOper_(0), varin_()
28 {
29  const std::vector<std::string> vv{"sea_surface_temperature",
30  "net_downwelling_shortwave_radiation",
31  "upward_latent_heat_flux_in_air",
32  "upward_sensible_heat_flux_in_air",
33  "net_downwelling_longwave_radiation",
34  "friction_velocity_over_water"};
35  varin_.reset(new oops::Variables(vv));
37  oops::Log::trace() << "ObsCoolSkinTLAD created" << std::endl;
38 }
39 
40 // -----------------------------------------------------------------------------
41 
44  oops::Log::trace() << "ObsCoolSkinTLAD destructed" << std::endl;
45 }
46 
47 // -----------------------------------------------------------------------------
48 
51  oops::Log::trace() << "ObsCoolSkinTLAD: trajectory set" << std::endl;
52 }
53 
54 // -----------------------------------------------------------------------------
55 
56 void ObsCoolSkinTLAD::simulateObsTL(const GeoVaLs & geovals, ioda::ObsVector & ovec) const {
58  ovec.size(), ovec.toFortran());
59  oops::Log::trace() << "ObsCoolSkinTLAD: tangent linear observation operator run" << std::endl;
60 }
61 
62 // -----------------------------------------------------------------------------
63 
64 void ObsCoolSkinTLAD::simulateObsAD(GeoVaLs & geovals, const ioda::ObsVector & ovec) const {
66  ovec.size(), ovec.toFortran());
67  oops::Log::trace() << "ObsCoolSkinTLAD: adjoint observation operator run" << std::endl;
68 }
69 
70 // -----------------------------------------------------------------------------
71 
72 void ObsCoolSkinTLAD::print(std::ostream & os) const {
73  os << "ObsCoolSkinTLAD::print not implemented" << std::endl;
74 }
75 
76 // -----------------------------------------------------------------------------
77 
78 } // namespace ufo
GeoVaLs: geophysical values at locations.
const ioda::ObsSpace & obsspace() const
The space containing the observations to be simulated by this operator.
void print(std::ostream &) const override
ObsCoolSkinTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
void setTrajectory(const GeoVaLs &, ObsDiagnostics &) override
Obs Operator.
std::unique_ptr< const oops::Variables > varin_
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &) const override
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &) const override
Definition: RunCRTM.h:27
void ufo_CoolSkin_simobs_tl_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &)
void ufo_CoolSkin_tlad_settraj_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &)
static LinearObsOperatorMaker< ObsCoolSkinTLAD > makerCoolSkinTL_("CoolSkin")
void ufo_CoolSkin_simobs_ad_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &)
void ufo_CoolSkin_tlad_delete_f90(F90hop &)
void ufo_CoolSkin_tlad_setup_f90(F90hop &, const eckit::Configuration &)
Interface to Fortran UFO coolskin routines.