No project description provided
Project description
PyGsiElev
This is a tiny Python package that can get the elevation of specified coordinates, using the open DEM data distributed from GSI.
Prepare data
-
Download DEM data from GSI's download service. The service is free of charge, but user registration is required.
-
Place the downloaded files together in a directory of your choice.
How to use
Import pygsielev.ElevationExtractor
class and instanciate with data_dir
.
Then, call get_elevation()
of the object with longitude and latitude.
>>> from pygsielev import ElevationExtractor
>>> engine = ElevationExtractor(data_dir="data/")
>>> print(engine.get_elevation(lon=138.727299, lat=35.360785))
(3774.9, 'その他')
It returns a tuple contains (elevation, surface type).
Note: When the data_dir
paramater is omitted, the environmental variable
GSIELEV_DATADIR
will be used to get the data directory.
Operating environment
This package works with Python 3.8 or later. It uses only the standard library.
Contributing
Pull requests are welcome.
Author
Takeshi Sagara sagara@info-proto.com
License
This package can be used under the MIT License.
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
File details
Details for the file pygsielev-0.1.0.tar.gz
.
File metadata
- Download URL: pygsielev-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2690f44798f58f4237c652eb132a78a1e7d6d40e592b953c544fde96e644a9a3 |
|
MD5 | 211c0e41a299bf91baa9b7e6ce7dae6b |
|
BLAKE2b-256 | 9284c08a54bcc2f34901a12c333e79ed032bdf02c4a8aa6bed003bed5f710b09 |
File details
Details for the file pygsielev-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pygsielev-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9920a3b2725c320ba63a93066ab04ea958507e38eda02696aed16627da363a46 |
|
MD5 | 65c58059f43b7a9c63c9e966e13becbf |
|
BLAKE2b-256 | 938e35b12f602b3400ab8c6372bd658f0d7a2700f40d82ec14303a294baae0f3 |