Migrate surface user guide off datashader

Open
#3,453 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Quiet
Tech stack
matplotlib, python

Research direction

Start with docs/source/user_guide/surface.ipynb and run it to inspect the current datashader-based workflow, including Canvas, shade, stack, and Elevation usage. Replace the documented workflow with xarray-spatial rasterization and matplotlib rendering, then re-execute the notebook. Done means it runs top to bottom without importing datashader, produces the expected plots, and regenerates the preview image cleanly.

Written by the indexing model from the issue text.

Description

area:surface documentation user-guide-example

Reason or Problem

docs/source/user_guide/surface.ipynb imports datashader and uses Canvas to set up the terrain grid plus shade/stack and the Elevation colormap for rendering. xarray-spatial now provides its own rasterization, and matplotlib covers the rendering.

Proposal

  • Remove the datashader imports.
  • Replace any Canvas-based grid setup with xarray-spatial's own functions (e.g. generate_terrain with a plain coordinate setup).
  • Replace shade/stack and datashader colormaps with matplotlib (imshow, a terrain-style colormap).
  • Update the prose cells that describe the datashader workflow.
  • Re-execute the notebook so outputs and the preview image regenerate cleanly.

Done when

  • The notebook runs top to bottom with no datashader import and produces the expected plots.

Part of removing datashader as a dependency; final packaging removal is tracked in #3450.

Dominant language
Python
Stars
972
Forks
92
Avg merge
2d 12h
Merged PRs (30d)
7

Contributor guide

Open the contributing guide

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/xarray-spatial

All issues in xarray-contrib/xarray-spatial

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.