ReFRACtor
dispersion_polynomial_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.
10 (const boost::shared_ptr<Dispersion>& Disp, const std::string& Hdf_band_name)
11 {
14  (boost::dynamic_pointer_cast<DispersionPolynomial>(Disp), Hdf_band_name));
15 }
17 .def(luabind::constructor<const boost::shared_ptr<DispersionPolynomial>&,
18  std::string>())
19 .scope
20 [
21  luabind::def("create", &disp_pol_create)
22 ]
24 #endif
25 
26 // See base class for description
27 
29 {
30  // Freeze the instrument state
32  boost::dynamic_pointer_cast<DispersionPolynomial>(d->clone());
33  out->register_data_source
34  ("/RetrievalResults/dispersion_offset_apriori_" + hdf_band_name,
36  out->register_data_source
37  ("/RetrievalResults/dispersion_spacing_apriori_" + hdf_band_name,
39 }
40 
42 {
43  out->register_data_source
44  ("/RetrievalResults/dispersion_offset_" + hdf_band_name,
46  out->register_data_source
47  ("/RetrievalResults/dispersion_spacing_" + hdf_band_name,
49  out->register_data_source
50  ("/RetrievalResults/dispersion_offset_uncert_" + hdf_band_name,
52  out->register_data_source
53  ("/RetrievalResults/dispersion_spacing_uncert_" + hdf_band_name,
55 }
56 
double dispersion_spacing() const
Dispersion spacing.
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
Definition: register_lua.h:136
double dispersion_offset_uncertainty() const
Dispersion offset uncertainty.
This registers the portions of the DispersionPolynomial class that should be written as output...
double dispersion_spacing_uncertainty() const
Dispersion spacing uncertainty.
double dispersion_offset() const
Dispersion offset.
virtual void register_output_apriori(const boost::shared_ptr< Output > &out) const
Register apriori portions of class.
As described in the Output class, we have a decentralized model of producing output for L2 Full Physi...
This is an implementation of Dispersion that uses a polynomial expression to calculate the wavenumber...
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