93 return p_crosstrackSumming;
100 return p_downtrackSumming;
107 return p_startingSample;
115 return p_focalPlaneTemp;
124 return p_trueLineRate;
132 return p_exposureDuration;
146 return p_mocNA ? 2048 : 3456;
150 double Sample(
int detector)
const;
152 double Gain(
int line = 1);
153 double Offset(
int line = 1);
161 int p_crosstrackSumming;
162 int p_downtrackSumming;
163 int p_startingSample;
165 double p_exposureDuration;
166 double p_trueLineRate;
167 double p_focalPlaneTemp;
171 QString p_instrumentId;
173 QString p_clockCount;
174 QString p_gainModeId;
177 QString p_dataQuality;
182 std::map<QString, double> p_gainMapNA;
183 std::map<QString, double> p_gainMapWA;
189 int p_startDetector[3456];
190 int p_endDetector[3456];
191 double p_sample[3456];
198 inline bool operator<(
const WAGO &w)
const {
201 inline bool operator==(
const WAGO &w)
const {
205 std::vector<WAGO> p_wagos;
IO Handler for Isis Cubes.
File name manipulation and expansion.
Read values from MOC labels.
double ExposureDuration() const
Returns the value for LineExposureDuration from the instrument group.
void ValidateLabels()
Verifies that the labels are valid.
double Offset(int line=1)
Returns the offset at the given line.
int CrosstrackSumming() const
Returns value for CrosstrackSumming from the instrument group.
double FocalPlaneTemperature() const
Returns value for FocalPlaneTemperature from the instrument group.
bool WideAngleBlue() const
Indicates whether the camera was blue wide angle.
~MocLabels()
Empty destructor.
int StartDetector(int sample) const
Converts from sample to starting detector.
void ReadLabels(Cube &cube)
Reads required keywords from the labels.
double EphemerisTime(double line) const
Returns the ephemeris time at the given line.
bool NarrowAngle() const
Indicates whether the camera was narrow angle.
MocLabels(Cube &cube)
Construct MocLabels object using a Pvl object.
int FirstLineSample() const
Returns value for FirstLineSample from the instrument group.
int Detectors() const
Returns 2048 if narrow angle and 3456 if wide angle.
QString StartTime() const
Returns the value for StartTime from the instrument group.
bool WideAngle() const
Indicates whether the camera was wide angle.
double Sample(int detector) const
Converts from detector to sample.
void InitGainMaps()
Creates a lookup of gain modes to gain values.
int DowntrackSumming() const
Returns value for DowntrackSumming from the instrument group.
int EndDetector(int sample) const
Converts from sample to ending detector.
void InitDetectorMaps()
Creates lookup table from sample to detectors and vice versa.
double Gain(int line=1)
Returns the true gain at a given line.
void Compute()
Computes some constants.
void InitWago()
Reads the wide-angle gain/offset table and internalizes.
void Init(Cube &cube)
General initializer.
bool WideAngleRed() const
Indicates whether the camera was red wide angle.
double LineRate() const
Returns the value for the true line rate.
This is free and unencumbered software released into the public domain.