APPNAME = footprintinit

include $(ISISROOT)/make/isismake.tsts

# cp so I don't destroy the input cube
commands:
	$(CP) $(INPUT)/N1466508085_1.cub $(OUTPUT)/N1466508085_1.cub;
	$(APPNAME) from=$(OUTPUT)/N1466508085_1.cub \
	           testxy=true \
	           increaseprecision=true \
	           >& /dev/null;
	$$ISISROOT/bin/blobdump from=$(OUTPUT)/N1466508085_1.cub \
	                        to=$(OUTPUT)/N1466508085_1.txt \
	                        name=footprint \
	                        type=Polygon \
	                        >& /dev/null;
	$(CAT) $(OUTPUT)/N1466508085_1.txt \
	       | $(SED) 's/\([0-9]\.[0-9]\{1\}\)\([0-9]*\)/\1/g' \
	       | $(SED) -e '$$G' \
	       >& $(OUTPUT)/N1466508085_1.trimmed.txt;
	$(RM) $(OUTPUT)/N1466508085_1.cub $(OUTPUT)/N1466508085_1.txt;
