Function wt::spectrum::detail_spectrum_from_db::spectrum_from_db

Function Documentation

spectrum_from_material_ret_t wt::spectrum::detail_spectrum_from_db::spectrum_from_db(const wt_context_t &ctx, const std::string &name, const std::uint16_t channels, const wavelength_t db_wavelength, const f_t scale, const bool bin = false)

Loads a spectrum (or several channels of spectra) from database file.

Parameters:

bin – Should convert the piecewise-linear spectrum to a binned (equal-spaced) spectrum?