xarray-contrib / xarray-contrib/xvec

Spatial partitioning, sorting and shuffling

Open
#84 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
139
Forks
14
PR merge metrics
No merged PRs in 30d

Description

When dealing with large sets of geometries it would be nice if we could partition (chunk) the geometry coordinate and the GeometryIndex based on spatial locality (thus requiring spatial sorting or shuffling), like explained for geo-dataframes in dask-geopandas' spatial partitioning user guide.

This would require a good amount of work both here and upstream, though:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the dask-geopandas spatial partitioning guide, then review the linked xarray.IndexVariable PR and out-of-core index issue. Check the linked Xarray spatial-shuffling PR and determine how space-filling curve values and chunked geometry indexes should fit in xvec. Done means spatially partitioned geometry coordinates and GeometryIndex support the intended out-of-core sorting and shuffling.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.