Isis Developer Reference
SpectralDefinition2D.h
Go to the documentation of this file.
1 #ifndef SpectralDefinition2D_h
2 #define SpectralDefinition2D_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 
11 #include "FileName.h"
12 #include "Spectel.h"
13 #include "SpectralDefinition.h"
14 
15 template<typename T> class QList;
16 
17 namespace Isis {
18 
19  class Spectel;
20 
36  public:
37  SpectralDefinition2D(FileName smileDefFilename);
39 
40  Spectel findSpectel(const int sample, const int line, const int band) const;
41  Spectel findSpectelByWavelength(const double wavelength, const int sectionNumber) const;
42  Spectel findSpectel(const Spectel &inSpectel, const int sectionNumber) const;
43 
44  virtual int sectionCount() const;
45  int sectionNumber(int s, int l, int b) const;
46 
47  QString toString();
48 
50  void operator()(Buffer &in) const;
51 
52  private:
55  QList<QList<Spectel> *> *m_spectelList;
57  int m_numSections;
59  QList<int> *m_sectionList;
60  };
61 }
62 
63 #endif
FileName.h
Isis::SpectralDefinition2D::sectionNumber
int sectionNumber(int s, int l, int b) const
returns section number given (s,l,b)
Definition: SpectralDefinition2D.cpp:77
Isis::ProcessBySample::ProcessCubeInPlace
void ProcessCubeInPlace(const Functor &funct, bool threaded=true)
Definition: ProcessBySample.h:62
Isis::Spectel
Stores information about a "Spectral pixel" or spectel.
Definition: Spectel.h:26
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
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::SpectralDefinition2D::toString
QString toString()
Returns QString representation of SpectralDefinition2D.
Definition: SpectralDefinition2D.cpp:172
Isis::SpectralDefinition::m_nb
int m_nb
Number of bands in input Cube.
Definition: SpectralDefinition.h:60
SpectralDefinition.h
Isis::Spectel::filterWidth
double filterWidth() const
Gets wavelength width associated with spectel.
Definition: Spectel.cpp:107
Spectel.h
Isis::SpectralDefinition2D::operator()
void operator()(Buffer &in) const
Internal function used to help read-in a calibration cube.
Definition: SpectralDefinition2D.cpp:195
Isis::SpectralDefinition2D::findSpectelByWavelength
Spectel findSpectelByWavelength(const double wavelength, const int sectionNumber) const
Definition: SpectralDefinition2D.cpp:124
Isis::SpectralDefinition
contains calibration info for spectral smile correction (center wavelengths and widths for the whole ...
Definition: SpectralDefinition.h:34
Isis::Buffer
Buffer for reading and writing cube data.
Definition: Buffer.h:53
Isis::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Isis::Cube::lineCount
int lineCount() const
Definition: Cube.cpp:1734
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::SpectralDefinition2D::~SpectralDefinition2D
~SpectralDefinition2D()
destructor
Definition: SpectralDefinition2D.cpp:96
Isis::SpectralDefinition2D::SpectralDefinition2D
SpectralDefinition2D(FileName smileDefFilename)
Construct a SpectralDefinition2D object using a filename.
Definition: SpectralDefinition2D.cpp:26
Isis::SpectralDefinition::m_nl
int m_nl
Number of lines in input Cube.
Definition: SpectralDefinition.h:57
Isis::Progress::SetText
void SetText(const QString &text)
Changes the value of the text string reported just before 0% processed.
Definition: Progress.cpp:61
Isis::NULL8
const double NULL8
Definition: SpecialPixel.h:94
Isis::SpectralDefinition2D
A Spectral definition that includes wavelength and center values for each (line, sample) coordinate.
Definition: SpectralDefinition2D.h:35
Isis::Cube::sampleCount
int sampleCount() const
Definition: Cube.cpp:1807
Isis::Process::Progress
Isis::Progress * Progress()
This method returns a pointer to a Progress object.
Definition: Process.h:259
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::Cube::bandCount
virtual int bandCount() const
Returns the number of virtual bands for the cube.
Definition: Cube.cpp:1410
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
SpectralDefinition2D.h
Isis::Buffer::Band
int Band(const int index=0) const
Returns the band position associated with a shape buffer index.
Definition: Buffer.cpp:162
Isis::ProcessByBrick::BandsFirst
@ BandsFirst
Definition: ProcessByBrick.h:95
Isis::ProcessByBrick::Finalize
void Finalize()
Cleans up by closing cubes and freeing memory.
Definition: ProcessByBrick.cpp:679
Isis::Pixel::sample
int sample() const
Definition: Pixel.cpp:86
Isis::ProcessByBrick::SetProcessingDirection
void SetProcessingDirection(ProcessingDirection direction)
Set the direction the data will be read, either all lines in a single band proceeding to the next ban...
Definition: ProcessByBrick.cpp:380
Isis::CubeAttributeInput
Manipulate and parse attributes of input cube filenames.
Definition: CubeAttribute.h:381
Isis::SpectralDefinition2D::sectionCount
virtual int sectionCount() const
Returns the number of sections in the calibration image.
Definition: SpectralDefinition2D.cpp:71
Isis::Buffer::Sample
int Sample(const int index=0) const
Returns the sample position associated with a shape buffer index.
Definition: Buffer.cpp:127
ProcessBySample.h
Isis::SpectralDefinition::m_ns
int m_ns
Number of samples in input Cube.
Definition: SpectralDefinition.h:54
Isis::ProcessBySample
Process cubes by sample.
Definition: ProcessBySample.h:37
Isis::SpectralDefinition2D::findSpectel
Spectel findSpectel(const int sample, const int line, const int band) const
Get the Spectel at some sample, line, band (associated with your input/calibration file)
Definition: SpectralDefinition2D.cpp:113
Isis::ProcessBySample::SetInputCube
Isis::Cube * SetInputCube(const QString &parameter, int requirements=0)
Opens an input cube specified by the user and verifies requirements are met.
Definition: ProcessBySample.cpp:37
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
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