Raptor Zonal Statistics
Project description
raptor-stats
Raptor (Raster-Vector) Zonal Statistics
This package provides a simple interface to calculate zonal statistics using Raptor Methods with a rasterstats-like api.
Installation
You can install the package using pip:
pip install raptor-stats
Usage
from raptorstats import zonal_stats
# Example usage
stats = zonal_stats("path/to/vector.shp", "path/to/raster.tif", method="scanline")
Note: see the zonal_stats API docs for more details on input types and additional parameters.
Methods
scanline: Uses a scanline algorithm for efficient zonal statistics. Suitable for large datasets in a single pass (large raster, many features).agqt: Uses the aggregated quadtree method. Suitable for several and repeated queries over a large dataset (large raster, many features).
Credits
- Author: Simon Pedro Gonzalez
- This package is based on the following project, where you can read more about the zonal stats problem, methods and performance comparison.
- This package API and tests are heavily inspired in the rasterstats package by Matthew Perry.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 raptor_stats-0.0.3.tar.gz.
File metadata
- Download URL: raptor_stats-0.0.3.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
366789d870a08999a1d67985b4d21907333bc8192e7a1ebbf2693025c503ca4d
|
|
| MD5 |
6db6f61a30f7c8fa5312f2753bd4e8c6
|
|
| BLAKE2b-256 |
43d827b9054bf30517231d7fae61678c7110200d204c6a5a9e8d936e827b03e5
|
File details
Details for the file raptor_stats-0.0.3-py3-none-any.whl.
File metadata
- Download URL: raptor_stats-0.0.3-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0343b311f235142e079fa0fa11513304e5fa23b9efa73fb1ee54888cbe1b59e8
|
|
| MD5 |
3437d8577d836656516e062134bfdb55
|
|
| BLAKE2b-256 |
4bcb0eb3f680258cdf97a17d072c90f9ab1d2bdcac91d55500c3410f89dbbb84
|