ReFRACtor
stokes_coefficient_constant.cc
Go to the documentation of this file.
2 #include "ostream_pad.h"
3 
4 using namespace FullPhysics;
5 #ifdef HAVE_LUA
6 #include "register_lua.h"
8 .def(luabind::constructor<const blitz::Array<double, 2>&>())
10 #endif
11 
12 //-----------------------------------------------------------------------
14 //-----------------------------------------------------------------------
16 (const blitz::Array<double, 2>& Stokes_coeff)
17 {
18  stokes_coeff.resize(Stokes_coeff.shape(), 0);
19  stokes_coeff = Stokes_coeff;
20 }
21 
22 void StokesCoefficientConstant::print(std::ostream& Os) const
23 {
24  OstreamPad opad(Os, " ");
25  Os << "StokesCoefficientConstant:\n";
26  opad << stokes_coefficient().value();
27  opad.strict_sync();
28 }
29 
31 {
34 }
This is a filtering stream that adds a pad to the front of every line written out.
Definition: ostream_pad.h:32
This class maintains the stokes coefficient portion of the state.
This class maintains the stokes coefficient portion of the state.
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
Definition: register_lua.h:136
const blitz::Array< T, D > & value() const
Definition: array_ad.h:306
virtual ArrayAd< double, 2 > stokes_coefficient() const
Return Stokes coefficients used to go from Stokes vector to scalar reflectance.
virtual boost::shared_ptr< StokesCoefficient > clone() const
Clone a StokesCoefficient object.
StokesCoefficientConstant(const blitz::Array< double, 2 > &Stokes_coeff)
Constructor.
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
double value(const FullPhysics::AutoDerivative< double > &Ad)
virtual void print(std::ostream &Os) const

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