rasterix
Raster extensions for Xarray
What it is and what it does
Rasterix is a Python library that extends Xarray with raster-specific operations commonly needed in geospatial analysis. It sits between raw raster data (typically GeoTIFFs) and higher-level geospatial packages, providing two core capabilities: a RasterIndex class that uses affine transforms to index raster data, and Dask-aware wrappers around rasterization and geometry masking functions from rasterio and exactextract.
The package is designed as a building block for the geospatial Python ecosystem rather than a complete end-user tool. It depends on affine, numpy, pandas, xarray, and xproj, and is actively maintained with Beta-level stability. It targets modern Python versions (3.11–3.14) and carries no known security vulnerabilities.
Use it for:
- Index and query raster data stored in GeoTIFFs using their embedded affine transforms within Xarray pipelines.
- Rasterize vector geometries or create geometry masks in a Dask-aware manner for distributed raster processing.
- Build reusable geospatial data analysis components that integrate with the broader Xarray ecosystem.
- Combine raster indexing with pandas and numpy operations on geospatial datasets.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Rasterix provides tools for analyzing raster data within Xarray workflows, including affine-transform-based indexing for GeoTIFFs and Dask-aware rasterization wrappers around standard rasterio operations.
Yes, if you work with raster data in Xarray and need affine-transform-based indexing or Dask-compatible rasterization. Low install friction, active maintenance, permissive license, and no known vulnerabilities support adoption. Beta status means the API may change; confirm the rasterization features you need are stable for your workflow.
Install
rasterix on PyPI
pip
pip install rasterixuv
uv add rasterixpoetry
poetry add rasterixInstalling rasterix
Before you install
Low install friction with a pure-Python wheel. Active maintenance status with a release within the last 72 days. Requires Python 3.11 or later.
License in practice
Apache-2.0 permissive license allows broad use, modification, and distribution with minimal restrictions.
Quickstart
pip install rasterix
import rasterix
import xarray as xr
# Use RasterIndex for affine-transform-based indexing
index = rasterix.RasterIndex(geotiff_path)
Requires Python 3.11 or later; geospatial data files (e.g., GeoTIFFs) needed for typical use.
Verify before relying
- Whether the package's rasterization wrappers are production-ready or still experimental given Beta status
- Performance characteristics when working with large raster datasets or high-resolution imagery
- Compatibility with specific versions of rasterio, exactextract, or other geospatial libraries beyond the listed runtime dependencies
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — affine, numpy, pandas, xarray, xproj |
| Maintenance | actively maintained — 72 days since the last release |
| First released | |
| Downloads | 114,377/month — #12,297 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: rasterix-0.2.2-py3-none-any.whl
Keywords: xarray
Tags
More Information Analysis packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyarrowpyarrow provides Python bindings to Apache…
permissive · top 100 on PyPI
networkxNetworkX provides data structures and…
permissive · top 1,000 on PyPI
snowflake-connector-pythonConnects Python applications to Snowflake data…
permissive · top 1,000 on PyPI
contourpyContourPy calculates contours of 2D…
permissive · top 1,000 on PyPI
snowflake-snowpark-pythonSnowpark Python provides APIs to query and…
permissive · top 1,000 on PyPI
rioxarrayrioxarray extends xarray with geospatial and…
permissive · top 5,000 on PyPI
xarray-spatialxarray-spatial provides 150+ functions for…
permissive · top 15,000 on PyPI
exactextractexactextract computes zonal statistics—fast…
permissive · top 15,000 on PyPI
odc-loaderConstructs xarray objects from parsed…
permissive · top 15,000 on PyPI
rasterioRasterio reads and writes geospatial raster…
permissive · top 5,000 on PyPI
floxFlox provides fast GroupBy reduction operations…
permissive · top 15,000 on PyPI
xprojXProj is an Xarray extension that provides…
permissive · top 15,000 on PyPI
rio-tilerrio-tiler reads raster data from local and…
permissive · top 15,000 on PyPI
odc-geoProvides projection-aware geometry classes…
permissive · top 15,000 on PyPI
affineAffine provides a Python class for representing…
permissive · top 5,000 on PyPI