Skip to main content

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)

Release files for gpoly 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpoly 0.1.4
File Size Uploaded
gpoly-0.1.4.tar.gz 45.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gpoly 0.1.4
File Interpreter ABI Platform
gpoly-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 76.8 kB

Release files / gpoly-0.1.4.tar.gz

Download URL gpoly-0.1.4.tar.gz
Size 45.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3bc0a74b7721b0d39998ab5dd92c4c9e1cbcff656638301760d003b6525a3ba3
BLAKE2b-256 checksum
How to use checksums
a612f1ea1dd0a7bb793b882f4a0bc515009c4aa783ebe7da31779265376ecf54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release files / gpoly-0.1.4-py3-none-any.whl

Download URL gpoly-0.1.4-py3-none-any.whl
Size 31.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0de32e8fab0aa515fe33326a8494d39e9ee30a595679b857c6be0739f9be167e
BLAKE2b-256 checksum
How to use checksums
d79423fc575cd77a1d814bfd9b0f6bf88d162967f3f4ce81119a472c13774e5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page