FV3 Bundle
ObsRadiance.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 
18 #include "ufo/GeoVaLs.h"
19 #include "ufo/ObsBias.h"
20 
21 
22 namespace ufo {
23 
24 // -----------------------------------------------------------------------------
25 static ObsOperatorMaker<ObsRadiance> makerRadiance_("Radiance");
26 // -----------------------------------------------------------------------------
27 
28 ObsRadiance::ObsRadiance(const ioda::ObsSpace & odb, const eckit::Configuration & config)
29  : keyOperRadiance_(0), varin_(), odb_(odb)
30 {
31  const std::vector<std::string> vv{"virtual_temperature", "humidity_mixing_ratio", "air_pressure",
32  "air_pressure_levels", "mass_concentration_of_ozone_in_air",
33  "mass_concentration_of_carbon_dioxide_in_air",
34  "atmosphere_mass_content_of_cloud_liquid_water",
35  "atmosphere_mass_content_of_cloud_ice",
36  "effective_radius_of_cloud_liquid_water_particle",
37  "effective_radius_of_cloud_ice_particle",
38  "Water_Fraction", "Land_Fraction", "Ice_Fraction",
39  "Snow_Fraction", "Water_Temperature", "Land_Temperature",
40  "Ice_Temperature", "Snow_Temperature", "Vegetation_Fraction",
41  "Sfc_Wind_Speed", "Sfc_Wind_Direction", "Lai", "Soil_Moisture",
42  "Soil_Temperature", "Land_Type_Index", "Vegetation_Type",
43  "Soil_Type", "Snow_Depth"};
44  varin_.reset(new oops::Variables(vv));
45  const eckit::LocalConfiguration obsOptions(config, "ObsOptions");
46  const eckit::Configuration * configc = &obsOptions;
48  oops::Log::trace() << "ObsRadiance created." << std::endl;
49 }
50 
51 // -----------------------------------------------------------------------------
52 
55  oops::Log::trace() << "ObsRadiance destructed" << std::endl;
56 }
57 
58 // -----------------------------------------------------------------------------
59 
61  const ObsBias & bias) const {
63  ovec.size(), ovec.toFortran(), bias.toFortran());
64 }
65 
66 // -----------------------------------------------------------------------------
67 
68 void ObsRadiance::print(std::ostream & os) const {
69  os << "ObsRadiance::print not implemented";
70 }
71 
72 // -----------------------------------------------------------------------------
73 
74 } // namespace ufo
void ufo_radiance_simobs_f90(const F90hop &, const F90goms &, const ioda::ObsSpace &, const int &, double &, const F90obias &)
std::size_t size() const
F90hop keyOperRadiance_
Definition: ObsRadiance.h:56
ObsVector class to handle vectors in observation space for IODA.
void ufo_radiance_delete_f90(F90hop &)
const double & toFortran() const
const ioda::ObsSpace & odb_
Definition: ObsRadiance.h:57
Wrapper around ObsHelpQG, mostly to hide the factory.
GeoVaLs: geophysical values at locations.
void print(std::ostream &) const
Definition: ObsRadiance.cc:68
void simulateObs(const GeoVaLs &, ioda::ObsVector &, const ObsBias &) const
Obs Operator.
Definition: ObsRadiance.cc:60
virtual ~ObsRadiance()
Definition: ObsRadiance.cc:53
boost::scoped_ptr< const oops::Variables > varin_
Definition: ObsRadiance.h:58
Class to handle observation bias parameters.
static ObsOperatorMaker< ObsRadiance > makerRadiance_("Radiance")
void ufo_radiance_setup_f90(F90hop &, const eckit::Configuration *const *)
ObsRadiance(const ioda::ObsSpace &, const eckit::Configuration &)
Definition: ObsRadiance.cc:28