Skip to main content

Map Algebra with NumPy

Project description

Map Algebra with NumPy

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

Basic Usage

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

With Segment Anything Model (larger dependency download)

pip install glidergun[torch]
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")

License

This project is licensed under the MIT License. See LICENSE for details.

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

glidergun-0.9.156.tar.gz (43.3 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.156-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: glidergun-0.9.156.tar.gz
  • Upload date:
  • Size: 43.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.5

File hashes

Hashes for glidergun-0.9.156.tar.gz
Algorithm Hash digest
SHA256 ab6037efd093e6325252dca79f0040b0be135a2b9132dec633c83b26025555c2
MD5 6571e7e4ec307e4c242acf21693e9949
BLAKE2b-256 5235c0c345099e41e755c10aadb5a50484f8d7fb85e67fbd2dcc4c6ddf1a9e13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for glidergun-0.9.156-py3-none-any.whl
Algorithm Hash digest
SHA256 2b2b49093a15e1f9455dfc318d361a6bb4c9b8545d82970668e4a86ccff5456b
MD5 56ba73cb54bf37190116e9f7b6f5582e
BLAKE2b-256 d90d073dc717b079a0ef2d370ba976fdef9a3e41d72b1f7f8a5db8c531f0443c

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 Pingdom Monitoring Sentry Error logging StatusPage Status page