ReFRACtor
absorber_vmr_level_scaled_output.cc
Go to the documentation of this file.
2 #include <boost/algorithm/string/case_conv.hpp>
3 
4 using namespace FullPhysics;
5 using namespace blitz;
6 
7 #ifdef HAVE_LUA
8 #include "register_lua.h"
9 // Lua doesn't know to cast a pointer type of base class to a derived class.
10 // Add a conversion routine.
11 boost::shared_ptr<RegisterOutputBase> abs_vmr_level_scaled_create
13 {
16  (boost::dynamic_pointer_cast<AbsorberVmrLevelScaled>(A)));
17 }
19 .scope
20 [
21  luabind::def("create", &abs_vmr_level_scaled_create)
22 ]
24 #endif
25 
26 // See base class for description
27 
29 {
30  // Freeze the pressure state
32  boost::dynamic_pointer_cast<AbsorberVmrScaled>(a->clone());
33  std::string gname = a->gas_name();
34  boost::to_lower(gname);
35  out->register_data_source
36  ("/RetrievalResults/" + gname + "_scale_factor_apriori",
38 }
39 
41 {
42  std::string gname = a->gas_name();
43  boost::to_lower(gname);
44  out->register_data_source
45  ("/RetrievalResults/" + gname + "_scale_factor",
47  out->register_data_source
48  ("/RetrievalResults/" + gname + "_scale_factor_uncert",
50 }
double scale_uncertainty() const
Uncertainty of scale factor.
virtual void register_output_apriori(const boost::shared_ptr< Output > &out) const
Register apriori portions of class.
virtual void register_output(const boost::shared_ptr< Output > &out) const
Register portions of class that will be written to output.
This registers the portions of the AbsorberVmrLevelScaled class that should be written as output...
double scale_factor() const
Scale factor.
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
Definition: register_lua.h:136
Apply value function to a blitz array.
const Unit A("A", 1.0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0)
As described in the Output class, we have a decentralized model of producing output for L2 Full Physi...
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
#define REGISTER_LUA_END()
Definition: register_lua.h:134
def(luabind::constructor< int >()) .def("rows"
This class maps the state vector to the absorber VMR on each level.
virtual std::string gas_name() const
This indicates the name of this particular Absorber.

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:10