FV3 Bundle
ObsAircraft.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 ObsOperatorMaker<ObsAircraft> makerAircraft_("Aircraft");
26 // -----------------------------------------------------------------------------
27 
28 ObsAircraft::ObsAircraft(const ioda::ObsSpace & odb, const eckit::Configuration & config)
29  : keyOperAircraft_(0), varin_(), odb_(odb)
30 {
31  const std::vector<std::string> vv{"virtual_temperature", "atmosphere_ln_pressure_coordinate"};
32  const eckit::Configuration * configc = &config;
34  varin_.reset(new oops::Variables(vv));
35  oops::Log::trace() << "ObsAircraft created." << std::endl;
36 }
37 
38 // -----------------------------------------------------------------------------
39 
42  oops::Log::trace() << "ObsAircraft destructed" << std::endl;
43 }
44 
45 // -----------------------------------------------------------------------------
46 
48  const ObsBias & bias) const {
50  ovec.size(), ovec.toFortran(), bias.toFortran());
51 }
52 
53 // -----------------------------------------------------------------------------
54 
55 void ObsAircraft::print(std::ostream & os) const {
56  os << "ObsAircraft::print not implemented";
57 }
58 
59 // -----------------------------------------------------------------------------
60 
61 } // namespace ufo
void print(std::ostream &) const
Definition: ObsAircraft.cc:55
std::size_t size() const
F90hop keyOperAircraft_
Definition: ObsAircraft.h:55
void ufo_aircraft_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &, const F90obias &)
ObsVector class to handle vectors in observation space for IODA.
ObsAircraft(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsAircraft.cc:28
const double & toFortran() const
boost::scoped_ptr< const oops::Variables > varin_
Definition: ObsAircraft.h:57
static ObsOperatorMaker< ObsAircraft > makerAircraft_("Aircraft")
Wrapper around ObsHelpQG, mostly to hide the factory.
GeoVaLs: geophysical values at locations.
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
Definition: ObsAircraft.cc:47
virtual ~ObsAircraft()
Definition: ObsAircraft.cc:40
Class to handle observation bias parameters.
const ioda::ObsSpace & odb_
Definition: ObsAircraft.h:56
void ufo_aircraft_setup_f90(F90hop &, const eckit::Configuration *const *)
Interface to Fortran UFO routines.
void ufo_aircraft_delete_f90(F90hop &)