#!/bin/sh

FILES="N50E015 N50E016"
#FILES="N50E015"
FILES="N50E016"

make

for FILE in $FILES ; do
#  unzip -o $FILE.hgt.zip
#  ./bin2 $FILE.hgt $FILE.by2
#  ./hgt $FILE.by2 > $FILE.asc
#  ./smooth.awk $FILE.asc > $FILE.smooth
#  ./grid.awk $FILE.smooth > $FILE.grid
#  ./contour_topo20.awk $FILE 20 contour_topo20.src > contour_topo20.plt
#  chmod +x contour_topo20.plt
#  ./contour_topo20.plt
  ./contour.awk $FILE"_topo20".tmp > $FILE.dat
  ./dat2pfm.awk 42001990 $FILE' SRTM TOPO 20' 20 $FILE.dat > $FILE.mp
done

