A Python package to fetch terrain data easily.
Project description
pyterrain
This is a Python package designed for terrain data fetching.
Installation
To install the package, simply use pip: $ pip install pyterrain
Usage
Data Source
Pyterrain fetches Terrarium PNG tiles from the AWS Open Data elevation tiles source:
https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png
Fetch DEM by bound box
You can download DEM data directly as follows:
bbox = 116.972979,36.387619, 117.208694,36.172087 # This represents the Mount Taishan of China
terrain = Terrain()
xs, ys, elevation = terrain.fetch(bbox=bbox, quiet=False, coord="lonlat", zoom=10)
In case the download isn't completed due to connectivity issues, please retry the process.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyterrain-0.0.3.tar.gz.
File metadata
- Download URL: pyterrain-0.0.3.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b4ac4921f89cc133374b2d5e365d006c47158810ccb061a08999f1b6b029384
|
|
| MD5 |
dcb61abe2e3819e0ba8a4aded9fbbdb9
|
|
| BLAKE2b-256 |
e7cee25043e62abd1c01f3a70a69ce328e7dca62b19949fb7bf797313be72c64
|
File details
Details for the file pyterrain-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pyterrain-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5028a8c7c80cb4210e8be9aee2b4b8add83fd537ee7c63aebcc141680060a0d2
|
|
| MD5 |
a3d49a82693835502ee0fc3ccb6d2068
|
|
| BLAKE2b-256 |
ae6eadf14f84e812fad5f9ed47efca1199d207dd3fdbc4d1c5aaa9904ea18786
|