Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

raptor_stats-0.0.3.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

raptor_stats-0.0.3-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

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

Hashes for raptor_stats-0.0.3.tar.gz
Algorithm Hash digest
SHA256 366789d870a08999a1d67985b4d21907333bc8192e7a1ebbf2693025c503ca4d
MD5 6db6f61a30f7c8fa5312f2753bd4e8c6
BLAKE2b-256 43d827b9054bf30517231d7fae61678c7110200d204c6a5a9e8d936e827b03e5

See more details on using hashes here.

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

Hashes for raptor_stats-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0343b311f235142e079fa0fa11513304e5fa23b9efa73fb1ee54888cbe1b59e8
MD5 3437d8577d836656516e062134bfdb55
BLAKE2b-256 4bcb0eb3f680258cdf97a17d072c90f9ab1d2bdcac91d55500c3410f89dbbb84

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