-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrass.sh
executable file
·25 lines (20 loc) · 938 Bytes
/
grass.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# 2019-09-29 <[email protected]>
# src: https://grasswiki.osgeo.org/wiki/HOWTO_import_SRTM_elevation_data
echo "################################################################"
echo "## ##"
echo "## THIS FILE IS WORK IN PROGRESS. EXITING. ##"
echo "## ##"
echo "################################################################"
exit 1;
cd geodata
# unzip all
for i in *.hgt.zip ; do unzip $i ; done
# create mosaik (optionally reproject on the fly with -t_srs)
gdalwarp *.hgt srtm_mosaik.tif
# import
r.in.gdal input=srtm_mosaik output=srtm_mosaik
#r.in.gdal input=/home/user/SRTM/N47E010.hgt output=N47E010
#r.in.gdal input=/home/user/SRTM/N46E010.hgt output=N46E010
#r.in.gdal input=/home/user/SRTM/N47E011.hgt output=N47E011
#r.in.gdal input=/home/user/SRTM/N46E011.hgt output=N46E011