FV3 Bundle
ObsRadiosonde.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 "oops/util/Logger.h"
15 
16 #include "ioda/ObsVector.h"
17 
18 #include "ufo/GeoVaLs.h"
19 #include "ufo/ObsBias.h"
20 
21 namespace ufo {
22 
23 // -----------------------------------------------------------------------------
24 static ObsOperatorMaker<ObsRadiosonde> makerRadiosonde_("Radiosonde");
25 // -----------------------------------------------------------------------------
26 
27 ObsRadiosonde::ObsRadiosonde(const ioda::ObsSpace & odb, const eckit::Configuration & config)
28  : keyOperRadiosonde_(0), varin_(), odb_(odb)
29 {
30  const eckit::Configuration * configc = &config;
32  const std::vector<std::string> vv{"virtual_temperature", "atmosphere_ln_pressure_coordinate"};
33  varin_.reset(new oops::Variables(vv));
34  oops::Log::trace() << "ObsRadiosonde created." << std::endl;
35 }
36 
37 // -----------------------------------------------------------------------------
38 
41  oops::Log::trace() << "ObsRadiosonde destructed" << std::endl;
42 }
43 
44 // -----------------------------------------------------------------------------
45 
47  const ObsBias & bias) const {
49  ovec.size(), ovec.toFortran(), bias.toFortran());
50 }
51 
52 // -----------------------------------------------------------------------------
53 
54 void ObsRadiosonde::print(std::ostream & os) const {
55  os << "ObsRadiosonde::print not implemented";
56 }
57 
58 // -----------------------------------------------------------------------------
59 
60 } // namespace ufo
void ufo_radiosonde_setup_f90(F90hop &, const eckit::Configuration *const *)
const ioda::ObsSpace & odb_
Definition: ObsRadiosonde.h:57
std::size_t size() const
ObsVector class to handle vectors in observation space for IODA.
void print(std::ostream &) const
ObsRadiosonde(const ioda::ObsSpace &, const eckit::Configuration &)
const double & toFortran() const
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
boost::scoped_ptr< const oops::Variables > varin_
Definition: ObsRadiosonde.h:58
Wrapper around ObsHelpQG, mostly to hide the factory.
void ufo_radiosonde_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &, const F90obias &)
GeoVaLs: geophysical values at locations.
static ObsOperatorMaker< ObsRadiosonde > makerRadiosonde_("Radiosonde")
void ufo_radiosonde_delete_f90(F90hop &)
Class to handle observation bias parameters.
virtual ~ObsRadiosonde()