root/terrain/shellscripts/translateToTif.sh @ 9fd6a7de
1 |
#!/bin/sh
|
---|---|
2 |
# script translates SRTM files in ESRI .ASC format files into .tif format
|
3 |
# Author: Rick Reeves, NCEAS April 26, 2011
|
4 |
|
5 |
iNames=`ls ./srtm_0[2-9]*.asc` |
6 |
|
7 |
for iName in $iNames |
8 |
do
|
9 |
echo " translating: $iName" |
10 |
gdal_translate -ot Int16 -of GTiff $iName $iName.tif |
11 |
done
|