Skip to main content

Raster extensions for Xarray

Project description

rasterix: Raster tricks for Xarray

GitHub Workflow CI Status Documentation Status PyPI Conda-forge

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.

Contents

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!

Installing

PyPI

rasterix alpha releases are available on pypi

pip install rasterix

Developing

  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.1a3.tar.gz (66.0 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.1a3-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rasterix-0.1a3.tar.gz
Algorithm Hash digest
SHA256 eb5ef3bdf6a8b43ebf1e8f28a1ff419a5945bdc7552814b1b83932a298e11003
MD5 b159dffff24cae0f220872f6248757b9
BLAKE2b-256 373add9d57ceabc666992628e62c8d2f98975e09d8e826286a0ca50d34d9872b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rasterix-0.1a3-py3-none-any.whl
  • Upload date:
  • Size: 33.1 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.1a3-py3-none-any.whl
Algorithm Hash digest
SHA256 0022e0c28f800971989db0e6eb0a3c79be8d22fa52447ae75f8a57461980925b
MD5 97e2a6bc8d45bd49a9af1cbd895fc0f8
BLAKE2b-256 a74fa725fea79421120d04c8cdf9ee37410b22b2178a124cdc8f115428d3ea06

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