Isis 3 Programmer Reference
|
Read values from MOC labels. More...
#include <MocLabels.h>
Classes | |
struct | WAGO |
Public Member Functions | |
MocLabels (Cube &cube) | |
Construct MocLabels object using a Pvl object. More... | |
MocLabels (const QString &file) | |
Construct MocLabels object using the file name. More... | |
~MocLabels () | |
Empty destructor. More... | |
bool | NarrowAngle () const |
Indicates whether the camera was narrow angle. More... | |
bool | WideAngle () const |
Indicates whether the camera was wide angle. More... | |
bool | WideAngleRed () const |
Indicates whether the camera was red wide angle. More... | |
bool | WideAngleBlue () const |
Indicates whether the camera was blue wide angle. More... | |
int | CrosstrackSumming () const |
Returns value for CrosstrackSumming from the instrument group. More... | |
int | DowntrackSumming () const |
Returns value for DowntrackSumming from the instrument group. More... | |
int | FirstLineSample () const |
Returns value for FirstLineSample from the instrument group. More... | |
double | FocalPlaneTemperature () const |
Returns value for FocalPlaneTemperature from the instrument group. More... | |
double | LineRate () const |
Returns the value for the true line rate. More... | |
double | ExposureDuration () const |
Returns the value for LineExposureDuration from the instrument group. More... | |
QString | StartTime () const |
Returns the value for StartTime from the instrument group. More... | |
int | Detectors () const |
Returns 2048 if narrow angle and 3456 if wide angle. More... | |
int | StartDetector (int sample) const |
Converts from sample to starting detector. More... | |
int | EndDetector (int sample) const |
Converts from sample to ending detector. More... | |
double | Sample (int detector) const |
Converts from detector to sample. More... | |
double | EphemerisTime (double line) const |
Returns the ephemeris time at the given line. More... | |
double | Gain (int line=1) |
Returns the true gain at a given line. More... | |
double | Offset (int line=1) |
Returns the offset at the given line. More... | |
Private Member Functions | |
void | Init (Cube &cube) |
General initializer. More... | |
void | ReadLabels (Cube &cube) |
Reads required keywords from the labels. More... | |
void | ValidateLabels () |
Verifies that the labels are valid. More... | |
void | Compute () |
Computes some constants. More... | |
void | InitGainMaps () |
Creates a lookup of gain modes to gain values. More... | |
void | InitDetectorMaps () |
Creates lookup table from sample to detectors and vice versa. More... | |
void | InitWago () |
Reads the wide-angle gain/offset table and internalizes. More... | |
Private Attributes | |
int | p_crosstrackSumming |
int | p_downtrackSumming |
int | p_startingSample |
int | p_orbitNumber |
double | p_exposureDuration |
double | p_trueLineRate |
double | p_focalPlaneTemp |
bool | p_mocNA |
bool | p_mocRedWA |
bool | p_mocBlueWA |
QString | p_instrumentId |
QString | p_filter |
QString | p_clockCount |
QString | p_gainModeId |
int | p_offsetModeId |
QString | p_startTime |
QString | p_dataQuality |
double | p_etStart |
double | p_etEnd |
std::map< QString, double > | p_gainMapNA |
std::map< QString, double > | p_gainMapWA |
double | p_gain |
double | p_offset |
int | p_nl |
int | p_ns |
int | p_startDetector [3456] |
int | p_endDetector [3456] |
double | p_sample [3456] |
std::vector< WAGO > | p_wagos |
FileName | p_lsk |
FileName | p_sclk |
Read values from MOC labels.
Definition at line 50 of file MocLabels.h.
Isis::MocLabels::MocLabels | ( | Cube & | cube | ) |
Construct MocLabels object using a Pvl object.
Definition at line 38 of file MocLabels.cpp.
Isis::MocLabels::MocLabels | ( | const QString & | file | ) |
Construct MocLabels object using the file name.
Definition at line 30 of file MocLabels.cpp.
|
inline |
Empty destructor.
Definition at line 55 of file MocLabels.h.
|
private |
Computes some constants.
Definition at line 160 of file MocLabels.cpp.
|
inline |
Returns value for CrosstrackSumming from the instrument group.
Definition at line 92 of file MocLabels.h.
Referenced by Isis::MocWideAngleCamera::MocWideAngleCamera().
|
inline |
Returns 2048 if narrow angle and 3456 if wide angle.
Definition at line 145 of file MocLabels.h.
|
inline |
Returns value for DowntrackSumming from the instrument group.
Definition at line 99 of file MocLabels.h.
Referenced by Isis::MocWideAngleCamera::MocWideAngleCamera().
int Isis::MocLabels::EndDetector | ( | int | sample | ) | const |
Converts from sample to ending detector.
sample | Sample to be converted |
Definition at line 303 of file MocLabels.cpp.
double Isis::MocLabels::EphemerisTime | ( | double | line | ) | const |
Returns the ephemeris time at the given line.
line | Line to evaluate |
Definition at line 374 of file MocLabels.cpp.
|
inline |
Returns the value for LineExposureDuration from the instrument group.
Definition at line 131 of file MocLabels.h.
|
inline |
Returns value for FirstLineSample from the instrument group.
Definition at line 106 of file MocLabels.h.
Referenced by Isis::MocWideAngleCamera::MocWideAngleCamera().
|
inline |
Returns value for FocalPlaneTemperature from the instrument group.
Definition at line 114 of file MocLabels.h.
double Isis::MocLabels::Gain | ( | int | line = 1 | ) |
Returns the true gain at a given line.
line | Line to evaluate |
Definition at line 383 of file MocLabels.cpp.
|
private |
General initializer.
lab | MOC label for the image |
Definition at line 46 of file MocLabels.cpp.
|
private |
Creates lookup table from sample to detectors and vice versa.
Definition at line 325 of file MocLabels.cpp.
|
private |
Creates a lookup of gain modes to gain values.
These come from the MSSS calibration report.
Definition at line 246 of file MocLabels.cpp.
|
private |
Reads the wide-angle gain/offset table and internalizes.
Definition at line 423 of file MocLabels.cpp.
References Isis::IString::ConvertWhiteSpace(), Isis::FileName::expanded(), Isis::FileName::highestVersion(), Isis::IString::Remove(), Isis::IString::ToDouble(), Isis::IString::Token(), Isis::IString::ToQt(), and Isis::IString::Trim().
|
inline |
Returns the value for the true line rate.
This is calculated by dividing the product of LineExposureDuration and the DowntrackSumming by 1000.
Definition at line 123 of file MocLabels.h.
Referenced by Isis::MocWideAngleCamera::MocWideAngleCamera().
|
inline |
Indicates whether the camera was narrow angle.
Definition at line 61 of file MocLabels.h.
double Isis::MocLabels::Offset | ( | int | line = 1 | ) |
Returns the offset at the given line.
line | Line to evaluate |
Definition at line 402 of file MocLabels.cpp.
|
private |
Reads required keywords from the labels.
MOC | label for the image |
Definition at line 64 of file MocLabels.cpp.
References Isis::AlphaCube::AlphaLines(), Isis::AlphaCube::AlphaSamples(), Isis::PvlObject::findGroup(), Isis::PvlContainer::hasKeyword(), and Isis::Cube::label().
double Isis::MocLabels::Sample | ( | int | detector | ) | const |
Converts from detector to sample.
detector | Detector to be converted |
Definition at line 315 of file MocLabels.cpp.
int Isis::MocLabels::StartDetector | ( | int | sample | ) | const |
Converts from sample to starting detector.
sample | Sample to be converted |
Definition at line 291 of file MocLabels.cpp.
|
inline |
Returns the value for StartTime from the instrument group.
Definition at line 138 of file MocLabels.h.
|
private |
Verifies that the labels are valid.
Definition at line 109 of file MocLabels.cpp.
|
inline |
Indicates whether the camera was wide angle.
Definition at line 68 of file MocLabels.h.
|
inline |
Indicates whether the camera was blue wide angle.
Definition at line 84 of file MocLabels.h.
|
inline |
Indicates whether the camera was red wide angle.
Definition at line 76 of file MocLabels.h.
Referenced by Isis::MocWideAngleCamera::MocWideAngleCamera().