Skip to content

dcherian/rasterix

Repository files navigation

rasterix: Raster tricks for Xarray

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.

1. RasterIndex

See src/ rasterix/raster_index.py and notebooks/raster_index.ipynb for a brief demo.

2. Dask-aware rasterization wrappers

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!

Trying it out

PyPI

rasterix alpha releases are available on pypi

pip install rasterix

Installing and testing from source

  1. Clone the repo
    git remote add upstream [email protected]:dcherian/rasterix.git
    cd rasterix
    
  2. Install hatch
  3. 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
    

About

raster tools for xarray

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •