Skip to main content

A Python package to retrieve raster values for each pixel of a shapefile.

Project description

Raster Zonal Stats

'Raster Zonal Stats' is a Python library designed to retrieve raster values for each pixel of a shapefile.

Installation

Install using below pip command

pip install raster-zonal-stats

Usage

from raster_zonal_stats import RasterZonalStats

RasterZonalStats('/path/to/shapefile.shp', '/path/to/raster.tif', aggr='mean')

Parameters

shp_path (str): Path to the shapefile.

tiff_path (str): Path to the TIFF file.

aggr (str, optional): Aggregation method for zonal statistics. Defaults to 'mean'.

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

raster_zonal_stats-0.1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

raster_zonal_stats-0.1.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file raster_zonal_stats-0.1.2.tar.gz.

File metadata

  • Download URL: raster_zonal_stats-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for raster_zonal_stats-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8419ac274b131e11c8143e8d7d9d061032296f3343c4308ad8da03803f7b6cb1
MD5 8af90f499f3a776757493dd0a85ed4d8
BLAKE2b-256 ba3423ca98e5128b369d94fe29a738343d246ce6710ddcdba2548fe245f17489

See more details on using hashes here.

File details

Details for the file raster_zonal_stats-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for raster_zonal_stats-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 35c7d721cbbb9a2fa7bfb759c83b09ffb68fd1c2946245ddfa6b22fd46969447
MD5 82f6dca3d9c93d74c49db8eed1b4da1c
BLAKE2b-256 cd871dd092f9ae5dc815531a080a1512b3947b24dc847543c6eabb6c8d62c351

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page