ReFRACtor
temperature.cc
Go to the documentation of this file.
1 #include "temperature.h"
2 
3 using namespace FullPhysics;
4 
5 #ifdef HAVE_LUA
6 #include "register_lua.h"
9 #endif
10 
11 //-----------------------------------------------------------------------
13 //-----------------------------------------------------------------------
14 
16 const
17 {
19  blitz::Array<AutoDerivative<double>, 1> res(pgrid.rows());
20  Unit u = temperature(pgrid(0)).units;
21  for(int i = 0; i < res.rows(); ++i)
22  res(i) = temperature(pgrid(i)).convert(u).value;
24 }
virtual ArrayAdWithUnit< double, 1 > temperature_grid(const Pressure &P) const
Return temperature at the pressure grid.
Definition: temperature.cc:15
virtual AutoDerivativeWithUnit< double > temperature(const AutoDerivativeWithUnit< double > &Press) const =0
Return the temperature at the given pressure (in Pascals)
#define REGISTER_LUA_CLASS(X)
Definition: register_lua.h:116
This class maintains the pressure portion of the state.
Definition: pressure.h:32
Libraries such as boost::units allow unit handling where we know the units at compile time...
Definition: unit.h: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
virtual ArrayAdWithUnit< double, 1 > pressure_grid() const =0
This returns the pressure grid to use for layer retrieval, along with the gradient of each of the pre...
This class maintains the temperature portion of the state.
Definition: temperature.h:22

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