-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
doc: add required variable to custom index #10986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
should we execute the code blocks in the example (by converting them to |
|
yes indeed. pushed a commit for that |
|
got bit here again today. anything more to do here? |
|
only that we may need some outputs / calls to |
| .. jupyter-execute:: | ||
|
|
||
| import numpy as np | ||
| import xarray as xr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| import xarray as xr | |
| import xarray as xr | |
| xr.set_options(display_expand_data=False) |
|
|
||
| # RasterIndex now takes care of label-based selection | ||
| selected = da_raster.sel(x=10, y=slice(20, 50)) | ||
| da_raster.sel(x=10, y=slice(20, 50)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we also need to show the input array (da_raster)?
Fixes an error on the custom index page. The code as written currently results in an error