Commit 2439075f authored by Kristin Berry's avatar Kristin Berry
Browse files

Fix problems exporting tgo cassis mosaics

parent 5f6df1d1
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -68,9 +68,17 @@ void IsisMain() {
    productId.setValue( ui.GetString("PRODUCTID") );
  }
  else {
    // Get the observationId from the Archive Group.
    // Get the observationId from the Archive Group, or the Mosaic group, if the input is a mosaic
    QString observationId; 

    if(label->findObject("IsisCube").hasGroup("Archive")){
      PvlGroup archiveGroup = label->findObject("IsisCube").findGroup("Archive");
    QString observationId = archiveGroup.findKeyword("ObservationId")[0];
      observationId = archiveGroup.findKeyword("ObservationId")[0];
    }
    else if (label->findObject("IsisCube").hasGroup("Mosaic")) {
      PvlGroup mosaicGroup = label->findObject("IsisCube").findGroup("Mosaic");
      observationId = mosaicGroup.findKeyword("ObservationId")[0];
    }
    productId.setValue(observationId);
  }