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/centreborelli/srtm4. It is written in Python. It is tested with Python 3.7, 3.8, 3.9 and 3.10.
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
For the crop function, if pyproj complains about the download of file, you can fix it manually with the command:
pyproj sync -v --file us_nga_egm96_15
Metadata
Release files for srtm4 1.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| srtm4-1.2.5.tar.gz | 2.0 MB | Without provenance | Details for srtm4-1.2.5.tar.gz |
Release files / srtm4-1.2.5.tar.gz
| Download URL | srtm4-1.2.5.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db2750e3371f5326348b3e8bdd009088f875301c207378a9c8ab49aad788c8ad
|
|
BLAKE2b-256 checksum How to use checksums |
31829923a548bd1954584195f9ee785034afc510d7247b4129fb24547bcebdfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.0
|
Security for srtm4 1.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.