Commit 1f5a949b authored by Jesse Mapel's avatar Jesse Mapel
Browse files

Added unstitch app for unstitching TGO CaSSIS frame images. Fixes #5157.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@8137 41f8697f-d340-4b68-9986-7bafba869bb8
parent 9e0ab4d8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ namespace Isis {
       * @internal
       *   @history 2017-08-11 Kris Becker - Original Version
       *   @history 2017-08-21 Jesse Mapel - Added documentation
       *   @history 2017-09-15 Jesse Mapel - Added constructor from field values
       */
      struct FrameletInfo {
        FrameletInfo() : m_frameId(-1), m_filterName(),
@@ -63,6 +64,10 @@ namespace Isis {
        FrameletInfo(const int frameid) : m_frameId(frameid), m_filterName(),
                                          m_startSample(0), m_startLine(0),
                                          m_samples(0), m_lines(0) { }
        FrameletInfo(const int frameid, QString filterName, int startSample, 
                     int startLine, int samples, int lines) : 
                     m_frameId(frameid), m_filterName(filterName), m_startSample(startSample), 
                     m_startLine(startLine), m_samples(samples), m_lines(lines) { }
        int     m_frameId; //!< The NAIF ID of the framelet.
        QString m_filterName; //!< The name of the framelet.
        int     m_startSample; //!< The first sample of the framelet on the detector.
+7 −0
Original line number Diff line number Diff line
ifeq ($(ISISROOT), $(BLANK))
.SILENT:
error:
	echo "Please set ISISROOT";
else
	include $(ISISROOT)/make/isismake.apps
endif
 No newline at end of file
+4 −0
Original line number Diff line number Diff line
BLANKS = "%-6s"    
LENGTH = "%-40s"

include $(ISISROOT)/make/isismake.tststree
+12 −0
Original line number Diff line number Diff line
APPNAME = unstitch

include $(ISISROOT)/make/isismake.tsts

commands:
	$(APPNAME) from=$(INPUT)/CAS-MCO_2016-11-22T16:10:43.505.cub \
	           to=$(OUTPUT)/CAS-MCO_2016-11-22T16:10:43.505.cub > /dev/null;
	mv $(OUTPUT)/CAS-MCO_2016-11-22T16:10:43.505.lis \
	   $(OUTPUT)/CAS-MCO_2016-11-22T16:10:43.505.txt;
	ls $(OUTPUT)/*.cub | sed 's/\.cub//' > $(OUTPUT)/framelets.lis
	catlab from=$\$$\1.cub to=\$$\1.pvl -batchlist=$(OUTPUT)/framelets.lis > /dev/null;
	rm $(OUTPUT)/framelets.lis
+12 −0
Original line number Diff line number Diff line
APPNAME = unstitch

include $(ISISROOT)/make/isismake.tsts

commands:
	$(APPNAME) from=$(INPUT)/CAS-MCO_2016-11-22T16:10:43.505.cub \
	           to=$(OUTPUT)/CAS-MCO_2016-11-22T16:10:43.505.cub > /dev/null;
	mv $(OUTPUT)/CAS-MCO_2016-11-22T16:10:43.505.lis \
	   $(OUTPUT)/CAS-MCO_2016-11-22T16:10:43.505.txt;
	ls $(OUTPUT)/*.cub | sed 's/\.cub//' > $(OUTPUT)/framelets.lis
	catlab from=$\$$\1.cub to=\$$\1.pvl -batchlist=$(OUTPUT)/framelets.lis > /dev/null;
	rm $(OUTPUT)/framelets.lis
Loading