Commit 36183318 authored by Kristin Berry's avatar Kristin Berry
Browse files

Updated tgo cat test coloredMosaic to create output projected cubes of the...

Updated tgo cat test coloredMosaic to create output projected cubes of the same size so they can be stacked without error
parent 3ac7fac8
Loading
Loading
Loading
Loading
+28 −29
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@
#
# @history 2018-02-22 Adam Goins - Original version, many things borrowed from
#                             uncontrolled single-color cat test.
#          2018-06-18 Kristin Berry - Updated to use defaultrange=map for the cam2map call so that
#                             cubeit will get input cubes all of the same size. 
#

INGEST = tgocassis2isis
@@ -67,38 +69,35 @@ commands:
	# MOSAICS
	# Create Red Mosaic
	$(PROJECT) $(TSTARGS) from=$(OUTPUT)/$\$$\1.cub to=$(OUTPUT)/$\$$\1_redEqui.cub \
            map=$(OUTPUT)/equi.map \
            map=$(OUTPUT)/equi.map defaultrange=map \
            pixres=mpp resolution=200 -batchlist=$(OUTPUT)/redBasenames.lis > /dev/null;
	$(LS) $(OUTPUT)/*redEqui.cub > $(OUTPUT)/redMosaic.lis;
	$(MOSAIC) $(TSTSARGS) fromlist=$(OUTPUT)/redMosaic.lis \
	    to=$(OUTPUT)/redCassisMosaic.cub;# > /dev/null;
	    to=$(OUTPUT)/redCassisMosaic.cub > /dev/null;

        # Create Blu Mosaic
	$(PROJECT) $(TSTARGS) from=$(OUTPUT)/$\$$\1.cub to=$(OUTPUT)/$\$$\1_bluEqui.cub \
             map=$(OUTPUT)/equi.map \
             map=$(OUTPUT)/equi.map defaultrange=map \
             pixres=mpp resolution=200 -batchlist=$(OUTPUT)/bluBasenames.lis > /dev/null;
	$(LS) $(OUTPUT)/*bluEqui.cub > $(OUTPUT)/bluMosaic.lis;
	$(MOSAIC) $(TSTSARGS) fromlist=$(OUTPUT)/bluMosaic.lis \
	    to=$(OUTPUT)/bluCassisMosaic.cub;# \
	    > /dev/null;
	    to=$(OUTPUT)/bluCassisMosaic.cub > /dev/null;

        # Create Pan Mosaic
	$(PROJECT) $(TSTARGS) from=$(OUTPUT)/$\$$\1.cub to=$(OUTPUT)/$\$$\1_panEqui.cub \
            map=$(OUTPUT)/equi.map \
            map=$(OUTPUT)/equi.map defaultrange=map \
            pixres=mpp resolution=200 -batchlist=$(OUTPUT)/panBasenames.lis > /dev/null;
	$(LS) $(OUTPUT)/*panEqui.cub > $(OUTPUT)/panMosaic.lis;
	$(MOSAIC) $(TSTSARGS) fromlist=$(OUTPUT)/panMosaic.lis \
	   to=$(OUTPUT)/panCassisMosaic.cub;# \
	    > /dev/null;
	   to=$(OUTPUT)/panCassisMosaic.cub > /dev/null;

        # Create Nir Mosaic
	$(PROJECT) $(TSTARGS) from=$(OUTPUT)/$\$$\1.cub to=$(OUTPUT)/$\$$\1_nirEqui.cub \
             map=$(OUTPUT)/equi.map \
             map=$(OUTPUT)/equi.map defaultrange=map \
             pixres=mpp resolution=200 -batchlist=$(OUTPUT)/nirBasenames.lis > /dev/null;
	$(LS) $(OUTPUT)/*nirEqui.cub > $(OUTPUT)/nirMosaic.lis;
	$(MOSAIC) $(TSTSARGS) fromlist=$(OUTPUT)/nirMosaic.lis \
	    to=$(OUTPUT)/nirCassisMosaic.cub;# \
	    > /dev/null;
	    to=$(OUTPUT)/nirCassisMosaic.cub > /dev/null;

        # Create full color mos
	$(LS) $(OUTPUT)/*CassisMosaic.cub > $(OUTPUT)/mosaicList.lis;
@@ -116,21 +115,21 @@ commands:
	       > $(OUTPUT)/tempLabel3.txt;
	$(SED) 's+\modification_date.*>+\modification_date>+' \
	       $(OUTPUT)/tempLabel3.txt \
	       > $(OUTPUT)/tempLabel4.txt
	       > $(OUTPUT)/tempLabel4.txt;
	$(SED) 's+\ISIS version.*<+\ISIS version.<+' \
	       $(OUTPUT)/tempLabel4.txt \
               > $(OUTPUT)/coloredMosaic.xmlLabel.txt;

	# Cleanup
#	$(RM) $(OUTPUT)/coloredMosaic.xml;
#	$(RM) $(OUTPUT)/tempLabel1.txt;
#	$(RM) $(OUTPUT)/tempLabel2.txt;
#	$(RM) $(OUTPUT)/tempLabel3.txt;
#	$(RM) $(OUTPUT)/tempLabel4.txt;
#	$(RM) $(OUTPUT)/*.lis;
#	$(RM) $(OUTPUT)/CAS-MCO*.cub;
#	$(RM) $(OUTPUT)/bluCassisMosaic.cub;
#	$(RM) $(OUTPUT)/nirCassisMosaic.cub;
#	$(RM) $(OUTPUT)/panCassisMosaic.cub;
#	$(RM) $(OUTPUT)/redCassisMosaic.cub;
#	$(MV) $(OUTPUT)/equi.map $(OUTPUT)/equi.pvl
	$(RM) $(OUTPUT)/coloredMosaic.xml;
	$(RM) $(OUTPUT)/tempLabel1.txt;
	$(RM) $(OUTPUT)/tempLabel2.txt;
	$(RM) $(OUTPUT)/tempLabel3.txt;
	$(RM) $(OUTPUT)/tempLabel4.txt;
	$(RM) $(OUTPUT)/*.lis;
	$(RM) $(OUTPUT)/CAS-MCO*.cub;
	$(RM) $(OUTPUT)/bluCassisMosaic.cub;
	$(RM) $(OUTPUT)/nirCassisMosaic.cub;
	$(RM) $(OUTPUT)/panCassisMosaic.cub;
	$(RM) $(OUTPUT)/redCassisMosaic.cub;
	$(MV) $(OUTPUT)/equi.map $(OUTPUT)/equi.pvl;