datashader icon indicating copy to clipboard operation
datashader copied to clipboard

Shade missing values when rasterizing Points

Open philipc2 opened this issue 9 months ago • 2 comments

I am one of the developers of the 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

image

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.

philipc2 avatar May 14 '24 00:05 philipc2