Simple Earth polygon "CLI" tool
Project description
geopoly
Simple "CLI" tool to mark polygons on a global map (with zooming) and then produce masks with said polygons with a given grid.
Install
Install with:
pipx install gpoly
Or with the following for Apple Silicon:
pipx install gpoly --pip-args='--no-binary :all:'
Example grid.JSON
Example python script to make the grid.json:
import numpy as np
import json
# resolution of 2 degree grid
N = 2
lon, lat = np.meshgrid(np.arange(-180, 180+N, N), np.arange(-90, 90+N, N))
lon = lon.tolist()
lat = lat.tolist()
# saving as a json file with the 'lat' and 'lon' keywords
grid = {'lon': lon, 'lat': lat}
with open('grid.json', 'w') as file:
json.dump(grid, file)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gpoly-0.1.4.tar.gz
(45.1 kB
view details)
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
gpoly-0.1.4-py3-none-any.whl
(31.7 kB
view details)
File details
Details for the file gpoly-0.1.4.tar.gz.
File metadata
- Download URL: gpoly-0.1.4.tar.gz
- Upload date:
- Size: 45.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bc0a74b7721b0d39998ab5dd92c4c9e1cbcff656638301760d003b6525a3ba3
|
|
| MD5 |
da5619cd553608451126b039427aaf42
|
|
| BLAKE2b-256 |
a612f1ea1dd0a7bb793b882f4a0bc515009c4aa783ebe7da31779265376ecf54
|
File details
Details for the file gpoly-0.1.4-py3-none-any.whl.
File metadata
- Download URL: gpoly-0.1.4-py3-none-any.whl
- Upload date:
- Size: 31.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0de32e8fab0aa515fe33326a8494d39e9ee30a595679b857c6be0739f9be167e
|
|
| MD5 |
c1a261db4453ae86e0f66bfa5a53ce1f
|
|
| BLAKE2b-256 |
d79423fc575cd77a1d814bfd9b0f6bf88d162967f3f4ce81119a472c13774e5f
|