ReFRACtor
aerosol_extinction_linear.cc
Go to the documentation of this file.
2 #include "fp_exception.h"
3 #include "ostream_pad.h"
4 #include <boost/lexical_cast.hpp>
5 
6 using namespace FullPhysics;
7 using namespace blitz;
8 
9 #ifdef HAVE_LUA
10 #include "register_lua.h"
12 .def(luabind::constructor<const boost::shared_ptr<Pressure>&,
13  const blitz::Array<bool, 1>&,
14  const blitz::Array<double, 1>&,
15  const std::string&>())
17 #endif
18 
19 // See base class for description
21 (const boost::shared_ptr<Pressure>& Pres) const
22 {
24  (new AerosolExtinctionLinear(Pres, used_flag, coeff.value(),
25  aerosol_name()));
26 }
27 
29 {
30  aext.resize(coeff.rows(), coeff.number_variable());
31  for(int i = 0; i < coeff.rows(); ++i)
32  aext(i) = coeff(i);
33 }
34 
35 void AerosolExtinctionLinear::print(std::ostream& Os) const
36 {
37  OstreamPad opad(Os, " ");
38  Os << "AerosolExtinctionLinear:\n"
39  << " Coefficient:\n";
40  opad << coeff.value() << "\n";
41  opad.strict_sync();
42  Os << " Retrieval flag:\n";
43  opad << used_flag << "\n";
44  opad.strict_sync();
45 }
virtual void calc_aerosol_extinction() const
Derived classes should provide a function to fill in vmr when this is called.
This is a filtering stream that adds a pad to the front of every line written out.
Definition: ostream_pad.h:32
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
Definition: register_lua.h:136
Apply value function to a blitz array.
This class maps the state vector to the aerosol extinction on each level.
virtual boost::shared_ptr< AerosolExtinction > clone() const
Clone a AerosolExtinction object.
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
virtual void print(std::ostream &Os) const
Print to stream.
This class maps the state vector to the aerosol extinction on each level.

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