106 return p_crosstrackSumming;
113 return p_downtrackSumming;
120 return p_startingSample;
128 return p_focalPlaneTemp;
137 return p_trueLineRate;
145 return p_exposureDuration;
159 return p_mocNA ? 2048 : 3456;
163 double Sample(
int detector)
const;
165 double Gain(
int line = 1);
166 double Offset(
int line = 1);
174 int p_crosstrackSumming;
175 int p_downtrackSumming;
176 int p_startingSample;
178 double p_exposureDuration;
179 double p_trueLineRate;
180 double p_focalPlaneTemp;
184 QString p_instrumentId;
186 QString p_clockCount;
187 QString p_gainModeId;
190 QString p_dataQuality;
195 std::map<QString, double> p_gainMapNA;
196 std::map<QString, double> p_gainMapWA;
202 int p_startDetector[3456];
203 int p_endDetector[3456];
204 double p_sample[3456];
211 inline bool operator<(
const WAGO &w)
const {
214 inline bool operator==(
const WAGO &w)
const {
218 std::vector<WAGO> p_wagos;
void InitDetectorMaps()
Creates lookup table from sample to detectors and vice versa.
File name manipulation and expansion.
void InitGainMaps()
Creates a lookup of gain modes to gain values.
int StartDetector(int sample) const
Converts from sample to starting detector.
void Init(Cube &cube)
General initializer.
double ExposureDuration() const
Returns the value for LineExposureDuration from the instrument group.
int EndDetector(int sample) const
Converts from sample to ending detector.
bool NarrowAngle() const
Indicates whether the camera was narrow angle.
void Compute()
Computes some constants.
double FocalPlaneTemperature() const
Returns value for FocalPlaneTemperature from the instrument group.
void ReadLabels(Cube &cube)
Reads required keywords from the labels.
double Offset(int line=1)
Returns the offset at the given line.
void InitWago()
Reads the wide-angle gain/offset table and internalizes.
~MocLabels()
Empty destructor.
double Sample(int detector) const
Converts from detector to sample.
int CrosstrackSumming() const
Returns value for CrosstrackSumming from the instrument group.
double Gain(int line=1)
Returns the true gain at a given line.
bool WideAngle() const
Indicates whether the camera was wide angle.
QString StartTime() const
Returns the value for StartTime from the instrument group.
void ValidateLabels()
Verifies that the labels are valid.
int DowntrackSumming() const
Returns value for DowntrackSumming from the instrument group.
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.
double EphemerisTime(double line) const
Returns the ephemeris time at the given line.
Read values from MOC labels.
bool WideAngleBlue() const
Indicates whether the camera was blue wide angle.
bool WideAngleRed() const
Indicates whether the camera was red wide angle.
double LineRate() const
Returns the value for the true line rate.
IO Handler for Isis Cubes.