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'.
Metadata
Release files for raster-zonal-stats 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| raster_zonal_stats-0.1.2.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| raster_zonal_stats-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / raster_zonal_stats-0.1.2.tar.gz
| Download URL | raster_zonal_stats-0.1.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8419ac274b131e11c8143e8d7d9d061032296f3343c4308ad8da03803f7b6cb1
|
|
BLAKE2b-256 checksum How to use checksums |
ba3423ca98e5128b369d94fe29a738343d246ce6710ddcdba2548fe245f17489
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / raster_zonal_stats-0.1.2-py3-none-any.whl
| Download URL | raster_zonal_stats-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35c7d721cbbb9a2fa7bfb759c83b09ffb68fd1c2946245ddfa6b22fd46969447
|
|
BLAKE2b-256 checksum How to use checksums |
cd871dd092f9ae5dc815531a080a1512b3947b24dc847543c6eabb6c8d62c351
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|