Metadata-Version: 2.4
Name: glidergun
Version: 0.9.156
Summary: Map Algebra with NumPy
License-Expression: MIT
Project-URL: Homepage, https://github.com/jshirota/glidergun
Project-URL: Bug Tracker, https://github.com/jshirota/glidergun/issues
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: contourpy>=1.3.3; python_version >= "3.14"
Requires-Dist: ipython>=7.31.1; python_version == "3.10"
Requires-Dist: ipython>=8.0.0; python_version == "3.11"
Requires-Dist: ipython>=8.16.0; python_version == "3.12"
Requires-Dist: ipython>=8.28.0; python_version == "3.13"
Requires-Dist: ipython>=8.31.1; python_version >= "3.14"
Requires-Dist: matplotlib>=3.5.0; python_version == "3.10"
Requires-Dist: matplotlib>=3.6.2; python_version == "3.11"
Requires-Dist: matplotlib>=3.8.0; python_version == "3.12"
Requires-Dist: matplotlib>=3.9.4; python_version == "3.13"
Requires-Dist: matplotlib>=3.10.8; python_version >= "3.14"
Requires-Dist: numpy>=1.21.2; python_version == "3.10"
Requires-Dist: numpy>=1.23.2; python_version == "3.11"
Requires-Dist: numpy>=1.26.0; python_version == "3.12"
Requires-Dist: numpy>=2.1.0; python_version == "3.13"
Requires-Dist: numpy>=2.4.4; python_version >= "3.14"
Requires-Dist: opencv-python>=4.5.4; python_version == "3.10"
Requires-Dist: opencv-python>=4.6.0; python_version == "3.11"
Requires-Dist: opencv-python>=4.8.1; python_version == "3.12"
Requires-Dist: opencv-python>=4.10.0; python_version == "3.13"
Requires-Dist: opencv-python>=4.13.0; python_version >= "3.14"
Requires-Dist: planetary-computer>=1.0.0
Requires-Dist: rasterio>=1.3.3; python_version == "3.10"
Requires-Dist: rasterio>=1.3.3; python_version == "3.11"
Requires-Dist: rasterio>=1.3.9; python_version == "3.12"
Requires-Dist: rasterio>=1.4.0; python_version == "3.13"
Requires-Dist: rasterio>=1.4.4; python_version >= "3.14"
Requires-Dist: scikit-learn>=1.0.0; python_version == "3.10"
Requires-Dist: scikit-learn>=1.1.0; python_version == "3.11"
Requires-Dist: scikit-learn>=1.3.0; python_version == "3.12"
Requires-Dist: scikit-learn>=1.5.0; python_version == "3.13"
Requires-Dist: scikit-learn>=1.8.0; python_version >= "3.14"
Requires-Dist: scipy>=1.7.1; python_version == "3.10"
Requires-Dist: scipy>=1.9.0; python_version == "3.11"
Requires-Dist: scipy>=1.11.0; python_version == "3.12"
Requires-Dist: scipy>=1.14.1; python_version == "3.13"
Requires-Dist: scipy>=1.17.1; python_version >= "3.14"
Requires-Dist: shapely>=1.8.0; python_version == "3.10"
Requires-Dist: shapely>=1.8.5; python_version == "3.11"
Requires-Dist: shapely>=2.0.2; python_version == "3.12"
Requires-Dist: shapely>=2.0.6; python_version == "3.13"
Requires-Dist: shapely>=2.1.2; python_version >= "3.14"
Provides-Extra: torch
Requires-Dist: kornia>=0.6.2; python_version == "3.10" and extra == "torch"
Requires-Dist: kornia>=0.6.7; python_version == "3.11" and extra == "torch"
Requires-Dist: kornia>=0.7.1; python_version == "3.12" and extra == "torch"
Requires-Dist: kornia>=0.7.4; python_version == "3.13" and extra == "torch"
Requires-Dist: kornia>=0.8.2; python_version >= "3.14" and extra == "torch"
Requires-Dist: sam-prompt>=0.1.2; extra == "torch"
Dynamic: license-file

# Map Algebra with NumPy

Inspired by the ARC/INFO GRID implementation of [Map Algebra](https://en.m.wikipedia.org/wiki/Map_algebra).

### Basic Usage

```bash
pip install glidergun
```

```python
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)

```bash
pip install glidergun[torch]
```

```python
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.
