ReFRACtor
|
This is a simple SpectrumSampling that is just a uniform sampling. More...
#include <simple_fixed_spectrum_sampling.h>
Public Member Functions | |
SimpleFixedSpectrumSampling (double wn_start, double wn_end, double wn_step) | |
Constructor. More... | |
SimpleFixedSpectrumSampling (double wn_start1, double wn_end1, double wn_step1, double wn_start2, double wn_end2, double wn_step2, double wn_start3, double wn_end3, double wn_step3) | |
Constructor for 3 spectrum (this is a useful case, because it matches GOSAT) More... | |
virtual | ~SimpleFixedSpectrumSampling () |
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 |
Wave numbers 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 Attributes | |
int | nspectrometer |
This is a simple SpectrumSampling that is just a uniform sampling.
This is useful for doing unit testing.
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 17 of file simple_fixed_spectrum_sampling.h.
SimpleFixedSpectrumSampling::SimpleFixedSpectrumSampling | ( | double | wn_start, |
double | wn_end, | ||
double | wn_step | ||
) |
Constructor.
This creates a fixed spacing grid. wn_end may be adjusted slightly if it isn't exactly wn_start + wn_step * i for some integer i.
Definition at line 12 of file simple_fixed_spectrum_sampling.cc.
SimpleFixedSpectrumSampling::SimpleFixedSpectrumSampling | ( | double | wn_start1, |
double | wn_end1, | ||
double | wn_step1, | ||
double | wn_start2, | ||
double | wn_end2, | ||
double | wn_step2, | ||
double | wn_start3, | ||
double | wn_end3, | ||
double | wn_step3 | ||
) |
Constructor for 3 spectrum (this is a useful case, because it matches GOSAT)
Definition at line 29 of file simple_fixed_spectrum_sampling.cc.
|
inlinevirtual |
Definition at line 24 of file simple_fixed_spectrum_sampling.h.
|
inlinevirtualinherited |
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.
|
inlineinherited |
Number of spectrometers we have.
Definition at line 26 of file spectrum_sampling.h.
|
virtual |
Print to stream.
Reimplemented from FullPhysics::SpectrumSampling.
Definition at line 56 of file simple_fixed_spectrum_sampling.cc.
|
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.
|
inlinevirtual |
Wave numbers to use for the given spectrometer.
Implements FullPhysics::SpectrumSampling.
Definition at line 30 of file simple_fixed_spectrum_sampling.h.
|
inlinevirtualinherited |
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.
|
protectedinherited |
Definition at line 74 of file spectrum_sampling.h.