ReFRACtor
|
This is the Forward Model spectral grid. More...
#include <forward_model_spectral_grid.h>
Public Member Functions | |
ForwardModelSpectralGrid (const boost::shared_ptr< Instrument > &Inst, const boost::shared_ptr< SpectralWindow > &Spectral_window, const boost::shared_ptr< SpectrumSampling > &Spectrum_sampling) | |
ForwardModelSpectralGrid () | |
virtual | ~ForwardModelSpectralGrid () |
const SpectralDomain | high_resolution_grid (int Spec_index) const |
The high resolution grid, possibly nonuniform. More... | |
const SpectralDomain | high_resolution_interpolated_grid (int Spec_index) const |
The high resolution grid, interpolated to be uniform. More... | |
Spectrum | interpolate_spectrum (const Spectrum &Spec_in, int Spec_index) const |
Interpolate a spectrum to the high_resolution_interpolated_grid() sampling. More... | |
const SpectralDomain | low_resolution_grid (int Spec_index) const |
The low resolution grid. More... | |
int | number_spectrometer () const |
Number of spectrometer. More... | |
const std::vector< int > | pixel_list (int Spec_index) const |
Pixel indexes to use for low resolution grid. More... | |
virtual void | print (std::ostream &Os) const |
std::string | print_to_string () const |
Print to string. More... | |
This is the Forward Model spectral grid.
This is in a separate class because this is a bit complicated. We have 3 grids to worry about
Note that there are a few closely related classes, with similar sounding names. See Spectrum related classes for a description of each of these.
Definition at line 29 of file forward_model_spectral_grid.h.
|
inline |
Definition at line 31 of file forward_model_spectral_grid.h.
|
inline |
Definition at line 37 of file forward_model_spectral_grid.h.
|
inlinevirtual |
Definition at line 38 of file forward_model_spectral_grid.h.
const SpectralDomain ForwardModelSpectralGrid::high_resolution_grid | ( | int | Spec_index | ) | const |
The high resolution grid, possibly nonuniform.
Definition at line 33 of file forward_model_spectral_grid.cc.
const SpectralDomain ForwardModelSpectralGrid::high_resolution_interpolated_grid | ( | int | Spec_index | ) | const |
The high resolution grid, interpolated to be uniform.
Definition at line 49 of file forward_model_spectral_grid.cc.
Spectrum ForwardModelSpectralGrid::interpolate_spectrum | ( | const Spectrum & | Spec_in, |
int | Spec_index | ||
) | const |
Interpolate a spectrum to the high_resolution_interpolated_grid() sampling.
Definition at line 75 of file forward_model_spectral_grid.cc.
const SpectralDomain ForwardModelSpectralGrid::low_resolution_grid | ( | int | Spec_index | ) | const |
The low resolution grid.
Definition at line 17 of file forward_model_spectral_grid.cc.
|
inline |
Number of spectrometer.
Definition at line 45 of file forward_model_spectral_grid.h.
const std::vector< int > ForwardModelSpectralGrid::pixel_list | ( | int | Spec_index | ) | const |
Pixel indexes to use for low resolution grid.
Definition at line 64 of file forward_model_spectral_grid.cc.
|
inlinevirtual |
Definition at line 39 of file forward_model_spectral_grid.h.
|
inlineinherited |
Print to string.
This is primarily useful for SWIG wrappers to this class, e.g. a to_s method in ruby.
Definition at line 31 of file printable.h.