Skip to main content

Wrapper around rasterio to query points on a Digital Elevation Model

Project description

demquery

Pypi Downloads

Wrapper around rasterio to query points on a Digital Elevation Model.

Features

  • Use multiple raster files without having to merge them into a new file
  • Query many points at once
  • Optional 2D interpolation (linear, cubic, or quintic)
  • Reasonably performant by reading the minimal data required from raster

Install

I recommend first installing dependencies with Conda, then installing demquery itself with pip.

conda install gdal rasterio numpy scipy -c conda-forge
pip install demquery

Documentation

from demquery import Query

dem_paths = ['dem1.tif', 'dem2.tif']
query = Query(dem_paths)

# Points must be in longitude, latitude order!
# These points are in Manhattan, not Antarctica
points = [(-73.985564, 40.757965), (-73.968520, 40.778912)]
elevations = query.query_points(points, interp_kind='linear')

Changelog

[0.1.0] - 2019-11-27

  • Initial release on PyPI

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

demquery-0.1.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

demquery-0.1.0-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file demquery-0.1.0.tar.gz.

File metadata

  • Download URL: demquery-0.1.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for demquery-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7264b581b748060456916c5811e9e72600149b42defb32fde4e7c331641fea1e
MD5 4e823410689519c001eb54bd460e990c
BLAKE2b-256 1669268622eb0846c7d4b186424ebb6aed5c5d5a8651558dbceec7698e9a2808

See more details on using hashes here.

Provenance

File details

Details for the file demquery-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: demquery-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for demquery-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c1dab5b62ad587ffc17471e94faa7b69e338dd5de4ce6dc00ef302a4f8f86bce
MD5 7761fa094a576498cce9d0ac86816ae9
BLAKE2b-256 66510d8a5b922b4a87042e04551ab95ed39ff8427efd2a18657e22f0c640af08

See more details on using hashes here.

Provenance

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