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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyterrain-0.0.3.tar.gz | 5.5 kB | Without provenance | Details for pyterrain-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyterrain-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for pyterrain-0.0.3-py3-none-any.whl |
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
|
Security for pyterrain 0.0.3
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.