Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

zonal stats on a categorical raster

Open
#91 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Start by reading the linked rasterstats documentation for working with categorical rasters and locating the existing zonal_stats entry point in xvec. Determine whether categorical rasters are already supported and define how count or area statistics should behave. Done means the requested categorical-raster statistic is supported and verified by appropriate tests.

Written by the indexing model from the issue text.

Description

I just had someone ask about zonal_stats with a categorical raster where the only "stat" that makes sense is a count (or perhaps area). Example: https://pythonhosted.org/rasterstats/manual.html?highlight=categorical#working-with-categorical-rasters

Is this supported or straightforward to implement?

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

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.

More from xarray-contrib/xvec

All issues in xarray-contrib/xvec

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.