Skip to main content

Very simple API to download, merge, resample, project DEM tiles from AWS and Thredds

Project description

# dem See test_dem.py for examples of how this is used.

Collect elevation data from AWS or Thredds, merge, reproject, resample.

No API key needed!

pip install opendem

$ python

>>> import dem

Return elevation, aspect, or slope, that has been correctly transformed to fit rasters you are already working on.

![Montana Slope](https://github.com/dgketchum/dem/blob/master/Montana_Slope.png)

Pulls a web map tile service (AWS) list of tiles, based on input zoom level and bounding box, merges it, reprojects it, and resamples it to a raster you are working with.

This is intended for work where one needs a dem (elevation), slope, or aspect in a grid that matches another dataset they are working on.

For example, I work on Landsat images that come in WGS UTM coordinate reference systems. With [bounds](https://github.com/dgketchum/bounds), [satellite_image](https://github.com/dgketchum/satellite_image), and [Landsat578](https://github.com/dgketchum/Landsat578), I can easily download and unzip a Landsat scene, read it into a Landsat5 (or 7, 8) object, pass the object attributes to dem, and get back a numpy array that is reprojected into the same local coordinate system for accurate scientific analysis with the cloud mask, reflectance, albedo and other handy data returned by methods in satellite_image.

This is intended to replace the task of downloading NED files and going through a long process in a GIS to merge, reproject, resample, etc, which often requires time consuming file management and use of proprietary software.

This pulls elevation data from the web, much like an app on your phone does. Don’t spend all your time dealing with NED tiles!

Big ups to [rasterio](https://github.com/mapbox/rasterio).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opendem-0.0.22.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file opendem-0.0.22.tar.gz.

File metadata

  • Download URL: opendem-0.0.22.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for opendem-0.0.22.tar.gz
Algorithm Hash digest
SHA256 83f0ba4bc2cce6a5737173e1879ce60fdf01a47eece9a1a287e92dcaf844327d
MD5 23a4237457d5e3a34697ddc154c171bc
BLAKE2b-256 b7d8ac2d33dd38b0e87210b002bbbcef7831eab529fa1f4b3d87e0d5877bce97

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page