ReFRACtor
|
This determines the sampling of the spectrum that should be used for each of the spectrum indexes. More...
#include <spectrum_sampling.h>
Public Member Functions | |
virtual | ~SpectrumSampling () |
virtual bool | need_interpolation (int Spec_index) const |
Indicate if spectral_domain and spectral_domain_interpolated are different at all. More... | |
int | number_spectrometer () const |
Number of spectrometers we have. More... | |
virtual void | print (std::ostream &Os) const |
Print to stream. More... | |
std::string | print_to_string () const |
Print to string. More... | |
virtual SpectralDomain | spectral_domain (int spec_index, const SpectralDomain &Lowres_grid, const DoubleWithUnit &Ils_half_width) const =0 |
Wavenumbers/Wavelengths to use for the given spectrometer. More... | |
virtual SpectralDomain | spectral_domain_interpolated (int Spec_index, const SpectralDomain &Lowres_grid, const DoubleWithUnit &Ils_half_width) const |
The interpolated spectral domain. More... | |
Protected Member Functions | |
SpectrumSampling (int num_spectrometer) | |
Constructor. More... | |
SpectrumSampling () | |
Default constructor, derived classes should set nspectrometer. More... | |
Protected Attributes | |
int | nspectrometer |
This determines the sampling of the spectrum that should be used for each of the spectrum indexes.
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 18 of file spectrum_sampling.h.
|
inlinevirtual |
Definition at line 20 of file spectrum_sampling.h.
|
inlineprotected |
Constructor.
Definition at line 67 of file spectrum_sampling.h.
|
inlineprotected |
Default constructor, derived classes should set nspectrometer.
Definition at line 72 of file spectrum_sampling.h.
|
inlinevirtual |
Indicate if spectral_domain and spectral_domain_interpolated are different at all.
Reimplemented in FullPhysics::NonuniformSpectrumSampling.
Definition at line 55 of file spectrum_sampling.h.
|
inline |
Number of spectrometers we have.
Definition at line 26 of file spectrum_sampling.h.
|
inlinevirtual |
Print to stream.
Reimplemented in FullPhysics::NonuniformSpectrumSampling, FullPhysics::SimpleFixedSpectrumSampling, FullPhysics::UniformSpectrumSampling, and FullPhysics::SpectrumSamplingFixedSpacing.
Definition at line 61 of file spectrum_sampling.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.
|
pure virtual |
Wavenumbers/Wavelengths to use for the given spectrometer.
We pass in the low resolution grid that we are going to generate after the ILS convolution, along with the ILS half width so we can generate the high resolution points needed to supply the ILS.
Implemented in FullPhysics::NonuniformSpectrumSampling, FullPhysics::SimpleFixedSpectrumSampling, FullPhysics::UniformSpectrumSampling, and FullPhysics::SpectrumSamplingFixedSpacing.
|
inlinevirtual |
The interpolated spectral domain.
The default is that this is just the same as spectral_domain, but derived classes can supply a different implementation if it is doing nonuniform sampling.
Reimplemented in FullPhysics::NonuniformSpectrumSampling.
Definition at line 45 of file spectrum_sampling.h.
|
protected |
Definition at line 74 of file spectrum_sampling.h.