ReFRACtor
|
This class represents a the spectral window. More...
#include <spectral_window.h>
Public Member Functions | |
virtual | ~SpectralWindow () |
SpectralDomain | apply (const SpectralDomain &Grid, int Spec_index) const |
Apply a spectral window to a SpectralDomain, returning the possibly empty part of the domain that passes through the window. More... | |
Spectrum | apply (const Spectrum &Spec, int Spec_index) const |
Apply a spectral window to a Spectrum, returning the possibly empty part of the spectrum that passes through the window. More... | |
virtual std::vector< int > | grid_indexes (const SpectralDomain &Grid, int Spec_index) const =0 |
Given a list of wavenumbers, this returns the indices that fall within the window. More... | |
virtual int | number_spectrometer () const =0 |
Number of spectrometers. More... | |
virtual void | print (std::ostream &Os) const |
std::string | print_to_string () const |
Print to string. More... | |
virtual SpectralBound | spectral_bound () const =0 |
Bounds of spectral window. More... | |
This class represents a the spectral window.
The definition of a spectral window is purposely fuzzy, we want to support things like excluding certain wavenumbers. So the interface simple takes a list of potential wavenumbers (e.g., the wavenumbers measured to the GOSAT oxygen A spectrometer) and returns the list of values that fall within the window. For example, if the window is just a wavenumber range, then all the wavenumbers that fall within that range are returned.
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 27 of file spectral_window.h.
|
inlinevirtual |
Definition at line 29 of file spectral_window.h.
SpectralDomain SpectralWindow::apply | ( | const SpectralDomain & | Grid, |
int | Spec_index | ||
) | const |
Apply a spectral window to a SpectralDomain, returning the possibly empty part of the domain that passes through the window.
Definition at line 20 of file spectral_window.cc.
Apply a spectral window to a Spectrum, returning the possibly empty part of the spectrum that passes through the window.
Definition at line 41 of file spectral_window.cc.
|
pure virtual |
Given a list of wavenumbers, this returns the indices that fall within the window.
Implemented in FullPhysics::SpectralWindowRange.
|
pure virtual |
Number of spectrometers.
Implemented in FullPhysics::SpectralWindowRange.
|
inlinevirtual |
Reimplemented in FullPhysics::SpectralWindowRange.
Definition at line 54 of file spectral_window.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 |
Bounds of spectral window.
Implemented in FullPhysics::SpectralWindowRange.