14 void double_with_unit_unit_set(
DoubleWithUnit& V, std::string& Unit_name)
20 .def(luabind::constructor<double, const std::string&>())
23 &double_with_unit_unit_get,
24 &double_with_unit_unit_set)
38 int ind = (int) round(
value) - 1;
43 return convert_wave(R);
#define range_check(V, Min, Max)
Range check.
DoubleWithUnit convert_wave(const Unit &R) const
We often need to handle conversion from wavenumber to/from wavelength.
For different instruments, it is more natural to either work with wavenumbers (e.g., GOSAT) or wavelength (e.g., OCO).
const Unit sample_index("sample_index", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
#define REGISTER_LUA_CLASS(X)
We frequently have a double with units associated with it.
Libraries such as boost::units allow unit handling where we know the units at compile time...
const Unit units() const
Units that go with data()
Contains classes to abstract away details in various Spurr Radiative Transfer software.
#define REGISTER_LUA_END()
const std::string & name() const
Name of unit. May be an empty string if a name wasn't assigned.
double value(const FullPhysics::AutoDerivative< double > &Ad)
const blitz::Array< double, 1 > & data() const
Return data.