FV3 Bundle
ObsSeaIceThickness.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<ObsSeaIceThickness> makerSeaIceThickness_("SeaIceThickness");
26 // -----------------------------------------------------------------------------
27 
29  const eckit::Configuration & config)
30  : keyOperSeaIceThickness_(0), varin_(), odb_(odb)
31 {
32  const eckit::Configuration * configc = &config;
34  const std::vector<std::string> vv{"ice_concentration", "ice_thickness"};
35  varin_.reset(new oops::Variables(vv));
36  oops::Log::trace() << "ObsSeaIceThickness created." << std::endl;
37 }
38 
39 // -----------------------------------------------------------------------------
40 
43  oops::Log::trace() << "ObsSeaIceThickness destructed" << std::endl;
44 }
45 
46 // -----------------------------------------------------------------------------
47 
49  const ObsBias & bias) const {
51  ovec.size(), ovec.toFortran(), bias.toFortran());
52 }
53 
54 // -----------------------------------------------------------------------------
55 
56 void ObsSeaIceThickness::print(std::ostream & os) const {
57  os << "ObsSeaIceThickness::print not implemented";
58 }
59 
60 // -----------------------------------------------------------------------------
61 
62 } // namespace ufo
void ufo_seaicethick_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, const double &, const F90obias &)
std::size_t size() const
ObsVector class to handle vectors in observation space for IODA.
boost::scoped_ptr< const oops::Variables > varin_
const double & toFortran() const
void ufo_seaicethick_delete_f90(F90hop &)
ObsSeaIceThickness(const ioda::ObsSpace &, const eckit::Configuration &)
static ObsOperatorMaker< ObsSeaIceThickness > makerSeaIceThickness_("SeaIceThickness")
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
Wrapper around ObsHelpQG, mostly to hide the factory.
GeoVaLs: geophysical values at locations.
void print(std::ostream &) const
void ufo_seaicethick_setup_f90(F90hop &, const eckit::Configuration *const *)
Class to handle observation bias parameters.
const ioda::ObsSpace & odb_