15 (boost::dynamic_pointer_cast<StandardForwardModel>(fm)));
34 int num_total_samples = 0;
35 for(
int i = 0; i < fm->num_channels(); ++i) {
36 num_total_samples += fm->spectral_domain(i).data().rows();
38 Array<int, 1> samples(num_total_samples);
39 for(
int i = 0; i < fm->num_channels(); ++i) {
40 boost::optional<blitz::Range> pr = fm->stacked_pixel_range(i);
42 samples(*pr) = fm->spectral_grid()->low_resolution_grid(i).sample_index();
56 out->register_data_source(
"/SpectralParameters/sample_indexes",
StandardForwardModelCalc(const boost::shared_ptr< StandardForwardModel > &Fm)
Array< int, 1 > samples() const
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
Apply value function to a blitz array.
virtual void register_output(const boost::shared_ptr< Output > &out) const
Register portions of class that will be written to output.
As described in the Output class, we have a decentralized model of producing output for L2 Full Physi...
This registers the portions of the StandardForwardModel class that should be written as output...
Contains classes to abstract away details in various Spurr Radiative Transfer software.
#define REGISTER_LUA_END()
def(luabind::constructor< int >()) .def("rows"