Skip to main content

Map Algebra with NumPy

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

Basic Usage

pip install glidergun

Example:

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")

With Segment Anything Model (larger dependency download)

CPU-only:

pip install glidergun[torch]

GPU (NVIDIA CUDA):

Python 3.14:

pip install --index-url https://download.pytorch.org/whl/cu126 torch torchvision
pip install glidergun[torch]

Python 3.10 ~ 3.13:

pip install --index-url https://download.pytorch.org/whl/cu124 torch torchvision
pip install glidergun[torch]

Example:

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")

ArcGIS

"%LOCALAPPDATA%\ESRI\conda\envs\arcgispro-py3-clone\python.exe" -m pip uninstall -y glidergun torch torchvision
"%LOCALAPPDATA%\ESRI\conda\envs\arcgispro-py3-clone\python.exe" -m pip install --index-url https://download.pytorch.org/whl/cu124 torch torchvision
"%LOCALAPPDATA%\ESRI\conda\envs\arcgispro-py3-clone\python.exe" -m pip install glidergun[torch]

QGIS

"C:\Program Files\QGIS 3.44.10\apps\Python312\python.exe" -m pip uninstall -y glidergun torch torchvision
"C:\Program Files\QGIS 3.44.10\apps\Python312\python.exe" -m pip install --index-url https://download.pytorch.org/whl/cu124 torch torchvision
"C:\Program Files\QGIS 3.44.10\apps\Python312\python.exe" -m pip install glidergun[torch]

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.183.tar.gz (46.4 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.183-py3-none-any.whl (50.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: glidergun-0.9.183.tar.gz
  • Upload date:
  • Size: 46.4 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.183.tar.gz
Algorithm Hash digest
SHA256 3816c588648c5036471dce75262d69e35819a7036f101417537c2caca56e5374
MD5 3ffe5ee7ab9ef958c99b4f4abd73314d
BLAKE2b-256 5a2316d82945c4c831a413367c3577a62c83b12d1ea307d4993784357881cbda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: glidergun-0.9.183-py3-none-any.whl
  • Upload date:
  • Size: 50.5 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.183-py3-none-any.whl
Algorithm Hash digest
SHA256 ee86444ce78b0cce03133a5990224b0f4b1561c973a2c47af4d1483e4ffbbdc8
MD5 19a68ead1512c52657799fe04a5c95ef
BLAKE2b-256 4cc25b579946d9d6a31ac590ed627db6a0f7fabd46b9f96c33fe9e18c6940e40

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