Skip to main content

# 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).

Metadata

Release files for opendem 0.0.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opendem 0.0.23
File Size Uploaded Provenance
opendem-0.0.23.tar.gz 5.8 kB Without provenance Details

Release files / opendem-0.0.23.tar.gz

Download URL opendem-0.0.23.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
14aa268f4cea4f854d0775378ceede7f8ec1e9aec61f1dbef8fe7591ee5e780e
BLAKE2b-256 checksum
How to use checksums
af2bef0aa16f9d2feaa02e14cf935a4acf01d13ea6ae8c9f73a5a55a1782852e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for opendem 0.0.23

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page