Isis 3 Developer 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... | |
A Spectral definition that includes wavelength and center values for each (line, sample) coordinate.
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. |
References _FILEINFO_, Isis::SpectralDefinition::m_nb, Isis::SpectralDefinition::m_nl, Isis::SpectralDefinition::m_ns, Isis::NULL8, Isis::toDouble(), Isis::FileName::toString(), Isis::IException::Unknown, and Isis::IException::User.
Isis::SpectralDefinition1D::SpectralDefinition1D | ( | ) |
construct an empty 1D SpectralDef
|
virtual |
destructor
|
virtualinherited |
Returns the number of bands in the calibration image.
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.
|
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.
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.
References _FILEINFO_, Isis::Null, sectionNumber(), and Isis::IException::User.
Referenced by findSpectel().
|
virtualinherited |
Returns the number of line in the calibration image.
References Isis::SpectralDefinition::m_nl.
|
virtualinherited |
Returns the number of samples in the calibration image.
References Isis::SpectralDefinition::m_ns.
|
virtual |
Returns the number of sections in this Spectral Definition.
Reimplemented from Isis::SpectralDefinition.
|
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.
Referenced by findSpectel(), and findSpectelByWavelength().
QString Isis::SpectralDefinition1D::toString | ( | ) |
Returns the QString representation of the SpectralDefinition1D.
|
protectedinherited |
Number of bands in input Cube.
Referenced by Isis::SpectralDefinition::bandCount(), SpectralDefinition1D(), and Isis::SpectralDefinition2D::SpectralDefinition2D().
|
protectedinherited |
Number of lines in input Cube.
Referenced by Isis::SpectralDefinition::lineCount(), SpectralDefinition1D(), and Isis::SpectralDefinition2D::SpectralDefinition2D().
|
protectedinherited |
Number of samples in input Cube.
Referenced by Isis::SpectralDefinition::sampleCount(), SpectralDefinition1D(), and Isis::SpectralDefinition2D::SpectralDefinition2D().