APPNAME = footprintinit

include $(ISISROOT)/make/isismake.tsts

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