Skip to main content

Raster extensions for Xarray

Project description

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 git@github.com: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
    

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

rasterix-0.1a2.tar.gz (34.2 kB view details)

Uploaded Source

Built Distribution

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

rasterix-0.1a2-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file rasterix-0.1a2.tar.gz.

File metadata

  • Download URL: rasterix-0.1a2.tar.gz
  • Upload date:
  • Size: 34.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for rasterix-0.1a2.tar.gz
Algorithm Hash digest
SHA256 b81994d98e3a55f99999dc3a2e4090adbcb7cf2e356f48a4bc6e58beed98d099
MD5 6ecf415f7382f354ea7200bcc51c6ea1
BLAKE2b-256 ac336d4e6be41a4881c7ea79ded68c666dd4e67682a3ce0b6cfb0dcf55cb57dd

See more details on using hashes here.

File details

Details for the file rasterix-0.1a2-py3-none-any.whl.

File metadata

  • Download URL: rasterix-0.1a2-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for rasterix-0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 e056dc0c9a4aef4002f98ab73e36bf650e5c6d56c166a6e5458a9423cedb25d0
MD5 9b295208599a0b424445fd965538c2ae
BLAKE2b-256 95dceee9eee67d950cf828ed85f673bdeb4c4fdb5387039e31cbe02dfc7c657d

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