Skip to main content

Map Algebra with NumPy

Inspired by the ARC/INFO GRID implementation of Map Algebra.

CPU

uv add glidergun
from glidergun import grid

dem = grid("cop-dem-glo-90", (137.8, 34.5, 141.1, 36.8))
hillshade = dem.hillshade()

dem.save("dem.tif")
hillshade.save("hillshade.tif", "uint8")

CUDA

uv add torch torchvision --index pytorch-cu130=https://download.pytorch.org/whl/cu130
uv add glidergun
from glidergun import stack

bing = stack("microsoft", (-123.164, 49.272, -123.162, 49.273), max_tiles=100)
bing.save("vancouver.tif")

sam = bing.sam("tree", "house", "car")
sam.to_geojson().save("vancouver.json")

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glidergun-0.9.188.tar.gz (45.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glidergun-0.9.188-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

Details for the file glidergun-0.9.188.tar.gz.

File metadata

  • Download URL: glidergun-0.9.188.tar.gz
  • Upload date:
  • Size: 45.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for glidergun-0.9.188.tar.gz
Algorithm Hash digest
SHA256 d51dd86b52c924ad87ca5841f11fbb2691bd6d7128e853ae28d23529f0b9291a
MD5 080da54aaebe9d5c81ce27cef889ff15
BLAKE2b-256 474a4fa13b5e883bc6cc11c43a4de6aabcc981f2ea8a2c3d850b7e6f8f1668c6

See more details on using hashes here.

File details

Details for the file glidergun-0.9.188-py3-none-any.whl.

File metadata

  • Download URL: glidergun-0.9.188-py3-none-any.whl
  • Upload date:
  • Size: 50.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for glidergun-0.9.188-py3-none-any.whl
Algorithm Hash digest
SHA256 ea8d430bd2e27e45f7f04e359daf05fbcb9a777ffc8229a6b32a5e1010630632
MD5 9cbee38a20596fd9a60915f237aa66d3
BLAKE2b-256 242155475de0b0698913be4fb32da11cb03de74532d4b628a82f52bf7579ea7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page