Isis 3.0 Programmer Reference
Back | Home
CissLabels.h
Go to the documentation of this file.
1 #ifndef CISSLABELS_H
2 #define CISSLABELS_H
3 
25 #include <string>
26 #include <vector>
27 
28 #include <QString>
29 
30 namespace Isis {
31  class Pvl;
48  class CissLabels {
49  public:
50  CissLabels(Pvl &lab);
51  CissLabels(const QString &file);
54 
55 
66  inline bool NarrowAngle() const {
67  return p_cissNA;
68  };
69 
70 
81  inline bool WideAngle() const {
82  return !p_cissNA;
83  };
84 
85 
96  inline double BiasStripMean() const {
97  return p_biasStripMean;
98  };
99 
100 
112  inline QString CompressionRatio() const {
113  return p_compressionRatio;
114  };
115 
116 
127  inline QString CompressionType() const {
128  return p_compressionType;
129  };
130 
131 
142  inline QString DataConversionType() const {
143  return p_dataConversionType;
144  };
145 
146 
156  inline QString DelayedReadoutFlag() const {
157  return p_delayedReadoutFlag;
158  };
159 
160 
170  inline double ExposureDuration() const {
171  return p_exposureDuration;
172  };
173 
174 
201  std::vector <QString> FilterName() const {
202  return p_filter;
203  };
204 
205 
216  std::vector <int> FilterIndex() const {
217  return p_filterIndex;
218  };
219 
220 
232  inline QString FlightSoftwareVersion() const {
234  };
235 
236 
247  inline double FrontOpticsTemp() const {
248  return p_frontOpticsTemp;
249  };
250 
251 
262  inline int GainModeId() const {
263  return p_gainModeId;
264  };
265 
266 
277  inline int GainState() const {
278  return p_gainState;
279  };
280 
281 
290  inline double ImageNumber() const {
291  return p_imageNumber;
292  };
293 
294 
305  inline double InstrumentDataRate() const {
306  return p_instrumentDataRate;
307  };
308 
309 
319  inline QString InstrumentId() const {
320  return p_instrumentId;
321  };
322 
323 
337  inline QString InstrumentModeId() {
338  return p_instrumentModeId.toLower();
339  };
340 
341 
353  inline QString ReadoutCycleIndex() const {
354  return p_readoutCycleIndex;
355  };
356 
357 
370  inline int ReadoutOrder() const {
371  return p_readoutOrder;
372  };
373 
374 
385  inline QString ShutterModeId() const {
386  return p_shutterModeId;
387  };
388 
389 
401  inline int SummingMode() const {
402  return p_summingMode;
403  };
404 
405 
415  inline bool AntibloomingOn() const {
416  return p_antiblooming;
417  };
418 
419 
420  private:
421  void Init(Pvl &lab);
422  void ReadLabels(Pvl &lab);
423  void ComputeImgProperties();
424 
425 
427  QString p_ABflag;
433  bool p_cissNA;
445  std::vector <QString> p_filter;
447  std::vector <int> p_filterIndex;
461  QString p_instrumentId;
472  };
473 };
474 
475 #endif
~CissLabels()
Destroys the CissLabels object.
Definition: CissLabels.h:53
QString CompressionType() const
Returns CompressionType from the Instrument group.
Definition: CissLabels.h:127
double BiasStripMean() const
Returns BiasStripMean from the Intstrument group.
Definition: CissLabels.h:96
QString InstrumentId() const
Returns InstrumentId from the Instrument group.
Definition: CissLabels.h:319
double p_instrumentDataRate
Value of the PDS keyword ImageTime in the cube&#39;s labels.
Definition: CissLabels.h:459
std::vector< int > p_filterIndex
Two-element array of filter indices corresponding to optical filters.
Definition: CissLabels.h:447
void ReadLabels(Pvl &lab)
Reads the Pvl Labels.
Definition: CissLabels.cpp:57
QString p_compressionType
Value of the PDS keyword CompressionType in the cube&#39;s labels.
Definition: CissLabels.h:437
QString p_instrumentModeId
Value of the PDS keyword InstrumentModeId in the cube&#39;s labels.
Definition: CissLabels.h:463
QString InstrumentModeId()
Returns the lower case form of InstrumentModeId from the Instrument group.
Definition: CissLabels.h:337
QString CompressionRatio() const
Returns CompressionRatio from the Instrument group.
Definition: CissLabels.h:112
QString p_shutterModeId
Value of the PDS keyword ShutterModeId in the cube&#39;s labels.
Definition: CissLabels.h:469
double ImageNumber() const
Returns ImageNumber from the Archive group.
Definition: CissLabels.h:290
double p_frontOpticsTemp
Value of the PDS keyword OpticsTemperature[0] in the cube&#39;s labels.
Definition: CissLabels.h:451
double FrontOpticsTemp() const
Returns the first element of OpticsTemperature from the Instrument group.
Definition: CissLabels.h:247
bool AntibloomingOn() const
Returns whether AntiBloomingFlag from the Instrument group is &quot;On&quot;.
Definition: CissLabels.h:415
bool p_antiblooming
Indicates whether anti-blooming state flag on.
Definition: CissLabels.h:429
double p_exposureDuration
Value of the PDS keyword ExposureDuration in the cube&#39;s labels.
Definition: CissLabels.h:443
std::vector< QString > FilterName() const
Returns a two-element array of the optical filters found in the BandBin group.
Definition: CissLabels.h:201
QString FlightSoftwareVersion() const
Returns FlightSoftwareVersion from the Instrument group.
Definition: CissLabels.h:232
QString p_flightSoftwareVersion
Value of the PDS keyword FlightSoftwareVersion in the cube&#39;s labels.
Definition: CissLabels.h:449
Read values from Cassini ISS labels.
Definition: CissLabels.h:48
int p_summingMode
Value of the PDS keyword SummingMode in the cube&#39;s labels.
Definition: CissLabels.h:471
int p_gainModeId
Value of the PDS keyword GainModeId in the cube&#39;s labels.
Definition: CissLabels.h:453
bool p_cissNA
Indicates whether camera is narrow-angle.
Definition: CissLabels.h:433
double p_imageNumber
Value of the PDS keyword ImageNumber in the cube&#39;s labels.
Definition: CissLabels.h:457
double p_biasStripMean
Value of the PDS keyword BiasStripMean in the cube&#39;s labels.
Definition: CissLabels.h:431
QString p_instrumentId
Value of the PDS keyword InstrumentId in the cube&#39;s labels.
Definition: CissLabels.h:461
QString p_delayedReadoutFlag
Value of the PDS keyword DelayedReadoutFlag in the cube&#39;s labels.
Definition: CissLabels.h:441
QString DelayedReadoutFlag() const
Returns DelayedReadoutFlag from the Instrument group.
Definition: CissLabels.h:156
int ReadoutOrder() const
Returns ReadoutOrder from the Instrument group.
Definition: CissLabels.h:370
double InstrumentDataRate() const
Returns InstrumentDataRate from the Instrument group.
Definition: CissLabels.h:305
int GainModeId() const
Returns GainModeId from the Instrument group.
Definition: CissLabels.h:262
QString ShutterModeId() const
Returns ShutterModeId from the Instrument group.
Definition: CissLabels.h:385
std::vector< int > FilterIndex() const
Returns a two-element array of indices associated with optical filter names.
Definition: CissLabels.h:216
int SummingMode() const
Returns SummingMode from the Instrument group.
Definition: CissLabels.h:401
bool NarrowAngle() const
Returns whether InstrumentId from the Instrument group is &quot;ISSNA&quot;.
Definition: CissLabels.h:66
void ComputeImgProperties()
Computes values of non-keyword image properties.
Definition: CissLabels.cpp:96
Container for cube-like labels.
Definition: Pvl.h:135
QString p_compressionRatio
Value of the PDS keyword CompressionRatio in the cube&#39;s labels.
Definition: CissLabels.h:435
QString p_ABflag
Value of the PDS keyword AntiBloomingFlag in the cube&#39;s labels.
Definition: CissLabels.h:427
QString DataConversionType() const
Returns DataConversionType from the Instrument group.
Definition: CissLabels.h:142
QString p_dataConversionType
Value of the PDS keyword DataConversionType in the cube&#39;s labels.
Definition: CissLabels.h:439
bool WideAngle() const
Returns whether InstrumentId from the Instrument group is &quot;ISSWA&quot;.
Definition: CissLabels.h:81
int GainState() const
Returns GainState from the Instrument group.
Definition: CissLabels.h:277
void Init(Pvl &lab)
General initializer.
Definition: CissLabels.cpp:37
std::vector< QString > p_filter
Two-element array of optical filters used for this image.
Definition: CissLabels.h:445
double ExposureDuration() const
Returns ExposureDuration from the Instrument group.
Definition: CissLabels.h:170
int p_readoutOrder
Value of the PDS keyword ReadoutOrder in the cube&#39;s labels.
Definition: CissLabels.h:467
QString p_readoutCycleIndex
Value of the PDS keyword ReadoutCycleIndex in the cube&#39;s labels.
Definition: CissLabels.h:465
int p_gainState
Value of the PDS keyword GainState in the cube&#39;s labels.
Definition: CissLabels.h:455
CissLabels(Pvl &lab)
Constructs a CissLabels object from an Isis::Pvl object.
Definition: CissLabels.cpp:16
QString ReadoutCycleIndex() const
Returns ReadoutCycleIndex from the Instrument group.
Definition: CissLabels.h:353

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:15:56