FV3 Bundle
ObsSeaIceFractionTLAD.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<ObsSeaIceFractionTLAD> makerSeaIceFractionTLAD_("SeaIceFraction");
26 // -----------------------------------------------------------------------------
27 
29  const eckit::Configuration & config)
30  : keyOperSeaIceFraction_(0), varin_()
31 {
32  const eckit::Configuration * configc = &config;
34  const std::vector<std::string> vv{"ice_concentration"};
35  varin_.reset(new oops::Variables(vv));
36  oops::Log::trace() << "ObsSeaIceFractionTLAD created" << std::endl;
37 }
38 
39 // -----------------------------------------------------------------------------
40 
43  oops::Log::trace() << "ObsSeaIceFractionTLAD destrcuted" << std::endl;
44 }
45 
46 // -----------------------------------------------------------------------------
47 
48 void ObsSeaIceFractionTLAD::setTrajectory(const GeoVaLs & geovals, const ObsBias & bias) {
50 }
51 
52 // -----------------------------------------------------------------------------
53 
55  const ObsBiasIncrement & bias) const {
57  ovec.size(), ovec.toFortran());
58 }
59 
60 // -----------------------------------------------------------------------------
61 
63  ObsBiasIncrement & bias) const {
65  ovec.size(), ovec.toFortran());
66 }
67 
68 // -----------------------------------------------------------------------------
69 
70 void ObsSeaIceFractionTLAD::print(std::ostream & os) const {
71  os << "ObsSeaIceFractionTLAD::print not implemented" << std::endl;
72 }
73 
74 // -----------------------------------------------------------------------------
75 
76 } // namespace ufo
void ufo_seaicefrac_simobs_tl_f90(const F90hop &, const F90goms &, const int &, const double &)
void print(std::ostream &) const
std::size_t size() const
ObsVector class to handle vectors in observation space for IODA.
boost::scoped_ptr< const oops::Variables > varin_
static LinearObsOperatorMaker< ObsSeaIceFractionTLAD > makerSeaIceFractionTLAD_("SeaIceFraction")
void simulateObsTL(const GeoVaLs &, ioda::ObsVector &, const ObsBiasIncrement &) const
const double & toFortran() const
Wrapper around ObsHelpQG, mostly to hide the factory.
void ufo_seaicefrac_tlad_delete_f90(F90hop &)
GeoVaLs: geophysical values at locations.
void ufo_seaicefrac_tlad_settraj_f90(const F90hop &, const F90goms &)
void setTrajectory(const GeoVaLs &, const ObsBias &)
Obs Operator.
Class to handle observation bias parameters.
ObsSeaIceFractionTLAD(const ioda::ObsSpace &, const eckit::Configuration &)
void ufo_seaicefrac_tlad_setup_f90(F90hop &, const eckit::Configuration *const *)
void ufo_seaicefrac_simobs_ad_f90(const F90hop &, const F90goms &, const int &, const double &)
void simulateObsAD(GeoVaLs &, const ioda::ObsVector &, ObsBiasIncrement &) const