| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
SRTM.py is a python parser for the Shuttle Radar Topography Mission elevation data.
See: http://www2.jpl.nasa.gov/srtm/.
import srtm elevation_data = srtm.get_data() print 'CGN Airport elevation (meters):', elevation_data.get_elevation(50.8682, 7.1377)
With get_elevation() an elevation of the the nearest location found in the SRTM data will be given. If you need an approximation based on nearby locations, you can use:
elevation_data.get_elevation(50.8682, 7.1377, approximate=True)
You can create elevation images with:
import srtm geo_elevation_data = srtm.get_data() image = geo_elevation_data.get_image((500, 500), (45, 46), (13, 14), 300) # the image s a standard PIL object, you can save or show it: image.show()
On every elevation requested the library will:
That's why the first run of your application will always take a few seconds.
Istra and Trieste:
Rio de Janeiro:
Miami and florida:
Sidney:
gpxelevations is a utility commandline tool to add/update elevations in a GPS track file:
$ gpxelevations -h
usage: gpxelevations [-h] [-o] [-c] [-f FILE] [gpx_files [gpx_files ...]]
Adds elevation to GPX files
positional arguments:
gpx_files GPX files
optional arguments:
-h, --help show this help message and exit
-o, --overwrite Overwrite existing elevations (otherwise will add
elevations only where not yet presetn)
-c, --calculate Calculate elevations (but don't change the GPX file
-f FILE, --file FILE Output filename
GPX.py is licensed under the Apache License, Version 2.0
| Back | FazBrowse Home | New Git URL |