ReFRACtor
radiance_scaling_output.cc
Go to the documentation of this file.
3 
4 using namespace FullPhysics;
5 
6 #ifdef HAVE_LUA
7 #include "register_lua.h"
8 // Lua doesn't know to cast a pointer type of base class to a derived class.
9 // Add a conversion routine.
12  const std::string& Hdf_band_name)
13 {
16  (boost::dynamic_pointer_cast<RadianceScaling>(Rs), Hdf_band_name));
17 }
19 .scope
20 [
21  luabind::def("create", &rs_create)
22 ]
24 #endif
25 
26 // See base class for description
27 
29 {
30  boost::shared_ptr<RadianceScaling> rad_scaling_freeze =
31  boost::dynamic_pointer_cast<RadianceScaling>(rad_scaling->clone());
32  out->register_data_source
33  ("/RetrievalResults/radiance_scaling_apriori_" + hdf_band_name,
34  &RadianceScaling::radiance_scaling_coeff, rad_scaling_freeze);
35 }
36 
38 {
39  out->register_data_source
40  ("/RetrievalResults/radiance_scaling_" + hdf_band_name,
42  out->register_data_source
43  ("/RetrievalResults/radiance_scaling_uncert_" + hdf_band_name,
45 }
46 
virtual blitz::Array< double, 1 > radiance_scaling_coeff_uncertainty() const =0
Return radiance scaling coefficients uncertainty for the output file.
This abstract class provides the generic capabilities for applying a radiance scaling to a Radiance...
This registers the portions of the RadianceScaling class that should be written as output...
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
Definition: register_lua.h:136
virtual void register_output_apriori(const boost::shared_ptr< Output > &out) const
Register apriori portions of class.
virtual blitz::Array< double, 1 > radiance_scaling_coeff() const
Return radiance scaling coefficients for the output file.
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"
virtual void register_output(const boost::shared_ptr< Output > &out) const
Register portions of class that will be written to output.

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