Isis 3 Programmer Reference
|
A Spectral definition that includes wavelength and center values for each (line, sample) coordinate. More...
#include <SpectralDefinition1D.h>
Public Member Functions | |
SpectralDefinition1D (FileName smileDefFilename) | |
Constructs a SpectralDefinition1D, typically used as the target SpectralDefinition in the desmile application. More... | |
SpectralDefinition1D () | |
construct an empty 1D SpectralDef More... | |
virtual | ~SpectralDefinition1D () |
destructor More... | |
Spectel | findSpectel (const int sample, const int line, const int band) const |
Get the Spectel from this SpectralDefinition at a (s,l,b). More... | |
Spectel | findSpectel (const Spectel &inSpectel, const int sectionNumber) const |
Gets the Spectel from this SpectralDefinition at the same location (s,l,b) as the input Spectel. More... | |
Spectel | findSpectelByWavelength (double wavelength, int sectionNumber) const |
Finds the Spectel with the closest center wavelength (in the given sectionNumber) to the input wavelength. More... | |
virtual int | sectionCount () const |
Returns the number of sections in this Spectral Definition. More... | |
int | sectionNumber (int s, int l, int b) const |
Returns the section number that a spectel is in. More... | |
QString | toString () |
Returns the QString representation of the SpectralDefinition1D. More... | |
virtual int | sampleCount () const |
Returns the number of samples in the calibration image. More... | |
virtual int | lineCount () const |
Returns the number of line in the calibration image. More... | |
virtual int | bandCount () const |
Returns the number of bands in the calibration image. More... | |
Protected Attributes | |
int | m_ns |
Number of samples in input Cube. More... | |
int | m_nl |
Number of lines in input Cube. More... | |
int | m_nb |
Number of bands in input Cube. More... | |
Private Member Functions | |
void | init () |
Constructor initializer. More... | |
Private Attributes | |
QList< QList< Spectel > * > * | m_spectelList |
Stores each center wavelength and width. More... | |
int | m_numSections |
The number of different sections of the Spectral Definition. More... | |
bool | m_ascendingWavelengths |
Do the wavelengths in a given section ascend? Used to determine sections. More... | |
A Spectral definition that includes wavelength and center values for each (line, sample) coordinate.
Definition at line 35 of file SpectralDefinition1D.h.
Isis::SpectralDefinition1D::SpectralDefinition1D | ( | FileName | smileDefFilename | ) |
Constructs a SpectralDefinition1D, typically used as the target SpectralDefinition in the desmile application.
smileDefFilename | The filename for the source of the 1D SpectralDefinition. Currently, only CSVs are accepted as input. |
Definition at line 26 of file SpectralDefinition1D.cpp.
References Isis::CSVReader::columns(), Isis::CSVReader::getColumn(), m_ascendingWavelengths, Isis::SpectralDefinition::m_nb, Isis::SpectralDefinition::m_nl, Isis::SpectralDefinition::m_ns, m_numSections, m_spectelList, Isis::CSVReader::rows(), Isis::toDouble(), Isis::FileName::toString(), Isis::IException::Unknown, and Isis::IException::User.
Isis::SpectralDefinition1D::SpectralDefinition1D | ( | ) |
construct an empty 1D SpectralDef
Definition at line 149 of file SpectralDefinition1D.cpp.
|
virtual |
|
virtualinherited |
Returns the number of bands in the calibration image.
Definition at line 50 of file SpectralDefinition.cpp.
References Isis::SpectralDefinition::m_nb.
|
virtual |
Get the Spectel from this SpectralDefinition at a (s,l,b).
This can be used to determine the center wavelength and filter width in a particular band.
If the (s,l,b) is not in the spectral definition, an empty Spectel is returned.
sample | Sample |
line | Line |
band | Band |
Implements Isis::SpectralDefinition.
Definition at line 173 of file SpectralDefinition1D.cpp.
References m_numSections, and m_spectelList.
|
virtual |
Gets the Spectel from this SpectralDefinition at the same location (s,l,b) as the input Spectel.
inSpectel | The input Spectel used to look up information. |
sectionNumber | The SpectralDefinition's section number that the input Spectel is in. |
Implements Isis::SpectralDefinition.
Definition at line 205 of file SpectralDefinition1D.cpp.
References Isis::Spectel::centerWavelength(), findSpectelByWavelength(), and sectionNumber().
|
virtual |
Finds the Spectel with the closest center wavelength (in the given sectionNumber) to the input wavelength.
wavelength | The closest wavelength to this input wavelength is searched for in the SpectralDefinition. |
sectionNumber | The section number of the definition to search in. |
Implements Isis::SpectralDefinition.
Definition at line 226 of file SpectralDefinition1D.cpp.
References m_numSections, m_spectelList, Isis::Null, sectionNumber(), and Isis::IException::User.
Referenced by findSpectel().
|
privateinherited |
Constructor initializer.
Definition at line 65 of file SpectralDefinition.cpp.
References Isis::SpectralDefinition::m_nb, Isis::SpectralDefinition::m_nl, Isis::SpectralDefinition::m_ns, and Isis::SpectralDefinition::m_numSections.
Referenced by Isis::SpectralDefinition::SpectralDefinition().
|
virtualinherited |
Returns the number of line in the calibration image.
Definition at line 42 of file SpectralDefinition.cpp.
References Isis::SpectralDefinition::m_nl.
|
virtualinherited |
Returns the number of samples in the calibration image.
Definition at line 34 of file SpectralDefinition.cpp.
References Isis::SpectralDefinition::m_ns.
|
virtual |
Returns the number of sections in this Spectral Definition.
Reimplemented from Isis::SpectralDefinition.
Definition at line 123 of file SpectralDefinition1D.cpp.
References m_numSections.
|
virtual |
Returns the section number that a spectel is in.
s | Sample coordinate of spectel |
l | Line coordinate of spectel |
b | Band coordinate of spectel |
Implements Isis::SpectralDefinition.
Definition at line 137 of file SpectralDefinition1D.cpp.
References m_spectelList.
Referenced by findSpectel(), and findSpectelByWavelength().
QString Isis::SpectralDefinition1D::toString | ( | ) |
Returns the QString representation of the SpectralDefinition1D.
Definition at line 99 of file SpectralDefinition1D.cpp.
References m_spectelList.
|
private |
Do the wavelengths in a given section ascend? Used to determine sections.
Definition at line 57 of file SpectralDefinition1D.h.
Referenced by SpectralDefinition1D().
|
protectedinherited |
Number of bands in input Cube.
Definition at line 60 of file SpectralDefinition.h.
Referenced by Isis::SpectralDefinition::bandCount(), Isis::SpectralDefinition::init(), SpectralDefinition1D(), and Isis::SpectralDefinition2D::SpectralDefinition2D().
|
protectedinherited |
Number of lines in input Cube.
Definition at line 57 of file SpectralDefinition.h.
Referenced by Isis::SpectralDefinition::init(), Isis::SpectralDefinition::lineCount(), SpectralDefinition1D(), and Isis::SpectralDefinition2D::SpectralDefinition2D().
|
protectedinherited |
Number of samples in input Cube.
Definition at line 54 of file SpectralDefinition.h.
Referenced by Isis::SpectralDefinition::init(), Isis::SpectralDefinition::sampleCount(), SpectralDefinition1D(), and Isis::SpectralDefinition2D::SpectralDefinition2D().
|
private |
The number of different sections of the Spectral Definition.
Definition at line 55 of file SpectralDefinition1D.h.
Referenced by findSpectel(), findSpectelByWavelength(), sectionCount(), and SpectralDefinition1D().
Stores each center wavelength and width.
Definition at line 53 of file SpectralDefinition1D.h.
Referenced by findSpectel(), findSpectelByWavelength(), sectionNumber(), SpectralDefinition1D(), toString(), and ~SpectralDefinition1D().