FV3 Bundle
ObsSeaIceFraction.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 <boost/scoped_ptr.hpp>
15 
16 #include "eckit/config/Configuration.h"
17 
18 #include "ioda/ObsSpace.h"
19 #include "ioda/ObsVector.h"
20 
21 #include "oops/base/Variables.h"
22 
23 #include "ufo/GeoVaLs.h"
24 #include "ufo/ObsBias.h"
25 
26 namespace ufo {
27 
28 // -----------------------------------------------------------------------------
29 static ObsOperatorMaker<ObsSeaIceFraction> makerSeaIceFraction_("SeaIceFraction");
30 // -----------------------------------------------------------------------------
31 
33  const eckit::Configuration & config)
34  : keyOperSeaIceFraction_(0), varin_(), odb_(odb)
35 {
36  const eckit::Configuration * configc = &config;
38  const std::vector<std::string> vv{"ice_concentration"};
39  varin_.reset(new oops::Variables(vv));
40  oops::Log::trace() << "ObsSeaIceFraction created." << std::endl;
41 }
42 
43 // -----------------------------------------------------------------------------
44 
47  oops::Log::trace() << "ObsSeaIceFraction destructed" << std::endl;
48 }
49 
50 // -----------------------------------------------------------------------------
51 
53  const ObsBias & bias) const {
55  ovec.size(), ovec.toFortran(), bias.toFortran());
56 }
57 
58 // -----------------------------------------------------------------------------
59 
60 void ObsSeaIceFraction::print(std::ostream & os) const {
61  os << "ObsSeaIceFraction::print not implemented";
62 }
63 
64 // -----------------------------------------------------------------------------
65 
66 } // namespace ufo
std::size_t size() const
ObsVector class to handle vectors in observation space for IODA.
ObsSeaIceFraction(const ioda::ObsSpace &, const eckit::Configuration &)
static ObsOperatorMaker< ObsSeaIceFraction > makerSeaIceFraction_("SeaIceFraction")
const double & toFortran() const
Wrapper around ObsHelpQG, mostly to hide the factory.
void ufo_seaicefrac_delete_f90(F90hop &)
GeoVaLs: geophysical values at locations.
const ioda::ObsSpace & odb_
void ufo_seaicefrac_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &, const F90obias &)
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
boost::scoped_ptr< const oops::Variables > varin_
Class to handle observation bias parameters.
void print(std::ostream &) const
void ufo_seaicefrac_setup_f90(F90hop &, const eckit::Configuration *const *)
Interface to Fortran UFO routines.