SRTM4 elevation data reader
SRTM4 (Shuttle Radar Topography Mission)
Download and parsing of SRTM4 elevation data.
Carlo de Franchis, Enric Meinhardt, Gabriele Facciolo, CMLA 2018
Installation and dependencies
The main source code repository for this project is https://github.com/cmla/srtm4. It is written in Python. It was tested with Python 3.5, 3.6 and 2.7.
libtiff development files. They can be installed with
apt-get install libtiff-dev (Ubuntu, Debian) or
brew install libtiff
libtiff is installed,
srtm4 can be installed with
pip install srtm4
In a Python interpreter:
>>> import srtm4 >>> longitude, latitude = 2, 48 >>> altitude = srtm4.srtm4(longitude, latitude) >>> print(altitude) # should be 174.613 (altitude in meters above the WGS84 ellipsoid)
In a shell:
GEOID_PATH=data ./bin/srtm4 2 48
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.