Repository navigation
docs: Add an example rendering a multiscale GeoZarr DEM with from_xarray - #1360
Open
kylebarron wants to merge 3 commits into
Open
kylebarron wants to merge 3 commits into
kylebarron wants to merge 3 commits into
Conversation
kylebarron
force-pushed
the
kyle/raster-xarray-docs
branch
from
November 16, 2026 20:43
2c5a93f to
42ba81c
Compare
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
kylebarron
force-pushed
the
kyle/raster-xarray-docs
branch
from
November 16, 2026 21:08
42ba81c to
5619359
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR was written by Claude (Claude Code), not by @kylebarron.
Last of the stack toward xarray support. Stacked on the
DataTreePR.What I am changing
examples/raster-xarray.ipynb: opens carbonplan's public USGS CONUS 10 m DEM pyramid (GeoZarr, Zarr v3, 14 levels) over HTTP as aDataTree, colors elevation with arender_tilecallback that makes NaN transparent, and shows it withRasterLayer.from_xarray(tree, render_tile=..., variable="DEM"). A last cell runs the callback on the coarsest level to show the image it produces.from_xarrayalready appears on theRasterLayerAPI page through mkdocstrings.How you can test it
uv run --frozen jupyter nbconvert --to notebook --execute --stdout examples/raster-xarray.ipynb > /dev/nullruns the notebook headless; the map cell produces the widget and the last cell a PNG.uvx juv run examples/raster-xarray.ipynbonce a release withfrom_xarrayis on PyPI; until then run it from a checkout.uv run --frozen --group docs mkdocs build --strictanduv run --frozen pytest tests/test_mkdocs_notebook_links.py tests/test_normalize_notebook.py.🤖 Written by Claude Code
🤖 Generated with Claude Code