FV3 Bundle
ObsAircraftTLAD.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/ObsVector.h"
15 
16 #include "oops/base/Variables.h"
17 #include "oops/util/Logger.h"
18 
19 #include "ufo/GeoVaLs.h"
20 #include "ufo/ObsBias.h"
21 
22 namespace ufo {
23 
24 // -----------------------------------------------------------------------------
25 static LinearObsOperatorMaker<ObsAircraftTLAD> makerAircraftTL_("Aircraft");
26 // -----------------------------------------------------------------------------
27 
28 ObsAircraftTLAD::ObsAircraftTLAD(const ioda::ObsSpace & odb, const eckit::Configuration & config)
29  : keyOperAircraft_(0), varin_(), odb_(odb)
30 {
31  const eckit::Configuration * configc = &config;
33  const std::vector<std::string> vv{"virtual_temperature"};
34  varin_.reset(new oops::Variables(vv));
35  oops::Log::trace() << "ObsAircraftTLAD created" << std::endl;
36 }
37 
38 // -----------------------------------------------------------------------------
39 
42  oops::Log::trace() << "ObsAircraftTLAD destructed" << std::endl;
43 }
44 
45 // -----------------------------------------------------------------------------
46 
47 void ObsAircraftTLAD::setTrajectory(const GeoVaLs & geovals, const ObsBias & bias) {
49 }
50 
51 // -----------------------------------------------------------------------------
52 
54  const ObsBiasIncrement & bias) const {
56  ovec.size(), ovec.toFortran());
57 }
58 
59 // -----------------------------------------------------------------------------
60 
62  ObsBiasIncrement & bias) const {
64  ovec.size(), ovec.toFortran());
65 }
66 
67 // -----------------------------------------------------------------------------
68 
69 void ObsAircraftTLAD::print(std::ostream & os) const {
70  os << "ObsAircraftTLAD::print not implemented" << std::endl;
71 }
72 
73 // -----------------------------------------------------------------------------
74 
75 } // namespace ufo
void print(std::ostream &) const
std::size_t size() const
ObsVector class to handle vectors in observation space for IODA.
const double & toFortran() const
const ioda::ObsSpace & odb_
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const
Wrapper around ObsHelpQG, mostly to hide the factory.
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const
void ufo_aircraft_tlad_setup_f90(F90hop &, const eckit::Configuration *const *)
GeoVaLs: geophysical values at locations.
boost::scoped_ptr< const oops::Variables > varin_
static LinearObsOperatorMaker< ObsAircraftTLAD > makerAircraftTL_("Aircraft")
void setTrajectory(const GeoVaLs &, const ObsBias &)
Obs Operator.
void ufo_aircraft_tlad_settraj_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &)
ObsAircraftTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
Class to handle observation bias parameters.
void ufo_aircraft_simobs_tl_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &)
void ufo_aircraft_simobs_ad_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &)
void ufo_aircraft_tlad_delete_f90(F90hop &)