Skip to main content

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.

Metadata

Release files for pyterrain 0.0.3

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

Source distribution (sdist)

Source distribution for pyterrain 0.0.3
File Size Uploaded
pyterrain-0.0.3.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyterrain 0.0.3
File Interpreter ABI Platform
pyterrain-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / pyterrain-0.0.3.tar.gz

Download URL pyterrain-0.0.3.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7b4ac4921f89cc133374b2d5e365d006c47158810ccb061a08999f1b6b029384
BLAKE2b-256 checksum
How to use checksums
e7cee25043e62abd1c01f3a70a69ce328e7dca62b19949fb7bf797313be72c64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / pyterrain-0.0.3-py3-none-any.whl

Download URL pyterrain-0.0.3-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5028a8c7c80cb4210e8be9aee2b4b8add83fd537ee7c63aebcc141680060a0d2
BLAKE2b-256 checksum
How to use checksums
ae6eadf14f84e812fad5f9ed47efca1199d207dd3fdbc4d1c5aaa9904ea18786
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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