holoviz / holoviz/datashader

Shade missing values when rasterizing Points

Open
#1,330 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.6k
Forks
376
Avg merge
4h 32m
Merged PRs (30d)
1

Description

I am one of the developers of the [UXarray](https://github.com/UXARRAY/uxarray) package and we use Datashader and Holoviews for visualizing unstructured grids. The majority of our data is from climate model outputs, meaning that the data we are visualizing is mapped to the surface of a sphere and is projected for 2D visualization.

We support both Polygon and Point rasters, and one issue with the Point rasterization is that regions with lower point densities (such as the north and south poles when projected to 2D), lead to there being missing values near the poles. This can be seen when comparing the Polygon and Point rasters (look at the top and bottom)

![image](https://github.com/holoviz/datashader/assets/67855069/b1c991d4-69ce-40e5-88b7-1f87b228ccb2)

![image](https://github.com/holoviz/datashader/assets/67855069/fd4f84aa-5b6c-45d4-b092-921a1f7486fe)

While this is acceptable at high resolutions (the above grid is about 84 million points), the issue becomes much more noticable at lower resolutions

image

I'm wondering whether it would be possible to shade the missing values using some form of interpolation, such as nearest neighbor.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported comparison between the Polygon and Point rasters at lower resolutions, focusing on missing values near the projected poles. Read the existing Point rasterization path and determine how nearest-neighbor or another interpolation should define those gaps; done means the missing regions are shaded consistently without regressing the existing raster outputs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.