ReFRACtor
hres_wrapper.cc
Go to the documentation of this file.
1 #include "hres_wrapper.h"
2 
3 using namespace FullPhysics;
4 
5 #ifdef HAVE_LUA
6 #include "register_lua.h"
8 hres_wrapper_create(const boost::shared_ptr<RadiativeTransfer>& Rt)
9 {
11  boost::dynamic_pointer_cast<RadiativeTransferSingleWn>(Rt);
13  (new HresWrapper(rt));
14 }
16 .scope
17 [
18  luabind::def("create", &hres_wrapper_create)
19 ]
21 #endif
22 
23 // See base class for description
24 blitz::Array<double, 1> HresWrapper::stokes_single_wn
25 (double Wn, int Spec_index, const ArrayAd<double, 2>& Iv) const
26 {
27  return rt_->stokes_single_wn(Wn, Spec_index, Iv);
28 }
29 
30 // See base class for description
32 (double Wn, int Spec_index, const ArrayAd<double, 2>& Iv) const
33 {
34  return rt_->stokes_and_jacobian_single_wn(Wn, Spec_index, Iv);
35 }
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
Definition: register_lua.h:136
This is a RadiativeTransfer that supplies an interface that can be called for a single wavenumber...
This runs a Radiative Transfer code to determine the reflectance for a given set of wavelengths...
virtual ArrayAd< double, 1 > stokes_and_jacobian_single_wn(double Wn, int Spec_index, const ArrayAd< double, 2 > &Iv) const
Calculate stokes vector and Jacobian for the given wavenumber.
Definition: hres_wrapper.cc:32
virtual blitz::Array< double, 1 > stokes_single_wn(double Wn, int Spec_index, const ArrayAd< double, 2 > &Iv) const
Calculate stokes vector for the given wavenumber.
Definition: hres_wrapper.cc:25
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"
For timing purposes, it can be useful to separate out the high resolution radiative transfer vs...
Definition: hres_wrapper.h:19

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