Metadata-Version: 2.4
Name: pyterrain
Version: 0.0.3
Summary: A Python package to fetch terrain data easily.
Home-page: https://github.com/Clarmy/pyterrain
Author: Wentao Li
Author-email: 
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.24.1
Requires-Dist: requests>=2.28.1
Requires-Dist: mercantile>=1.2.1
Requires-Dist: tqdm>=4.64.1
Requires-Dist: pyproj>=3.4.1
Requires-Dist: matplotlib>=3.6.2
Requires-Dist: retrying
Requires-Dist: loguru
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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:

```python
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.
