isis/src/tgo/apps/tgocassismos/main.cpp
void compareLabels(Pvl &matchLabel, Pvl &compareLabel) {
  // test of the ObservationId
   PvlGroup matchArchive = matchLabel.findGroup("Archive", Pvl::Traverse);
   PvlGroup compareArchive = compareLabel.findGroup("Archive", Pvl::Traverse);

   QString matchObsId = matchArchive["ObservationId"];
   QString compareObsId = compareArchive["ObservationId"];

   if (matchObsId != compareObsId) {
     QString msg = "Images not from the same observation";
     throw IException(IException::User, msg, _FILEINFO_);
   }

  // Test of the BandBin filter name
  PvlGroup matchBandBin = matchLabel.findGroup("BandBin", Pvl::Traverse);
  PvlGroup compareBandBin = compareLabel.findGroup("BandBin", Pvl::Traverse);
  QString matchFilter = matchBandBin["FilterName"];
  QString compareFilter = compareBandBin["FilterName"];

  if (matchFilter != compareFilter) {
    QString msg = "Images not the same filter";
    throw IException(IException::User, msg, _FILEINFO_);
  }
}
/**
 * Function to verify that label values match.
 */
Function to verify that label values match.
Function to verify that label values match .
void compareLabels(Pvl &matchLabel, Pvl &compareLabel) {
   PvlGroup matchArchive = matchLabel.findGroup("Archive", Pvl::Traverse);
   PvlGroup compareArchive = compareLabel.findGroup("Archive", Pvl::Traverse);
   QString matchObsId = matchArchive["ObservationId"];
   QString compareObsId = compareArchive["ObservationId"];
   if (matchObsId != compareObsId) {
     QString msg = "Images not from the same observation";
     throw IException(IException::User, msg, _FILEINFO_);
   }
  PvlGroup matchBandBin = matchLabel.findGroup("BandBin", Pvl::Traverse);
  PvlGroup compareBandBin = compareLabel.findGroup("BandBin", Pvl::Traverse);
  QString matchFilter = matchBandBin["FilterName"];
  QString compareFilter = compareBandBin["FilterName"];
  if (matchFilter != compareFilter) {
    QString msg = "Images not the same filter";
    throw IException(IException::User, msg, _FILEINFO_);
  }
}
void compareLabels ( Pvl & matchLabel , Pvl & compareLabel ) { PvlGroup matchArchive = matchLabel . findGroup ( " " , Pvl :: Traverse ) ; PvlGroup compareArchive = compareLabel . findGroup ( " " , Pvl :: Traverse ) ; QString matchObsId = matchArchive [ " " ] ; QString compareObsId = compareArchive [ " " ] ; if ( matchObsId != compareObsId ) { QString msg = " " ; throw IException ( IException :: User , msg , _FILEINFO_ ) ; } PvlGroup matchBandBin = matchLabel . findGroup ( " " , Pvl :: Traverse ) ; PvlGroup compareBandBin = compareLabel . findGroup ( " " , Pvl :: Traverse ) ; QString matchFilter = matchBandBin [ " " ] ; QString compareFilter = compareBandBin [ " " ] ; if ( matchFilter != compareFilter ) { QString msg = " " ; throw IException ( IException :: User , msg , _FILEINFO_ ) ; } }
Function to verify that label values match.
Function to verify that label values match .
// test of the ObservationId // Test of the BandBin filter name