ReFRACtor
empirical_orthogonal_function_output.cc
Go to the documentation of this file.
2 
3 using namespace FullPhysics;
4 
5 #ifdef HAVE_LUA
6 #include "register_lua.h"
7 // Lua doesn't know to cast a pointer type of base class to a derived class.
8 // Add a conversion routine.
11  const std::string& Hdf_band_name)
12 {
15  (boost::dynamic_pointer_cast<EmpiricalOrthogonalFunction>(Ic),
16  Hdf_band_name));
17 }
19 .scope
20 [
21  luabind::def("create", &eof_create)
22 ]
24 #endif
25 
26 // See base class for description
27 
29 {
30  // Freeze the instrument state
32  boost::dynamic_pointer_cast<EmpiricalOrthogonalFunction>(eof->clone());
33  out->register_data_source
34  ("/RetrievalResults/eof_" +
35  boost::lexical_cast<std::string>(eof->order()) +
36  "_scale_apriori_" + hdf_band_name,
38 }
39 
41 {
42  out->register_data_source
43  ("/RetrievalResults/eof_" +
44  boost::lexical_cast<std::string>(eof->order()) +
45  "_scale_" + hdf_band_name,
47  out->register_data_source
48  ("/RetrievalResults/eof_" +
49  boost::lexical_cast<std::string>(eof->order()) +
50  "_scale_uncert_" + hdf_band_name,
52 }
53 
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
Definition: register_lua.h:136
This class applies a empirical orthogonal function (EOF) correction to instrument data...
virtual void register_output_apriori(const boost::shared_ptr< Output > &out) const
Register apriori portions of class.
double scale_uncertainty() const
Scale uncertainty.
virtual void register_output(const boost::shared_ptr< Output > &out) const
Register portions of class that will be written to output.
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 registers the portions of the EmpiricalOrthogonalFunction class that should be written as output...

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