Git Product home page Git Product logo

srtm4's Introduction

SRTM4 (Shuttle Radar Topography Mission)

Download and parsing of SRTM4 elevation data.

PyPI version

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.