This WIP project contains tools to make it easier to analyze raster data with Xarray.
The intent is to provide reusable building blocks for the many sub-ecosystems around: e.g. rioxarray, odc-geo, etc.
It currently has two pieces.
See src/ rasterix/raster_index.py
and notebooks/raster_index.ipynb
for a brief demo.
See src/rasterix/rasterize.py
for dask-aware wrappers around exactextract
, rasterio.features.rasterize
, and rasterio.features.geometry_mask
.
This code is likely to move elsewhere!
rasterix
alpha releases are available on pypi
pip install rasterix
- Clone the repo
git remote add upstream [email protected]:dcherian/rasterix.git cd rasterix
- Install hatch
- Run the tests
hatch env run --env test.py3.13 run-pytest # Run the tests without coverage reports hatch env run --env test.py3.13 run-coverage-html # Run the tests with an html coverage report