ReFRACtor
level_1b_scale_radiance.cc
Go to the documentation of this file.
2 #include "fp_exception.h"
3 using namespace FullPhysics;
4 using namespace blitz;
5 
6 #ifdef HAVE_LUA
7 #include "register_lua.h"
9 .def(luabind::constructor<const boost::shared_ptr<Level1b> &, const blitz::Array<double, 1>&>())
11 #endif
12 
14 {
15  range_check(Spec_index, 0, (int) scaling.rows());
16  SpectralRange rad = l1b->radiance(Spec_index);
17  return SpectralRange(Array<double, 1>(rad.data() * scaling(Spec_index)), rad.units(), rad.uncertainty());
18 }
19 
20 void Level1bScaleRadiance::print(std::ostream& Os) const
21 {
22  Os << "Level1bScaleRadiance";
23 }
#define range_check(V, Min, Max)
Range check.
Definition: fp_exception.h:140
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
Definition: register_lua.h:136
virtual SpectralRange radiance(int Spec_index) const
Radiance, for given spectral band.
This is used to read a Level 1B file.
Definition: level_1b.h:15
Apply value function to a blitz array.
virtual void print(std::ostream &Os) const
Print description of object.
We have a number of different spectrums that appear in different parts of the code.
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
const Unit rad("rad", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0)
Scales the measured radiance of another Level1b class for each spectral band.

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