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.3.tar.gz
(45.1 kB
view details)
Built Distribution
gpoly-0.1.3-py3-none-any.whl
(31.7 kB
view details)
File details
Details for the file gpoly-0.1.3.tar.gz
.
File metadata
- Download URL: gpoly-0.1.3.tar.gz
- Upload date:
- Size: 45.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86456a1d142af0f5f10f7c4f2023f7f6b99f44a50af37cad8d82a5cf4fed290f |
|
MD5 | 5406ab696858a6d7be3ade9bcd14e718 |
|
BLAKE2b-256 | d982bb70b3c0e36624cf06486e18dd7a5e69ca653a8a0fd182fe04af57c50769 |
File details
Details for the file gpoly-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: gpoly-0.1.3-py3-none-any.whl
- Upload date:
- Size: 31.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4268b35589482ad134fcc29507c6d7987dddd242548294d116551e09ea4dc816 |
|
MD5 | 2979db0330ed49e1747975bea402adbf |
|
BLAKE2b-256 | 3b63860d7f555a9b4db5ea0e85184f3317025aa8e95e709614f445abf6d789b6 |