18 : fm(Fm), meas(inst_meas) {}
21 return meas->radiance_all().spectral_domain().data();
27 "wavelength" :
"wavenumber" ;
32 return meas->radiance_all().spectral_range().data();
37 return meas->radiance_all().spectral_range().uncertainty();
42 return meas->radiance_all().spectral_domain().data().rows();
47 Array<int, 1> res(fm->num_channels());
49 for(
int i = 0; i < res.rows(); ++i) {
50 boost::optional<blitz::Range> pr = fm->stacked_pixel_range(i);
53 res(i) = pr->length();
72 out->register_data_source(
"/SpectralParametersOutput/num_colors",
74 out->register_data_source(
"/SpectralParametersOutput/num_colors_per_band",
76 out->register_data_source(
"/SpectralParametersOutput/" + fmc->spectral_domain_name(),
78 out->register_data_source(
"/SpectralParametersOutput/measured_radiance",
80 out->register_data_source(
"/SpectralParametersOutput/measured_radiance_uncert",
blitz::Array< double, 1 > spectral_domain_values() const
ForwardModelCalc(const boost::shared_ptr< ForwardModel > &Fm, const boost::shared_ptr< Observation > &inst_meas)
virtual void register_output(const boost::shared_ptr< Output > &out) const
Register portions of class that will be written to output.
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
Apply value function to a blitz array.
blitz::Array< double, 1 > measured_radiance_uncert() const
This registers the portions of the ForwardModel class that should be written as output.
As described in the Output class, we have a decentralized model of producing output for L2 Full Physi...
Array< int, 1 > number_pixel_each_band() const
Contains classes to abstract away details in various Spurr Radiative Transfer software.
#define REGISTER_LUA_END()
blitz::Array< double, 1 > measured_radiance() const
std::string spectral_domain_name() const