14 for(
int i = 0; i < res.rows(); ++i)
24 for(
int i = 0; i < res.rows(); ++i)
32 .def(
"spectral_coefficient", &level_1b_s_coeffs)
34 .def(
"spectral_coefficient_with_unit", &level_1b_s_coeffs_with_unit)
42 VectorLevel1bSampleCoefficient)
43 .
def(luabind::constructor<>())
44 .
def("push_back", ((
pbt1) &
std::vector<
boost::shared_ptr<Level1bSampleCoefficient> >::push_back))
49 double Level1bSampleCoefficient::calculate_sample_value_from_coeffs(
int Spec_index,
int sample_index)
const {
53 return spectral_poly(sample_index);
58 int num_samples = this->radiance(Spec_index).
data().rows();
59 int sample_offset = (this->one_based_) ? 1 : 0;
60 Array<double, 1> grid_data = Array<double, 1>(num_samples);
virtual SpectralDomain sample_grid(int Spec_index) const
Returns the sample grid (ie wavenumber, wavelength, etc) for the corresponding radiance values...
This is used to wrap the nominal Level 1B file reader.
We frequently have a array of numbers with units associated with them.
virtual ArrayWithUnit< double, 1 > spectral_coefficient(int Spec_index) const =0
Returns coefficients for an equation describing the special domain used to translate radiance value i...
For different instruments, it is more natural to either work with wavenumbers (e.g., GOSAT) or wavelength (e.g., OCO).
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
This is used to read a Level 1B file.
blitz::Array< T, D > value
const Unit sample_index("sample_index", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
Apply value function to a blitz array.
#define REGISTER_LUA_CLASS_NAME(X, Y)
A one-dimensional polynomial class.
void(std::vector< std::string >::* pbt1)(const std::vector< std::string >::value_type &)
Libraries such as boost::units allow unit handling where we know the units at compile time...
Contains classes to abstract away details in various Spurr Radiative Transfer software.
#define REGISTER_LUA_END()
def(luabind::constructor< int >()) .def("rows"
const blitz::Array< double, 1 > & data() const
Return data.
virtual int number_spectrometer() const =0
Number of spectrometers.