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.185.tar.gz
(45.2 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
File details
Details for the file glidergun-0.9.185.tar.gz.
File metadata
- Download URL: glidergun-0.9.185.tar.gz
- Upload date:
- Size: 45.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3603581cca2eeb7d06a9f55767543f4c7294b30604ee10f608722a390b9d11d2
|
|
| MD5 |
66a3fce12ed0a7ddeff3494f5f29e0aa
|
|
| BLAKE2b-256 |
57b6439f269d1cacd45d546396dfff84e4adc9376bab686a45d37a353f1b9de5
|
File details
Details for the file glidergun-0.9.185-py3-none-any.whl.
File metadata
- Download URL: glidergun-0.9.185-py3-none-any.whl
- Upload date:
- Size: 50.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2fcb995adc0363fbb2a0a54072eb0752319e36907832ff81fe95fcc91b89fca
|
|
| MD5 |
9b394b4c74a3a1a72e175d68f97e56fd
|
|
| BLAKE2b-256 |
67ba2ad175c5d52e3e4ea032ad720ab4fadd8f4585af7a87d91205a71af819f9
|