Commit ce70cb2f authored by Janet Barrett's avatar Janet Barrett
Browse files

Fixed grid so it propagates the input bit type to the output file. Fixes #2063

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@5944 41f8697f-d340-4b68-9986-7bafba869bb8
parent 062f9ee6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -108,9 +108,7 @@ void IsisMain() {
  }
  // Lat/Lon based grid
  else {
    CubeAttributeOutput oatt("+32bit");
    p.SetOutputCube(ui.GetFileName("TO"), oatt, icube->sampleCount(),
                    icube->lineCount(), icube->bandCount());
    p.SetOutputCube("TO");

    UniversalGroundMap *gmap = new UniversalGroundMap(*icube,
        UniversalGroundMap::ProjectionFirst);
+4 −0
Original line number Diff line number Diff line
@@ -154,6 +154,10 @@
    <change name="Ella Mae Lee" date="2013-07-18">
      Updated the documentation and added examples. Fixes #178.
    </change>
    <change name="Janet Barrett" date="2014-06-23">
      Modified so that the output cube characteristics are obtained from the input cube
      and/or cube characteristics specified on the command line. Fixes #2063.
    </change>
  </history>

  <groups>
+8 −0
Original line number Diff line number Diff line
APPNAME = grid

include $(ISISROOT)/make/isismake.tsts

commands:
	$(APPNAME) from=$(INPUT)/8bit.cub \
	to=$(OUTPUT)/grid.cub mode=ground outline=yes \
	linewidth=3 linevalue=dn dnvalue=255 > /dev/null;