Skip to main content

System to manage deforestation alert system

Project description

rasterop

Tiled raster processing utilities built on top of Rasterio and NumPy. This repository provides a small, extensible framework to apply custom operations on large raster datasets in a tiled/streaming fashion. It includes a generic tiled engine (tiled_op) and a few example operations you can adapt to your needs.

Features

  • Process large rasters by windows (tiles) with multi-threaded reading/writing
  • Compose custom operations by subclassing TiledOp
  • Optional masking by geometry or raster mask
  • Output tiling aligned to resolution ("target aligned pixels")
  • Examples of common operations (median, thresholding, scaling, differences)

Requirements

  • Python 3.12 or newer
  • GDAL/GEOS system libraries required by rasterio and shapely (platform-specific)

Python package dependencies (runtime):

  • rasterio
  • numpy
  • shapely
  • pyproj
  • tqdm
  • scipy (used by TimeSeriesOp example)

Tip (Linux): You may need to install system packages like gdal, geos, and development headers before pip install rasterio shapely will succeed. See Rasterio/Shapely installation docs for your OS.

Installation

PyPI

pip install rasterop

Developement mode

Installation in development mode:

pip install -e .

License

See LICENSE.txt (MIT-style license). Copyright © 2025 CIAT.

Contributing

Contributions are welcome!

  • Please open an issue to discuss substantial changes.
  • Feel free to propose improvements to docs, tests, and examples.

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

rasterop-0.9.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

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

rasterop-0.9.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file rasterop-0.9.0.tar.gz.

File metadata

  • Download URL: rasterop-0.9.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for rasterop-0.9.0.tar.gz
Algorithm Hash digest
SHA256 8118b8684a2aa2fe8db83fcb25ef5f80b7a31c8b746db0f29f7fd98552c3eebf
MD5 8a863de0c0ea379cfcc2b24d27be4441
BLAKE2b-256 b83cdea7f960b826470940895da6dbe694e66b651807adf063ee48a8698ba4b3

See more details on using hashes here.

File details

Details for the file rasterop-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: rasterop-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for rasterop-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c99bbbe10443bdf0a166f2bfa93e50e4e0786e925c3adddacc5a334706f6b578
MD5 ed780a4f42a5027a8b72d305a590f0a0
BLAKE2b-256 493271e92af9b257db8a9aa30c617317a933753b4765bfe9c2c1839d288a140c

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