Isis Developer Reference
SpectralDefinition1D.h
Go to the documentation of this file.
1 #ifndef SpectralDefinition1D_h
2 #define SpectralDefinition1D_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 #include <vector>
10 
11 #include "SpectralDefinition.h"
12 #include "Spectel.h"
13 #include "FileName.h"
14 
15 template<typename T> class QList;
16 
17 namespace Isis {
18 
36  public:
37  SpectralDefinition1D(FileName smileDefFilename);
39  virtual ~SpectralDefinition1D();
40 
41  Spectel findSpectel(const int sample, const int line, const int band) const;
42  Spectel findSpectel(const Spectel &inSpectel, const int sectionNumber) const;
43  Spectel findSpectelByWavelength(double wavelength, int sectionNumber) const;
44 
45  virtual int sectionCount() const;
46  int sectionNumber(int s, int l, int b) const;
47 
48  QString toString();
49 
50  private:
51  // the outer list is the section #, inside is the band
53  QList< QList<Spectel> *> *m_spectelList;
55  int m_numSections;
57  bool m_ascendingWavelengths;
58  };
59 }
60 
61 #endif
Isis::CSVReader::getColumn
CSVAxis getColumn(int index) const
Parse and return a column specified by index order.
Definition: CSVReader.cpp:218
Isis::CSVReader::CSVAxis
Parser::TokenList CSVAxis
Row/Column token list.
Definition: CSVReader.h:247
FileName.h
Isis::CSVReader::columns
int columns() const
Determine the number of columns in the input source.
Definition: CSVReader.cpp:97
Isis::Spectel
Stores information about a "Spectral pixel" or spectel.
Definition: Spectel.h:26
Isis::CSVReader
Reads strings and parses them into tokens separated by a delimiter character.
Definition: CSVReader.h:239
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
CSVReader.h
Isis::SpectralDefinition1D::sectionCount
virtual int sectionCount() const
Returns the number of sections in this Spectral Definition.
Definition: SpectralDefinition1D.cpp:123
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::IException::Unknown
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
Isis::Spectel::centerWavelength
double centerWavelength() const
Gets central wavelength of spectel.
Definition: Spectel.cpp:95
Isis::SpectralDefinition::m_nb
int m_nb
Number of bands in input Cube.
Definition: SpectralDefinition.h:60
SpectralDefinition.h
Isis::SpectralDefinition1D::~SpectralDefinition1D
virtual ~SpectralDefinition1D()
destructor
Definition: SpectralDefinition1D.cpp:154
Isis::SpectralDefinition1D::findSpectelByWavelength
Spectel findSpectelByWavelength(double wavelength, int sectionNumber) const
Finds the Spectel with the closest center wavelength (in the given sectionNumber) to the input wavele...
Definition: SpectralDefinition1D.cpp:226
Spectel.h
Isis::SpectralDefinition1D::toString
QString toString()
Returns the QString representation of the SpectralDefinition1D.
Definition: SpectralDefinition1D.cpp:99
Isis::SpectralDefinition
contains calibration info for spectral smile correction (center wavelengths and widths for the whole ...
Definition: SpectralDefinition.h:34
Isis::SpectralDefinition1D::sectionNumber
int sectionNumber(int s, int l, int b) const
Returns the section number that a spectel is in.
Definition: SpectralDefinition1D.cpp:137
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::SpectralDefinition::m_nl
int m_nl
Number of lines in input Cube.
Definition: SpectralDefinition.h:57
Isis::SpectralDefinition1D
A Spectral definition that includes wavelength and center values for each (line, sample) coordinate.
Definition: SpectralDefinition1D.h:35
Isis::NULL8
const double NULL8
Definition: SpecialPixel.h:94
Isis::SpectralDefinition1D::SpectralDefinition1D
SpectralDefinition1D()
construct an empty 1D SpectralDef
Definition: SpectralDefinition1D.cpp:149
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::FileName::toString
QString toString() const
Returns a QString of the full file name including the file path, excluding the attributes with any Is...
Definition: FileName.cpp:515
Isis::Null
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
Isis::toDouble
double toDouble(const QString &string)
Global function to convert from a string to a double.
Definition: IString.cpp:149
Isis::SpectralDefinition1D::findSpectel
Spectel findSpectel(const int sample, const int line, const int band) const
Get the Spectel from this SpectralDefinition at a (s,l,b).
Definition: SpectralDefinition1D.cpp:173
Isis::SpectralDefinition::m_ns
int m_ns
Number of samples in input Cube.
Definition: SpectralDefinition.h:54
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::CSVReader::rows
int rows() const
Reports the number of rows in the table.
Definition: CSVReader.h:285
Isis::IException::User
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126
SpectralDefinition1D.h