ReFRACtor
radiative_transfer.cc
Go to the documentation of this file.
1 #include "radiative_transfer.h"
2 #include "logger.h"
3 using namespace FullPhysics;
4 
6 
7 using namespace FullPhysics;
8 #ifdef HAVE_LUA
9 #include "register_lua.h"
12 #endif
13 
14 //-----------------------------------------------------------------------
17 //-----------------------------------------------------------------------
19 RadiativeTransfer::progress_display(const blitz::Array<double, 1>& wn) const
20 {
22  if(wn.size() > 100 &&
23  Logger::stream()) {
24  Logger::info() << "RT Progress\n";
25  res.reset(new boost::progress_display(wn.size(), *Logger::stream()));
26  }
27  return res;
28 }
static LogHelper info()
Definition: logger.h:109
static AccumulatedTimer timer
#define REGISTER_LUA_CLASS(X)
Definition: register_lua.h:116
This runs a Radiative Transfer code to determine the reflectance for a given set of wavelengths...
static std::ostream * stream()
Underlying stream, can be null if no underlying stream.
Definition: logger.h:93
boost::shared_ptr< boost::progress_display > progress_display(const blitz::Array< double, 1 > &wn) const
Helper routine, creates a progress meter.
This is a simple timer class that can be used to accumulate the time spent in multiple calls to a fun...
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

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