skillfed

rasterix

Raster extensions for Xarray

rasterix v0.2.2 114.4K downloads/30d#12,297 on PyPI
Permissive license Apache-2.0 Active released

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 rasterix

uv

uv add rasterix

poetry

poetry add rasterix

Installing 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

Development Status :: 4 - BetaNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

xarray raster analysisgeotiff indexing affine transformrasterization with daskraster data xarraygeospatial raster tools
geospatialraster-datadask-aware

More Information Analysis packages