Skip to content
Download and parsing of SRTM4 elevation data
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data add srtm4 sources Nov 15, 2018
src [bugfix] use same cache dir default in C code and Python wrapper Nov 17, 2018
.gitignore
MANIFEST.in [build] fix sdist build, and make srtm4 a module instead of a package Nov 16, 2018
Makefile [build] more portable way of accessing the geoid data file Nov 17, 2018
README.md [refactor] make srtm4 compatible with python2 Jun 25, 2019
setup.py [refactor] make srtm4 compatible with python2 Jun 25, 2019
srtm4.py [refactor] make srtm4 compatible with python2 Jun 25, 2019

README.md

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.

srtm4 requires libtiff development files. They can be installed with apt-get install libtiff-dev (Ubuntu, Debian) or brew install libtiff (macOS).

Once libtiff is installed, srtm4 can be installed with pip:

pip install srtm4

Usage

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
You can’t perform that action at this time.