Commit 0a7124d6 authored by Kim Oyama's avatar Kim Oyama
Browse files

PROG In ImageImporter, changed the method of adding the history to the cube...

PROG In ImageImporter, changed the method of adding the history to the cube from adding it in the import method to using Process' WriteHistory method. References #1894.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@5706 41f8697f-d340-4b68-9986-7bafba869bb8
parent 3d9f8ef1
Loading
Loading
Loading
Loading
+1 −11
Changes for isis/src/base/objs/ImageImporter/ImageImporter.cpp: 1 added line, 11 removed lines.
Original line number Diff line number Diff line
@@ -132,18 +132,8 @@ namespace Isis {
    bandBin += name;
    label->findObject("IsisCube").addGroup(bandBin);
  
    History hist = History("IsisCube");
    try {
      // read history from cube, if it exists.
      cube->read(hist);
    }
    catch(IException &e) {
      // If the cube doesn't have a history, std2isis will add the first entry.
    }
    hist.AddEntry();
    cube->write(hist);
  
    p.SetInputCube(cube);
    p.WriteHistory(*cube);
    p.SetProcessingDirection(ProcessByBrick::BandsFirst);
    p.ProcessCubeInPlace(*this, false);
    p.EndProcess();
+3 −0
Changes for isis/src/base/objs/ImageImporter/ImageImporter.h: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -46,6 +46,9 @@ namespace Isis {
   * @internal
   *   @history 2012-03-28 Travis Addair - Added documentation.
   *   @history 2014-01-17 Kimberly Oyama - Added the history label to the output cube. Fixes #1894.
   *   @history 2014-01-27 Kimberly Oyama - Changed the method of adding the history to the cube
   *                           from adding it in the import method to using Process' WriteHistory
   *                           method. References #1894.
   *
   */
  class ImageImporter {