hi,
just tried to display SRTM height maps and found out gnuplot 4.3
is able to do it, see the attached shell script.
maybe this is something for the demo gallery?
greetings,
thomas sefzick
------------------------------ cut here ----------------------------
#!/bin/sh
echo 'download SRTM3 data'
wget ftp://e0srp01u.ecs.nasa.gov/srtm/version2/SRTM3/Eurasia/N50E006.hgt.zip
unzip N50E006.hgt.zip
wget ftp://e0srp01u.ecs.nasa.gov/srtm/version2/SRTM3/Eurasia/N51E006.hgt.zip
unzip N51E006.hgt.zip
echo 'want N=51.0 to be in the center of the map, so make a new one'
dd if=N51E006.hgt of=tmp.hgt bs=2402 skip=600
unzip N51E006.hgt.zip
echo 'want N=51.0 to be in the center of the map, so make a new one'
dd if=N51E006.hgt of=tmp.hgt bs=2402 skip=600
dd if=N50E006.hgt of=tmp.hgt bs=2402 seek=601 count=600
echo 'and plot it'
gnuplot -persist <<EOF
set xrange [0:1200]
set yrange [0:1200]
set size ratio 1
set cbrange [0:700]
plot "tmp.hgt" binary array=1201x1201 format="%int16" endian=big flipy
notitle with image
EOF
--
View this message in context: http://www.nabble.com/SRTM-maps-in-gnuplot-%3E%3D-4.2-tf3872542.html#a10972134
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|