Commit 85b0405e authored by Jeannie Backer's avatar Jeannie Backer
Browse files

PROG: Added SED command to tgocassisrdrgen default apptest to remove tags with attributes.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@8250 41f8697f-d340-4b68-9986-7bafba869bb8
parent 93ca9bb5
Loading
Loading
Loading
Loading
+27 −14
Original line number Diff line number Diff line
@@ -4,7 +4,8 @@ include $(ISISROOT)/make/isismake.tsts

commands: 
	$(APPNAME) from=$(INPUT)/CAS-MCO-2016-11-26T22.32.39.582-BLU-03025-00.cub \
	to=$(OUTPUT)/CAS-MCO-2016-11-26T22.32.39.582-BLU-03025-00.img > /dev/null;
	           to=$(OUTPUT)/CAS-MCO-2016-11-26T22.32.39.582-BLU-03025-00.img \
		   > /dev/null;

	# Reingest the PDS4 data
	raw2isis from=$(OUTPUT)/CAS-MCO-2016-11-26T22.32.39.582-BLU-03025-00.img \
@@ -12,14 +13,26 @@ commands:
	         SAMPLES=2048 \
	         LINES=254 \
	         BITTYPE=REAL \
	BYTEORDER=LSB > /dev/null;
	         BYTEORDER=LSB \
		 > /dev/null;

	# Compare the output cube from raw2isis to the original input cube to
	# ensure that they are identical
	cubediff from=$(INPUT)/CAS-MCO-2016-11-26T22.32.39.582-BLU-03025-00.cub \
	         from2=$(OUTPUT)/CAS-MCO-2016-11-26T22.32.39.582-BLU-03025-00.cub \
	to=$(OUTPUT)/cubediffresults.txt > /dev/null;
	         to=$(OUTPUT)/cubediffresults.txt \
		 > /dev/null;

	# Change the output xml file to a txt file for test comparison
	mv $(OUTPUT)/CAS-MCO-2016-11-26T22.32.39.582-BLU-03025-00.xml \
	$(OUTPUT)/CAS-MCO-2016-11-26T22.32.39.582-BLU-03025-00.txt > /dev/null;
	$(SED) 's+\Product_Observational.*>+\Product_Observational>+' \
	       $(OUTPUT)/CAS-MCO-2016-11-26T22.32.39.582-BLU-03025-00.xml \
	       > $(OUTPUT)/templabel1.txt;
	$(SED) 's+\FSW_HEADER.*>+\FSW_HEADER>+' \
	       $(OUTPUT)/templabel1.txt \
	       > $(OUTPUT)/templabel2.txt;
	$(SED) 's+\PEHK_HEADER.*>+\PEHK_HEADER>+' \
	       $(OUTPUT)/templabel2.txt \
	       > $(OUTPUT)/CAS-MCO-2016-11-26T22.32.39.582-BLU-03025-00.xmlLabel.txt;

	$(RM) $(OUTPUT)/CAS-MCO-2016-11-26T22.32.39.582-BLU-03025-00.xml \
	      $(OUTPUT)/templabel1.txt \
	      $(OUTPUT)/templabel2.txt;